Skip to content

Commit 4357434

Browse files
nielsbaumanjozala
authored andcommitted
Avoid ignoring yaml tests for retrieving index templates (#116446)
The `skip` caused the tests to be ignored instead of included.
1 parent 0050b68 commit 4357434

File tree

1 file changed

+4
-6
lines changed
  • rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.get_index_template

1 file changed

+4
-6
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.get_index_template/10_basic.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
setup:
2-
- skip:
2+
- requires:
33
cluster_features: [ "gte_v7.8.0" ]
44
reason: "index template v2 API unavailable before 7.8"
5-
features: allowed_warnings
5+
test_runner_features: allowed_warnings
66

77
- do:
88
allowed_warnings:
@@ -92,10 +92,9 @@ setup:
9292

9393
---
9494
"Add data stream lifecycle":
95-
- skip:
95+
- requires:
9696
cluster_features: ["gte_v8.11.0"]
9797
reason: "Data stream lifecycle in index templates was updated after 8.10"
98-
features: allowed_warnings
9998

10099
- do:
101100
allowed_warnings:
@@ -127,10 +126,9 @@ setup:
127126

128127
---
129128
"Get data stream lifecycle with default rollover":
130-
- skip:
129+
- requires:
131130
cluster_features: ["gte_v8.11.0"]
132131
reason: "Data stream lifecycle in index templates was updated after 8.10"
133-
features: allowed_warnings
134132

135133
- do:
136134
allowed_warnings:

0 commit comments

Comments
 (0)