kibana/x-pack/test_serverless/api_integration/services
Elena Stoeva b08eaa7d5a
[Index Management] Display index mode of data streams depending on logsdb.enabled cluster setting (#207131)
Closes https://github.com/elastic/kibana/issues/206126

## Summary

This PR displays a LogsDB index mode for `logs-*-*` data streams and
templates with the `logs-*-*` index pattern if the
`cluster.logsdb.enabled` setting is set to true and as "Standard" if
it's set to false. If the setting is not set, it is false by default in
stateful (and so "Standard" index mode) and true by default in
serverless (and so "LogsDB" index mode).

**How to test:**
In Stateful:
1. Create an index template with a `logs-*-*` index pattern
2. Create a `logs-*-*` data stream: `PUT _data_stream/logs-test-1`
3. Go to Index Management -> Index templates and click on the created
index templates. Verify that the index mode is correct (**NOTE:** In
stateful, the `cluster.logsdb.enabled` setting is `false` by default,
while in serverless it's `true` by default. Therefore, the index mode
should be `Standard` in stateful and `LogsDB` in serverless.
4. Go to Index Management -> Data Streams and find the created data
stream. Verify that the index mode is correct (**NOTE:** In stateful,
the `cluster.logsdb.enabled` setting is `false` by default, while in
serverless it's `true` by default. Therefore, the index mode should be
`Standard` in stateful and `LogsDB` in serverless.
5. In Console, set the `cluster.logsdb.enabled` setting: 
```
PUT /_cluster/settings
{
  "persistent" : {
    "cluster.logsdb.enabled" : true
  }
}
```
6. Go to the data stream/templates list and verify that the index mode
of the test data stream/template that we created is displayed as LogsDB
7. Change the cluster setting to `false` and verify that the index mode
is now displayed as Standard.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-24 21:55:16 +00:00
..
index_management [Index Management] Display index mode of data streams depending on logsdb.enabled cluster setting (#207131) 2025-01-24 21:55:16 +00:00
svl_cases [Security Solution] [Cases] Introduce case observables (phase 0 & 1) (#190237) 2024-12-23 14:25:58 +01:00
transform [Move @kbn/config-schema to server] transform (#191685) 2024-08-29 16:19:44 +02:00
index.ts [FTR] Collapse Alerting API Helpers Impl (#192216) 2024-09-16 15:42:06 +01:00
saml_tools.ts Add Mock IDP login page and role switcher (#172257) 2024-01-12 21:54:51 +01:00
slo_api.ts [Serverless][Observability] Use roles-based testing - api_integration (#184654) 2024-06-07 08:34:28 -07:00
synthtrace.ts [APM] Add tests for service_map and critical_path endpoints to serverless integration tests suite (#186466) 2024-06-20 16:00:53 -07:00