Skip to content

Commit

Permalink
[8.15] [EDR Workflows] Fix failing cases test in Osquery (#194253) (#…
Browse files Browse the repository at this point in the history
…194260)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[EDR Workflows] Fix failing cases test in Osquery
(#194253)](#194253)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Tomasz
Ciecierski","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-27T08:01:48Z","message":"[EDR
Workflows] Fix failing cases test in Osquery
(#194253)","sha":"2d9f13c41f4ac74a11abaa6db0a035349abf08fc","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Defend
Workflows","v8.16.0","backport:version","v8.15.3"],"title":"[EDR
Workflows] Fix failing cases test in
Osquery","number":194253,"url":"https://github.com/elastic/kibana/pull/194253","mergeCommit":{"message":"[EDR
Workflows] Fix failing cases test in Osquery
(#194253)","sha":"2d9f13c41f4ac74a11abaa6db0a035349abf08fc"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.15"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194253","number":194253,"mergeCommit":{"message":"[EDR
Workflows] Fix failing cases test in Osquery
(#194253)","sha":"2d9f13c41f4ac74a11abaa6db0a035349abf08fc"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.15","label":"v8.15.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Tomasz Ciecierski <[email protected]>
  • Loading branch information
kibanamachine and tomsonpl authored Sep 27, 2024
1 parent 92d122b commit d6f0ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/osquery/cypress/tasks/live_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const addLiveQueryToCase = (actionId: string, caseId: string) => {
addToCase(caseId);
};

const casesOsqueryResultRegex = /attached Osquery results[\s]?[\d]+[\s]?seconds ago/;
const casesOsqueryResultRegex = /attached Osquery results[\s]?[\d]+[\s]?second(?:s)? ago/;
export const viewRecentCaseAndCheckResults = () => {
cy.contains('View case').click();
cy.contains(casesOsqueryResultRegex);
Expand Down

0 comments on commit d6f0ac3

Please sign in to comment.