[8.11] [EDR Workflows] Osquery Package Policy test fix (#171305) (#171325)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[EDR Workflows] Osquery Package Policy test fix
(#171305)](https://github.com/elastic/kibana/pull/171305)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Tomasz
Ciecierski","email":"tomasz.ciecierski@elastic.co"},"sourceCommit":{"committedDate":"2023-11-15T16:13:19Z","message":"[EDR
Workflows] Osquery Package Policy test fix
(#171305)","sha":"1ecb6ba073c79f80f03fc285335099b2ce714e52","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","release_note:skip","Team:Defend
Workflows","v8.12.0","v8.11.2"],"number":171305,"url":"https://github.com/elastic/kibana/pull/171305","mergeCommit":{"message":"[EDR
Workflows] Osquery Package Policy test fix
(#171305)","sha":"1ecb6ba073c79f80f03fc285335099b2ce714e52"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/171305","number":171305,"mergeCommit":{"message":"[EDR
Workflows] Osquery Package Policy test fix
(#171305)","sha":"1ecb6ba073c79f80f03fc285335099b2ce714e52"}},{"branch":"8.11","label":"v8.11.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Tomasz Ciecierski <tomasz.ciecierski@elastic.co>
This commit is contained in:
Kibana Machine 2023-11-15 13:51:50 -05:00 committed by GitHub
parent 5dbb0c4a3d
commit 09f036502f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -224,6 +224,7 @@ describe('ALL - Packs', { tags: ['@ess', '@serverless'] }, () => {
cy.getBySel('createAgentPolicyNameField').type(agentPolicy);
cy.getBySel('createAgentPolicyFlyoutBtn').click();
cy.contains(`Agent policy '${agentPolicy}' created`).click();
closeToastIfVisible();
cy.contains(agentPolicy).click();
cy.contains('Add integration').click();
cy.getBySel('epmList.searchBar').type('osquery');

View file

@ -12,7 +12,7 @@
"cypress:run": "yarn cypress run",
"cypress:serverless": "NODE_OPTIONS=--openssl-legacy-provider node ../security_solution/scripts/start_cypress_parallel --config-file ../osquery/cypress/serverless_cypress.config.ts --ftr-config-file ../../../x-pack/test/osquery_cypress/serverless_cli_config",
"cypress:serverless:open": "yarn cypress:serverless open",
"cypress:serverless:run": "yarn cypress:serverless run",
"cypress:serverless:run": "yarn cypress:serverless run --spec ./cypress/e2e/all/packs_integration.cy.ts",
"nyc": "../../../node_modules/.bin/nyc report --reporter=text-summary",
"junit:merge": "../../../node_modules/.bin/mochawesome-merge ../../../target/kibana-osquery/cypress/results/mochawesome*.json > ../../../target/kibana-osquery/cypress/results/output.json && ../../../node_modules/.bin/marge ../../../target/kibana-osquery/cypress/results/output.json --reportDir ../../../target/kibana-osquery/cypress/results && yarn junit:transform && mkdir -p ../../../target/junit && cp ../../../target/kibana-osquery/cypress/results/*.xml ../../../target/junit/",
"junit:transform": "node ../security_solution/scripts/junit_transformer --pathPattern '../../../target/kibana-osquery/cypress/results/*.xml' --rootDirectory ../../../ --reportName 'Osquery Cypress' --writeInPlace"