-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solution] Create test plan for prebuilt rule installation and upgrade workflows #160685
[Security Solution] Create test plan for prebuilt rule installation and upgrade workflows #160685
Conversation
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
...ess/test_plans/detection_response/prebuilt_rules/prebuilt_rules_install_update_workflows.mdx
Outdated
Show resolved
Hide resolved
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
...ty_solution/cypress/test_plans/detection_response/prebuilt_rules/installation_and_upgrade.md
Show resolved
Hide resolved
...ty_solution/cypress/test_plans/detection_response/prebuilt_rules/installation_and_upgrade.md
Show resolved
Hide resolved
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed and decided on changes with @banderror . LGTM
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
| A | B | | ||
| 8.7 | 8.9.0 | | ||
| 7.17.x | 8.9.0 | | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
B is always 8.9, why don't just leave it directly as 8.9 to improve readability?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vgomez-el Because 8.9.0 is not the only target ("B") version that this scenario should work with. When 8.9.0 is released, the scenario will apply to 8.10.0, etc.
### Non-functional requirements | ||
|
||
- Notifications, rule installation and rule upgrade workflows should work: | ||
- regardless of the package type: with historical rule versions or without; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does Historical versions mean? Maybe previous versions? (i.e: 8.2, 7.17?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vgomez-el Great question! This is an architectural aspect. We ship historical (1 latest + N previous) versions of each prebuilt rule in the prebuilt rules package. So it's not about the stack version, and not about the version of the prebuilt rules package itself.
More info about this can be found here:
Good job expanding the scenarios checking the API calls too and adding a more technical approach rather than just focusing on the functional part. This test plan goes beyond what a regular functional Test Plan would be, but it is fine for now. I just have a few comments in general:
|
@vgomez-el Good point 👍 I can move the
We can do that. Would you be willing to open a PR with this kind of improvement? Both @jpdjere and I are overloaded with urgent work to do.
This feature doesn't technically depend on any specific Kibana version, that's why we're not mentioning it in any scenario except the upgrade one. I think in general scenarios should assume the latest version of Kibana, since they are kept in the |
…nd upgrade workflows (elastic#160685) ## Summary Combines the two following test plans into one: - [Test plan for the legacy workflows of installing/upgrading prebuilt rules](https://docs.google.com/document/d/1d_1DYnHlnCaPznWTjeCxhoaRUwxc2O_V0LToAPG0xLE/edit) - this google doc is deprecated and will be replaced by the consolidated test plan created in this PR - [Test plan for the new workflows of installing/upgrading prebuilt rules](https://docs.google.com/document/d/1cYvwtpzk0uLn5R88BlCX-fRIwR2n_NoqkSjIXkY9k34/edit) - this google doc is deprecated and will be replaced by the consolidated test plan created in this PR Adds a template for writing new test plans. --------- Co-authored-by: Georgii Gorbachev <[email protected]> Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit e379f0a)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…tion and upgrade workflows (#160685) (#161259) # Backport This will backport the following commits from `main` to `8.9`: - [[Security Solution] Create test plan for prebuilt rule installation and upgrade workflows (#160685)](#160685) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Juan Pablo Djeredjian","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-05T13:50:20Z","message":"[Security Solution] Create test plan for prebuilt rule installation and upgrade workflows (#160685)\n\n## Summary\r\n\r\nCombines the two following test plans into one:\r\n\r\n- [Test plan for the legacy workflows of installing/upgrading prebuilt\r\nrules](https://docs.google.com/document/d/1d_1DYnHlnCaPznWTjeCxhoaRUwxc2O_V0LToAPG0xLE/edit)\r\n- this google doc is deprecated and will be replaced by the consolidated\r\ntest plan created in this PR\r\n- [Test plan for the new workflows of installing/upgrading prebuilt\r\nrules](https://docs.google.com/document/d/1cYvwtpzk0uLn5R88BlCX-fRIwR2n_NoqkSjIXkY9k34/edit)\r\n- this google doc is deprecated and will be replaced by the consolidated\r\ntest plan created in this PR\r\n\r\nAdds a template for writing new test plans.\r\n\r\n---------\r\n\r\nCo-authored-by: Georgii Gorbachev <[email protected]>\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"e379f0a97d66b53e130f1046811225b0fa91678a","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","test-plan","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","v8.9.0","v8.10.0"],"number":160685,"url":"https://github.com/elastic/kibana/pull/160685","mergeCommit":{"message":"[Security Solution] Create test plan for prebuilt rule installation and upgrade workflows (#160685)\n\n## Summary\r\n\r\nCombines the two following test plans into one:\r\n\r\n- [Test plan for the legacy workflows of installing/upgrading prebuilt\r\nrules](https://docs.google.com/document/d/1d_1DYnHlnCaPznWTjeCxhoaRUwxc2O_V0LToAPG0xLE/edit)\r\n- this google doc is deprecated and will be replaced by the consolidated\r\ntest plan created in this PR\r\n- [Test plan for the new workflows of installing/upgrading prebuilt\r\nrules](https://docs.google.com/document/d/1cYvwtpzk0uLn5R88BlCX-fRIwR2n_NoqkSjIXkY9k34/edit)\r\n- this google doc is deprecated and will be replaced by the consolidated\r\ntest plan created in this PR\r\n\r\nAdds a template for writing new test plans.\r\n\r\n---------\r\n\r\nCo-authored-by: Georgii Gorbachev <[email protected]>\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"e379f0a97d66b53e130f1046811225b0fa91678a"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160685","number":160685,"mergeCommit":{"message":"[Security Solution] Create test plan for prebuilt rule installation and upgrade workflows (#160685)\n\n## Summary\r\n\r\nCombines the two following test plans into one:\r\n\r\n- [Test plan for the legacy workflows of installing/upgrading prebuilt\r\nrules](https://docs.google.com/document/d/1d_1DYnHlnCaPznWTjeCxhoaRUwxc2O_V0LToAPG0xLE/edit)\r\n- this google doc is deprecated and will be replaced by the consolidated\r\ntest plan created in this PR\r\n- [Test plan for the new workflows of installing/upgrading prebuilt\r\nrules](https://docs.google.com/document/d/1cYvwtpzk0uLn5R88BlCX-fRIwR2n_NoqkSjIXkY9k34/edit)\r\n- this google doc is deprecated and will be replaced by the consolidated\r\ntest plan created in this PR\r\n\r\nAdds a template for writing new test plans.\r\n\r\n---------\r\n\r\nCo-authored-by: Georgii Gorbachev <[email protected]>\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"e379f0a97d66b53e130f1046811225b0fa91678a"}}]}] BACKPORT--> Co-authored-by: Juan Pablo Djeredjian <[email protected]>
**Related to:** elastic/security-team#6867 (internal) ## Summary As requested in #160685 (comment). In test plans, we mention how scenarios are going to be automated -- whether a given scenario will be automated using Cypress for e2e tests, Jest for integration tests and unit tests, etc. But currently, test plans are under `x-pack/plugins/security_solution/cypress/`. Since test plans are in fact technology agnostic, it does not make much sense to keep them inside a specific framework technology folder. That's why we're moving them to a generic `x-pack/plugins/security_solution/docs/testing` folder.
…61517) **Related to:** elastic/security-team#6867 (internal) ## Summary As requested in elastic#160685 (comment). In test plans, we mention how scenarios are going to be automated -- whether a given scenario will be automated using Cypress for e2e tests, Jest for integration tests and unit tests, etc. But currently, test plans are under `x-pack/plugins/security_solution/cypress/`. Since test plans are in fact technology agnostic, it does not make much sense to keep them inside a specific framework technology folder. That's why we're moving them to a generic `x-pack/plugins/security_solution/docs/testing` folder. (cherry picked from commit 15a86c3) # Conflicts: # .github/CODEOWNERS
…1517) (#161739) # Backport This will backport the following commits from `main` to `8.9`: - [[Security Solution] Move test plans from /cypress to /docs (#161517)](#161517) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Georgii Gorbachev","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-11T09:27:00Z","message":"[Security Solution] Move test plans from /cypress to /docs (#161517)\n\n**Related to:** https://github.com/elastic/security-team/issues/6867\r\n(internal)\r\n\r\n## Summary\r\n\r\nAs requested in\r\nhttps://github.com//pull/160685#issuecomment-1621635262.\r\n\r\nIn test plans, we mention how scenarios are going to be automated --\r\nwhether a given scenario will be automated using Cypress for e2e tests,\r\nJest for integration tests and unit tests, etc. But currently, test\r\nplans are under `x-pack/plugins/security_solution/cypress/`.\r\n\r\nSince test plans are in fact technology agnostic, it does not make much\r\nsense to keep them inside a specific framework technology folder. That's\r\nwhy we're moving them to a generic\r\n`x-pack/plugins/security_solution/docs/testing` folder.","sha":"15a86c355a261ce11cad82f3b3c47dfeca814d1f","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","test-plan","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","v8.9.0","v8.10.0"],"number":161517,"url":"https://github.com/elastic/kibana/pull/161517","mergeCommit":{"message":"[Security Solution] Move test plans from /cypress to /docs (#161517)\n\n**Related to:** https://github.com/elastic/security-team/issues/6867\r\n(internal)\r\n\r\n## Summary\r\n\r\nAs requested in\r\nhttps://github.com//pull/160685#issuecomment-1621635262.\r\n\r\nIn test plans, we mention how scenarios are going to be automated --\r\nwhether a given scenario will be automated using Cypress for e2e tests,\r\nJest for integration tests and unit tests, etc. But currently, test\r\nplans are under `x-pack/plugins/security_solution/cypress/`.\r\n\r\nSince test plans are in fact technology agnostic, it does not make much\r\nsense to keep them inside a specific framework technology folder. That's\r\nwhy we're moving them to a generic\r\n`x-pack/plugins/security_solution/docs/testing` folder.","sha":"15a86c355a261ce11cad82f3b3c47dfeca814d1f"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/161517","number":161517,"mergeCommit":{"message":"[Security Solution] Move test plans from /cypress to /docs (#161517)\n\n**Related to:** https://github.com/elastic/security-team/issues/6867\r\n(internal)\r\n\r\n## Summary\r\n\r\nAs requested in\r\nhttps://github.com//pull/160685#issuecomment-1621635262.\r\n\r\nIn test plans, we mention how scenarios are going to be automated --\r\nwhether a given scenario will be automated using Cypress for e2e tests,\r\nJest for integration tests and unit tests, etc. But currently, test\r\nplans are under `x-pack/plugins/security_solution/cypress/`.\r\n\r\nSince test plans are in fact technology agnostic, it does not make much\r\nsense to keep them inside a specific framework technology folder. That's\r\nwhy we're moving them to a generic\r\n`x-pack/plugins/security_solution/docs/testing` folder.","sha":"15a86c355a261ce11cad82f3b3c47dfeca814d1f"}}]}] BACKPORT-->
Summary
Combines the two following test plans into one:
Adds a template for writing new test plans.