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
FTR - update common serverless API tests to use API keys #180834
Labels
Team:QA
Team label for QA Team
Comments
Pinging @elastic/appex-qa (Team:QA) |
This was referenced Apr 23, 2024
wayneseymour
added a commit
that referenced
this issue
May 15, 2024
…181741) ## Summary Contributes to: #180834 Update the below common tests, and figure out the minimum required role. ### More Info - Add type for `InternalRequestHeader` - Add type for `SupertestWithoutAuth` - Add shortcut method: `createApiKeyForDefaultRole` to `Serverless User Manager` service - Change all calls of `await supertest` to `await supertestWithoutAuth` - Add Internal Request and Role Credential headers to every `await supertestWithoutAuth` http call - Use the lowest role credential possible for all calls, whether `viewer`, `editor`, `developer`, or `admin` ### Covers these folders: `x-pack/test_serverless/api_integration/test_suites/common/console` `x-pack/test_serverless/api_integration/test_suites/common/core` `x-pack/test_serverless/api_integration/test_suites/common/data_view_field_editor` `x-pack/test_serverless/api_integration/test_suites/common/elasticsearch_api` `x-pack/test_serverless/api_integration/test_suites/common/grok_debugger` `x-pack/test_serverless/api_integration/test_suites/common/kql_telemetry` `x-pack/test_serverless/api_integration/test_suites/common/scripts_tests` `x-pack/test_serverless/api_integration/test_suites/common/search_profiler` `x-pack/test_serverless/api_integration/test_suites/common/search_xpack` --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Serverless API tests should run with API keys (as that's how the users are supposed to use the APIs in serverless).
Support and an example have been added already: #178558
See also the example in the README: https://github.com/elastic/kibana/blob/main/x-pack/test_serverless/README.md#api-integration-test-example
We want to update the
common
tests and figure out the minimum required role.Similar to what have been done for the UI side in #176221
Folders from
x-pack/test_serverless/api_integration/test_suites/common/
Tasks
The text was updated successfully, but these errors were encountered: