@@ -131,15 +131,10 @@ def setUp(self):
131
131
'id' : '111094'
132
132
}],
133
133
'audiences' : [{
134
- 'name' : 'Test attribute users 1 ' ,
134
+ 'name' : 'Test attribute users' ,
135
135
'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 "}]]]' ,
137
137
'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'
143
138
}],
144
139
'projectId' : '111001'
145
140
}
@@ -247,15 +242,10 @@ def setUp(self):
247
242
'id' : '111094'
248
243
}],
249
244
'audiences' : [{
250
- 'name' : 'Test attribute users 1 ' ,
245
+ 'name' : 'Test attribute users' ,
251
246
'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 "}]]]' ,
253
248
'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'
259
249
}],
260
250
'rollouts' : [{
261
251
'id' : '211111' ,
@@ -267,48 +257,24 @@ def setUp(self):
267
257
'layerId' : '211111' ,
268
258
'audienceIds' : ['11154' ],
269
259
'trafficAllocation' : [{
260
+ 'entityId' : '211128' ,
261
+ 'endOfRange' : 5000
262
+ }, {
270
263
'entityId' : '211129' ,
271
264
'endOfRange' : 9000
272
265
}],
273
266
'variations' : [{
267
+ 'key' : '211128' ,
268
+ 'id' : '211128'
269
+ }, {
274
270
'key' : '211129' ,
275
271
'id' : '211129'
276
272
}]
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
- }]
307
273
}]
308
274
}],
309
275
'featureFlags' : [{
310
276
'id' : '91111' ,
311
- 'key' : 'test_feature_in_experiment ' ,
277
+ 'key' : 'test_feature_1 ' ,
312
278
'experimentIds' : ['111127' ],
313
279
'rolloutId' : '' ,
314
280
'variables' : [{
@@ -324,7 +290,7 @@ def setUp(self):
324
290
}]
325
291
}, {
326
292
'id' : '91112' ,
327
- 'key' : 'test_feature_in_rollout ' ,
293
+ 'key' : 'test_feature_2 ' ,
328
294
'experimentIds' : [],
329
295
'rolloutId' : '211111' ,
330
296
'variables' : [],
@@ -458,13 +424,8 @@ def setUp(self):
458
424
'audiences' : [{
459
425
'name' : 'Test attribute users' ,
460
426
'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 "}]]]' ,
462
428
'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'
468
429
}],
469
430
'projectId' : '111001'
470
431
}
@@ -513,15 +474,10 @@ def setUp(self):
513
474
'id' : '111094'
514
475
}],
515
476
'audiences' : [{
516
- 'name' : 'Test attribute users 1 ' ,
477
+ 'name' : 'Test attribute users' ,
517
478
'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 "}]]]' ,
519
480
'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'
525
481
}],
526
482
'rollouts' : [{
527
483
'id' : '211111' ,
@@ -533,43 +489,19 @@ def setUp(self):
533
489
'layerId' : '211111' ,
534
490
'audienceIds' : ['11154' ],
535
491
'trafficAllocation' : [{
492
+ 'entityId' : '211128' ,
493
+ 'endOfRange' : 5000
494
+ }, {
536
495
'entityId' : '211129' ,
537
496
'endOfRange' : 9000
538
497
}],
539
498
'variations' : [{
499
+ 'key' : '211128' ,
500
+ 'id' : '211128'
501
+ }, {
540
502
'key' : '211129' ,
541
503
'id' : '211129'
542
504
}]
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
- }]
573
505
}]
574
506
}],
575
507
'featureFlags' : [{
0 commit comments