Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrone committed Sep 10, 2024
1 parent 3786a6f commit ee58326
Showing 1 changed file with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
teardown:
- do:
indices.delete:
index: .*

---
"Index creation with a dot-prefix is deprecated unless x-elastic-product-origin set":
- requires:
Expand Down Expand Up @@ -66,9 +72,6 @@
- "index name [.myindex3] starts with a dot '.', in the next major version, index names starting with a dot are reserved for hidden indices and system indices"
bulk:
body:
- index:
_index: other
- message: foo
- index:
_index: .myindex3
- message: foo
Expand Down Expand Up @@ -157,6 +160,10 @@
dest:
index: .reindex2

- do:
ingest.delete_pipeline:
id: mypipeline

---
"Reject index template that has a dot prefix index pattern":
- requires:
Expand All @@ -175,7 +182,15 @@
headers: { X-elastic-product-origin: kibana }
warnings:
indices.put_index_template:
name: my-template
name: my-template2
body:
index_patterns: [regular, .data2-*]
index_patterns: [other, .data2-*]
data_stream: {}

- do:
indices.delete_index_template:
name: my-template

- do:
indices.delete_index_template:
name: my-template2

0 comments on commit ee58326

Please sign in to comment.