Skip to content

Commit 6a7f46c

Browse files
committed
fix the current yaml tests/ensure cleanup
1 parent a022b5c commit 6a7f46c

File tree

1 file changed

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

1 file changed

+14
-3
lines changed

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,22 @@
353353
- match: { indices.dense_vector.value_count: 8 }
354354
- is_false: indices.dense_vector.off_heap
355355

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+
356366
---
357367
"Sparse vector stats":
358368
- requires:
359369
cluster_features: [ "gte_v8.15.0" ]
360370
reason: "sparse vector stats added in 8.15"
371+
361372
- do:
362373
indices.create:
363374
index: test1
@@ -375,7 +386,7 @@
375386

376387
- do:
377388
indices.create:
378-
index: test3
389+
index: test2
379390
body:
380391
settings:
381392
number_of_replicas: 0
@@ -424,7 +435,7 @@
424435

425436
- do:
426437
index:
427-
index: test3
438+
index: test2
428439
id: "1"
429440
body:
430441
vector:
@@ -438,7 +449,7 @@
438449

439450
- do:
440451
index:
441-
index: test3
452+
index: test2
442453
id: "2"
443454
body:
444455
vector:

0 commit comments

Comments
 (0)