mirror of
https://github.com/elastic/kibana.git
synced 2025-06-29 03:24:45 -04:00
## Summary Add `/internal/spaces/space/default/solution'` with an attribute solution_type for Control Panel to set the solution for the left navigation in kibana for an instant deployment. ``` curl -X PUT "http://yourserver/internal/spaces/space/default/solution'" \ -H "kbn-xsrf: kibana" \ -H "x-elastic-internal-origin: cloud" -H "Content-Type: application/json" \ -d '{"solution_type": "observability"}' ``` ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
26 lines
980 B
TypeScript
26 lines
980 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
const baseIntegrationTestsConfig = await readConfigFile(require.resolve('../../config.ts'));
|
|
|
|
return {
|
|
...baseIntegrationTestsConfig.getAll(),
|
|
testFiles: [require.resolve('.')],
|
|
kbnTestServer: {
|
|
...baseIntegrationTestsConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...baseIntegrationTestsConfig.get('kbnTestServer.serverArgs'),
|
|
'--xpack.cloud.id="ftr_fake_cloud_id:aGVsbG8uY29tOjQ0MyRFUzEyM2FiYyRrYm4xMjNhYmM="',
|
|
'--xpack.cloud.base_url="https://cloud.elastic.co"',
|
|
'--xpack.spaces.allowSolutionVisibility=true',
|
|
],
|
|
},
|
|
};
|
|
}
|