File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ describe('when on the list page', () => {
151151 let firstPolicyID : string ;
152152 beforeEach ( ( ) => {
153153 reactTestingLibrary . act ( ( ) => {
154- const hostListData = mockEndpointResultList ( { total : 4 } ) . hosts ;
154+ const mockedEndpointData = mockEndpointResultList ( { total : 4 } ) ;
155+ const hostListData = mockedEndpointData . hosts ;
156+ const queryStrategyVersion = mockedEndpointData . query_strategy_version ;
155157
156158 firstPolicyID = hostListData [ 0 ] . metadata . Endpoint . policy . applied . id ;
157159
@@ -160,6 +162,7 @@ describe('when on the list page', () => {
160162 hostListData [ index ] = {
161163 metadata : hostListData [ index ] . metadata ,
162164 host_status : status ,
165+ query_strategy_version : queryStrategyVersion ,
163166 } ;
164167 }
165168 ) ;
@@ -713,6 +716,7 @@ describe('when on the list page', () => {
713716 hostInfo = {
714717 host_status : hosts [ 0 ] . host_status ,
715718 metadata : hosts [ 0 ] . metadata ,
719+ query_strategy_version : mockEndpointResultList . query_strategy_version ,
716720 } ;
717721 const packagePolicy = docGenerator . generatePolicyPackagePolicy ( ) ;
718722 packagePolicy . id = hosts [ 0 ] . metadata . Endpoint . policy . applied . id ;
You can’t perform that action at this time.
0 commit comments