Skip to content

Commit

Permalink
Remove historical features for YAML REST tests in favor of synthetic …
Browse files Browse the repository at this point in the history
…version features (#107393)
  • Loading branch information
mosche committed Apr 15, 2024
1 parent 119f81f commit e70e539
Show file tree
Hide file tree
Showing 40 changed files with 131 additions and 289 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@
- is_false: ds-first.aliases.my-alias
---
"Action Results with multiple matching aliases":
- skip:
version: " - 8.13.99"
- requires:
cluster_features: ["gte_v8.14.0"]
reason: "alias action results do not work until 8.14"
features: allowed_warnings
test_runner_features: ["allowed_warnings"]
- do:
allowed_warnings:
- "index template [my-template] has index patterns [log-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template] will take precedence during new index creation"
Expand Down Expand Up @@ -349,10 +349,10 @@
- match: { action_results.1.error.type: aliases_not_found_exception }
---
"Single action result per action":
- skip:
version: " - 8.13.99"
- requires:
cluster_features: [ "gte_v8.14.0" ]
reason: "alias action results do not work until 8.14"
features: allowed_warnings
test_runner_features: [ "allowed_warnings" ]
- do:
allowed_warnings:
- "index template [my-template] has index patterns [log-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template] will take precedence during new index creation"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@

---
"Modify a data stream's failure store":
- skip:
version: " - 8.13.99"
- requires:
cluster_features: [ "gte_v8.14.0" ]
reason: "this API was released in 8.14.0"
features: allowed_warnings
test_runner_features: [ "allowed_warnings" ]

- do:
allowed_warnings:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
"Explain backing index lifecycle":
- skip:
cluster_features: ["datastream_lifecycle", "data_stream.lifecycle.global_retention"]
cluster_features: ["data_stream.lifecycle.global_retention"]
reason: "Data stream lifecycle with effective retention was released in 8.14"
features: allowed_warnings
- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setup:
- skip:
features: allowed_warnings
cluster_features: ["datastream_lifecycle", "data_stream.lifecycle.global_retention"]
cluster_features: ["data_stream.lifecycle.global_retention"]
reason: "Data stream lifecycles with global retention are only supported in 8.14+"
- do:
allowed_warnings:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setup:
- skip:
features: allowed_warnings
cluster_features: ["datastream_lifecycle"]
cluster_features: ["gte_v8.11.0"]
reason: "Data stream lifecycle was GA in 8.11"
- do:
allowed_warnings:
Expand All @@ -24,7 +24,7 @@ setup:
---
"Get data stream lifecycle":
- skip:
cluster_features: ["datastream_lifecycle", "data_stream.lifecycle.global_retention"]
cluster_features: ["data_stream.lifecycle.global_retention"]
reason: "Data stream lifecycle with effective retention was released in 8.14"

- do:
Expand All @@ -49,7 +49,7 @@ setup:
---
"Put data stream lifecycle does not succeed when at lease one data stream does not exist":
- skip:
cluster_features: ["datastream_lifecycle", "data_stream.lifecycle.global_retention"]
cluster_features: ["data_stream.lifecycle.global_retention"]
reason: "Data stream lifecycle with effective retention was released in 8.14"
- do:
catch: missing
Expand All @@ -72,7 +72,7 @@ setup:
---
"Delete data stream lifecycle does not succeed when at lease one data stream does not exist":
- skip:
cluster_features: ["datastream_lifecycle", "data_stream.lifecycle.global_retention"]
cluster_features: ["data_stream.lifecycle.global_retention"]
reason: "Data stream lifecycle with effective retention was released in 8.14"
- do:
catch: missing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setup:
- skip:
features: allowed_warnings
cluster_features: ["datastream_lifecycle", "data_stream.lifecycle.global_retention"]
cluster_features: ["data_stream.lifecycle.global_retention"]
reason: "Global retention was added in 8.14"
- do:
allowed_warnings:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
---
"Empty _id with op_type create":
- requires:
cluster_features: ["bulk_auto_id"]
cluster_features: ["gte_v7.5.0"]
reason: "auto id + op type create only supported since 7.5"

- do:
Expand Down Expand Up @@ -120,7 +120,7 @@
---
"When setting require_alias flag per request":
- requires:
cluster_features: ["bulk_require_alias"]
cluster_features: ["gte_v7.10.0"]
reason: "require_alias flag was added in version 7.10"

- do:
Expand Down Expand Up @@ -163,7 +163,7 @@
---
"When setting require_alias flag":
- requires:
cluster_features: ["bulk_require_alias"]
cluster_features: ["gte_v7.10.0"]
reason: "require_alias flag was added in version 7.10"

- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Dynamic templates":
- requires:
test_runner_features: ["contains"]
cluster_features: ["bulk_dynamic_template_document_parse_exception"]
cluster_features: ["gte_v8.8.0"]
reason: "Exception type has changed in 8.8.0"

- do:
Expand Down Expand Up @@ -176,7 +176,7 @@
---
"Dynamic templates with op_type":
- requires:
cluster_features: ["bulk_dynamic_template_op_type"]
cluster_features: ["gte_v8.6.1"]
reason: "bug fixed in 8.6.1"

- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
"One request has pipeline and another not":
- requires:
cluster_features: ["bulk_pipeline_validate"]
cluster_features: ["gte_v7.9.1"]
reason: "fixed in 7.9.1"
- do:
bulk:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---
"Help":
- requires:
cluster_features: "cat_aliases_show_write_index"
cluster_features: "gte_v7.4.0"
reason: "is_write_index is shown in cat.aliases starting version 7.4.0"

- do:
Expand All @@ -22,7 +22,7 @@
---
"Help (pre 7.4.0)":
- skip:
cluster_features: "cat_aliases_show_write_index"
cluster_features: "gte_v7.4.0"
reason: "is_write_index is shown in cat.aliases starting version 7.4.0"

- do:
Expand Down Expand Up @@ -52,7 +52,7 @@
---
"Simple alias":
- requires:
cluster_features: "cat_aliases_show_write_index"
cluster_features: "gte_v7.4.0"
reason: "is_write_index is shown in cat.aliases starting version 7.4.0"

- do:
Expand Down Expand Up @@ -81,7 +81,7 @@
---
"Simple alias (pre 7.4.0)":
- skip:
cluster_features: "cat_aliases_show_write_index"
cluster_features: "gte_v7.4.0"
reason: "is_write_index is shown in cat.aliases starting version 7.4.0"

- do:
Expand Down Expand Up @@ -109,7 +109,7 @@
---
"Complex alias":
- requires:
cluster_features: "cat_aliases_show_write_index"
cluster_features: "gte_v7.4.0"
reason: "is_write_index is shown in cat.aliases starting version 7.4.0"

- do:
Expand Down Expand Up @@ -149,7 +149,7 @@
---
"Complex alias (pre 7.4.0)":
- skip:
cluster_features: "cat_aliases_show_write_index"
cluster_features: "gte_v7.4.0"
reason: "is_write_index is shown in cat.aliases starting version 7.4.0"

- do:
Expand Down Expand Up @@ -270,7 +270,7 @@
---
"Column headers":
- requires:
cluster_features: "cat_aliases_show_write_index"
cluster_features: "gte_v7.4.0"
reason: "is_write_index is shown in cat.aliases starting version 7.4.0"

- do:
Expand Down Expand Up @@ -307,7 +307,7 @@
---
"Column headers (pre 7.4.0)":
- skip:
cluster_features: "cat_aliases_show_write_index"
cluster_features: "gte_v7.4.0"
reason: "is_write_index is shown in cat.aliases starting version 7.4.0"

- do:
Expand Down Expand Up @@ -374,7 +374,7 @@
---
"Alias against closed index":
- requires:
cluster_features: "cat_aliases_show_write_index"
cluster_features: "gte_v7.4.0"
reason: "is_write_index is shown in cat.aliases starting version 7.4.0"
test_runner_features: ["allowed_warnings"]

Expand Down Expand Up @@ -409,7 +409,7 @@
---
"Alias against closed index (pre 7.4.0)":
- skip:
cluster_features: "cat_aliases_show_write_index"
cluster_features: "gte_v7.4.0"
reason: "is_write_index is shown in cat.aliases starting version 7.4.0"

- requires:
Expand Down Expand Up @@ -488,7 +488,7 @@
---
"Deprecated local parameter":
- requires:
cluster_features: ["cat_aliases_local_deprecated"]
cluster_features: ["gte_v8.12.0"]
test_runner_features: ["warnings"]
reason: verifying deprecation warnings from 8.12.0 onwards

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
"Test cat aliases output with a hidden index with a hidden alias":
- requires:
cluster_features: ["cat_aliases_hidden"]
cluster_features: ["gte_v7.7.0"]
reason: "hidden indices and aliases were added in 7.7.0"

- do:
Expand Down Expand Up @@ -58,7 +58,7 @@
---
"Test cat aliases output with a hidden index with a visible alias":
- requires:
cluster_features: ["cat_aliases_hidden"]
cluster_features: ["gte_v7.7.0"]
reason: "hidden indices and aliases were added in 7.7.0"

- do:
Expand Down Expand Up @@ -105,7 +105,7 @@
---
"Test cat aliases output with a visible index with a hidden alias":
- requires:
cluster_features: ["cat_aliases_hidden"]
cluster_features: ["gte_v7.7.0"]
reason: "hidden indices and aliases were added in 7.7.0"

- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
"Node roles":

- requires:
cluster_features: ["cat_allocation_node_role"]
cluster_features: ["gte_v8.10.0"]
reason: "node.role column added in 8.10.0"

- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
---
"Test cat indices output":
- requires:
cluster_features: ["cat_indices_dataset_size"]
cluster_features: ["gte_v8.11.0"]
reason: dataset size was added in 8.11.0

- do:
Expand Down Expand Up @@ -72,7 +72,7 @@
"Test cat indices output for closed index (pre 7.2.0)":
- skip:
reason: "closed indices are replicated starting version 7.2.0"
cluster_features: ["indices_replicate_closed"]
cluster_features: ["gte_v7.2.0"]
- requires:
test_runner_features: ["allowed_warnings"]

Expand Down Expand Up @@ -117,7 +117,7 @@
"Test cat indices output for closed index":
- skip:
reason: "closed indices are replicated starting version 7.2.0"
cluster_features: ["indices_replicate_closed"]
cluster_features: ["gte_v7.2.0"]
- requires:
test_runner_features: ["allowed_warnings"]

Expand Down Expand Up @@ -310,7 +310,7 @@
---
"Test cat indices with invalid health parameter":
- requires:
cluster_features: ["cat_indices_validate_health_param"]
cluster_features: ["gte_v7.8.0"]
reason: "fixed in 7.7.1+"

- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
"Test cat indices output for hidden index":
- requires:
cluster_features: ["cat_indices_dataset_size"]
cluster_features: ["gte_v8.11.0"]
reason: "dataset size was added in 8.11.0"
- do:
indices.create:
Expand Down Expand Up @@ -42,7 +42,7 @@
---
"Test cat indices output for dot-hidden index and dot-prefixed pattern":
- requires:
cluster_features: ["cat_indices_dataset_size"]
cluster_features: ["gte_v8.11.0"]
reason: "dataset size was added in 8.11.0"
- do:
indices.create:
Expand Down Expand Up @@ -81,7 +81,7 @@
---
"Test cat indices output with a hidden index with a visible alias":
- requires:
cluster_features: ["cat_indices_dataset_size"]
cluster_features: ["gte_v8.11.0"]
reason: "dataset size was added in 8.11.0"

- do:
Expand Down Expand Up @@ -146,7 +146,7 @@
---
"Test cat indices output with a hidden index with a hidden alias":
- requires:
cluster_features: ["cat_indices_dataset_size"]
cluster_features: ["gte_v8.11.0"]
reason: "dataset size was added in 8.11.0"

- do:
Expand Down Expand Up @@ -210,7 +210,7 @@
---
"Test cat indices output with a hidden index, dot-hidden alias and dot pattern":
- requires:
cluster_features: ["cat_indices_dataset_size"]
cluster_features: ["gte_v8.11.0"]
reason: "dataset size was added in 8.11.0"

- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
"Help":
- requires:
cluster_features: ["cat_plugins_new_format"]
cluster_features: ["gte_v7.12.0"]
reason: output format changed in 7.12.0

- do:
Expand Down

0 comments on commit e70e539

Please sign in to comment.