File tree Expand file tree Collapse file tree 11 files changed +50
-29
lines changed
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms Expand file tree Collapse file tree 11 files changed +50
-29
lines changed Original file line number Diff line number Diff line change @@ -259,15 +259,6 @@ tests:
259
259
- class : org.elasticsearch.xpack.inference.DefaultElserIT
260
260
method : testInferCreatesDefaultElser
261
261
issue : https://github.com/elastic/elasticsearch/issues/114503
262
- - class : org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
263
- method : test {p0=synonyms/60_synonym_rule_get/Synonym set not found}
264
- issue : https://github.com/elastic/elasticsearch/issues/114432
265
- - class : org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
266
- method : test {p0=synonyms/60_synonym_rule_get/Get a synonym rule}
267
- issue : https://github.com/elastic/elasticsearch/issues/114443
268
- - class : org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
269
- method : test {p0=synonyms/60_synonym_rule_get/Synonym rule not found}
270
- issue : https://github.com/elastic/elasticsearch/issues/114444
271
262
- class : org.elasticsearch.xpack.inference.integration.ModelRegistryIT
272
263
method : testGetModel
273
264
issue : https://github.com/elastic/elasticsearch/issues/114657
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ setup:
15
15
16
16
- match : { result: "created" }
17
17
18
+ - do :
19
+ cluster.health :
20
+ wait_for_no_initializing_shards : true
21
+
18
22
- do :
19
23
synonyms.get_synonym :
20
24
id : test-update-synonyms
@@ -58,6 +62,10 @@ setup:
58
62
59
63
- match : { result: "created" }
60
64
65
+ - do :
66
+ cluster.health :
67
+ wait_for_no_initializing_shards : true
68
+
61
69
- do :
62
70
synonyms.get_synonym :
63
71
id : test-empty-synonyms
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ setup:
11
11
synonyms_set :
12
12
synonyms : " foo => bar, baz"
13
13
14
+ # This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
15
+ - do :
16
+ cluster.health :
17
+ wait_for_no_initializing_shards : true
18
+
14
19
- do :
15
20
indices.create :
16
21
index : test_index
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ setup:
14
14
- synonyms : " test => check"
15
15
id : " test-id-3"
16
16
17
+ # This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
18
+ - do :
19
+ cluster.health :
20
+ wait_for_no_initializing_shards : true
17
21
18
22
---
19
23
" Get synonyms set " :
31
35
id : " test-id-2"
32
36
- synonyms : " test => check"
33
37
id : " test-id-3"
34
-
35
38
---
36
39
" Get synonyms set - not found " :
37
40
- do :
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ setup:
12
12
- synonyms : " bye => goodbye"
13
13
id : " test-id-2"
14
14
15
+ # This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
16
+ - do :
17
+ cluster.health :
18
+ wait_for_no_initializing_shards : true
15
19
---
16
20
" Delete synonyms set " :
17
21
- do :
Original file line number Diff line number Diff line change 9
9
synonyms_set :
10
10
- synonyms : " hello, hi"
11
11
- synonyms : " goodbye, bye"
12
+
13
+ # This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
14
+ - do :
15
+ cluster.health :
16
+ wait_for_no_initializing_shards : true
17
+
12
18
- do :
13
19
synonyms.put_synonym :
14
20
id : test-synonyms-1
@@ -23,21 +29,8 @@ setup:
23
29
body :
24
30
synonyms_set :
25
31
- synonyms : " pc, computer"
26
- # set logging to debug for issue: https://github.com/elastic/elasticsearch/issues/102261
27
- - do :
28
- cluster.put_settings :
29
- body :
30
- persistent :
31
- logger.org.elasticsearch.synonyms : DEBUG
32
32
33
33
---
34
- teardown :
35
- - do :
36
- cluster.put_settings :
37
- body :
38
- persistent :
39
- logger.org.elasticsearch.synonyms : null
40
- ---
41
34
" List synonyms set " :
42
35
- do :
43
36
synonyms.get_synonyms_sets : { }
Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ setup:
14
14
- synonyms : " test => check"
15
15
id : " test-id-3"
16
16
17
-
17
+ # This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
18
+ - do :
19
+ cluster.health :
20
+ wait_for_no_initializing_shards : true
18
21
---
19
22
" Update a synonyms rule " :
20
23
- do :
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ setup:
13
13
id : " test-id-2"
14
14
- synonyms : " test => check"
15
15
id : " test-id-3"
16
+
17
+ # This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
16
18
- do :
17
19
cluster.health :
18
- index : .synonyms
19
- timeout : 1m
20
- wait_for_status : green
20
+ wait_for_no_initializing_shards : true
21
+
21
22
22
23
---
23
24
" Get a synonym rule " :
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ setup:
14
14
- synonyms : " test => check"
15
15
id : " test-id-3"
16
16
17
+ # This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
18
+ - do :
19
+ cluster.health :
20
+ wait_for_no_initializing_shards : true
21
+
17
22
---
18
23
" Delete synonym rule " :
19
24
- do :
Original file line number Diff line number Diff line change 2
2
- requires :
3
3
cluster_features : ["gte_v8.10.0"]
4
4
reason : Loading synonyms from index is introduced in 8.10.0
5
-
6
5
# Create a new synonyms set
7
6
- do :
8
7
synonyms.put_synonym :
@@ -14,6 +13,11 @@ setup:
14
13
- synonyms : " bye => goodbye"
15
14
id : " synonym-rule-2"
16
15
16
+ # This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
17
+ - do :
18
+ cluster.health :
19
+ wait_for_no_initializing_shards : true
20
+
17
21
# Create an index with synonym_filter that uses that synonyms set
18
22
- do :
19
23
indices.create :
Original file line number Diff line number Diff line change 3
3
- requires :
4
4
cluster_features : ["gte_v8.10.0"]
5
5
reason : Reloading analyzers for specific synonym set is introduced in 8.10.0
6
-
7
6
# Create synonyms_set1
8
7
- do :
9
8
synonyms.put_synonym :
26
25
- synonyms : " bye => goodbye"
27
26
id : " synonym-rule-2"
28
27
28
+ # This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
29
+ - do :
30
+ cluster.health :
31
+ wait_for_no_initializing_shards : true
32
+
29
33
# Create my_index1 with synonym_filter that uses synonyms_set1
30
34
- do :
31
35
indices.create :
You can’t perform that action at this time.
0 commit comments