Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [ftr] enable mock-idp-plugin for stateful (deployment-agnostic)…
… tests (elastic#192279) (elastic#193677) # Backport This will backport the following commits from `main` to `8.x`: - [[ftr] enable mock-idp-plugin for stateful (deployment-agnostic) tests (elastic#192279)](elastic#192279) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-13T10:24:08Z","message":"[ftr] enable mock-idp-plugin for stateful (deployment-agnostic) tests (elastic#192279)\n\n## Summary\r\n\r\ncloses elastic#190221\r\n\r\nThis PR enables `mock-idp-plugin` when Kibana is started with stateful\r\nFTR config for deployment-agnostic tests:\r\n\r\n```\r\n node scripts/functional_tests_server --config=x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.stateful.config.ts\r\n```\r\n\r\n<img width=\"1574\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/494e89ee-cd65-4dde-86da-a5e2c28ec40d\">\r\n\r\nYou can pick up one of the the role defined for stateful SAML\r\nauthentication in\r\nhttps://github.com/elastic/kibana/blob/main/packages/kbn-es/src/stateful_resources/roles.yml\r\n\r\nNote: this plugin is only enabled locally for a better manual testing\r\nexperience, it is **not loaded on CI**\r\n\r\nIt is done to unify DevEx when folks work on deployment-agnostic tests\r\nand would like to confirm the functionality under the same role for both\r\nstateful and serverless deployments.\r\n\r\nThanks @azasypkin for the help, again :)\r\n\r\nHow to test: \r\n- start the servers using\r\n`x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.stateful.config.ts`\r\nconfig and go to `http://localhost:5620`\r\n- try to login with different roles, make sure valid role is applied in\r\ntop right profile menu","sha":"a94a4db8bc9e9d923273beb5c31b2253172a8568","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","FTR","v8.16.0","backport:version"],"title":"[ftr] enable mock-idp-plugin for stateful (deployment-agnostic) tests","number":192279,"url":"https://github.com/elastic/kibana/pull/192279","mergeCommit":{"message":"[ftr] enable mock-idp-plugin for stateful (deployment-agnostic) tests (elastic#192279)\n\n## Summary\r\n\r\ncloses elastic#190221\r\n\r\nThis PR enables `mock-idp-plugin` when Kibana is started with stateful\r\nFTR config for deployment-agnostic tests:\r\n\r\n```\r\n node scripts/functional_tests_server --config=x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.stateful.config.ts\r\n```\r\n\r\n<img width=\"1574\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/494e89ee-cd65-4dde-86da-a5e2c28ec40d\">\r\n\r\nYou can pick up one of the the role defined for stateful SAML\r\nauthentication in\r\nhttps://github.com/elastic/kibana/blob/main/packages/kbn-es/src/stateful_resources/roles.yml\r\n\r\nNote: this plugin is only enabled locally for a better manual testing\r\nexperience, it is **not loaded on CI**\r\n\r\nIt is done to unify DevEx when folks work on deployment-agnostic tests\r\nand would like to confirm the functionality under the same role for both\r\nstateful and serverless deployments.\r\n\r\nThanks @azasypkin for the help, again :)\r\n\r\nHow to test: \r\n- start the servers using\r\n`x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.stateful.config.ts`\r\nconfig and go to `http://localhost:5620`\r\n- try to login with different roles, make sure valid role is applied in\r\ntop right profile menu","sha":"a94a4db8bc9e9d923273beb5c31b2253172a8568"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192279","number":192279,"mergeCommit":{"message":"[ftr] enable mock-idp-plugin for stateful (deployment-agnostic) tests (elastic#192279)\n\n## Summary\r\n\r\ncloses elastic#190221\r\n\r\nThis PR enables `mock-idp-plugin` when Kibana is started with stateful\r\nFTR config for deployment-agnostic tests:\r\n\r\n```\r\n node scripts/functional_tests_server --config=x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.stateful.config.ts\r\n```\r\n\r\n<img width=\"1574\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/494e89ee-cd65-4dde-86da-a5e2c28ec40d\">\r\n\r\nYou can pick up one of the the role defined for stateful SAML\r\nauthentication in\r\nhttps://github.com/elastic/kibana/blob/main/packages/kbn-es/src/stateful_resources/roles.yml\r\n\r\nNote: this plugin is only enabled locally for a better manual testing\r\nexperience, it is **not loaded on CI**\r\n\r\nIt is done to unify DevEx when folks work on deployment-agnostic tests\r\nand would like to confirm the functionality under the same role for both\r\nstateful and serverless deployments.\r\n\r\nThanks @azasypkin for the help, again :)\r\n\r\nHow to test: \r\n- start the servers using\r\n`x-pack/test/api_integration/deployment_agnostic/configs/stateful/platform.stateful.config.ts`\r\nconfig and go to `http://localhost:5620`\r\n- try to login with different roles, make sure valid role is applied in\r\ntop right profile menu","sha":"a94a4db8bc9e9d923273beb5c31b2253172a8568"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Dzmitry Lemechko <[email protected]>
- Loading branch information