Skip to content

Commit

Permalink
Use historical features for Yaml REST tests for cluster apis (#106587)
Browse files Browse the repository at this point in the history
  • Loading branch information
mosche committed Mar 22, 2024
1 parent a960bef commit 12e64a1
Show file tree
Hide file tree
Showing 16 changed files with 158 additions and 90 deletions.
Original file line number Diff line number Diff line change
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: ["cat_indices_replicate_closed"]
cluster_features: ["indices_replicate_closed"]
- 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: ["cat_indices_replicate_closed"]
cluster_features: ["indices_replicate_closed"]
- requires:
test_runner_features: ["allowed_warnings"]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
"Help":
- requires:
cluster_features: ["cat_templates_v2"]
cluster_features: ["templates_v2"]
reason: "format changed in 7.8 to accomodate V2 index templates"

- do:
Expand Down Expand Up @@ -32,7 +32,7 @@
---
"Normal templates":
- requires:
cluster_features: [ "cat_templates_v2" ]
cluster_features: [ "templates_v2" ]
reason: "format changed in 7.8 to accomodate V2 index templates"

- do:
Expand Down Expand Up @@ -83,7 +83,7 @@
---
"Filtered templates":
- requires:
cluster_features: [ "cat_templates_v2" ]
cluster_features: [ "templates_v2" ]
reason: "format changed in 7.8 to accomodate V2 index templates"

- do:
Expand Down Expand Up @@ -125,7 +125,7 @@
---
"Column headers":
- requires:
cluster_features: [ "cat_templates_v2" ]
cluster_features: [ "templates_v2" ]
reason: "format changed in 7.8 to accomodate V2 index templates"

- do:
Expand Down Expand Up @@ -163,7 +163,7 @@
---
"Select columns":
- requires:
cluster_features: [ "cat_templates_v2" ]
cluster_features: [ "templates_v2" ]
reason: "format changed in 7.8 to accomodate V2 index templates"

- do:
Expand Down Expand Up @@ -197,7 +197,7 @@
---
"Sort templates":
- requires:
cluster_features: [ "cat_templates_v2" ]
cluster_features: [ "templates_v2" ]
reason: "format changed in 7.8 to accomodate V2 index templates"
test_runner_features: default_shards, no_xpack

Expand Down Expand Up @@ -250,7 +250,7 @@
---
"Multiple template":
- requires:
cluster_features: [ "cat_templates_v2" ]
cluster_features: [ "templates_v2" ]
reason: "format changed in 7.8 to accomodate V2 index templates"
test_runner_features: default_shards, no_xpack

Expand Down Expand Up @@ -286,7 +286,7 @@
---
"Mixture of legacy and composable templates":
- requires:
cluster_features: [ "cat_templates_v2" ]
cluster_features: [ "templates_v2" ]
reason: "format changed in 7.8 to accomodate V2 index templates"
test_runner_features: allowed_warnings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@

---
"Cluster shard allocation explanation test with a closed index":
- skip:
version: " - 7.1.99"
- requires:
cluster_features: ["indices_replicate_closed"]
reason: closed indices are replicated starting version 7.2.0
features: ["allowed_warnings"]
test_runner_features: ["allowed_warnings"]

- do:
indices.create:
Expand Down Expand Up @@ -95,8 +95,8 @@

---
"Cluster allocation explanation response includes node's roles":
- skip:
version: " - 8.10.99"
- requires:
cluster_features: ["cluster_allocation_role"]
reason: The roles field was introduced in 8.11.0

- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
"Basic CRUD":
- skip:
version: " - 7.7.99"
- requires:
cluster_features: ["templates_v2"]
reason: "index/component template v2 API unavailable before 7.8"

- do:
Expand Down Expand Up @@ -48,8 +48,8 @@

---
"Delete multiple templates":
- skip:
version: " - 7.99.99"
- requires:
cluster_features: ["cluster_templates_delete_multiple"]
reason: "not yet backported"

- do:
Expand Down Expand Up @@ -116,8 +116,8 @@

---
"Add data stream lifecycle":
- skip:
version: " - 8.10.99"
- requires:
cluster_features: ["datastream_lifecycle"]
reason: "Data stream lifecycle was available from 8.11"

- do:
Expand All @@ -144,8 +144,8 @@

---
"Get data stream lifecycle with default rollover":
- skip:
version: " - 8.10.99"
- requires:
cluster_features: ["datastream_lifecycle"]
reason: "Data stream lifecycle was available from 8.11"

- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
setup:
- skip:
version: " - 8.5.99"
- requires:
cluster_features: ["cluster_desired_balance"]
reason: "API added in in 8.6.0"

---
Expand Down Expand Up @@ -61,8 +61,8 @@ setup:
---
"Test cluster_balance_stats":

- skip:
version: " - 8.6.99"
- requires:
cluster_features: ["cluster_desired_balance_stats"]
reason: "cluster_balance_stats added in in 8.7.0"

- do:
Expand Down Expand Up @@ -109,8 +109,8 @@ setup:
---
"Test cluster_info":

- skip:
version: " - 8.7.99"
- requires:
cluster_features: ["cluster_info"]
reason: "cluster_info added in in 8.8.0"

- do:
Expand All @@ -121,8 +121,8 @@ setup:
---
"Test cluster_balance_stats contains node ID and roles":

- skip:
version: " - 8.7.99"
- requires:
cluster_features: ["cluster_desired_balance_extended"]
reason: "node_id and roles added in in 8.8.0"

- do:
Expand All @@ -140,8 +140,8 @@ setup:
---
"Test tier_preference":

- skip:
version: " - 8.7.99"
- requires:
cluster_features: ["cluster_desired_balance_extended"]
reason: "tier_preference added in in 8.8.0"

- do:
Expand All @@ -165,8 +165,8 @@ setup:
---
"Test computed_shard_movements":

- skip:
version: " - 8.7.99"
- requires:
cluster_features: ["cluster_desired_balance_extended"]
reason: "computed_shard_movements added in in 8.8.0"

- do:
Expand All @@ -177,8 +177,8 @@ setup:
---
"Test reset desired balance":

- skip:
version: " - 8.7.99"
- requires:
cluster_features: ["cluster_desired_balance_extended"]
reason: "reset API added in in 8.8.0"

- do:
Expand All @@ -187,8 +187,8 @@ setup:
---
"Test undesired_shard_allocation_count":

- skip:
version: " - 8.11.99"
- requires:
cluster_features: ["cluster_desired_balance_stats_undesired_count"]
reason: "undesired_shard_allocation_count added in in 8.12.0"

- do:
Expand Down Expand Up @@ -225,8 +225,8 @@ setup:
---
"Test unassigned_shards, total_allocations, undesired_allocations and undesired_allocations_fraction":

- skip:
version: " - 8.11.99"
- requires:
cluster_features: [ "cluster_desired_balance_stats_undesired_count" ]
reason: "undesired_shard_allocation_count added in in 8.12.0"

- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
setup:
- skip:
version: " - 8.3.99"
- requires:
cluster_features: ["cluster_desired_nodes_dry_run"]
reason: "Support for the dry run option was added in in 8.4.0"
---
teardown:
Expand All @@ -12,7 +12,7 @@ teardown:
"Test dry run doesn't update empty desired nodes":
- skip:
version: " - 8.12.99"
reason: "version_node removed from version 8.13 onwards"
reason: "version_node removed from version 8.13 onwards, require the new api"
- do:
cluster.state: {}

Expand Down Expand Up @@ -42,7 +42,7 @@ teardown:
"Test dry run doesn't update existing desired nodes":
- skip:
version: " - 8.12.99"
reason: "version_node removed from version 8.13 onwards"
reason: "version_node removed from version 8.13 onwards, require the new api"
- do:
cluster.state: {}

Expand Down Expand Up @@ -94,7 +94,7 @@ teardown:
---
"Test validation works for dry run updates":
- skip:
version: "8.9.99 - "
cluster_features: ["cluster_desired_nodes_no_settings_validation"]
reason: "We started skipping setting validations in 8.10"
- do:
cluster.state: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@
---
"cluster health with closed index (pre 7.2.0)":
- skip:
version: "7.2.0 - "
cluster_features: ["indices_replicate_closed"]
reason: "closed indices are replicated starting version 7.2.0"
features: ["allowed_warnings"]
- requires:
test_runner_features: ["allowed_warnings"]

- do:
indices.create:
Expand Down Expand Up @@ -208,10 +209,10 @@

---
"cluster health with closed index":
- skip:
version: " - 7.1.99"
- requires:
cluster_features: ["indices_replicate_closed"]
reason: "closed indices are replicated starting version 7.2.0"
features: ["allowed_warnings", "default_shards"]
test_runner_features: ["allowed_warnings", "default_shards"]

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ setup:

---
"cluster health with expand_wildcards":
- skip:
version: " - 7.1.99"
- requires:
cluster_features: ["cluster_health_indices_options"]
reason: "indices options has been introduced in cluster health request starting version 7.2.0"

- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
setup:
- skip:
version: " - 8.8.99"
- requires:
cluster_features: ["cluster_info_extended"]
reason: "/_info/_all only available from v8.9"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
"Cluster HTTP Info":
- skip:
version: " - 8.8.99"
- requires:
cluster_features: ["cluster_info_extended"]
reason: "/_info/http only available from v8.9"

- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
"Cluster HTTP Info":
- skip:
version: " - 8.8.99"
- requires:
cluster_features: ["cluster_info_extended"]
reason: "/_info/thread_pool only available from v8.9"

- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
"Cluster HTTP Info":
- skip:
version: " - 8.8.99"
- requires:
cluster_features: ["cluster_info_extended"]
reason: "/_info/script only available from v8.9"

- do:
Expand Down

0 comments on commit 12e64a1

Please sign in to comment.