@@ -78,34 +78,34 @@ describe('Fleet - storedPackagePoliciesToAgentInputs', () => {
7878 } ;
7979
8080 const mockInput2 : PackagePolicyInput = {
81- type : 'test-metrics' ,
82- policy_template : 'some-template' ,
83- enabled : true ,
84- vars : {
85- inputVar : { value : 'input-value' } ,
86- inputVar2 : { value : undefined } ,
87- inputVar3 : {
88- type : 'yaml' ,
89- value : 'testField: test' ,
90- } ,
91- inputVar4 : { value : '' } ,
92- } ,
93- streams : [
94- {
95- id : 'test-metrics-foo' ,
96- enabled : true ,
97- data_stream : { dataset : 'foo' , type : 'metrics' } ,
98- vars : {
99- fooVar : { value : 'foo-value' } ,
100- fooVar2 : { value : [ 1 , 2 ] } ,
101- } ,
102- compiled_stream : {
103- fooKey : 'fooValue1' ,
104- fooKey2 : [ 'fooValue2' ] ,
81+ type : 'test-metrics' ,
82+ policy_template : 'some-template' ,
83+ enabled : true ,
84+ vars : {
85+ inputVar : { value : 'input-value' } ,
86+ inputVar2 : { value : undefined } ,
87+ inputVar3 : {
88+ type : 'yaml' ,
89+ value : 'testField: test' ,
10590 } ,
91+ inputVar4 : { value : '' } ,
10692 } ,
107- ] ,
108- } ;
93+ streams : [
94+ {
95+ id : 'test-metrics-foo' ,
96+ enabled : true ,
97+ data_stream : { dataset : 'foo' , type : 'metrics' } ,
98+ vars : {
99+ fooVar : { value : 'foo-value' } ,
100+ fooVar2 : { value : [ 1 , 2 ] } ,
101+ } ,
102+ compiled_stream : {
103+ fooKey : 'fooValue1' ,
104+ fooKey2 : [ 'fooValue2' ] ,
105+ } ,
106+ } ,
107+ ] ,
108+ } ;
109109
110110 it ( 'returns no inputs for package policy with no inputs, or only disabled inputs' , ( ) => {
111111 expect ( storedPackagePoliciesToAgentInputs ( [ mockPackagePolicy ] ) ) . toEqual ( [ ] ) ;
0 commit comments