initial @kbn/scout-security plugin#210433
Conversation
613dd36 to
15d4e62
Compare
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
Scout will take a look at the Scout will run the tests of the plugins that are Unless you or Dima say otherwise, we can put the Security plugin in the
No strong preference, and I'll wait for you and/or Dima to chime in on this, as you have better knowledge of the Security UI tests. |
|
@csr completely fine with having the test disabled for now, at least until teams are properly onboarded :) Lots of thanks for the clarification! |
|
Enabling it then 🫡 Please note that in case of failure appex-qa or me should take action on it since no one from Security Solution has been onboarded yet in Scout :) |
|
Quick checks also reported this Upd: I pushed a fix |
dmlemeshko
left a comment
There was a problem hiding this comment.
LGTM! Great work! Thanks a lot for keeping it updated with all the requests we raised, we appriciate the effort 🚀 👏
💛 Build succeeded, but was flaky
Failed CI Steps
Metrics [docs]Public APIs missing comments
Any counts in public APIs
Public APIs missing exports
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
Unreferenced deprecated APIs
History
|
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/13990240756 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
## Summary Closes elastic#210298 In this PR we are adding the initial structure for the @kibana/scout-security package, note that this is not ready to be used and any new test using this package, is not going to be executed as part of the regular pipelines, meaning, you are not going to add coverage to the application. @kibana/scout-security package is a test package that extends @kbn/scout with test helpers specifically designed to test Security Solution functionalities in Kibana. All tests under Security plugins should only import from @kbn/scout-security, not from @kbn/scout. This PR is a POC to start testing development by providing custom Playwright fixtures, page objects, and utilities tailored for Security-related testing scenarios. Things to follow-up: - CustomQueryRule interface is already declared in `x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts` as `QueryRuleCreateProps` - DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are already declared in `@kbn/security-solution-plugin/common/constants` It would be great if all of that is extracted from the plugin to a package so it can be reused instead of having to duplicate the code. Until the package is not ready to be used and has not been introduced to the different teams, appex-qa and myself will be the owners of it to make sure that best practices are followed --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co> (cherry picked from commit d5a0501) # Conflicts: # .buildkite/scout_ci_config.yml # .github/CODEOWNERS # src/platform/packages/shared/kbn-es/src/stateful_resources/roles.yml # x-pack/solutions/security/plugins/security_solution/tsconfig.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary Closes elastic#210298 In this PR we are adding the initial structure for the @kibana/scout-security package, note that this is not ready to be used and any new test using this package, is not going to be executed as part of the regular pipelines, meaning, you are not going to add coverage to the application. @kibana/scout-security package is a test package that extends @kbn/scout with test helpers specifically designed to test Security Solution functionalities in Kibana. All tests under Security plugins should only import from @kbn/scout-security, not from @kbn/scout. This PR is a POC to start testing development by providing custom Playwright fixtures, page objects, and utilities tailored for Security-related testing scenarios. Things to follow-up: - CustomQueryRule interface is already declared in `x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts` as `QueryRuleCreateProps` - DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are already declared in `@kbn/security-solution-plugin/common/constants` It would be great if all of that is extracted from the plugin to a package so it can be reused instead of having to duplicate the code. Until the package is not ready to be used and has not been introduced to the different teams, appex-qa and myself will be the owners of it to make sure that best practices are followed --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co> (cherry picked from commit d5a0501) # Conflicts: # .buildkite/scout_ci_config.yml
# Backport This will backport the following commits from `main` to `9.0`: - [initial @kbn/scout-security plugin (#210433)](#210433) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Gloria Hornero","email":"gloria.hornero@elastic.co"},"sourceCommit":{"committedDate":"2025-03-21T10:59:30Z","message":"initial @kbn/scout-security plugin (#210433)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/210298\n\nIn this PR we are adding the initial structure for the\n@kibana/scout-security package, note that this is not ready to be used\nand any new test using this package, is not going to be executed as part\nof the regular pipelines, meaning, you are not going to add coverage to\nthe application. \n\n@kibana/scout-security package is a test package that extends @kbn/scout\nwith test helpers specifically designed to test Security Solution\nfunctionalities in Kibana. All tests under Security plugins should only\nimport from @kbn/scout-security, not from @kbn/scout. \n\nThis PR is a POC to start testing development by providing custom\nPlaywright fixtures, page objects, and utilities tailored for\nSecurity-related testing scenarios.\n\nThings to follow-up: \n\n- CustomQueryRule interface is already declared in\n`x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts`\nas `QueryRuleCreateProps` \n- DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are\nalready declared in `@kbn/security-solution-plugin/common/constants`\n\nIt would be great if all of that is extracted from the plugin to a\npackage so it can be reused instead of having to duplicate the code.\n\nUntil the package is not ready to be used and has not been introduced to\nthe different teams, appex-qa and myself will be the owners of it to\nmake sure that best practices are followed\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>","sha":"d5a0501fb8148b4274a00921a6061d850b142f28","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team: SecuritySolution","backport:version","Team: Sec Eng Productivity","test:scout","v9.1.0","v8.19.0"],"title":"initial @kbn/scout-security plugin","number":210433,"url":"https://github.com/elastic/kibana/pull/210433","mergeCommit":{"message":"initial @kbn/scout-security plugin (#210433)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/210298\n\nIn this PR we are adding the initial structure for the\n@kibana/scout-security package, note that this is not ready to be used\nand any new test using this package, is not going to be executed as part\nof the regular pipelines, meaning, you are not going to add coverage to\nthe application. \n\n@kibana/scout-security package is a test package that extends @kbn/scout\nwith test helpers specifically designed to test Security Solution\nfunctionalities in Kibana. All tests under Security plugins should only\nimport from @kbn/scout-security, not from @kbn/scout. \n\nThis PR is a POC to start testing development by providing custom\nPlaywright fixtures, page objects, and utilities tailored for\nSecurity-related testing scenarios.\n\nThings to follow-up: \n\n- CustomQueryRule interface is already declared in\n`x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts`\nas `QueryRuleCreateProps` \n- DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are\nalready declared in `@kbn/security-solution-plugin/common/constants`\n\nIt would be great if all of that is extracted from the plugin to a\npackage so it can be reused instead of having to duplicate the code.\n\nUntil the package is not ready to be used and has not been introduced to\nthe different teams, appex-qa and myself will be the owners of it to\nmake sure that best practices are followed\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>","sha":"d5a0501fb8148b4274a00921a6061d850b142f28"}},"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/210433","number":210433,"mergeCommit":{"message":"initial @kbn/scout-security plugin (#210433)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/210298\n\nIn this PR we are adding the initial structure for the\n@kibana/scout-security package, note that this is not ready to be used\nand any new test using this package, is not going to be executed as part\nof the regular pipelines, meaning, you are not going to add coverage to\nthe application. \n\n@kibana/scout-security package is a test package that extends @kbn/scout\nwith test helpers specifically designed to test Security Solution\nfunctionalities in Kibana. All tests under Security plugins should only\nimport from @kbn/scout-security, not from @kbn/scout. \n\nThis PR is a POC to start testing development by providing custom\nPlaywright fixtures, page objects, and utilities tailored for\nSecurity-related testing scenarios.\n\nThings to follow-up: \n\n- CustomQueryRule interface is already declared in\n`x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts`\nas `QueryRuleCreateProps` \n- DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are\nalready declared in `@kbn/security-solution-plugin/common/constants`\n\nIt would be great if all of that is extracted from the plugin to a\npackage so it can be reused instead of having to duplicate the code.\n\nUntil the package is not ready to be used and has not been introduced to\nthe different teams, appex-qa and myself will be the owners of it to\nmake sure that best practices are followed\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>","sha":"d5a0501fb8148b4274a00921a6061d850b142f28"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/215527","number":215527,"state":"OPEN"}]}] BACKPORT--> --------- Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
# Backport This will backport the following commits from `main` to `8.x`: - [initial @kbn/scout-security plugin (#210433)](#210433) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Gloria Hornero","email":"gloria.hornero@elastic.co"},"sourceCommit":{"committedDate":"2025-03-21T10:59:30Z","message":"initial @kbn/scout-security plugin (#210433)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/210298\n\nIn this PR we are adding the initial structure for the\n@kibana/scout-security package, note that this is not ready to be used\nand any new test using this package, is not going to be executed as part\nof the regular pipelines, meaning, you are not going to add coverage to\nthe application. \n\n@kibana/scout-security package is a test package that extends @kbn/scout\nwith test helpers specifically designed to test Security Solution\nfunctionalities in Kibana. All tests under Security plugins should only\nimport from @kbn/scout-security, not from @kbn/scout. \n\nThis PR is a POC to start testing development by providing custom\nPlaywright fixtures, page objects, and utilities tailored for\nSecurity-related testing scenarios.\n\nThings to follow-up: \n\n- CustomQueryRule interface is already declared in\n`x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts`\nas `QueryRuleCreateProps` \n- DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are\nalready declared in `@kbn/security-solution-plugin/common/constants`\n\nIt would be great if all of that is extracted from the plugin to a\npackage so it can be reused instead of having to duplicate the code.\n\nUntil the package is not ready to be used and has not been introduced to\nthe different teams, appex-qa and myself will be the owners of it to\nmake sure that best practices are followed\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>","sha":"d5a0501fb8148b4274a00921a6061d850b142f28","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team: SecuritySolution","backport:version","Team: Sec Eng Productivity","test:scout","v9.1.0","v8.19.0"],"title":"initial @kbn/scout-security plugin","number":210433,"url":"https://github.com/elastic/kibana/pull/210433","mergeCommit":{"message":"initial @kbn/scout-security plugin (#210433)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/210298\n\nIn this PR we are adding the initial structure for the\n@kibana/scout-security package, note that this is not ready to be used\nand any new test using this package, is not going to be executed as part\nof the regular pipelines, meaning, you are not going to add coverage to\nthe application. \n\n@kibana/scout-security package is a test package that extends @kbn/scout\nwith test helpers specifically designed to test Security Solution\nfunctionalities in Kibana. All tests under Security plugins should only\nimport from @kbn/scout-security, not from @kbn/scout. \n\nThis PR is a POC to start testing development by providing custom\nPlaywright fixtures, page objects, and utilities tailored for\nSecurity-related testing scenarios.\n\nThings to follow-up: \n\n- CustomQueryRule interface is already declared in\n`x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts`\nas `QueryRuleCreateProps` \n- DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are\nalready declared in `@kbn/security-solution-plugin/common/constants`\n\nIt would be great if all of that is extracted from the plugin to a\npackage so it can be reused instead of having to duplicate the code.\n\nUntil the package is not ready to be used and has not been introduced to\nthe different teams, appex-qa and myself will be the owners of it to\nmake sure that best practices are followed\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>","sha":"d5a0501fb8148b4274a00921a6061d850b142f28"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210433","number":210433,"mergeCommit":{"message":"initial @kbn/scout-security plugin (#210433)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/210298\n\nIn this PR we are adding the initial structure for the\n@kibana/scout-security package, note that this is not ready to be used\nand any new test using this package, is not going to be executed as part\nof the regular pipelines, meaning, you are not going to add coverage to\nthe application. \n\n@kibana/scout-security package is a test package that extends @kbn/scout\nwith test helpers specifically designed to test Security Solution\nfunctionalities in Kibana. All tests under Security plugins should only\nimport from @kbn/scout-security, not from @kbn/scout. \n\nThis PR is a POC to start testing development by providing custom\nPlaywright fixtures, page objects, and utilities tailored for\nSecurity-related testing scenarios.\n\nThings to follow-up: \n\n- CustomQueryRule interface is already declared in\n`x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts`\nas `QueryRuleCreateProps` \n- DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are\nalready declared in `@kbn/security-solution-plugin/common/constants`\n\nIt would be great if all of that is extracted from the plugin to a\npackage so it can be reused instead of having to duplicate the code.\n\nUntil the package is not ready to be used and has not been introduced to\nthe different teams, appex-qa and myself will be the owners of it to\nmake sure that best practices are followed\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>","sha":"d5a0501fb8148b4274a00921a6061d850b142f28"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
## Summary Closes elastic#210298 In this PR we are adding the initial structure for the @kibana/scout-security package, note that this is not ready to be used and any new test using this package, is not going to be executed as part of the regular pipelines, meaning, you are not going to add coverage to the application. @kibana/scout-security package is a test package that extends @kbn/scout with test helpers specifically designed to test Security Solution functionalities in Kibana. All tests under Security plugins should only import from @kbn/scout-security, not from @kbn/scout. This PR is a POC to start testing development by providing custom Playwright fixtures, page objects, and utilities tailored for Security-related testing scenarios. Things to follow-up: - CustomQueryRule interface is already declared in `x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts` as `QueryRuleCreateProps` - DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are already declared in `@kbn/security-solution-plugin/common/constants` It would be great if all of that is extracted from the plugin to a package so it can be reused instead of having to duplicate the code. Until the package is not ready to be used and has not been introduced to the different teams, appex-qa and myself will be the owners of it to make sure that best practices are followed --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
## Summary Closes elastic#210298 In this PR we are adding the initial structure for the @kibana/scout-security package, note that this is not ready to be used and any new test using this package, is not going to be executed as part of the regular pipelines, meaning, you are not going to add coverage to the application. @kibana/scout-security package is a test package that extends @kbn/scout with test helpers specifically designed to test Security Solution functionalities in Kibana. All tests under Security plugins should only import from @kbn/scout-security, not from @kbn/scout. This PR is a POC to start testing development by providing custom Playwright fixtures, page objects, and utilities tailored for Security-related testing scenarios. Things to follow-up: - CustomQueryRule interface is already declared in `x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts` as `QueryRuleCreateProps` - DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are already declared in `@kbn/security-solution-plugin/common/constants` It would be great if all of that is extracted from the plugin to a package so it can be reused instead of having to duplicate the code. Until the package is not ready to be used and has not been introduced to the different teams, appex-qa and myself will be the owners of it to make sure that best practices are followed --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
Summary
Closes #210298
In this PR we are adding the initial structure for the @kibana/scout-security package, note that this is not ready to be used and any new test using this package, is not going to be executed as part of the regular pipelines, meaning, you are not going to add coverage to the application.
@kibana/scout-security package is a test package that extends @kbn/scout with test helpers specifically designed to test Security Solution functionalities in Kibana. All tests under Security plugins should only import from @kbn/scout-security, not from @kbn/scout.
This PR is a POC to start testing development by providing custom Playwright fixtures, page objects, and utilities tailored for Security-related testing scenarios.
Things to follow-up:
x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.tsasQueryRuleCreateProps@kbn/security-solution-plugin/common/constantsIt would be great if all of that is extracted from the plugin to a package so it can be reused instead of having to duplicate the code.
Until the package is not ready to be used and has not been introduced to the different teams, appex-qa and myself will be the owners of it to make sure that best practices are followed