@@ -210,7 +210,7 @@ public void getTreatmentWithStreamingDisabled() throws Exception {
210210
211211 @ Test
212212 public void managerSplitsWithStreamingEnabled () throws Exception {
213- MockResponse response = new MockResponse ().setBody ("{\" ff\" :{\" d\" : [], \" s\" :1585948850109, \" t\" :1585948850109}, \" rbs\" :{\" d\" :[],\" s\" :-1 ,\" t\" :-1 }}" );
213+ MockResponse response = new MockResponse ().setBody ("{\" ff\" :{\" d\" : [], \" s\" :1585948850109, \" t\" :1585948850109}, \" rbs\" :{\" d\" :[],\" s\" :1585948850109 ,\" t\" :1585948850109 }}" );
214214 Queue responses = new LinkedList <>();
215215 responses .add (response );
216216 SplitMockServer splitServer = new SplitMockServer (CustomDispatcher .builder ()
@@ -250,9 +250,9 @@ public void managerSplitsWithStreamingEnabled() throws Exception {
250250
251251 @ Test
252252 public void splitClientOccupancyNotifications () throws Exception {
253- MockResponse response = new MockResponse ().setBody ("{\" ff\" :{\" d\" : [], \" s\" :1585948850109, \" t\" :1585948850109}, \" rbs\" :{\" d\" :[],\" s\" :-1 ,\" t\" :-1 }}" );
254- MockResponse response2 = new MockResponse ().setBody ("{\" ff\" :{\" d\" : [], \" s\" :1585948850110, \" t\" :1585948850110}, \" rbs\" :{\" d\" :[],\" s\" :-1 ,\" t\" :-1 }}" );
255- MockResponse response3 = new MockResponse ().setBody ("{\" ff\" :{\" d\" : [], \" s\" :1585948850111, \" t\" :1585948850111}, \" rbs\" :{\" d\" :[],\" s\" :-1 ,\" t\" :-1 }}" );
253+ MockResponse response = new MockResponse ().setBody ("{\" ff\" :{\" d\" : [], \" s\" :1585948850109, \" t\" :1585948850109}, \" rbs\" :{\" d\" :[],\" s\" :1585948850109 ,\" t\" :1585948850109 }}" );
254+ MockResponse response2 = new MockResponse ().setBody ("{\" ff\" :{\" d\" : [], \" s\" :1585948850110, \" t\" :1585948850110}, \" rbs\" :{\" d\" :[],\" s\" :1585948850110 ,\" t\" :1585948850110 }}" );
255+ MockResponse response3 = new MockResponse ().setBody ("{\" ff\" :{\" d\" : [], \" s\" :1585948850111, \" t\" :1585948850111}, \" rbs\" :{\" d\" :[],\" s\" :1585948850111 ,\" t\" :1585948850111 }}" );
256256 Queue responses = new LinkedList <>();
257257 responses .add (response );
258258 Queue responses2 = new LinkedList <>();
@@ -420,7 +420,7 @@ public void splitClientControlNotifications() throws Exception {
420420
421421 @ Test
422422 public void splitClientMultiFactory () throws Exception {
423- MockResponse response = new MockResponse ().setBody ("{\" ff\" :{\" d\" : [], \" s\" :1585948850109, \" t\" :1585948850109}, \" rbs\" :{\" d\" :[],\" s\" :-1 ,\" t\" :-1 }}" );
423+ MockResponse response = new MockResponse ().setBody ("{\" ff\" :{\" d\" : [], \" s\" :1585948850109, \" t\" :1585948850109}, \" rbs\" :{\" d\" :[],\" s\" :1585948850109 ,\" t\" :1585948850109 }}" );
424424 Queue responses = new LinkedList <>();
425425 responses .add (response );
426426 responses .add (response );
@@ -752,8 +752,8 @@ public void testPluggableMode() throws IOException, URISyntaxException {
752752
753753 @ Test
754754 public void getTreatmentFlagSetWithPolling () throws Exception {
755- MockResponse response = new MockResponse ().setBody ("{\" splits\" :[{\" trafficTypeName\" :\" client\" ,\" name\" :\" workm\" ,\" trafficAllocation\" :100,\" trafficAllocationSeed\" :147392224,\" seed\" :524417105,\" status\" :\" ACTIVE\" ,\" killed\" :false,\" defaultTreatment\" :\" on\" ,\" changeNumber\" :1602796638344,\" algo\" :2,\" configurations\" :{},\" sets\" :[\" set1\" ,\" set2\" ],\" conditions\" :[{\" conditionType\" :\" ROLLOUT\" ,\" matcherGroup\" :{\" combiner\" :\" AND\" ,\" matchers\" :[{\" keySelector\" :{\" trafficType\" :\" client\" ,\" attribute\" :null},\" matcherType\" :\" IN_SEGMENT\" ,\" negate\" :false,\" userDefinedSegmentMatcherData\" :{\" segmentName\" :\" new_segment\" },\" whitelistMatcherData\" :null,\" unaryNumericMatcherData\" :null,\" betweenMatcherData\" :null,\" booleanMatcherData\" :null,\" dependencyMatcherData\" :null,\" stringMatcherData\" :null}]},\" partitions\" :[{\" treatment\" :\" on\" ,\" size\" :0},{\" treatment\" :\" off\" ,\" size\" :0},{\" treatment\" :\" free\" ,\" size\" :100},{\" treatment\" :\" conta\" ,\" size\" :0}],\" label\" :\" in segment new_segment\" },{\" conditionType\" :\" ROLLOUT\" ,\" matcherGroup\" :{\" combiner\" :\" AND\" ,\" matchers\" :[{\" keySelector\" :{\" trafficType\" :\" client\" ,\" attribute\" :null},\" matcherType\" :\" ALL_KEYS\" ,\" negate\" :false,\" userDefinedSegmentMatcherData\" :null,\" whitelistMatcherData\" :null,\" unaryNumericMatcherData\" :null,\" betweenMatcherData\" :null,\" booleanMatcherData\" :null,\" dependencyMatcherData\" :null,\" stringMatcherData\" :null}]},\" partitions\" :[{\" treatment\" :\" on\" ,\" size\" :100},{\" treatment\" :\" off\" ,\" size\" :0},{\" treatment\" :\" free\" ,\" size\" :0},{\" treatment\" :\" conta\" ,\" size\" :0}],\" label\" :\" default rule\" }]},{\" trafficTypeName\" :\" client\" ,\" name\" :\" workm_set_3\" ,\" trafficAllocation\" :100,\" trafficAllocationSeed\" :147392224,\" seed\" :524417105,\" status\" :\" ACTIVE\" ,\" killed\" :false,\" defaultTreatment\" :\" on\" ,\" changeNumber\" :1602796638344,\" algo\" :2,\" configurations\" :{},\" sets\" :[\" set3\" ],\" conditions\" :[{\" conditionType\" :\" ROLLOUT\" ,\" matcherGroup\" :{\" combiner\" :\" AND\" ,\" matchers\" :[{\" keySelector\" :{\" trafficType\" :\" client\" ,\" attribute\" :null},\" matcherType\" :\" IN_SEGMENT\" ,\" negate\" :false,\" userDefinedSegmentMatcherData\" :{\" segmentName\" :\" new_segment\" },\" whitelistMatcherData\" :null,\" unaryNumericMatcherData\" :null,\" betweenMatcherData\" :null,\" booleanMatcherData\" :null,\" dependencyMatcherData\" :null,\" stringMatcherData\" :null}]},\" partitions\" :[{\" treatment\" :\" on\" ,\" size\" :0},{\" treatment\" :\" off\" ,\" size\" :0},{\" treatment\" :\" free\" ,\" size\" :100},{\" treatment\" :\" conta\" ,\" size\" :0}],\" label\" :\" in segment new_segment\" },{\" conditionType\" :\" ROLLOUT\" ,\" matcherGroup\" :{\" combiner\" :\" AND\" ,\" matchers\" :[{\" keySelector\" :{\" trafficType\" :\" client\" ,\" attribute\" :null},\" matcherType\" :\" ALL_KEYS\" ,\" negate\" :false,\" userDefinedSegmentMatcherData\" :null,\" whitelistMatcherData\" :null,\" unaryNumericMatcherData\" :null,\" betweenMatcherData\" :null,\" booleanMatcherData\" :null,\" dependencyMatcherData\" :null,\" stringMatcherData\" :null}]},\" partitions\" :[{\" treatment\" :\" on\" ,\" size\" :100},{\" treatment\" :\" off\" ,\" size\" :0},{\" treatment\" :\" free\" ,\" size\" :0},{\" treatment\" :\" conta\" ,\" size\" :0}],\" label\" :\" default rule\" }]}],\" since\" :-1,\" till\" :1602796638344}" );
756- MockResponse responseFlag = new MockResponse ().setBody ("{\" splits \" : [], \" since \" :1602796638344, \" till \" :1602796638344}" );
755+ MockResponse response = new MockResponse ().setBody ("{\" ff\" :{\" d\" :[{\" trafficTypeName\" :\" client\" ,\" name\" :\" workm\" ,\" trafficAllocation\" :100,\" trafficAllocationSeed\" :147392224,\" seed\" :524417105,\" status\" :\" ACTIVE\" ,\" killed\" :false,\" defaultTreatment\" :\" on\" ,\" changeNumber\" :1602796638344,\" algo\" :2,\" configurations\" :{},\" sets\" :[\" set1\" ,\" set2\" ],\" conditions\" :[{\" conditionType\" :\" ROLLOUT\" ,\" matcherGroup\" :{\" combiner\" :\" AND\" ,\" matchers\" :[{\" keySelector\" :{\" trafficType\" :\" client\" ,\" attribute\" :null},\" matcherType\" :\" IN_SEGMENT\" ,\" negate\" :false,\" userDefinedSegmentMatcherData\" :{\" segmentName\" :\" new_segment\" },\" whitelistMatcherData\" :null,\" unaryNumericMatcherData\" :null,\" betweenMatcherData\" :null,\" booleanMatcherData\" :null,\" dependencyMatcherData\" :null,\" stringMatcherData\" :null}]},\" partitions\" :[{\" treatment\" :\" on\" ,\" size\" :0},{\" treatment\" :\" off\" ,\" size\" :0},{\" treatment\" :\" free\" ,\" size\" :100},{\" treatment\" :\" conta\" ,\" size\" :0}],\" label\" :\" in segment new_segment\" },{\" conditionType\" :\" ROLLOUT\" ,\" matcherGroup\" :{\" combiner\" :\" AND\" ,\" matchers\" :[{\" keySelector\" :{\" trafficType\" :\" client\" ,\" attribute\" :null},\" matcherType\" :\" ALL_KEYS\" ,\" negate\" :false,\" userDefinedSegmentMatcherData\" :null,\" whitelistMatcherData\" :null,\" unaryNumericMatcherData\" :null,\" betweenMatcherData\" :null,\" booleanMatcherData\" :null,\" dependencyMatcherData\" :null,\" stringMatcherData\" :null}]},\" partitions\" :[{\" treatment\" :\" on\" ,\" size\" :100},{\" treatment\" :\" off\" ,\" size\" :0},{\" treatment\" :\" free\" ,\" size\" :0},{\" treatment\" :\" conta\" ,\" size\" :0}],\" label\" :\" default rule\" }]},{\" trafficTypeName\" :\" client\" ,\" name\" :\" workm_set_3\" ,\" trafficAllocation\" :100,\" trafficAllocationSeed\" :147392224,\" seed\" :524417105,\" status\" :\" ACTIVE\" ,\" killed\" :false,\" defaultTreatment\" :\" on\" ,\" changeNumber\" :1602796638344,\" algo\" :2,\" configurations\" :{},\" sets\" :[\" set3\" ],\" conditions\" :[{\" conditionType\" :\" ROLLOUT\" ,\" matcherGroup\" :{\" combiner\" :\" AND\" ,\" matchers\" :[{\" keySelector\" :{\" trafficType\" :\" client\" ,\" attribute\" :null},\" matcherType\" :\" IN_SEGMENT\" ,\" negate\" :false,\" userDefinedSegmentMatcherData\" :{\" segmentName\" :\" new_segment\" },\" whitelistMatcherData\" :null,\" unaryNumericMatcherData\" :null,\" betweenMatcherData\" :null,\" booleanMatcherData\" :null,\" dependencyMatcherData\" :null,\" stringMatcherData\" :null}]},\" partitions\" :[{\" treatment\" :\" on\" ,\" size\" :0},{\" treatment\" :\" off\" ,\" size\" :0},{\" treatment\" :\" free\" ,\" size\" :100},{\" treatment\" :\" conta\" ,\" size\" :0}],\" label\" :\" in segment new_segment\" },{\" conditionType\" :\" ROLLOUT\" ,\" matcherGroup\" :{\" combiner\" :\" AND\" ,\" matchers\" :[{\" keySelector\" :{\" trafficType\" :\" client\" ,\" attribute\" :null},\" matcherType\" :\" ALL_KEYS\" ,\" negate\" :false,\" userDefinedSegmentMatcherData\" :null,\" whitelistMatcherData\" :null,\" unaryNumericMatcherData\" :null,\" betweenMatcherData\" :null,\" booleanMatcherData\" :null,\" dependencyMatcherData\" :null,\" stringMatcherData\" :null}]},\" partitions\" :[{\" treatment\" :\" on\" ,\" size\" :100},{\" treatment\" :\" off\" ,\" size\" :0},{\" treatment\" :\" free\" ,\" size\" :0},{\" treatment\" :\" conta\" ,\" size\" :0}],\" label\" :\" default rule\" }]}],\" s\" :-1,\" t\" :1602796638344},\" rbs\" :{\" d\" :[],\" t\" :-1,\" s\" :-1}}" );
756+ MockResponse responseFlag = new MockResponse ().setBody ("{\" ff \" :{ \" d \" : [], \" s \" :1602796638344, \" t \" :1602796638344}, \" rbs \" :{ \" d \" :[], \" t \" :-1, \" s \" :-1} }" );
757757 MockResponse segmentResponse = new MockResponse ().setBody ("{\" name\" :\" new_segment\" ,\" added\" :[\" user-1\" ],\" removed\" :[\" user-2\" ,\" user-3\" ],\" since\" :-1,\" till\" :-1}" );
758758 Queue responses = new LinkedList <>();
759759 responses .add (response );
0 commit comments