@@ -131,15 +131,10 @@ def setUp(self):
131131 'id' : '111094'
132132 }],
133133 'audiences' : [{
134- 'name' : 'Test attribute users 1 ' ,
134+ 'name' : 'Test attribute users' ,
135135 'conditions' : '["and", ["or", ["or", '
136- '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value_1 "}]]]' ,
136+ '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value "}]]]' ,
137137 'id' : '11154'
138- }, {
139- 'name' : 'Test attribute users 2' ,
140- 'conditions' : '["and", ["or", ["or", '
141- '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value_2"}]]]' ,
142- 'id' : '11159'
143138 }],
144139 'projectId' : '111001'
145140 }
@@ -247,15 +242,10 @@ def setUp(self):
247242 'id' : '111094'
248243 }],
249244 'audiences' : [{
250- 'name' : 'Test attribute users 1 ' ,
245+ 'name' : 'Test attribute users' ,
251246 'conditions' : '["and", ["or", ["or", '
252- '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value_1 "}]]]' ,
247+ '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value "}]]]' ,
253248 'id' : '11154'
254- }, {
255- 'name' : 'Test attribute users 2' ,
256- 'conditions' : '["and", ["or", ["or", '
257- '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value_2"}]]]' ,
258- 'id' : '11159'
259249 }],
260250 'rollouts' : [{
261251 'id' : '211111' ,
@@ -267,48 +257,24 @@ def setUp(self):
267257 'layerId' : '211111' ,
268258 'audienceIds' : ['11154' ],
269259 'trafficAllocation' : [{
260+ 'entityId' : '211128' ,
261+ 'endOfRange' : 5000
262+ }, {
270263 'entityId' : '211129' ,
271264 'endOfRange' : 9000
272265 }],
273266 'variations' : [{
267+ 'key' : '211128' ,
268+ 'id' : '211128'
269+ }, {
274270 'key' : '211129' ,
275271 'id' : '211129'
276272 }]
277- }, {
278- 'id' : '211137' ,
279- 'key' : '211137' ,
280- 'status' : 'Running' ,
281- 'forcedVariations' : {},
282- 'layerId' : '211111' ,
283- 'audienceIds' : ['11159' ],
284- 'trafficAllocation' : [{
285- 'entityId' : '211139' ,
286- 'endOfRange' : 3000
287- }],
288- 'variations' : [{
289- 'key' : '211139' ,
290- 'id' : '211139'
291- }]
292- }, {
293- 'id' : '211147' ,
294- 'key' : '211147' ,
295- 'status' : 'Running' ,
296- 'forcedVariations' : {},
297- 'layerId' : '211111' ,
298- 'audienceIds' : [],
299- 'trafficAllocation' : [{
300- 'entityId' : '211149' ,
301- 'endOfRange' : 6000
302- }],
303- 'variations' : [{
304- 'key' : '211149' ,
305- 'id' : '211149'
306- }]
307273 }]
308274 }],
309275 'featureFlags' : [{
310276 'id' : '91111' ,
311- 'key' : 'test_feature_in_experiment ' ,
277+ 'key' : 'test_feature_1 ' ,
312278 'experimentIds' : ['111127' ],
313279 'rolloutId' : '' ,
314280 'variables' : [{
@@ -324,7 +290,7 @@ def setUp(self):
324290 }]
325291 }, {
326292 'id' : '91112' ,
327- 'key' : 'test_feature_in_rollout ' ,
293+ 'key' : 'test_feature_2 ' ,
328294 'experimentIds' : [],
329295 'rolloutId' : '211111' ,
330296 'variables' : [],
@@ -458,13 +424,8 @@ def setUp(self):
458424 'audiences' : [{
459425 'name' : 'Test attribute users' ,
460426 'conditions' : '["and", ["or", ["or", '
461- '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value_1 "}]]]' ,
427+ '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value "}]]]' ,
462428 'id' : '11154'
463- }, {
464- 'name' : 'Test attribute users' ,
465- 'conditions' : '["and", ["or", ["or", '
466- '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value_2"}]]]' ,
467- 'id' : '11159'
468429 }],
469430 'projectId' : '111001'
470431 }
@@ -513,15 +474,10 @@ def setUp(self):
513474 'id' : '111094'
514475 }],
515476 'audiences' : [{
516- 'name' : 'Test attribute users 1 ' ,
477+ 'name' : 'Test attribute users' ,
517478 'conditions' : '["and", ["or", ["or", '
518- '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value_1 "}]]]' ,
479+ '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value "}]]]' ,
519480 'id' : '11154'
520- }, {
521- 'name' : 'Test attribute users 2' ,
522- 'conditions' : '["and", ["or", ["or", '
523- '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value_2"}]]]' ,
524- 'id' : '11159'
525481 }],
526482 'rollouts' : [{
527483 'id' : '211111' ,
@@ -533,43 +489,19 @@ def setUp(self):
533489 'layerId' : '211111' ,
534490 'audienceIds' : ['11154' ],
535491 'trafficAllocation' : [{
492+ 'entityId' : '211128' ,
493+ 'endOfRange' : 5000
494+ }, {
536495 'entityId' : '211129' ,
537496 'endOfRange' : 9000
538497 }],
539498 'variations' : [{
499+ 'key' : '211128' ,
500+ 'id' : '211128'
501+ }, {
540502 'key' : '211129' ,
541503 'id' : '211129'
542504 }]
543- }, {
544- 'id' : '211137' ,
545- 'key' : '211137' ,
546- 'status' : 'Running' ,
547- 'forcedVariations' : {},
548- 'layerId' : '211111' ,
549- 'audienceIds' : ['11159' ],
550- 'trafficAllocation' : [{
551- 'entityId' : '211139' ,
552- 'endOfRange' : 3000
553- }],
554- 'variations' : [{
555- 'key' : '211139' ,
556- 'id' : '211139'
557- }]
558- }, {
559- 'id' : '211147' ,
560- 'key' : '211147' ,
561- 'status' : 'Running' ,
562- 'forcedVariations' : {},
563- 'layerId' : '211111' ,
564- 'audienceIds' : [],
565- 'trafficAllocation' : [{
566- 'entityId' : '211149' ,
567- 'endOfRange' : 6000
568- }],
569- 'variations' : [{
570- 'key' : '211149' ,
571- 'id' : '211149'
572- }]
573505 }]
574506 }],
575507 'featureFlags' : [{
0 commit comments