Skip to content

Commit

Permalink
Fix IT test
Browse files Browse the repository at this point in the history
Signed-off-by: acarbonetto <andrewc@bitquilltech.com>
  • Loading branch information
acarbonetto committed Jun 23, 2023
1 parent 9eb5cbd commit 1d89d9d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ public void testMetafieldIdentifierRoutingSelectTest() throws IOException {
String index = "test.routing_select";
String mapping = "{\"_routing\": {\"required\": true }}";
new Index(index, mapping)
.addDocWithShardId("{\"age\": 31}", "test0", "test0")
.addDocWithShardId("{\"age\": 31}", "test1", "test1")
.addDocWithShardId("{\"age\": 32}", "test2", "test2")
.addDocWithShardId("{\"age\": 33}", "test3", "test3")
.addDocWithShardId("{\"age\": 34}", "test4", "test4")
.addDocWithShardId("{\"age\": 35}", "test5", "test5")
.addDocWithShardId("{\"age\": 36}", "test6", "test6");
.addDocWithShardId("{\"age\": 35}", "test5", "test5");

// Execute using field metadata values filtering on the routing shard hash id
final JSONObject result = new JSONObject(executeQuery(
Expand All @@ -122,7 +122,7 @@ public void testMetafieldIdentifierRoutingSelectTest() throws IOException {

// Verify that the metadata values are returned when requested
verifySchema(result,
schema("age", null, "keyword"),
schema("age", null, "long"),
schema("_id", null, "keyword"),
schema("_index", null, "keyword"),
schema("_routing", null, "keyword"));
Expand All @@ -145,7 +145,7 @@ public void testMetafieldIdentifierRoutingFilterTest() throws IOException {
String index = "test.routing_filter";
String mapping = "{\"_routing\": {\"required\": true }}";
new Index(index, mapping)
.addDocWithShardId("{\"age\": 30}", "test1", "test1")
.addDocWithShardId("{\"age\": 31}", "test1", "test1")
.addDocWithShardId("{\"age\": 32}", "test2", "test2")
.addDocWithShardId("{\"age\": 33}", "test3", "test3")
.addDocWithShardId("{\"age\": 34}", "test4", "test4")
Expand Down

0 comments on commit 1d89d9d

Please sign in to comment.