diff --git a/ufc/bandit-flags-v1.json b/ufc/bandit-flags-v1.json index 955b1e04..1b69dd01 100644 --- a/ufc/bandit-flags-v1.json +++ b/ufc/bandit-flags-v1.json @@ -1,5 +1,8 @@ { "createdAt": "2024-04-17T19:40:53.716Z", + "environment": { + "name": "Test" + }, "flags": { "non_bandit_flag": { "key": "non_bandit_flag", @@ -12,6 +15,7 @@ "allocations": [ { "key": "control-allocation", + "name": "Allocation for control-allocation", "splits": [ { "variationKey": "control", @@ -33,6 +37,7 @@ "allocations": [ { "key": "control-allocation", + "name": "Allocation for control-allocation", "splits": [ { "variationKey": "control", @@ -54,6 +59,7 @@ "allocations": [ { "key": "analysis", + "name": "Allocation for analysis", "splits": [ { "variationKey": "control", @@ -86,6 +92,7 @@ }, { "key": "training", + "name": "Allocation for training", "splits": [ { "variationKey": "banner_bandit", @@ -113,6 +120,7 @@ "allocations": [ { "key": "training", + "name": "Allocation for training", "rules": [ { "conditions": [ @@ -136,6 +144,7 @@ }, { "key": "default", + "name": "Allocation for default", "rules": [], "splits": [ { diff --git a/ufc/bandit-models-v1.json b/ufc/bandit-models-v1.json index 2fc51e93..7d4c68f8 100644 --- a/ufc/bandit-models-v1.json +++ b/ufc/bandit-models-v1.json @@ -1,5 +1,8 @@ { "updatedAt": "2023-09-13T04:52:06.462Z", + "environment": { + "name": "Test" + }, "bandits": { "banner_bandit": { "banditKey": "banner_bandit", diff --git a/ufc/flags-v1-obfuscated.json b/ufc/flags-v1-obfuscated.json index 3a24aaa4..c47902e9 100644 --- a/ufc/flags-v1-obfuscated.json +++ b/ufc/flags-v1-obfuscated.json @@ -1,5 +1,8 @@ { "createdAt": "2024-04-17T19:40:53.716Z", + "environment": { + "name": "Test" + }, "flags": { "73fcc84c69e49e31fe16a29b2b1f803b": { "key": "73fcc84c69e49e31fe16a29b2b1f803b", @@ -52,6 +55,7 @@ "allocations": [ { "key": "cm9sbG91dA==", + "name": "QWxsb2NhdGlvbiBmb3Igcm9sbG91dA==", "doLog": true, "splits": [ { @@ -80,6 +84,7 @@ "allocations": [ { "key": "dmFsaWQ=", + "name": "QWxsb2NhdGlvbiBmb3IgdmFsaWQ=", "doLog": true, "rules": [ { @@ -103,6 +108,7 @@ }, { "key": "aW52YWxpZA==", + "name": "QWxsb2NhdGlvbiBmb3IgaW52YWxpZA==", "doLog": true, "rules": [], "splits": [ @@ -132,6 +138,7 @@ "allocations": [ { "key": "cGFydGlhbC1leGFtcGxl", + "name": "QWxsb2NhdGlvbiBmb3IgcGFydGlhbC1leGFtcGxl", "doLog": true, "rules": [ { @@ -153,6 +160,7 @@ }, { "key": "dGVzdA==", + "name": "QWxsb2NhdGlvbiBmb3IgdGVzdA==", "doLog": true, "rules": [ { @@ -196,6 +204,7 @@ "allocations": [ { "key": "MS1mb3ItMQ==", + "name": "QWxsb2NhdGlvbiBmb3IgMS1mb3ItMQ==", "doLog": true, "rules": [ { @@ -219,6 +228,7 @@ }, { "key": "Mi1mb3ItMTIzNDU2Nzg5", + "name": "QWxsb2NhdGlvbiBmb3IgMi1mb3ItMTIzNDU2Nzg5", "doLog": true, "rules": [ { @@ -242,6 +252,7 @@ }, { "key": "My1mb3Itbm90LTI=", + "name": "QWxsb2NhdGlvbiBmb3IgMy1mb3Itbm90LTI=", "doLog": true, "rules": [ { @@ -295,6 +306,7 @@ "allocations": [ { "key": "MS1mb3Itb25lLW9m", + "name": "QWxsb2NhdGlvbiBmb3IgMS1mb3Itb25lLW9m", "doLog": true, "rules": [ { @@ -318,6 +330,7 @@ }, { "key": "Mi1mb3ItbWF0Y2hlcw==", + "name": "QWxsb2NhdGlvbiBmb3IgMi1mb3ItbWF0Y2hlcw==", "doLog": true, "rules": [ { @@ -339,6 +352,7 @@ }, { "key": "My1mb3Itbm90LW9uZS1vZg==", + "name": "QWxsb2NhdGlvbiBmb3IgMy1mb3Itbm90LW9uZS1vZg==", "doLog": true, "rules": [ { @@ -362,6 +376,7 @@ }, { "key": "NC1mb3Itbm90LW1hdGNoZXM=", + "name": "QWxsb2NhdGlvbiBmb3IgNC1mb3Itbm90LW1hdGNoZXM=", "doLog": true, "rules": [ { @@ -383,6 +398,7 @@ }, { "key": "NS1mb3ItbWF0Y2hlcy1udWxs", + "name": "QWxsb2NhdGlvbiBmb3IgNS1mb3ItbWF0Y2hlcy1udWxs", "doLog": true, "rules": [ { @@ -424,6 +440,7 @@ "allocations": [ { "key": "b24tZm9yLU5B", + "name": "QWxsb2NhdGlvbiBmb3Igb24tZm9yLU5B", "doLog": true, "rules": [ { @@ -459,6 +476,7 @@ }, { "key": "b24tZm9yLWFnZS01MCs=", + "name": "QWxsb2NhdGlvbiBmb3Igb24tZm9yLWFnZS01MCs=", "doLog": true, "rules": [ { @@ -490,6 +508,7 @@ }, { "key": "b2ZmLWZvci1hbGw=", + "name": "QWxsb2NhdGlvbiBmb3Igb2ZmLWZvci1hbGw=", "doLog": true, "rules": [], "splits": [ @@ -523,6 +542,7 @@ "allocations": [ { "key": "b2xkLXZlcnNpb25z", + "name": "QWxsb2NhdGlvbiBmb3Igb2xkLXZlcnNpb25z", "doLog": true, "rules": [ { @@ -544,6 +564,7 @@ }, { "key": "Y3VycmVudC12ZXJzaW9ucw==", + "name": "QWxsb2NhdGlvbiBmb3IgY3VycmVudC12ZXJzaW9ucw==", "doLog": true, "rules": [ { @@ -570,6 +591,7 @@ }, { "key": "bmV3LXZlcnNpb25z", + "name": "QWxsb2NhdGlvbiBmb3IgbmV3LXZlcnNpb25z", "doLog": true, "rules": [ { @@ -613,6 +635,7 @@ "allocations": [ { "key": "c21hbGwtc2l6ZQ==", + "name": "QWxsb2NhdGlvbiBmb3Igc21hbGwtc2l6ZQ==", "doLog": true, "rules": [ { @@ -634,6 +657,7 @@ }, { "key": "bWVkdW0tc2l6ZQ==", + "name": "QWxsb2NhdGlvbiBmb3IgbWVkdW0tc2l6ZQ==", "doLog": true, "rules": [ { @@ -660,6 +684,7 @@ }, { "key": "bGFyZ2Utc2l6ZQ==", + "name": "QWxsb2NhdGlvbiBmb3IgbGFyZ2Utc2l6ZQ==", "doLog": true, "rules": [ { @@ -703,6 +728,7 @@ "allocations": [ { "key": "b2xkLXZlcnNpb25z", + "name": "QWxsb2NhdGlvbiBmb3Igb2xkLXZlcnNpb25z", "doLog": true, "endAt": "MjAwMi0xMC0zMVQwOTowMDowMC41OTRa", "splits": [ @@ -714,6 +740,7 @@ }, { "key": "ZnV0dXJlLXZlcnNpb25z", + "name": "QWxsb2NhdGlvbiBmb3IgZnV0dXJlLXZlcnNpb25z", "doLog": true, "startAt": "MjA1Mi0xMC0zMVQwOTowMDowMC41OTRa", "splits": [ @@ -725,6 +752,7 @@ }, { "key": "Y3VycmVudC12ZXJzaW9ucw==", + "name": "QWxsb2NhdGlvbiBmb3IgY3VycmVudC12ZXJzaW9ucw==", "doLog": true, "startAt": "MjAyMi0xMC0zMVQwOTowMDowMC41OTRa", "endAt": "MjA1MC0xMC0zMVQwOTowMDowMC41OTRa", @@ -755,6 +783,7 @@ "allocations": [ { "key": "bnVsbC1vcGVyYXRvcg==", + "name": "QWxsb2NhdGlvbiBmb3IgbnVsbC1vcGVyYXRvcg==", "doLog": true, "rules": [ { @@ -785,6 +814,7 @@ }, { "key": "bm90LW51bGwtb3BlcmF0b3I=", + "name": "QWxsb2NhdGlvbiBmb3Igbm90LW51bGwtb3BlcmF0b3I=", "doLog": true, "rules": [ { @@ -840,6 +870,7 @@ "allocations": [ { "key": "aWQgcnVsZQ==", + "name": "QWxsb2NhdGlvbiBmb3IgaWQgcnVsZQ==", "doLog": false, "rules": [ { @@ -861,6 +892,7 @@ }, { "key": "aW50ZXJuYWwgdXNlcnM=", + "name": "QWxsb2NhdGlvbiBmb3IgaW50ZXJuYWwgdXNlcnM=", "doLog": false, "rules": [ { @@ -882,6 +914,7 @@ }, { "key": "ZXhwZXJpbWVudA==", + "name": "QWxsb2NhdGlvbiBmb3IgZXhwZXJpbWVudA==", "doLog": true, "rules": [ { @@ -972,6 +1005,7 @@ }, { "key": "cm9sbG91dA==", + "name": "QWxsb2NhdGlvbiBmb3Igcm9sbG91dA==", "doLog": true, "rules": [ { @@ -1033,6 +1067,7 @@ "allocations": [ { "key": "dGFyZ2V0ZWQgYWxsb2NhdGlvbg==", + "name": "QWxsb2NhdGlvbiBmb3IgdGFyZ2V0ZWQgYWxsb2NhdGlvbg==", "doLog": true, "rules": [ { @@ -1077,6 +1112,7 @@ }, { "key": "NTAvNTAgc3BsaXQ=", + "name": "QWxsb2NhdGlvbiBmb3IgNTAvNTAgc3BsaXQ=", "doLog": true, "rules": [], "splits": [ @@ -1130,6 +1166,7 @@ "allocations": [ { "key": "NTAvNTAgc3BsaXQ=", + "name": "QWxsb2NhdGlvbiBmb3IgNTAvNTAgc3BsaXQ=", "doLog": true, "rules": [], "splits": [ diff --git a/ufc/flags-v1.json b/ufc/flags-v1.json index 88958e71..1366cd95 100644 --- a/ufc/flags-v1.json +++ b/ufc/flags-v1.json @@ -1,5 +1,8 @@ { "createdAt": "2024-04-17T19:40:53.716Z", + "environment": { + "name": "Test" + }, "flags": { "empty_flag": { "key": "empty_flag", @@ -51,6 +54,7 @@ "allocations": [ { "key": "rollout", + "name": "Allocation for rollout", "splits": [ { "variationKey": "pi", @@ -79,6 +83,7 @@ "allocations": [ { "key": "valid", + "name": "Allocation for valid", "rules": [ { "conditions": [ @@ -102,6 +107,7 @@ }, { "key": "invalid", + "name": "Allocation for invalid", "rules": [], "splits": [ { @@ -131,6 +137,7 @@ "allocations": [ { "key": "partial-example", + "name": "Allocation for partial-example", "rules": [ { "conditions": [ @@ -152,6 +159,7 @@ }, { "key": "test", + "name": "Allocation for test", "rules": [ { "conditions": [ @@ -195,6 +203,7 @@ "allocations": [ { "key": "1-for-1", + "name": "Allocation for 1-for-1", "rules": [ { "conditions": [ @@ -218,6 +227,7 @@ }, { "key": "2-for-123456789", + "name": "Allocation for 2-for-123456789", "rules": [ { "conditions": [ @@ -241,6 +251,7 @@ }, { "key": "3-for-not-2", + "name": "Allocation for 3-for-not-2", "rules": [ { "conditions": [ @@ -294,6 +305,7 @@ "allocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "rules": [ { "conditions": [ @@ -317,6 +329,7 @@ }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "rules": [ { "conditions": [ @@ -338,6 +351,7 @@ }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "rules": [ { "conditions": [ @@ -361,6 +375,7 @@ }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "rules": [ { "conditions": [ @@ -382,6 +397,7 @@ }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "rules": [ { "conditions": [ @@ -423,6 +439,7 @@ "allocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "rules": [ { "conditions": [ @@ -458,6 +475,7 @@ }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "rules": [ { "conditions": [ @@ -489,6 +507,7 @@ }, { "key": "off-for-all", + "name": "Allocation for off-for-all", "rules": [], "splits": [ { @@ -522,6 +541,7 @@ "allocations": [ { "key": "old-versions", + "name": "Allocation for old-versions", "rules": [ { "conditions": [ @@ -543,6 +563,7 @@ }, { "key": "current-versions", + "name": "Allocation for current-versions", "rules": [ { "conditions": [ @@ -569,6 +590,7 @@ }, { "key": "new-versions", + "name": "Allocation for new-versions", "rules": [ { "conditions": [ @@ -612,6 +634,7 @@ "allocations": [ { "key": "small-size", + "name": "Allocation for small-size", "rules": [ { "conditions": [ @@ -633,6 +656,7 @@ }, { "key": "medum-size", + "name": "Allocation for medum-size", "rules": [ { "conditions": [ @@ -659,6 +683,7 @@ }, { "key": "large-size", + "name": "Allocation for large-size", "rules": [ { "conditions": [ @@ -702,6 +727,7 @@ "allocations": [ { "key": "old-versions", + "name": "Allocation for old-versions", "splits": [ { "variationKey": "old", @@ -713,6 +739,7 @@ }, { "key": "future-versions", + "name": "Allocation for future-versions", "splits": [ { "variationKey": "future", @@ -724,6 +751,7 @@ }, { "key": "current-versions", + "name": "Allocation for current-versions", "splits": [ { "variationKey": "current", @@ -754,6 +782,7 @@ "allocations": [ { "key": "null-operator", + "name": "Allocation for null-operator", "rules": [ { "conditions": [ @@ -784,6 +813,7 @@ }, { "key": "not-null-operator", + "name": "Allocation for not-null-operator", "rules": [ { "conditions": [ @@ -839,6 +869,7 @@ "allocations": [ { "key": "id rule", + "name": "Allocation for id rule", "rules": [ { "conditions": [ @@ -860,6 +891,7 @@ }, { "key": "internal users", + "name": "Allocation for internal users", "rules": [ { "conditions": [ @@ -881,6 +913,7 @@ }, { "key": "experiment", + "name": "Allocation for experiment", "rules": [ { "conditions": [ @@ -971,6 +1004,7 @@ }, { "key": "rollout", + "name": "Allocation for rollout", "rules": [ { "conditions": [ @@ -1032,6 +1066,7 @@ "allocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "rules": [ { "conditions": [ @@ -1076,6 +1111,7 @@ }, { "key": "50/50 split", + "name": "Allocation for 50/50 split", "rules": [], "splits": [ { @@ -1129,6 +1165,7 @@ "allocations": [ { "key": "50/50 split", + "name": "Allocation for 50/50 split", "rules": [], "splits": [ { diff --git a/ufc/tests/test-case-boolean-one-of-matches.json b/ufc/tests/test-case-boolean-one-of-matches.json index b1676756..49f6fb93 100644 --- a/ufc/tests/test-case-boolean-one-of-matches.json +++ b/ufc/tests/test-case-boolean-one-of-matches.json @@ -11,6 +11,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"1-for-one-of\".", "variationKey": "1", @@ -28,6 +31,7 @@ }, "matchedAllocation": { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -35,21 +39,25 @@ "unevaluatedAllocations": [ { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 5 } @@ -64,6 +72,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -73,26 +84,31 @@ "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 5 } @@ -108,6 +124,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -117,26 +136,31 @@ "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 5 } @@ -152,6 +176,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"2-for-matches\".", "variationKey": "2", @@ -167,12 +194,14 @@ }, "matchedAllocation": { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -180,16 +209,19 @@ "unevaluatedAllocations": [ { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 5 } @@ -204,6 +236,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -213,26 +248,31 @@ "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 5 } @@ -248,6 +288,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -257,26 +300,31 @@ "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 5 } @@ -292,6 +340,9 @@ "assignment": 4, "assignmentDetails": { "value": 4, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"4-for-not-matches\".", "variationKey": "4", @@ -307,22 +358,26 @@ }, "matchedAllocation": { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "MATCH", "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -330,6 +385,7 @@ "unevaluatedAllocations": [ { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 5 } @@ -344,6 +400,9 @@ "assignment": 4, "assignmentDetails": { "value": 4, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"4-for-not-matches\".", "variationKey": "4", @@ -359,22 +418,26 @@ }, "matchedAllocation": { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "MATCH", "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -382,6 +445,7 @@ "unevaluatedAllocations": [ { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 5 } @@ -396,6 +460,9 @@ "assignment": 3, "assignmentDetails": { "value": 3, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"3-for-not-one-of\".", "variationKey": "3", @@ -413,17 +480,20 @@ }, "matchedAllocation": { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -431,11 +501,13 @@ "unevaluatedAllocations": [ { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 5 } @@ -450,6 +522,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -459,26 +534,31 @@ "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 5 } @@ -494,6 +574,9 @@ "assignment": 3, "assignmentDetails": { "value": 3, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"3-for-not-one-of\".", "variationKey": "3", @@ -511,17 +594,20 @@ }, "matchedAllocation": { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -529,11 +615,13 @@ "unevaluatedAllocations": [ { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 5 } @@ -548,6 +636,9 @@ "assignment": 3, "assignmentDetails": { "value": 3, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"3-for-not-one-of\".", "variationKey": "3", @@ -565,17 +656,20 @@ }, "matchedAllocation": { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -583,11 +677,13 @@ "unevaluatedAllocations": [ { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 5 } @@ -602,6 +698,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -611,26 +710,31 @@ "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 5 } @@ -646,6 +750,9 @@ "assignment": 5, "assignmentDetails": { "value": 5, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"5-for-matches-null\".", "variationKey": "5", @@ -663,27 +770,32 @@ }, "matchedAllocation": { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "MATCH", "orderPosition": 5 }, "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 } @@ -699,6 +811,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -708,26 +823,31 @@ "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 5 } @@ -741,6 +861,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -750,26 +873,31 @@ "unmatchedAllocations": [ { "key": "1-for-one-of", + "name": "Allocation for 1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-matches", + "name": "Allocation for 2-for-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-one-of", + "name": "Allocation for 3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "4-for-not-matches", + "name": "Allocation for 4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 }, { "key": "5-for-matches-null", + "name": "Allocation for 5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 5 } diff --git a/ufc/tests/test-case-comparator-operator-flag.json b/ufc/tests/test-case-comparator-operator-flag.json index 37908bea..ecdcc684 100644 --- a/ufc/tests/test-case-comparator-operator-flag.json +++ b/ufc/tests/test-case-comparator-operator-flag.json @@ -12,6 +12,9 @@ "assignment": "small", "assignmentDetails": { "value": "small", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"small-size\".", "variationKey": "small", @@ -27,6 +30,7 @@ }, "matchedAllocation": { "key": "small-size", + "name": "Allocation for small-size", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -34,11 +38,13 @@ "unevaluatedAllocations": [ { "key": "medum-size", + "name": "Allocation for medum-size", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "large-size", + "name": "Allocation for large-size", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -54,6 +60,9 @@ "assignment": "medium", "assignmentDetails": { "value": "medium", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"medum-size\".", "variationKey": "medium", @@ -74,12 +83,14 @@ }, "matchedAllocation": { "key": "medum-size", + "name": "Allocation for medum-size", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "small-size", + "name": "Allocation for small-size", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -87,6 +98,7 @@ "unevaluatedAllocations": [ { "key": "large-size", + "name": "Allocation for large-size", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -101,6 +113,9 @@ "assignment": "unknown", "assignmentDetails": { "value": "unknown", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -110,16 +125,19 @@ "unmatchedAllocations": [ { "key": "small-size", + "name": "Allocation for small-size", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "medum-size", + "name": "Allocation for medum-size", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "large-size", + "name": "Allocation for large-size", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -135,6 +153,9 @@ "assignment": "large", "assignmentDetails": { "value": "large", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"large-size\".", "variationKey": "large", @@ -150,17 +171,20 @@ }, "matchedAllocation": { "key": "large-size", + "name": "Allocation for large-size", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "small-size", + "name": "Allocation for small-size", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "medum-size", + "name": "Allocation for medum-size", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -176,6 +200,9 @@ "assignment": "unknown", "assignmentDetails": { "value": "unknown", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -185,16 +212,19 @@ "unmatchedAllocations": [ { "key": "small-size", + "name": "Allocation for small-size", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "medum-size", + "name": "Allocation for medum-size", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "large-size", + "name": "Allocation for large-size", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } diff --git a/ufc/tests/test-case-disabled-flag.json b/ufc/tests/test-case-disabled-flag.json index a52eb5c9..4ee2800b 100644 --- a/ufc/tests/test-case-disabled-flag.json +++ b/ufc/tests/test-case-disabled-flag.json @@ -12,6 +12,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: disabled_flag", "variationKey": null, @@ -31,6 +34,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: disabled_flag", "variationKey": null, @@ -49,6 +55,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: disabled_flag", "variationKey": null, diff --git a/ufc/tests/test-case-empty-flag.json b/ufc/tests/test-case-empty-flag.json index 5f06bc9f..a4cbade4 100644 --- a/ufc/tests/test-case-empty-flag.json +++ b/ufc/tests/test-case-empty-flag.json @@ -12,6 +12,9 @@ "assignment": "default_value", "assignmentDetails": { "value": "default_value", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -31,6 +34,9 @@ "assignment": "default_value", "assignmentDetails": { "value": "default_value", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -49,6 +55,9 @@ "assignment": "default_value", "assignmentDetails": { "value": "default_value", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, diff --git a/ufc/tests/test-case-integer-flag.json b/ufc/tests/test-case-integer-flag.json index 32e48dc9..11f7617a 100644 --- a/ufc/tests/test-case-integer-flag.json +++ b/ufc/tests/test-case-integer-flag.json @@ -12,6 +12,9 @@ "assignment": 3, "assignmentDetails": { "value": 3, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"targeted allocation\".", "variationKey": "three", @@ -31,6 +34,7 @@ }, "matchedAllocation": { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -38,6 +42,7 @@ "unevaluatedAllocations": [ { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 } @@ -53,6 +58,9 @@ "assignment": 3, "assignmentDetails": { "value": 3, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"targeted allocation\".", "variationKey": "three", @@ -72,6 +80,7 @@ }, "matchedAllocation": { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -79,6 +88,7 @@ "unevaluatedAllocations": [ { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 } @@ -93,6 +103,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "charlie belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -100,12 +113,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -123,6 +138,9 @@ "assignment": 3, "assignmentDetails": { "value": 3, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"targeted allocation\".", "variationKey": "three", @@ -142,6 +160,7 @@ }, "matchedAllocation": { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -149,6 +168,7 @@ "unevaluatedAllocations": [ { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 } @@ -161,6 +181,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "1 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -168,12 +191,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -187,6 +212,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "2 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -194,12 +222,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -213,6 +243,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "3 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -220,12 +253,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -239,6 +274,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "4 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -246,12 +284,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -265,6 +305,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "5 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -272,12 +315,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -291,6 +336,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "6 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -298,12 +346,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -317,6 +367,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "7 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -324,12 +377,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -343,6 +398,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "8 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -350,12 +408,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -369,6 +429,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "9 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -376,12 +439,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -395,6 +460,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "10 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -402,12 +470,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -421,6 +491,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "11 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -428,12 +501,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -447,6 +522,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "12 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -454,12 +532,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -473,6 +553,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "13 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -480,12 +563,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -499,6 +584,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "14 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -506,12 +594,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -525,6 +615,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "15 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -532,12 +625,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -551,6 +646,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "16 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -558,12 +656,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -577,6 +677,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "17 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -584,12 +687,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -603,6 +708,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "18 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -610,12 +718,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -629,6 +739,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "19 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -636,12 +749,14 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", + "name": "Allocation for targeted allocation", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } diff --git a/ufc/tests/test-case-invalid-value-flag.json b/ufc/tests/test-case-invalid-value-flag.json index 1fbd546d..9631aa27 100644 --- a/ufc/tests/test-case-invalid-value-flag.json +++ b/ufc/tests/test-case-invalid-value-flag.json @@ -12,6 +12,9 @@ "assignment": 42, "assignmentDetails": { "value": 42, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "TYPE_MISMATCH", "flagEvaluationDescription": "Expected variation type INTEGER does not match for variation 'pi' with value 3.1415926", "variationKey": null, @@ -22,11 +25,13 @@ "unevaluatedAllocations": [ { "key": "valid", + "name": "Allocation for valid", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 1 }, { "key": "invalid", + "name": "Allocation for invalid", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 } @@ -42,6 +47,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"valid\".", "variationKey": "one", @@ -59,6 +67,7 @@ }, "matchedAllocation": { "key": "valid", + "name": "Allocation for valid", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -66,6 +75,7 @@ "unevaluatedAllocations": [ { "key": "invalid", + "name": "Allocation for invalid", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 } @@ -80,6 +90,9 @@ "assignment": 42, "assignmentDetails": { "value": 42, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "TYPE_MISMATCH", "flagEvaluationDescription": "Expected variation type INTEGER does not match for variation 'pi' with value 3.1415926", "variationKey": null, @@ -90,11 +103,13 @@ "unevaluatedAllocations": [ { "key": "valid", + "name": "Allocation for valid", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 1 }, { "key": "invalid", + "name": "Allocation for invalid", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 } diff --git a/ufc/tests/test-case-kill-switch-flag.json b/ufc/tests/test-case-kill-switch-flag.json index 395a7732..c0211e15 100644 --- a/ufc/tests/test-case-kill-switch-flag.json +++ b/ufc/tests/test-case-kill-switch-flag.json @@ -12,6 +12,9 @@ "assignment": true, "assignmentDetails": { "value": true, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -31,6 +34,7 @@ }, "matchedAllocation": { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -38,11 +42,13 @@ "unevaluatedAllocations": [ { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -58,6 +64,9 @@ "assignment": true, "assignmentDetails": { "value": true, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -77,6 +86,7 @@ }, "matchedAllocation": { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -84,11 +94,13 @@ "unevaluatedAllocations": [ { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -104,6 +116,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "barbara belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -111,17 +126,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -137,6 +155,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "charlie belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -144,17 +165,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -172,6 +196,9 @@ "assignment": true, "assignmentDetails": { "value": true, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -191,6 +218,7 @@ }, "matchedAllocation": { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -198,11 +226,13 @@ "unevaluatedAllocations": [ { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -215,6 +245,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "1 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -222,17 +255,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -248,6 +284,9 @@ "assignment": true, "assignmentDetails": { "value": true, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -267,6 +306,7 @@ }, "matchedAllocation": { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -274,11 +314,13 @@ "unevaluatedAllocations": [ { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -294,6 +336,9 @@ "assignment": true, "assignmentDetails": { "value": true, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-age-50+\".", "variationKey": "on", @@ -309,12 +354,14 @@ }, "matchedAllocation": { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -322,6 +369,7 @@ "unevaluatedAllocations": [ { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -336,6 +384,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "4 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -343,17 +394,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -369,6 +423,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "5 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -376,17 +433,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -402,6 +462,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "6 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -409,17 +472,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -436,6 +502,9 @@ "assignment": true, "assignmentDetails": { "value": true, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -455,6 +524,7 @@ }, "matchedAllocation": { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -462,11 +532,13 @@ "unevaluatedAllocations": [ { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -482,6 +554,9 @@ "assignment": true, "assignmentDetails": { "value": true, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-age-50+\".", "variationKey": "on", @@ -497,12 +572,14 @@ }, "matchedAllocation": { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -510,6 +587,7 @@ "unevaluatedAllocations": [ { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -524,6 +602,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "9 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -531,17 +612,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -555,6 +639,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "10 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -562,17 +649,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -586,6 +676,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "11 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -593,17 +686,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -619,6 +715,9 @@ "assignment": true, "assignmentDetails": { "value": true, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -638,6 +737,7 @@ }, "matchedAllocation": { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -645,11 +745,13 @@ "unevaluatedAllocations": [ { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -664,6 +766,9 @@ "assignment": true, "assignmentDetails": { "value": true, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -683,6 +788,7 @@ }, "matchedAllocation": { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -690,11 +796,13 @@ "unevaluatedAllocations": [ { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -707,6 +815,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "14 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -714,17 +825,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -740,6 +854,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "15 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -747,17 +864,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -773,6 +893,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "16 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -780,17 +903,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -806,6 +932,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "17 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -813,17 +942,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -839,6 +971,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "18 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -846,17 +981,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -872,6 +1010,9 @@ "assignment": false, "assignmentDetails": { "value": false, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "19 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -879,17 +1020,20 @@ "matchedRule": null, "matchedAllocation": { "key": "off-for-all", + "name": "Allocation for off-for-all", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", + "name": "Allocation for on-for-NA", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "on-for-age-50+", + "name": "Allocation for on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } diff --git a/ufc/tests/test-case-new-user-onboarding-flag.json b/ufc/tests/test-case-new-user-onboarding-flag.json index 177de05c..9a0c55bc 100644 --- a/ufc/tests/test-case-new-user-onboarding-flag.json +++ b/ufc/tests/test-case-new-user-onboarding-flag.json @@ -12,6 +12,9 @@ "assignment": "green", "assignmentDetails": { "value": "green", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"internal users\".", "variationKey": "green", @@ -27,12 +30,14 @@ }, "matchedAllocation": { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -40,11 +45,13 @@ "unevaluatedAllocations": [ { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } @@ -60,6 +67,9 @@ "assignment": "default", "assignmentDetails": { "value": "default", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -69,21 +79,25 @@ "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "TRAFFIC_EXPOSURE_MISS", "orderPosition": 4 } @@ -99,6 +113,9 @@ "assignment": "default", "assignmentDetails": { "value": "default", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -108,21 +125,25 @@ "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 } @@ -140,6 +161,9 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -159,22 +183,26 @@ }, "matchedAllocation": { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "MATCH", "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -192,6 +220,9 @@ "assignment": "purple", "assignmentDetails": { "value": "purple", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"id rule\".", "variationKey": "purple", @@ -207,6 +238,7 @@ }, "matchedAllocation": { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -214,16 +246,19 @@ "unevaluatedAllocations": [ { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } @@ -241,6 +276,9 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -260,22 +298,26 @@ }, "matchedAllocation": { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "MATCH", "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -293,6 +335,9 @@ "assignment": "default", "assignmentDetails": { "value": "default", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -302,21 +347,25 @@ "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "TRAFFIC_EXPOSURE_MISS", "orderPosition": 4 } @@ -330,6 +379,9 @@ "assignment": "default", "assignmentDetails": { "value": "default", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -339,21 +391,25 @@ "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 } @@ -369,6 +425,9 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -388,22 +447,26 @@ }, "matchedAllocation": { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "MATCH", "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -420,6 +483,9 @@ "assignment": "control", "assignmentDetails": { "value": "control", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"experiment\" and 3 belongs to the range of traffic assigned to \"control\".", "variationKey": "control", @@ -439,17 +505,20 @@ }, "matchedAllocation": { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -457,6 +526,7 @@ "unevaluatedAllocations": [ { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } @@ -471,6 +541,9 @@ "assignment": "red", "assignmentDetails": { "value": "red", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"experiment\" and 4 belongs to the range of traffic assigned to \"red\".", "variationKey": "red", @@ -490,17 +563,20 @@ }, "matchedAllocation": { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -508,6 +584,7 @@ "unevaluatedAllocations": [ { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } @@ -522,6 +599,9 @@ "assignment": "yellow", "assignmentDetails": { "value": "yellow", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"experiment\" and 5 belongs to the range of traffic assigned to \"yellow\".", "variationKey": "yellow", @@ -541,17 +621,20 @@ }, "matchedAllocation": { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -559,6 +642,7 @@ "unevaluatedAllocations": [ { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } @@ -573,6 +657,9 @@ "assignment": "yellow", "assignmentDetails": { "value": "yellow", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"experiment\" and 6 belongs to the range of traffic assigned to \"yellow\".", "variationKey": "yellow", @@ -592,17 +679,20 @@ }, "matchedAllocation": { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -610,6 +700,7 @@ "unevaluatedAllocations": [ { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } @@ -624,6 +715,9 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -643,22 +737,26 @@ }, "matchedAllocation": { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "MATCH", "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -674,6 +772,9 @@ "assignment": "red", "assignmentDetails": { "value": "red", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"experiment\" and 8 belongs to the range of traffic assigned to \"red\".", "variationKey": "red", @@ -693,17 +794,20 @@ }, "matchedAllocation": { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -711,6 +815,7 @@ "unevaluatedAllocations": [ { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } @@ -725,6 +830,9 @@ "assignment": "default", "assignmentDetails": { "value": "default", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -734,21 +842,25 @@ "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 } @@ -762,6 +874,9 @@ "assignment": "default", "assignmentDetails": { "value": "default", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -771,21 +886,25 @@ "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 } @@ -799,6 +918,9 @@ "assignment": "default", "assignmentDetails": { "value": "default", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -808,21 +930,25 @@ "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 } @@ -838,6 +964,9 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -857,22 +986,26 @@ }, "matchedAllocation": { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "MATCH", "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -888,6 +1021,9 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -907,22 +1043,26 @@ }, "matchedAllocation": { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "MATCH", "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -936,6 +1076,9 @@ "assignment": "default", "assignmentDetails": { "value": "default", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -945,21 +1088,25 @@ "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 } @@ -975,6 +1122,9 @@ "assignment": "yellow", "assignmentDetails": { "value": "yellow", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"experiment\" and 15 belongs to the range of traffic assigned to \"yellow\".", "variationKey": "yellow", @@ -994,17 +1144,20 @@ }, "matchedAllocation": { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -1012,6 +1165,7 @@ "unevaluatedAllocations": [ { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } @@ -1026,6 +1180,9 @@ "assignment": "control", "assignmentDetails": { "value": "control", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"experiment\" and 16 belongs to the range of traffic assigned to \"control\".", "variationKey": "control", @@ -1045,17 +1202,20 @@ }, "matchedAllocation": { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -1063,6 +1223,7 @@ "unevaluatedAllocations": [ { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } @@ -1077,6 +1238,9 @@ "assignment": "control", "assignmentDetails": { "value": "control", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"experiment\" and 17 belongs to the range of traffic assigned to \"control\".", "variationKey": "control", @@ -1096,17 +1260,20 @@ }, "matchedAllocation": { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -1114,6 +1281,7 @@ "unevaluatedAllocations": [ { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } @@ -1128,6 +1296,9 @@ "assignment": "default", "assignmentDetails": { "value": "default", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -1137,21 +1308,25 @@ "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "TRAFFIC_EXPOSURE_MISS", "orderPosition": 3 }, { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 4 } @@ -1167,6 +1342,9 @@ "assignment": "red", "assignmentDetails": { "value": "red", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"experiment\" and 19 belongs to the range of traffic assigned to \"red\".", "variationKey": "red", @@ -1186,17 +1364,20 @@ }, "matchedAllocation": { "key": "experiment", + "name": "Allocation for experiment", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", + "name": "Allocation for id rule", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "internal users", + "name": "Allocation for internal users", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -1204,6 +1385,7 @@ "unevaluatedAllocations": [ { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 4 } diff --git a/ufc/tests/test-case-null-operator-flag.json b/ufc/tests/test-case-null-operator-flag.json index 35fc5d93..0c992b13 100644 --- a/ufc/tests/test-case-null-operator-flag.json +++ b/ufc/tests/test-case-null-operator-flag.json @@ -12,6 +12,9 @@ "assignment": "old", "assignmentDetails": { "value": "old", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"null-operator\".", "variationKey": "old", @@ -27,6 +30,7 @@ }, "matchedAllocation": { "key": "null-operator", + "name": "Allocation for null-operator", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -34,6 +38,7 @@ "unevaluatedAllocations": [ { "key": "not-null-operator", + "name": "Allocation for not-null-operator", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 } @@ -49,6 +54,9 @@ "assignment": "new", "assignmentDetails": { "value": "new", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"not-null-operator\".", "variationKey": "new", @@ -64,12 +72,14 @@ }, "matchedAllocation": { "key": "not-null-operator", + "name": "Allocation for not-null-operator", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "null-operator", + "name": "Allocation for null-operator", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -85,6 +95,9 @@ "assignment": "old", "assignmentDetails": { "value": "old", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"null-operator\".", "variationKey": "old", @@ -100,6 +113,7 @@ }, "matchedAllocation": { "key": "null-operator", + "name": "Allocation for null-operator", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -107,6 +121,7 @@ "unevaluatedAllocations": [ { "key": "not-null-operator", + "name": "Allocation for not-null-operator", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 } @@ -121,6 +136,9 @@ "assignment": "new", "assignmentDetails": { "value": "new", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"not-null-operator\".", "variationKey": "new", @@ -136,12 +154,14 @@ }, "matchedAllocation": { "key": "not-null-operator", + "name": "Allocation for not-null-operator", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "null-operator", + "name": "Allocation for null-operator", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -157,6 +177,9 @@ "assignment": "old", "assignmentDetails": { "value": "old", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"null-operator\".", "variationKey": "old", @@ -172,6 +195,7 @@ }, "matchedAllocation": { "key": "null-operator", + "name": "Allocation for null-operator", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -179,6 +203,7 @@ "unevaluatedAllocations": [ { "key": "not-null-operator", + "name": "Allocation for not-null-operator", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 } diff --git a/ufc/tests/test-case-numeric-flag.json b/ufc/tests/test-case-numeric-flag.json index 60305bed..bda31185 100644 --- a/ufc/tests/test-case-numeric-flag.json +++ b/ufc/tests/test-case-numeric-flag.json @@ -12,6 +12,9 @@ "assignment": 3.1415926, "assignmentDetails": { "value": 3.1415926, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "alice belongs to the range of traffic assigned to \"pi\" defined in allocation \"rollout\".", "variationKey": "pi", @@ -19,6 +22,7 @@ "matchedRule": null, "matchedAllocation": { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -35,6 +39,9 @@ "assignment": 3.1415926, "assignmentDetails": { "value": 3.1415926, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "bob belongs to the range of traffic assigned to \"pi\" defined in allocation \"rollout\".", "variationKey": "pi", @@ -42,6 +49,7 @@ "matchedRule": null, "matchedAllocation": { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -57,6 +65,9 @@ "assignment": 3.1415926, "assignmentDetails": { "value": 3.1415926, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "charlie belongs to the range of traffic assigned to \"pi\" defined in allocation \"rollout\".", "variationKey": "pi", @@ -64,6 +75,7 @@ "matchedRule": null, "matchedAllocation": { "key": "rollout", + "name": "Allocation for rollout", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, diff --git a/ufc/tests/test-case-numeric-one-of.json b/ufc/tests/test-case-numeric-one-of.json index f4d09567..291e2c96 100644 --- a/ufc/tests/test-case-numeric-one-of.json +++ b/ufc/tests/test-case-numeric-one-of.json @@ -11,6 +11,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"1-for-1\".", "variationKey": "1", @@ -28,6 +31,7 @@ }, "matchedAllocation": { "key": "1-for-1", + "name": "Allocation for 1-for-1", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -35,11 +39,13 @@ "unevaluatedAllocations": [ { "key": "2-for-123456789", + "name": "Allocation for 2-for-123456789", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "3-for-not-2", + "name": "Allocation for 3-for-not-2", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -54,6 +60,9 @@ "assignment": 0, "assignmentDetails": { "value": 0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -63,16 +72,19 @@ "unmatchedAllocations": [ { "key": "1-for-1", + "name": "Allocation for 1-for-1", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-123456789", + "name": "Allocation for 2-for-123456789", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "3-for-not-2", + "name": "Allocation for 3-for-not-2", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -88,6 +100,9 @@ "assignment": 3, "assignmentDetails": { "value": 3, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"3-for-not-2\".", "variationKey": "3", @@ -105,17 +120,20 @@ }, "matchedAllocation": { "key": "3-for-not-2", + "name": "Allocation for 3-for-not-2", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "1-for-1", + "name": "Allocation for 1-for-1", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-123456789", + "name": "Allocation for 2-for-123456789", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -131,6 +149,9 @@ "assignment": 3, "assignmentDetails": { "value": 3, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"3-for-not-2\".", "variationKey": "3", @@ -148,17 +169,20 @@ }, "matchedAllocation": { "key": "3-for-not-2", + "name": "Allocation for 3-for-not-2", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "1-for-1", + "name": "Allocation for 1-for-1", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "2-for-123456789", + "name": "Allocation for 2-for-123456789", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -174,6 +198,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"1-for-1\".", "variationKey": "1", @@ -191,6 +218,7 @@ }, "matchedAllocation": { "key": "1-for-1", + "name": "Allocation for 1-for-1", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -198,11 +226,13 @@ "unevaluatedAllocations": [ { "key": "2-for-123456789", + "name": "Allocation for 2-for-123456789", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "3-for-not-2", + "name": "Allocation for 3-for-not-2", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -217,6 +247,9 @@ "assignment": 1, "assignmentDetails": { "value": 1, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"1-for-1\".", "variationKey": "1", @@ -234,6 +267,7 @@ }, "matchedAllocation": { "key": "1-for-1", + "name": "Allocation for 1-for-1", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -241,11 +275,13 @@ "unevaluatedAllocations": [ { "key": "2-for-123456789", + "name": "Allocation for 2-for-123456789", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "3-for-not-2", + "name": "Allocation for 3-for-not-2", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -260,6 +296,9 @@ "assignment": 2, "assignmentDetails": { "value": 2, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"2-for-123456789\".", "variationKey": "2", @@ -277,12 +316,14 @@ }, "matchedAllocation": { "key": "2-for-123456789", + "name": "Allocation for 2-for-123456789", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "1-for-1", + "name": "Allocation for 1-for-1", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -290,6 +331,7 @@ "unevaluatedAllocations": [ { "key": "3-for-not-2", + "name": "Allocation for 3-for-not-2", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } diff --git a/ufc/tests/test-case-regex-flag.json b/ufc/tests/test-case-regex-flag.json index 78fee34d..7ba0036a 100644 --- a/ufc/tests/test-case-regex-flag.json +++ b/ufc/tests/test-case-regex-flag.json @@ -12,6 +12,9 @@ "assignment": "partial-example", "assignmentDetails": { "value": "partial-example", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"partial-example\".", "variationKey": "partial-example", @@ -27,6 +30,7 @@ }, "matchedAllocation": { "key": "partial-example", + "name": "Allocation for partial-example", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -34,6 +38,7 @@ "unevaluatedAllocations": [ { "key": "test", + "name": "Allocation for test", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 } @@ -49,6 +54,9 @@ "assignment": "test", "assignmentDetails": { "value": "test", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"test\".", "variationKey": "test", @@ -64,12 +72,14 @@ }, "matchedAllocation": { "key": "test", + "name": "Allocation for test", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "partial-example", + "name": "Allocation for partial-example", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -85,6 +95,9 @@ "assignment": "none", "assignmentDetails": { "value": "none", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -94,11 +107,13 @@ "unmatchedAllocations": [ { "key": "partial-example", + "name": "Allocation for partial-example", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "test", + "name": "Allocation for test", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -115,6 +130,9 @@ "assignment": "none", "assignmentDetails": { "value": "none", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -124,11 +142,13 @@ "unmatchedAllocations": [ { "key": "partial-example", + "name": "Allocation for partial-example", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "test", + "name": "Allocation for test", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } diff --git a/ufc/tests/test-case-semver-flag.json b/ufc/tests/test-case-semver-flag.json index 4cd07a62..6205485e 100644 --- a/ufc/tests/test-case-semver-flag.json +++ b/ufc/tests/test-case-semver-flag.json @@ -12,6 +12,9 @@ "assignment": "current", "assignmentDetails": { "value": "current", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"current-versions\".", "variationKey": "current", @@ -32,12 +35,14 @@ }, "matchedAllocation": { "key": "current-versions", + "name": "Allocation for current-versions", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "old-versions", + "name": "Allocation for old-versions", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -45,6 +50,7 @@ "unevaluatedAllocations": [ { "key": "new-versions", + "name": "Allocation for new-versions", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -60,6 +66,9 @@ "assignment": "old", "assignmentDetails": { "value": "old", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"old-versions\".", "variationKey": "old", @@ -75,6 +84,7 @@ }, "matchedAllocation": { "key": "old-versions", + "name": "Allocation for old-versions", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -82,11 +92,13 @@ "unevaluatedAllocations": [ { "key": "current-versions", + "name": "Allocation for current-versions", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 2 }, { "key": "new-versions", + "name": "Allocation for new-versions", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -101,6 +113,9 @@ "assignment": "current", "assignmentDetails": { "value": "current", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"current-versions\".", "variationKey": "current", @@ -121,12 +136,14 @@ }, "matchedAllocation": { "key": "current-versions", + "name": "Allocation for current-versions", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "old-versions", + "name": "Allocation for old-versions", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -134,6 +151,7 @@ "unevaluatedAllocations": [ { "key": "new-versions", + "name": "Allocation for new-versions", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } @@ -148,6 +166,9 @@ "assignment": "unknown", "assignmentDetails": { "value": "unknown", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -157,16 +178,19 @@ "unmatchedAllocations": [ { "key": "old-versions", + "name": "Allocation for old-versions", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "current-versions", + "name": "Allocation for current-versions", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 }, { "key": "new-versions", + "name": "Allocation for new-versions", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 3 } @@ -182,6 +206,9 @@ "assignment": "new", "assignmentDetails": { "value": "new", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"new-versions\".", "variationKey": "new", @@ -197,17 +224,20 @@ }, "matchedAllocation": { "key": "new-versions", + "name": "Allocation for new-versions", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "old-versions", + "name": "Allocation for old-versions", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 }, { "key": "current-versions", + "name": "Allocation for current-versions", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 2 } @@ -223,6 +253,9 @@ "assignment": "current", "assignmentDetails": { "value": "current", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"current-versions\".", "variationKey": "current", @@ -243,12 +276,14 @@ }, "matchedAllocation": { "key": "current-versions", + "name": "Allocation for current-versions", "allocationEvaluationCode": "MATCH", "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "old-versions", + "name": "Allocation for old-versions", "allocationEvaluationCode": "FAILING_RULE", "orderPosition": 1 } @@ -256,6 +291,7 @@ "unevaluatedAllocations": [ { "key": "new-versions", + "name": "Allocation for new-versions", "allocationEvaluationCode": "UNEVALUATED", "orderPosition": 3 } diff --git a/ufc/tests/test-case-start-and-end-date-flag.json b/ufc/tests/test-case-start-and-end-date-flag.json index b927178d..252962c3 100644 --- a/ufc/tests/test-case-start-and-end-date-flag.json +++ b/ufc/tests/test-case-start-and-end-date-flag.json @@ -12,6 +12,9 @@ "assignment": "current", "assignmentDetails": { "value": "current", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "alice belongs to the range of traffic assigned to \"current\" defined in allocation \"current-versions\".", "variationKey": "current", @@ -19,17 +22,20 @@ "matchedRule": null, "matchedAllocation": { "key": "current-versions", + "name": "Allocation for current-versions", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "old-versions", + "name": "Allocation for old-versions", "allocationEvaluationCode": "AFTER_END_TIME", "orderPosition": 1 }, { "key": "future-versions", + "name": "Allocation for future-versions", "allocationEvaluationCode": "BEFORE_START_TIME", "orderPosition": 2 } @@ -46,6 +52,9 @@ "assignment": "current", "assignmentDetails": { "value": "current", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "bob belongs to the range of traffic assigned to \"current\" defined in allocation \"current-versions\".", "variationKey": "current", @@ -53,17 +62,20 @@ "matchedRule": null, "matchedAllocation": { "key": "current-versions", + "name": "Allocation for current-versions", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "old-versions", + "name": "Allocation for old-versions", "allocationEvaluationCode": "AFTER_END_TIME", "orderPosition": 1 }, { "key": "future-versions", + "name": "Allocation for future-versions", "allocationEvaluationCode": "BEFORE_START_TIME", "orderPosition": 2 } @@ -79,6 +91,9 @@ "assignment": "current", "assignmentDetails": { "value": "current", + "environment": { + "name": "Test" + }, "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "charlie belongs to the range of traffic assigned to \"current\" defined in allocation \"current-versions\".", "variationKey": "current", @@ -86,17 +101,20 @@ "matchedRule": null, "matchedAllocation": { "key": "current-versions", + "name": "Allocation for current-versions", "allocationEvaluationCode": "MATCH", "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "old-versions", + "name": "Allocation for old-versions", "allocationEvaluationCode": "AFTER_END_TIME", "orderPosition": 1 }, { "key": "future-versions", + "name": "Allocation for future-versions", "allocationEvaluationCode": "BEFORE_START_TIME", "orderPosition": 2 } diff --git a/ufc/tests/test-flag-that-does-not-exist.json b/ufc/tests/test-flag-that-does-not-exist.json index 0a748dfb..752124b8 100644 --- a/ufc/tests/test-flag-that-does-not-exist.json +++ b/ufc/tests/test-flag-that-does-not-exist.json @@ -12,6 +12,9 @@ "assignment": 0.0, "assignmentDetails": { "value": 0.0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: flag-that-does-not-exist", "variationKey": null, @@ -31,6 +34,9 @@ "assignment": 0.0, "assignmentDetails": { "value": 0.0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: flag-that-does-not-exist", "variationKey": null, @@ -49,6 +55,9 @@ "assignment": 0.0, "assignmentDetails": { "value": 0.0, + "environment": { + "name": "Test" + }, "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: flag-that-does-not-exist", "variationKey": null, diff --git a/ufc/tests/test-json-config-flag.json b/ufc/tests/test-json-config-flag.json index bf6cc5f5..8c4132a0 100644 --- a/ufc/tests/test-json-config-flag.json +++ b/ufc/tests/test-json-config-flag.json @@ -31,6 +31,7 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -66,6 +67,7 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -100,6 +102,7 @@ "matchedRule": null, "matchedAllocation": { "key": "50/50 split", + "name": "Allocation for 50/50 split", "allocationEvaluationCode": "MATCH", "orderPosition": 1 },