Skip to content

Commit

Permalink
[Security Solution] integration test failure on kpi hosts and kpi net…
Browse files Browse the repository at this point in the history
…work (#88870) (#88983)

* integration test failure

* integration test failure

* integration test failure

* kpi_network integration test failure

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
angorayc and kibanamachine authored Jan 21, 2021
1 parent e8c1058 commit f101a1e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
32 changes: 23 additions & 9 deletions x-pack/test/api_integration/apis/security_solution/kpi_hosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default function ({ getService }: FtrProviderContext) {
.expect(200);
expect(body.authenticationsSuccess!).to.eql(expectedResult.authSuccess);
expect(body.authenticationsSuccessHistogram!).to.eql(expectedResult.authSuccessHistogram);
expect(body.authenticationsFailure!).to.eql(expectedResult.authSuccess);
expect(body.authenticationsFailure!).to.eql(expectedResult.authFailure);
expect(body.authenticationsFailureHistogram!).to.eql(expectedResult.authFailureHistogram);
});

Expand Down Expand Up @@ -185,14 +185,28 @@ export default function ({ getService }: FtrProviderContext) {
y: 6,
},
],
authSuccess: null,
authSuccess: 0,
authSuccessHistogram: null,
authFailure: 0,
authFailureHistogram: null,
uniqueSourceIps: null,
uniqueSourceIpsHistogram: null,
uniqueDestinationIps: null,
uniqueDestinationIpsHistogram: null,
uniqueSourceIps: 370,
uniqueSourceIpsHistogram: [
{ x: 1543276800000, y: 74 },
{ x: 1543278600000, y: 52 },
{ x: 1543280400000, y: 71 },
{ x: 1543282200000, y: 76 },
{ x: 1543284000000, y: 71 },
{ x: 1543285800000, y: 89 },
],
uniqueDestinationIps: 1,
uniqueDestinationIpsHistogram: [
{ x: 1543276800000, y: 0 },
{ x: 1543278600000, y: 0 },
{ x: 1543280400000, y: 0 },
{ x: 1543282200000, y: 0 },
{ x: 1543284000000, y: 0 },
{ x: 1543285800000, y: 1 },
],
};

it('Make sure that we get KpiHosts data', async () => {
Expand Down Expand Up @@ -227,14 +241,14 @@ export default function ({ getService }: FtrProviderContext) {
to: TO,
from: FROM,
},
defaultIndex: ['filebeat-*'],
defaultIndex: ['auditbeat-*'],
docValueFields: [],
inspect: false,
})
.expect(200);
expect(body.authenticationsSuccess!).to.eql(expectedResult.authSuccess);
expect(body.authenticationsSuccessHistogram!).to.eql(expectedResult.authSuccessHistogram);
expect(body.authenticationsFailure!).to.eql(expectedResult.authSuccess);
expect(body.authenticationsFailure!).to.eql(expectedResult.authFailure);
expect(body.authenticationsFailureHistogram!).to.eql(expectedResult.authFailureHistogram);
});

Expand All @@ -249,7 +263,7 @@ export default function ({ getService }: FtrProviderContext) {
to: TO,
from: FROM,
},
defaultIndex: ['filebeat-*'],
defaultIndex: ['auditbeat-*'],
docValueFields: [],
inspect: false,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ export default function ({ getService }: FtrProviderContext) {
const expectedResult = {
networkEvents: 665,
uniqueFlowId: 124,
uniqueSourcePrivateIps: null,
uniqueSourcePrivateIps: 0,
uniqueSourcePrivateIpsHistogram: null,
uniqueDestinationPrivateIps: null,
uniqueDestinationPrivateIps: 0,
uniqueDestinationPrivateIpsHistogram: null,
dnsQueries: 0,
tlsHandshakes: 1,
Expand Down Expand Up @@ -302,7 +302,7 @@ export default function ({ getService }: FtrProviderContext) {
to: TO,
from: FROM,
},
defaultIndex: ['filebeat-*'],
defaultIndex: ['packetbeat-*'],
docValueFields: [],
inspect: false,
})
Expand Down

0 comments on commit f101a1e

Please sign in to comment.