|
16 | 16 | import org.elasticsearch.index.Index; |
17 | 17 | import org.elasticsearch.index.IndexNotFoundException; |
18 | 18 | import org.elasticsearch.index.IndexService; |
| 19 | +import org.elasticsearch.index.IndexSettings; |
19 | 20 | import org.elasticsearch.index.shard.IndexShard; |
20 | 21 | import org.elasticsearch.index.shard.IndexShardNotStartedException; |
21 | 22 | import org.elasticsearch.index.shard.ShardId; |
@@ -48,6 +49,7 @@ public void testGetOperations() throws Exception { |
48 | 49 | final Settings settings = Settings.builder() |
49 | 50 | .put("index.number_of_shards", 1) |
50 | 51 | .put("index.number_of_replicas", 0) |
| 52 | + .put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true) |
51 | 53 | .build(); |
52 | 54 | final IndexService indexService = createIndex("index", settings); |
53 | 55 |
|
@@ -130,6 +132,7 @@ public void testGetOperationsExceedByteLimit() throws Exception { |
130 | 132 | final Settings settings = Settings.builder() |
131 | 133 | .put("index.number_of_shards", 1) |
132 | 134 | .put("index.number_of_replicas", 0) |
| 135 | + .put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true) |
133 | 136 | .build(); |
134 | 137 | final IndexService indexService = createIndex("index", settings); |
135 | 138 |
|
@@ -160,6 +163,7 @@ public void testGetOperationsAlwaysReturnAtLeastOneOp() throws Exception { |
160 | 163 | final Settings settings = Settings.builder() |
161 | 164 | .put("index.number_of_shards", 1) |
162 | 165 | .put("index.number_of_replicas", 0) |
| 166 | + .put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true) |
163 | 167 | .build(); |
164 | 168 | final IndexService indexService = createIndex("index", settings); |
165 | 169 |
|
|
0 commit comments