Skip to content

Commit

Permalink
[Ingest Manager] Add input revision to the config send to the agent (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed Sep 3, 2020
1 parent c7038cc commit 585577f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ describe('Ingest Manager - storedPackagePoliciesToAgentInputs', () => {
{
id: 'some-uuid',
name: 'mock-package-policy',
revision: 1,
type: 'test-logs',
data_stream: { namespace: 'default' },
use_output: 'default',
Expand Down Expand Up @@ -159,6 +160,7 @@ describe('Ingest Manager - storedPackagePoliciesToAgentInputs', () => {
{
id: 'some-uuid',
name: 'mock-package-policy',
revision: 1,
type: 'test-logs',
data_stream: { namespace: 'default' },
use_output: 'default',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const storedPackagePoliciesToAgentInputs = (

const fullInput: FullAgentPolicyInput = {
id: packagePolicy.id || packagePolicy.name,
revision: packagePolicy.revision,
name: packagePolicy.name,
type: input.type,
data_stream: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export interface FullAgentPolicyInputStream {
export interface FullAgentPolicyInput {
id: string;
name: string;
revision: number;
type: string;
data_stream: { namespace: string };
use_output: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
inputs: [
{
id: policyInfo.packagePolicy.id,
revision: 2,
data_stream: { namespace: 'default' },
name: 'Protect East Coast',
meta: {
Expand Down

0 comments on commit 585577f

Please sign in to comment.