@@ -652,7 +652,64 @@ def setUp(self, config_dict='config_dict'):
652
652
}
653
653
],
654
654
'id' : '11638870867'
655
+ },
656
+ {
657
+ 'experiments' : [
658
+ {
659
+ 'status' : 'Running' ,
660
+ 'key' : '11488548028' ,
661
+ 'layerId' : '11551226732' ,
662
+ 'trafficAllocation' : [
663
+ {
664
+ 'entityId' : '11557362670' ,
665
+ 'endOfRange' : 10000
666
+ }
667
+ ],
668
+ 'audienceIds' : ['0' ],
669
+ 'audienceConditions' : ['and' , ['or' , '3468206642' , '3988293898' ], ['or' , '3988293899' ,
670
+ '3468206646' , '3468206647' , '3468206644' , '3468206643' ]],
671
+ 'variations' : [
672
+ {
673
+ 'variables' : [],
674
+ 'id' : '11557362670' ,
675
+ 'key' : '11557362670' ,
676
+ 'featureEnabled' : True
677
+ }
678
+ ],
679
+ 'forcedVariations' : {},
680
+ 'id' : '11488548028'
681
+ }
682
+ ],
683
+ 'id' : '11551226732'
684
+ },
685
+ {
686
+ 'experiments' : [
687
+ {
688
+ 'status' : 'Paused' ,
689
+ 'key' : '11630490912' ,
690
+ 'layerId' : '11638870868' ,
691
+ 'trafficAllocation' : [
692
+ {
693
+ 'entityId' : '11475708559' ,
694
+ 'endOfRange' : 0
695
+ }
696
+ ],
697
+ 'audienceIds' : [],
698
+ 'variations' : [
699
+ {
700
+ 'variables' : [],
701
+ 'id' : '11475708559' ,
702
+ 'key' : '11475708559' ,
703
+ 'featureEnabled' : False
704
+ }
705
+ ],
706
+ 'forcedVariations' : {},
707
+ 'id' : '11630490912'
708
+ }
709
+ ],
710
+ 'id' : '11638870868'
655
711
}
712
+
656
713
],
657
714
'anonymizeIP' : False ,
658
715
'projectId' : '11624721371' ,
@@ -680,6 +737,27 @@ def setUp(self, config_dict='config_dict'):
680
737
],
681
738
'id' : '11567102051' ,
682
739
'key' : 'feat_with_var'
740
+ },
741
+ {
742
+ 'experimentIds' : [],
743
+ 'rolloutId' : '11551226732' ,
744
+ 'variables' : [],
745
+ 'id' : '11567102052' ,
746
+ 'key' : 'feat2'
747
+ },
748
+ {
749
+ 'experimentIds' : ['1323241599' ],
750
+ 'rolloutId' : '11638870868' ,
751
+ 'variables' : [
752
+ {
753
+ 'defaultValue' : '10' ,
754
+ 'type' : 'integer' ,
755
+ 'id' : '11535264367' ,
756
+ 'key' : 'z'
757
+ }
758
+ ],
759
+ 'id' : '11567102053' ,
760
+ 'key' : 'feat2_with_var'
683
761
}
684
762
],
685
763
'experiments' : [
@@ -732,7 +810,59 @@ def setUp(self, config_dict='config_dict'):
732
810
'audienceIds' : ['3468206642' , '3988293898' , '3988293899' , '3468206646' ,
733
811
'3468206647' , '3468206644' , '3468206643' ],
734
812
'forcedVariations' : {}
735
- }
813
+ },
814
+ {
815
+ 'id' : '1323241598' ,
816
+ 'key' : 'audience_combinations_experiment' ,
817
+ 'layerId' : '1323241598' ,
818
+ 'status' : 'Running' ,
819
+ 'variations' : [
820
+ {
821
+ 'id' : '1423767504' ,
822
+ 'key' : 'A' ,
823
+ 'variables' : []
824
+ }
825
+ ],
826
+ 'trafficAllocation' : [
827
+ {
828
+ 'entityId' : '1423767504' ,
829
+ 'endOfRange' : 10000
830
+ }
831
+ ],
832
+ 'audienceIds' : ['0' ],
833
+ 'audienceConditions' : ['and' , ['or' , '3468206642' , '3988293898' ], ['or' , '3988293899' ,
834
+ '3468206646' , '3468206647' , '3468206644' , '3468206643' ]],
835
+ 'forcedVariations' : {}
836
+ },
837
+ {
838
+ 'id' : '1323241599' ,
839
+ 'key' : 'feat2_with_var_test' ,
840
+ 'layerId' : '1323241600' ,
841
+ 'status' : 'Running' ,
842
+ 'variations' : [
843
+ {
844
+ 'variables' : [
845
+ {
846
+ 'id' : '11535264367' ,
847
+ 'value' : '150'
848
+ }
849
+ ],
850
+ 'id' : '1423767505' ,
851
+ 'key' : 'variation_2' ,
852
+ 'featureEnabled' : True
853
+ }
854
+ ],
855
+ 'trafficAllocation' : [
856
+ {
857
+ 'entityId' : '1423767505' ,
858
+ 'endOfRange' : 10000
859
+ }
860
+ ],
861
+ 'audienceIds' : ['0' ],
862
+ 'audienceConditions' : ['and' , ['or' , '3468206642' , '3988293898' ], ['or' , '3988293899' , '3468206646' ,
863
+ '3468206647' , '3468206644' , '3468206643' ]],
864
+ 'forcedVariations' : {}
865
+ },
736
866
],
737
867
'audiences' : [
738
868
{
@@ -769,44 +899,60 @@ def setUp(self, config_dict='config_dict'):
769
899
'id' : '3468206643' ,
770
900
'name' : '$$dummyExactBoolean' ,
771
901
'conditions' : '{ "type": "custom_attribute", "name": "$opt_dummy_attribute", "value": "impossible_value" }'
902
+ },
903
+ {
904
+ 'id' : '3468206645' ,
905
+ 'name' : '$$dummyMultipleCustomAttrs' ,
906
+ 'conditions' : '{ "type": "custom_attribute", "name": "$opt_dummy_attribute", "value": "impossible_value" }'
907
+ },
908
+ {
909
+ 'id' : '0' ,
910
+ 'name' : '$$dummy' ,
911
+ 'conditions' : '{ "type": "custom_attribute", "name": "$opt_dummy_attribute", "value": "impossible_value" }' ,
772
912
}
773
913
],
774
914
'typedAudiences' : [
775
915
{
776
916
'id' : '3988293898' ,
777
917
'name' : 'substringString' ,
778
918
'conditions' : ['and' , ['or' , ['or' , {'name' : 'house' , 'type' : 'custom_attribute' ,
779
- 'match' : 'substring' , 'value' : 'Slytherin' }]]]
919
+ 'match' : 'substring' , 'value' : 'Slytherin' }]]]
780
920
},
781
921
{
782
922
'id' : '3988293899' ,
783
923
'name' : 'exists' ,
784
924
'conditions' : ['and' , ['or' , ['or' , {'name' : 'favorite_ice_cream' , 'type' : 'custom_attribute' ,
785
- 'match' : 'exists' }]]]
925
+ 'match' : 'exists' }]]]
786
926
},
787
927
{
788
928
'id' : '3468206646' ,
789
929
'name' : 'exactNumber' ,
790
930
'conditions' : ['and' , ['or' , ['or' , {'name' : 'lasers' , 'type' : 'custom_attribute' ,
791
- 'match' : 'exact' , 'value' : 45.5 }]]]
931
+ 'match' : 'exact' , 'value' : 45.5 }]]]
792
932
},
793
933
{
794
934
'id' : '3468206647' ,
795
935
'name' : 'gtNumber' ,
796
936
'conditions' : ['and' , ['or' , ['or' , {'name' : 'lasers' , 'type' : 'custom_attribute' ,
797
- 'match' : 'gt' , 'value' : 70 }]]]
937
+ 'match' : 'gt' , 'value' : 70 }]]]
798
938
},
799
939
{
800
940
'id' : '3468206644' ,
801
941
'name' : 'ltNumber' ,
802
942
'conditions' : ['and' , ['or' , ['or' , {'name' : 'lasers' , 'type' : 'custom_attribute' ,
803
- 'match' : 'lt' , 'value' : 1.0 }]]]
943
+ 'match' : 'lt' , 'value' : 1.0 }]]]
804
944
},
805
945
{
806
946
'id' : '3468206643' ,
807
947
'name' : 'exactBoolean' ,
808
948
'conditions' : ['and' , ['or' , ['or' , {'name' : 'should_do_it' , 'type' : 'custom_attribute' ,
809
- 'match' : 'exact' , 'value' : True }]]]
949
+ 'match' : 'exact' , 'value' : True }]]]
950
+ },
951
+ {
952
+ 'id' : '3468206645' ,
953
+ 'name' : 'multiple_custom_attrs' ,
954
+ 'conditions' : ["and" , ["or" , ["or" , {"type" : "custom_attribute" , "name" : "browser" , "value" : "chrome" },
955
+ {"type" : "custom_attribute" , "name" : "browser" , "value" : "firefox" }]]]
810
956
}
811
957
],
812
958
'groups' : [],
@@ -838,6 +984,11 @@ def setUp(self, config_dict='config_dict'):
838
984
'11564051718' ,
839
985
'1323241597'
840
986
]
987
+ },
988
+ {
989
+ 'key' : 'user_signed_up' ,
990
+ 'id' : '594090' ,
991
+ 'experimentIds' : ['1323241598' , '1323241599' ],
841
992
}
842
993
],
843
994
'revision' : '3'
0 commit comments