@@ -196,6 +196,78 @@ def setUp(self, config_dict='config_dict'):
196196 },
197197 ],
198198 },
199+ {
200+ 'key' : 'test_experiment3' ,
201+ 'status' : 'Running' ,
202+ 'layerId' : '6' ,
203+ "audienceConditions" : [
204+ "or" ,
205+ "11160"
206+ ],
207+ 'audienceIds' : ['11160' ],
208+ 'id' : '111134' ,
209+ 'forcedVariations' : {},
210+ 'trafficAllocation' : [
211+ {'entityId' : '222239' , 'endOfRange' : 2500 },
212+ {'entityId' : '' , 'endOfRange' : 5000 },
213+ {'entityId' : '' , 'endOfRange' : 7500 },
214+ {'entityId' : '' , 'endOfRange' : 10000 }
215+ ],
216+ 'variations' : [
217+ {
218+ 'id' : '222239' ,
219+ 'key' : 'control' ,
220+ 'variables' : [],
221+ }
222+ ],
223+ },
224+ {
225+ 'key' : 'test_experiment4' ,
226+ 'status' : 'Running' ,
227+ 'layerId' : '7' ,
228+ "audienceConditions" : [
229+ "or" ,
230+ "11160"
231+ ],
232+ 'audienceIds' : ['11160' ],
233+ 'id' : '111135' ,
234+ 'forcedVariations' : {},
235+ 'trafficAllocation' : [
236+ {'entityId' : '222240' , 'endOfRange' : 5000 },
237+ {'entityId' : '' , 'endOfRange' : 7500 },
238+ {'entityId' : '' , 'endOfRange' : 10000 }
239+ ],
240+ 'variations' : [
241+ {
242+ 'id' : '222240' ,
243+ 'key' : 'control' ,
244+ 'variables' : [],
245+ }
246+ ],
247+ },
248+ {
249+ 'key' : 'test_experiment5' ,
250+ 'status' : 'Running' ,
251+ 'layerId' : '8' ,
252+ "audienceConditions" : [
253+ "or" ,
254+ "11160"
255+ ],
256+ 'audienceIds' : ['11160' ],
257+ 'id' : '111136' ,
258+ 'forcedVariations' : {},
259+ 'trafficAllocation' : [
260+ {'entityId' : '222241' , 'endOfRange' : 7500 },
261+ {'entityId' : '' , 'endOfRange' : 10000 }
262+ ],
263+ 'variations' : [
264+ {
265+ 'id' : '222241' ,
266+ 'key' : 'control' ,
267+ 'variables' : [],
268+ }
269+ ],
270+ },
199271 ],
200272 'groups' : [
201273 {
@@ -239,6 +311,72 @@ def setUp(self, config_dict='config_dict'):
239311 {'entityId' : '32222' , "endOfRange" : 3000 },
240312 {'entityId' : '32223' , 'endOfRange' : 7500 },
241313 ],
314+ },
315+ {
316+ 'id' : '19229' ,
317+ 'policy' : 'random' ,
318+ 'experiments' : [
319+ {
320+ 'id' : '42222' ,
321+ 'key' : 'group_2_exp_1' ,
322+ 'status' : 'Running' ,
323+ "audienceConditions" : [
324+ "or" ,
325+ "11160"
326+ ],
327+ 'audienceIds' : ['11160' ],
328+ 'layerId' : '211183' ,
329+ 'variations' : [
330+ {'key' : 'var_1' , 'id' : '38901' },
331+ ],
332+ 'forcedVariations' : {},
333+ 'trafficAllocation' : [
334+ {'entityId' : '38901' , 'endOfRange' : 10000 }
335+ ],
336+ },
337+ {
338+ 'id' : '42223' ,
339+ 'key' : 'group_2_exp_2' ,
340+ 'status' : 'Running' ,
341+ "audienceConditions" : [
342+ "or" ,
343+ "11160"
344+ ],
345+ 'audienceIds' : ['11160' ],
346+ 'layerId' : '211184' ,
347+ 'variations' : [
348+ {'key' : 'var_1' , 'id' : '38905' }
349+ ],
350+ 'forcedVariations' : {},
351+ 'trafficAllocation' : [
352+ {'entityId' : '38905' , 'endOfRange' : 10000 }
353+ ],
354+ },
355+ {
356+ 'id' : '42224' ,
357+ 'key' : 'group_2_exp_3' ,
358+ 'status' : 'Running' ,
359+ "audienceConditions" : [
360+ "or" ,
361+ "11160"
362+ ],
363+ 'audienceIds' : ['11160' ],
364+ 'layerId' : '211185' ,
365+ 'variations' : [
366+ {'key' : 'var_1' , 'id' : '38906' }
367+ ],
368+ 'forcedVariations' : {},
369+ 'trafficAllocation' : [
370+ {'entityId' : '38906' , 'endOfRange' : 10000 }
371+ ],
372+ }
373+ ],
374+ 'trafficAllocation' : [
375+ {'entityId' : '42222' , "endOfRange" : 2500 },
376+ {'entityId' : '42223' , 'endOfRange' : 5000 },
377+ {'entityId' : '42224' , "endOfRange" : 7500 },
378+ {'entityId' : '' , 'endOfRange' : 10000 },
379+ ],
242380 }
243381 ],
244382 'attributes' : [{'key' : 'test_attribute' , 'id' : '111094' }],
@@ -255,6 +393,12 @@ def setUp(self, config_dict='config_dict'):
255393 '{"name": "test_attribute", "type": "custom_attribute", "value": "test_value_2"}]]]' ,
256394 'id' : '11159' ,
257395 },
396+ {
397+ 'name' : 'Test attribute users 3' ,
398+ 'conditions' : "[\" and\" , [\" or\" , [\" or\" , {\" match\" : \" exact\" , \" name\" : \
399+ \" experiment_attr\" , \" type\" : \" custom_attribute\" , \" value\" : \" group_experiment\" }]]]" ,
400+ 'id' : '11160' ,
401+ }
258402 ],
259403 'rollouts' : [
260404 {'id' : '201111' , 'experiments' : []},
@@ -364,6 +508,20 @@ def setUp(self, config_dict='config_dict'):
364508 'rolloutId' : '211111' ,
365509 'variables' : [],
366510 },
511+ {
512+ 'id' : '91115' ,
513+ 'key' : 'test_feature_in_exclusion_group' ,
514+ 'experimentIds' : ['42222' , '42223' , '42224' ],
515+ 'rolloutId' : '211111' ,
516+ 'variables' : [],
517+ },
518+ {
519+ 'id' : '91116' ,
520+ 'key' : 'test_feature_in_multiple_experiments' ,
521+ 'experimentIds' : ['111134' , '111135' , '111136' ],
522+ 'rolloutId' : '211111' ,
523+ 'variables' : [],
524+ },
367525 ],
368526 }
369527
0 commit comments