Skip to content

Commit 404e645

Browse files
committed
cleanup existing Yaml tests via teardown
1 parent e30a141 commit 404e645

File tree

1 file changed

+12
-10
lines changed
  • rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.stats

1 file changed

+12
-10
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.stats/10_basic.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2+
---
3+
teardown:
4+
# ensure indices are cleaned up after each test
5+
# mainly for the sparse vector tests
6+
- do:
7+
indices.delete:
8+
index: ["test1", "test2"]
9+
ignore: 404
10+
- do:
11+
indices.refresh: { }
12+
113
---
214
"cluster stats test":
315
- do:
@@ -353,16 +365,6 @@
353365
- match: { indices.dense_vector.value_count: 8 }
354366
- is_false: indices.dense_vector.off_heap
355367

356-
# ensure indices are cleaned up
357-
- do:
358-
indices.delete:
359-
index: test1
360-
- do:
361-
indices.delete:
362-
index: test2
363-
- do:
364-
indices.refresh: { }
365-
366368
---
367369
"Sparse vector stats":
368370
- requires:

0 commit comments

Comments
 (0)