Skip to content

Commit

Permalink
Fix and unmute synonyms tests using timeout (elastic#117486) (elastic…
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest authored Nov 26, 2024
1 parent 952df62 commit a9f4bf8
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ setup:

- match: { result: "created" }

- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

- do:
synonyms.get_synonym:
id: test-update-synonyms
Expand Down Expand Up @@ -58,6 +65,13 @@ setup:

- match: { result: "created" }

- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

- do:
synonyms.get_synonym:
id: test-empty-synonyms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ setup:
synonyms_set:
synonyms: "foo => bar, baz"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

- do:
indices.create:
index: test_index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ setup:
- synonyms: "test => check"
id: "test-id-3"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

---
"Get synonyms set":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ setup:
- synonyms: "bye => goodbye"
id: "test-id-2"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

---
"Delete synonyms set":
- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ setup:
synonyms_set:
- synonyms: "hello, hi"
- synonyms: "goodbye, bye"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

- do:
synonyms.put_synonym:
id: test-synonyms-1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ setup:
- synonyms: "test => check"
id: "test-id-3"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

---
"Update a synonyms rule":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ setup:
- synonyms: "test => check"
id: "test-id-3"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

---
"Get a synonym rule":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ setup:
- synonyms: "test => check"
id: "test-id-3"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

---
"Delete synonym rule":
- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ setup:
- synonyms: "bye => goodbye"
id: "synonym-rule-2"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

# Create an index with synonym_filter that uses that synonyms set
- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
- synonyms: "bye => goodbye"
id: "synonym-rule-2"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
wait_for_status: green
ignore: 408

# Create my_index1 with synonym_filter that uses synonyms_set1
- do:
indices.create:
Expand Down

0 comments on commit a9f4bf8

Please sign in to comment.