kibana/x-pack/test_serverless/api_integration/test_suites/common
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
..
alerting [Unskip] x-pack/.../summary_actions.ts (#193120) 2024-09-18 16:31:11 +01:00
console [FTR] Refactor test/common/services/* -> packages/kbn-ftr-common-functional-[ui-]services/* (#191805) 2024-09-05 10:00:55 +01:00
core Sustainable Kibana Architecture: Move the rest of shared-ux modules (#205924) 2025-01-10 11:30:37 +00:00
data_usage [Serverless][DataUsage]Handle route response schema validation error (#204223) 2024-12-13 14:54:49 -06:00
data_view_field_editor Implements api key creation as admin user in FTR user manager (#188102) 2024-07-16 13:45:48 +02:00
data_views [FTR] enable recommended mocha + no-floating-promises ESLint rules (#190690) 2024-08-23 11:54:36 -05:00
elasticsearch_api [FTR] Serverless - tag initial set of tests for ES gate (#168622) 2023-10-12 02:03:58 -07:00
favorites Add smoke serverless tests for favorites (starred) feature (#200985) 2024-11-27 12:30:49 +01:00
fleet [Fleet] Fix flaky serverless API integration tests (#178849) 2024-03-19 15:48:36 +01:00
grok_debugger Implements api key creation as admin user in FTR user manager (#188102) 2024-07-16 13:45:48 +02: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
kql_telemetry Update dependency @types/lodash to ^4.17.10 (main) (#194739) 2024-10-15 08:21:03 +02:00
management Enable custom roles and spaces in serverless projects (#195584) 2024-10-21 11:25:35 -05:00
painless_lab Implements api key creation as admin user in FTR user manager (#188102) 2024-07-16 13:45:48 +02:00
platform_security Skips serverless role management tests (#206824) 2025-01-15 18:40:01 +00:00
reporting [kbn-test] add forceNewSession option to re-generate session cookie (#199018) 2024-11-06 13:09:07 +01:00
saved_objects_management [ftr] migrating 'saved_objects_management/bulk' API integration test to deployment-agnostic one (#192070) 2024-09-10 05:33:32 -05:00
scripts_tests [FTR] allow to call roleScopedSupertest service with Cookie header (#192727) 2024-09-19 18:10:18 -05:00
search_oss Remove bsearch endpoint (#197150) 2024-12-06 07:23:46 -07:00
search_profiler Implements api key creation as admin user in FTR user manager (#188102) 2024-07-16 13:45:48 +02:00
search_xpack Implements api key creation as admin user in FTR user manager (#188102) 2024-07-16 13:45:48 +02:00
telemetry Sustainable Kibana Architecture: Move modules owned by @elastic/search-kibana (#202837) 2024-12-27 10:55:21 -06:00
README.md [FTR] Serverless - enable common config grouping (#167172) 2023-09-29 12:37:16 +02:00

Kibana Serverless Common API Integration Tests

The common tests in this directory are not project specific and are running in two or three of the projects. You can use tags to exclude one of the projects: skipSvlOblt, skipSvlSearch, skipSvlSec. If no such tag is added, the test will run in all three projects. Tests that are designed to only run in one of the projects should be added to the project specific test directory and not to common with two skips.

For more information about serverless tests please refer to x-pack/test_serverless/README.

Organizing common tests

  • Common tests don't have dedicated config files as they run as part of project configs.
  • There's no top level index file and tests are organized in sub-directories in order to better group them based on test run time.
  • If you add a new common sub-directory, remember to add it to the common_configs of all projects (x-pack/test_serverless/api_integration/test_suites/[observability|search|security]/common_configs)