Commit 6dd0ca8
authored
Remove redundant step from IndexActionIT#testAutoGenerateIdNoDuplicates (opensearch-project#18630)
testAutoGenerateIdNoDuplicates was modified back in 2014 to search all
docs in the index and to search all docs of a given type in the index.
When types were removed in OpenSearch 2.0, that second check had the
type removed, making it identical to the first check.
This change essentially goes back to the pre-2014 version, when the
test was just searching all docs in the index once.
Also, I modified the test to change index names on every iteration in
the hope that it becomes a bit less flaky. Generating a different
index on every iteration does not appear to violate the spirit of
the test.
Signed-off-by: Michael Froh <[email protected]>1 parent b1d6f55 commit 6dd0ca8
File tree
1 file changed
+7
-25
lines changed- server/src/internalClusterTest/java/org/opensearch/indexing
1 file changed
+7
-25
lines changedLines changed: 7 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
97 | | - | |
| 97 | + | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 110 | + | |
129 | 111 | | |
130 | 112 | | |
131 | 113 | | |
| |||
134 | 116 | | |
135 | 117 | | |
136 | 118 | | |
137 | | - | |
| 119 | + | |
138 | 120 | | |
139 | 121 | | |
140 | 122 | | |
| |||
0 commit comments