-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TEST] Replace _source.mode with index.mapping.source.mode in integration tests #115926
Conversation
- match: { test_standard_index_mode.mappings._source.mode: stored } | ||
|
||
--- | ||
create an index with time_series index mode and synthetic source: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests are now repeated above, since there's only one way to configure source mode.
@@ -609,239 +344,3 @@ modify final setting after index creation: | |||
body: | |||
index: | |||
mapping.source.mode: synthetic | |||
|
|||
--- | |||
modify source mapping from stored to disabled after index creation: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests are redundant, there's no way to configure source mode in mapping and updating the setting is covered in the test right above.
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -145,28 +145,6 @@ | |||
- is_false: test_index.mappings.properties.foo.meta.bar | |||
- match: { test_index.mappings.properties.foo.meta.baz: "quux" } | |||
|
|||
--- | |||
"disabling synthetic source fails": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe replace with a test that tries to update the new index setting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is indices.put_mapping
test :) we have this elsewhere..
💔 Backport failedThe backport operation could not be completed due to the following error:
You can use sqren/backport to manually backport by running |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
…tion tests (elastic#115926) * Replace _source.mode with index.mapping.source.mode in integration tests * fix tests * revert 40_source_mode_setting.yml (cherry picked from commit a360757)
…tion tests (elastic#115926) * Replace _source.mode with index.mapping.source.mode in integration tests * fix tests * revert 40_source_mode_setting.yml
source.mode
will soon be deprecated, in favor of the corresponding index setting.Fixes #115860