Skip to content

Commit 1f9197b

Browse files
committed
fix tests
1 parent 281d406 commit 1f9197b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/test/java/io/split/engine/experiments/ParsedRuleBasedSegmentTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public void worksWithoutExcluded() {
5454
Assert.assertTrue(toUpdate.getToAdd().get(0).excludedSegments().isEmpty());
5555

5656
load = "{\"ff\":{\"s\":-1,\"t\":-1,\"d\":[]},\"rbs\":{\"s\":-1,\"t\":1457726098069,\"d\":[{ \"changeNumber\": 123, \"trafficTypeName\": \"user\", \"name\": \"some_name\","
57-
+ "\"status\": \"ACTIVE\",\"excluded\":{\"segments\":[\"segment1\"]},\"conditions\": [{\"contitionType\": \"ROLLOUT\","
57+
+ "\"status\": \"ACTIVE\",\"excluded\":{\"segments\":[{\"type\": \"standard\",\"name\":\"segment1\"}]},\"conditions\": [{\"contitionType\": \"ROLLOUT\","
5858
+ "\"label\": \"some_label\", \"matcherGroup\": { \"matchers\": [{ \"matcherType\": \"ALL_KEYS\", \"negate\": false}],"
5959
+ "\"combiner\": \"AND\"}}]}]}}";
6060
change = Json.fromJson(load, SplitChange.class);
6161
toUpdate = processRuleBasedSegmentChanges(parser, change.ruleBasedSegments.d);
6262
Assert.assertTrue(toUpdate.getToAdd().get(0).excludedKeys().isEmpty());
6363

6464
load = "{\"ff\":{\"s\":-1,\"t\":-1,\"d\":[]},\"rbs\":{\"s\":-1,\"t\":1457726098069,\"d\":[{ \"changeNumber\": 123, \"trafficTypeName\": \"user\", \"name\": \"some_name\","
65-
+ "\"status\": \"ACTIVE\",\"excluded\":{\"segments\":[\"segment1\"], \"keys\":null},\"conditions\": [{\"contitionType\": \"ROLLOUT\","
65+
+ "\"status\": \"ACTIVE\",\"excluded\":{\"segments\":[{\"type\": \"standard\",\"name\":\"segment1\"}], \"keys\":null},\"conditions\": [{\"contitionType\": \"ROLLOUT\","
6666
+ "\"label\": \"some_label\", \"matcherGroup\": { \"matchers\": [{ \"matcherType\": \"ALL_KEYS\", \"negate\": false}],"
6767
+ "\"combiner\": \"AND\"}}]}]}}";
6868
change = Json.fromJson(load, SplitChange.class);

0 commit comments

Comments
 (0)