-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Obs AI Assistant] Use cookie auth for internal APIs in serverl…
…ess tests (#203275) (#204883) # Backport This will backport the following commits from `main` to `8.x`: - [[Obs AI Assistant] Use cookie auth for internal APIs in serverless tests (#203275)](#203275) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Viduni Wickramarachchi","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-09T17:20:47Z","message":"[Obs AI Assistant] Use cookie auth for internal APIs in serverless tests (#203275)\n\n## Summary\r\n\r\n### Problem\r\nCookie authentication was introduced in Kibana for serverless internal\r\nAPI tests via https://github.com/elastic/kibana/pull/192727.\r\nThe serverless tests for Obs AI Assistant still uses API key based auth.\r\n\r\n### Solution\r\nChange authentication to cookie based auth for internal APIs in\r\nserverless tests.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7eb005242cd5b02a10023d204e3448719650808f","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.0.0","Team:Obs AI Assistant"],"number":203275,"url":"https://github.com/elastic/kibana/pull/203275","mergeCommit":{"message":"[Obs AI Assistant] Use cookie auth for internal APIs in serverless tests (#203275)\n\n## Summary\r\n\r\n### Problem\r\nCookie authentication was introduced in Kibana for serverless internal\r\nAPI tests via https://github.com/elastic/kibana/pull/192727.\r\nThe serverless tests for Obs AI Assistant still uses API key based auth.\r\n\r\n### Solution\r\nChange authentication to cookie based auth for internal APIs in\r\nserverless tests.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7eb005242cd5b02a10023d204e3448719650808f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203275","number":203275,"mergeCommit":{"message":"[Obs AI Assistant] Use cookie auth for internal APIs in serverless tests (#203275)\n\n## Summary\r\n\r\n### Problem\r\nCookie authentication was introduced in Kibana for serverless internal\r\nAPI tests via https://github.com/elastic/kibana/pull/192727.\r\nThe serverless tests for Obs AI Assistant still uses API key based auth.\r\n\r\n### Solution\r\nChange authentication to cookie based auth for internal APIs in\r\nserverless tests.\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"7eb005242cd5b02a10023d204e3448719650808f"}}]}] BACKPORT-->
- Loading branch information
Showing
14 changed files
with
185 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.