Skip to content
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

[8.x] [TEST] Replace _source.mode with index.mapping.source.mode in integration tests - take 2 (#116072) #116161

Merged
merged 2 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -349,16 +349,17 @@ sequence number and primary term:
---
synthetic _source:
- requires:
cluster_features: ["gte_v8.4.0"]
reason: introduced in 8.4.0
cluster_features: ["mapper.source.mode_from_index_setting"]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: test_synthetic
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
page:
type: keyword
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
setup:
- requires:
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"
- do:
indices.create:
index: test
Expand Down Expand Up @@ -180,9 +183,9 @@ setup:
body:
settings:
number_of_shards: 1
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
boolean:
type: boolean
Expand Down Expand Up @@ -5630,9 +5633,9 @@ version and sequence number synthetic _source:
body:
settings:
number_of_shards: 1
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
keyword:
type: keyword
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,16 +278,17 @@ setup:
---
synthetic_source:
- requires:
cluster_features: ["gte_v8.4.0"]
reason: synthetic source introduced in 8.4.0
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: synthetic_source_test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
foo:
type: match_only_text
Expand Down Expand Up @@ -355,16 +356,17 @@ tsdb:
---
synthetic_source with copy_to:
- requires:
cluster_features: ["mapper.source.synthetic_source_with_copy_to_and_doc_values_false"]
reason: requires copy_to support in synthetic source
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: synthetic_source_test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
foo:
type: match_only_text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
setup:
- requires:
cluster_features: ["mapper.source.synthetic_source_fallback"]
reason: introduced in 8.15.0
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
pagerank:
type: rank_feature
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
setup:
- requires:
cluster_features: ["mapper.source.synthetic_source_fallback"]
reason: introduced in 8.15.0
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
tags:
type: rank_features
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
setup:
- requires:
cluster_features: ["mapper.track_ignored_source"]
reason: requires tracking ignored source
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
a_field:
type: search_as_you_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,17 @@
---
"Synthetic source":
- requires:
cluster_features: ["mapper.track_ignored_source"]
reason: requires tracking ignored source
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
count:
type: token_count
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
supported:
- requires:
cluster_features: ["mapper.source.synthetic_source_fallback"]
reason: introduced in 8.15.0
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
join_field:
type: join
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,17 @@
---
"Synthetic source":
- requires:
cluster_features: ["mapper.source.synthetic_source_fallback"]
reason: introduced in 8.15.0
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: queries_index
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
query:
type: percolator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
setup:
- requires:
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: synthetic
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
kwd:
type: keyword
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
update:
- requires:
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: synthetic
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
kwd:
type: keyword
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---
keywords:
- requires:
cluster_features: ["gte_v7.12.0"]
reason: Runtime mappings support was added in 7.12
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: index1
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
field1:
type: keyword
Expand Down Expand Up @@ -69,16 +70,17 @@ keywords:
---
doubles:
- requires:
cluster_features: ["gte_v7.12.0"]
reason: Runtime mappings support was added in 7.12
cluster_features: [ "mapper.source.mode_from_index_setting" ]
reason: "Source mode configured through index setting"

- do:
indices.create:
index: index1
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
field1:
type: double
Expand Down
Loading