kibana/x-pack/test/api_integration/apis/spaces/index.ts
Xavier Mouligneau fd084d97f7
[CLOUD] Add internal API to set solution in space (#191553)
## 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>
2024-09-05 10:34:59 -05:00

18 lines
715 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 { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ loadTestFile }: FtrProviderContext) {
describe('spaces', function () {
loadTestFile(require.resolve('./get_active_space'));
loadTestFile(require.resolve('./saved_objects'));
loadTestFile(require.resolve('./space_attributes'));
loadTestFile(require.resolve('./get_content_summary'));
loadTestFile(require.resolve('./set_solution_space'));
});
}