[9.0] [Security Solution][Endpoint] Un-skip space awareness FTR tests (#216515) (#216680)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Security Solution][Endpoint] Un-skip space awareness FTR tests
(#216515)](https://github.com/elastic/kibana/pull/216515)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Paul
Tavares","email":"56442535+paul-tavares@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-01T15:44:19Z","message":"[Security
Solution][Endpoint] Un-skip space awareness FTR tests (#216515)\n\n##
Summary\n\n- Unskips the Space awareness FTR tests. Unclear why they
were failing\nand logs did not provide much information.\n- added some
minor info. logs to the data loading part\n\n\nCloses
#203898","sha":"ee3e7bfb60bcf471006c0413a0a9e27409a29538","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend
Workflows","backport:prev-minor","v9.1.0"],"title":"[Security
Solution][Endpoint] Un-skip space awareness FTR
tests","number":216515,"url":"https://github.com/elastic/kibana/pull/216515","mergeCommit":{"message":"[Security
Solution][Endpoint] Un-skip space awareness FTR tests (#216515)\n\n##
Summary\n\n- Unskips the Space awareness FTR tests. Unclear why they
were failing\nand logs did not provide much information.\n- added some
minor info. logs to the data loading part\n\n\nCloses
#203898","sha":"ee3e7bfb60bcf471006c0413a0a9e27409a29538"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216515","number":216515,"mergeCommit":{"message":"[Security
Solution][Endpoint] Un-skip space awareness FTR tests (#216515)\n\n##
Summary\n\n- Unskips the Space awareness FTR tests. Unclear why they
were failing\nand logs did not provide much information.\n- added some
minor info. logs to the data loading part\n\n\nCloses
#203898","sha":"ee3e7bfb60bcf471006c0413a0a9e27409a29538"}}]}]
BACKPORT-->

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2025-04-01 19:24:56 +02:00 committed by GitHub
parent 6c6c7c5077
commit 1a0df35c78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,16 +37,24 @@ export default function ({ getService }: FtrProviderContext) {
ensureSpaceIdExists(kbnServer, 'space_b', { log }),
]);
log.info(`Loading endpoint data into space_a`);
dataSpaceA = await endpointTestresources.loadEndpointData({
spaceId: 'space_a',
generatorSeed: Math.random().toString(32),
});
log.info(`Done with loading of endpoint data into space_a
Loading endpoint data into space_b`);
dataSpaceB = await endpointTestresources.loadEndpointData({
spaceId: 'space_b',
generatorSeed: Math.random().toString(32),
});
log.info(`Done with loading of endpoint data into space_b`);
log.verbose(
`mocked data loaded:\nSPACE A:\n${JSON.stringify(
dataSpaceA,