kibana/x-pack/test/api_integration/apis/management
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
..
advanced_settings [FTR] enable recommended mocha + no-floating-promises ESLint rules (#190690) 2024-08-23 11:54:36 -05:00
cross_cluster_replication fix all violations 2022-04-16 01:37:30 -05:00
index_lifecycle_management [ILM] Unskip API integration test (#162525) 2023-07-31 13:05:59 -04: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
ingest_pipelines [ingest pipeline mgmt] sort list of ip location databases for consistent output (#197361) 2024-10-24 05:06:06 -05:00
remote_clusters Add auto complete for remote clusters field (#166713) 2023-10-09 11:26:43 +01:00
rollup [Rollups] Fix API integration tests (#186079) 2024-06-13 14:20:10 +01:00
snapshot_restore Snapshots: show slm and status (#199622) 2024-12-09 09:57:41 +01:00
config.ts [ftr] split x-pack api integration tests based on plugin (#150837) 2023-02-13 15:06:11 +00:00
index.js [Ingest Pipelines] Improve api integration tests (#196718) 2024-10-17 12:40:21 -05:00