elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.68k stars 8.23k forks source link

[ftr] move cloud-specific Kibana srv arguments to shared serverless config #196255

Open dmlemeshko opened 1 month ago

dmlemeshko commented 1 month ago

Recently Search Team added Kibana server arguments (from project controller), required by project navigation tests.

https://github.com/elastic/kibana/blob/41850b67d181ab7d27503e3f7314754cbbce75da/x-pack/test_serverless/functional/test_suites/search/config.ts#L21-L33

Afaik this arguments are relevant for all serverless projects and we need to migrate it to shared FTR serverless config so it will be inherited and re-used by all serverless config files.

we probably can hardcode some values, but make it unique for project type, e.g.

   `--xpack.cloud.id=<project_type>_ftr_tests:ZmFrZS1kb21haW4uY2xkLmVsc3RjLmNvJGZha2Vwcm9qZWN0aWQuZXMkZmFrZXByb2plY3RpZC5rYg==`, 
   `--xpack.cloud.serverless.project_id=fakeprojectid`, 
   `--xpack.cloud.serverless.project_name=<project_type>_ftr_tests`, 
   `--xpack.cloud.base_url=https://fake-cloud.elastic.co`, 
   `--xpack.cloud.profile_url=/user/settings/`, 
   `--xpack.cloud.billing_url=/billing/overview/`, 
   `--xpack.cloud.deployments_url=/deployments`, 
   `--xpack.cloud.deployment_url=/projects/<project_type>/fakeprojectid`, 
   `--xpack.cloud.users_and_roles_url=/account/members/`, 
   `--xpack.cloud.projects_url=/projects/`, 
   `--xpack.cloud.organization_url=/account/`, 

The end goal is to have it in https://github.com/elastic/kibana/blob/41850b67d181ab7d27503e3f7314754cbbce75da/x-pack/test_serverless/shared/config.base.ts#L107 and make sure all the required updates are happening in shared base config.

elasticmachine commented 1 month ago

Pinging @elastic/appex-qa (Team:QA)