|
50 | 50 | } |
51 | 51 |
|
52 | 52 |
|
| 53 | +_multivariate_feature_state = { |
| 54 | + "multivariate_feature_state_values": [ |
| 55 | + { |
| 56 | + "id": 1, |
| 57 | + "multivariate_feature_option": {"id": 1, "value": "variant_a"}, |
| 58 | + "percentage_allocation": 50, |
| 59 | + }, |
| 60 | + { |
| 61 | + "id": 2, |
| 62 | + "multivariate_feature_option": {"id": 2, "value": "variant_b"}, |
| 63 | + "percentage_allocation": 50, |
| 64 | + }, |
| 65 | + ], |
| 66 | + "feature_state_value": "control", |
| 67 | + "featurestate_uuid": "e4g9c5d3-8b52-6g79-1hfd-cg8g54f51i0g", |
| 68 | + "feature": { |
| 69 | + "name": "mv_feature", |
| 70 | + "type": "MULTIVARIATE", |
| 71 | + "id": 4, |
| 72 | + }, |
| 73 | + "enabled": True, |
| 74 | +} |
| 75 | + |
| 76 | + |
53 | 77 | _segment_1 = { |
54 | 78 | "name": "segment_1", |
55 | 79 | "rules": [ |
|
157 | 181 | "project": _project_with_hide_disabled_flags, |
158 | 182 | "id": 2, |
159 | 183 | } |
| 184 | + |
| 185 | + |
| 186 | +_project_with_multivariate = { |
| 187 | + "name": "project-with-multivariate", |
| 188 | + "organisation": { |
| 189 | + "feature_analytics": False, |
| 190 | + "name": "org-1", |
| 191 | + "id": 1, |
| 192 | + "persist_trait_data": True, |
| 193 | + "stop_serving_flags": False, |
| 194 | + }, |
| 195 | + "id": 3, |
| 196 | + "hide_disabled_flags": False, |
| 197 | + "segments": [], |
| 198 | + "server_key_only_feature_ids": [], |
| 199 | +} |
| 200 | + |
| 201 | + |
| 202 | +environment_with_multivariate_feature = { |
| 203 | + "updated_at": "1969-07-20T20:17:40Z", |
| 204 | + "name": "environment_with_multivariate", |
| 205 | + "feature_states": [ |
| 206 | + _environment_feature_state_1, |
| 207 | + _multivariate_feature_state, |
| 208 | + ], |
| 209 | + "identity_overrides": [], |
| 210 | + "api_key": "env_with_multivariate_key", |
| 211 | + "project": _project_with_multivariate, |
| 212 | + "id": 3, |
| 213 | +} |
0 commit comments