From a82ebf8b255af4270ec780e71fa49b302b652189 Mon Sep 17 00:00:00 2001 From: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com> Date: Mon, 30 Nov 2020 11:20:23 -0500 Subject: [PATCH] Adding timestamps to created events so the sorting is stable (#84515) --- .../apis/resolver/children.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-pack/test/security_solution_endpoint_api_int/apis/resolver/children.ts b/x-pack/test/security_solution_endpoint_api_int/apis/resolver/children.ts index b56dea94ab56..c51b322478f3 100644 --- a/x-pack/test/security_solution_endpoint_api_int/apis/resolver/children.ts +++ b/x-pack/test/security_solution_endpoint_api_int/apis/resolver/children.ts @@ -53,6 +53,7 @@ export default function resolverAPIIntegrationTests({ getService }: FtrProviderC }); startEvent = generator.generateEvent({ + timestamp: (timestampSafeVersion(infoEvent) ?? 0) + 100, parentEntityID: entityIDSafeVersion(infoEvent), ancestry: createAncestryArray([infoEvent, origin]), eventType: ['start'], @@ -60,6 +61,7 @@ export default function resolverAPIIntegrationTests({ getService }: FtrProviderC }); execEvent = generator.generateEvent({ + timestamp: (timestampSafeVersion(startEvent) ?? 0) + 100, parentEntityID: entityIDSafeVersion(startEvent), ancestry: createAncestryArray([startEvent, infoEvent]), eventType: ['change'], @@ -107,6 +109,7 @@ export default function resolverAPIIntegrationTests({ getService }: FtrProviderC }); infoEvent = generator.generateEvent({ + timestamp: (timestampSafeVersion(startEvent) ?? 0) + 100, parentEntityID: entityIDSafeVersion(origin), ancestry: createAncestryArray([origin]), entityID: entityIDSafeVersion(startEvent), @@ -115,6 +118,7 @@ export default function resolverAPIIntegrationTests({ getService }: FtrProviderC }); execEvent = generator.generateEvent({ + timestamp: (timestampSafeVersion(infoEvent) ?? 0) + 100, parentEntityID: entityIDSafeVersion(origin), ancestry: createAncestryArray([origin]), eventType: ['change'],