@@ -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