Skip to content

Commit 9891704

Browse files
committed
Fix number of shards for serverless in synonyms test
1 parent 6cf4536 commit 9891704

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/90_synonyms_reloading_for_synset.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
settings:
3939
index:
4040
number_of_shards: 1
41-
number_of_replicas: 0
4241
analysis:
4342
filter:
4443
my_synonym_filter:
@@ -72,7 +71,6 @@
7271
settings:
7372
index:
7473
number_of_shards: 1
75-
number_of_replicas: 0
7674
analysis:
7775
filter:
7876
my_synonym_filter:
@@ -99,7 +97,6 @@
9997
- '{"index": {"_index": "my_index2", "_id": "2"}}'
10098
- '{"my_field": "goodbye"}'
10199

102-
103100
# An update of synonyms_set1 must trigger auto-reloading of analyzers only for synonyms_set1
104101
- do:
105102
synonyms.put_synonym:
@@ -109,8 +106,8 @@
109106
- synonyms: "hello, salute"
110107
- synonyms: "ciao => goodbye"
111108
- match: { result: "updated" }
112-
- match: { reload_analyzers_details._shards.total: 2 } # shard requests are still sent to 2 indices
113-
- match: { reload_analyzers_details._shards.successful: 2 }
109+
- gte: { reload_analyzers_details._shards.total: 2 } # shard requests are still sent to 2 indices
110+
- gte: { reload_analyzers_details._shards.successful: 2 }
114111
- length: { reload_analyzers_details.reload_details: 1 } # reload details contain only a single index
115112
- match: { reload_analyzers_details.reload_details.0.index: "my_index1" }
116113
- match: { reload_analyzers_details.reload_details.0.reloaded_analyzers.0: "my_analyzer1" }

0 commit comments

Comments
 (0)