From d6e3f03c4a01071b23114b46d14838b9527be940 Mon Sep 17 00:00:00 2001 From: Greg Huels Date: Mon, 1 Jul 2024 09:32:08 -0500 Subject: [PATCH] FF-2526 fix tests for assignmentDetails object --- .../test-case-boolean-one-of-matches.json | 64 +++-------- .../test-case-comparator-operator-flag.json | 20 +--- ufc/tests/test-case-disabled-flag.json | 12 +- ufc/tests/test-case-empty-flag.json | 12 +- ufc/tests/test-case-integer-flag.json | 92 ++++------------ ufc/tests/test-case-invalid-value-flag.json | 12 +- ufc/tests/test-case-kill-switch-flag.json | 96 ++++------------ .../test-case-new-user-onboarding-flag.json | 104 +++++------------- ufc/tests/test-case-null-operator-flag.json | 20 +--- ufc/tests/test-case-numeric-flag.json | 12 +- ufc/tests/test-case-numeric-one-of.json | 28 ++--- ufc/tests/test-case-regex-flag.json | 16 +-- ufc/tests/test-case-semver-flag.json | 24 +--- .../test-case-start-and-end-date-flag.json | 12 +- ufc/tests/test-flag-that-does-not-exist.json | 12 +- 15 files changed, 134 insertions(+), 402 deletions(-) diff --git a/ufc/tests/test-case-boolean-one-of-matches.json b/ufc/tests/test-case-boolean-one-of-matches.json index 49f6fb9..bc653f7 100644 --- a/ufc/tests/test-case-boolean-one-of-matches.json +++ b/ufc/tests/test-case-boolean-one-of-matches.json @@ -11,9 +11,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"1-for-one-of\".", "variationKey": "1", @@ -72,9 +70,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -124,9 +120,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -176,9 +170,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"2-for-matches\".", "variationKey": "2", @@ -236,9 +228,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -288,9 +278,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -340,9 +328,7 @@ "assignment": 4, "assignmentDetails": { "value": 4, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"4-for-not-matches\".", "variationKey": "4", @@ -400,9 +386,7 @@ "assignment": 4, "assignmentDetails": { "value": 4, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"4-for-not-matches\".", "variationKey": "4", @@ -460,9 +444,7 @@ "assignment": 3, "assignmentDetails": { "value": 3, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"3-for-not-one-of\".", "variationKey": "3", @@ -522,9 +504,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -574,9 +554,7 @@ "assignment": 3, "assignmentDetails": { "value": 3, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"3-for-not-one-of\".", "variationKey": "3", @@ -636,9 +614,7 @@ "assignment": 3, "assignmentDetails": { "value": 3, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"3-for-not-one-of\".", "variationKey": "3", @@ -698,9 +674,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -750,9 +724,7 @@ "assignment": 5, "assignmentDetails": { "value": 5, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"5-for-matches-null\".", "variationKey": "5", @@ -811,9 +783,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -861,9 +831,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "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-comparator-operator-flag.json b/ufc/tests/test-case-comparator-operator-flag.json index ecdcc68..c1832d8 100644 --- a/ufc/tests/test-case-comparator-operator-flag.json +++ b/ufc/tests/test-case-comparator-operator-flag.json @@ -12,9 +12,7 @@ "assignment": "small", "assignmentDetails": { "value": "small", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"small-size\".", "variationKey": "small", @@ -60,9 +58,7 @@ "assignment": "medium", "assignmentDetails": { "value": "medium", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"medum-size\".", "variationKey": "medium", @@ -113,9 +109,7 @@ "assignment": "unknown", "assignmentDetails": { "value": "unknown", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -153,9 +147,7 @@ "assignment": "large", "assignmentDetails": { "value": "large", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"large-size\".", "variationKey": "large", @@ -200,9 +192,7 @@ "assignment": "unknown", "assignmentDetails": { "value": "unknown", - "environment": { - "name": "Test" - }, + "environmentName": "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-disabled-flag.json b/ufc/tests/test-case-disabled-flag.json index 4ee2800..4bb60db 100644 --- a/ufc/tests/test-case-disabled-flag.json +++ b/ufc/tests/test-case-disabled-flag.json @@ -12,9 +12,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: disabled_flag", "variationKey": null, @@ -34,9 +32,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: disabled_flag", "variationKey": null, @@ -55,9 +51,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "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 a4cbade..8ebfe35 100644 --- a/ufc/tests/test-case-empty-flag.json +++ b/ufc/tests/test-case-empty-flag.json @@ -12,9 +12,7 @@ "assignment": "default_value", "assignmentDetails": { "value": "default_value", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -34,9 +32,7 @@ "assignment": "default_value", "assignmentDetails": { "value": "default_value", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -55,9 +51,7 @@ "assignment": "default_value", "assignmentDetails": { "value": "default_value", - "environment": { - "name": "Test" - }, + "environmentName": "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 11f7617..2450442 100644 --- a/ufc/tests/test-case-integer-flag.json +++ b/ufc/tests/test-case-integer-flag.json @@ -12,9 +12,7 @@ "assignment": 3, "assignmentDetails": { "value": 3, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"targeted allocation\".", "variationKey": "three", @@ -58,9 +56,7 @@ "assignment": 3, "assignmentDetails": { "value": 3, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"targeted allocation\".", "variationKey": "three", @@ -103,9 +99,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "charlie belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -138,9 +132,7 @@ "assignment": 3, "assignmentDetails": { "value": 3, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"targeted allocation\".", "variationKey": "three", @@ -181,9 +173,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "1 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -212,9 +202,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "2 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -243,9 +231,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "3 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -274,9 +260,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "4 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -305,9 +289,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "5 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -336,9 +318,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "6 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -367,9 +347,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "7 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -398,9 +376,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "8 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -429,9 +405,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "9 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -460,9 +434,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "10 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -491,9 +463,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "11 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -522,9 +492,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "12 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -553,9 +521,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "13 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -584,9 +550,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "14 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -615,9 +579,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "15 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -646,9 +608,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "16 belongs to the range of traffic assigned to \"two\" defined in allocation \"50/50 split\".", "variationKey": "two", @@ -677,9 +637,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "17 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -708,9 +666,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "18 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", @@ -739,9 +695,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "19 belongs to the range of traffic assigned to \"one\" defined in allocation \"50/50 split\".", "variationKey": "one", diff --git a/ufc/tests/test-case-invalid-value-flag.json b/ufc/tests/test-case-invalid-value-flag.json index 9631aa2..f6e8227 100644 --- a/ufc/tests/test-case-invalid-value-flag.json +++ b/ufc/tests/test-case-invalid-value-flag.json @@ -12,9 +12,7 @@ "assignment": 42, "assignmentDetails": { "value": 42, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "TYPE_MISMATCH", "flagEvaluationDescription": "Expected variation type INTEGER does not match for variation 'pi' with value 3.1415926", "variationKey": null, @@ -47,9 +45,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"valid\".", "variationKey": "one", @@ -90,9 +86,7 @@ "assignment": 42, "assignmentDetails": { "value": 42, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "TYPE_MISMATCH", "flagEvaluationDescription": "Expected variation type INTEGER does not match for variation 'pi' with value 3.1415926", "variationKey": null, diff --git a/ufc/tests/test-case-kill-switch-flag.json b/ufc/tests/test-case-kill-switch-flag.json index c0211e1..4475a76 100644 --- a/ufc/tests/test-case-kill-switch-flag.json +++ b/ufc/tests/test-case-kill-switch-flag.json @@ -12,9 +12,7 @@ "assignment": true, "assignmentDetails": { "value": true, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -64,9 +62,7 @@ "assignment": true, "assignmentDetails": { "value": true, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -116,9 +112,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "barbara belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -155,9 +149,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "charlie belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -196,9 +188,7 @@ "assignment": true, "assignmentDetails": { "value": true, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -245,9 +235,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "1 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -284,9 +272,7 @@ "assignment": true, "assignmentDetails": { "value": true, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -336,9 +322,7 @@ "assignment": true, "assignmentDetails": { "value": true, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-age-50+\".", "variationKey": "on", @@ -384,9 +368,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "4 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -423,9 +405,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "5 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -462,9 +442,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "6 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -502,9 +480,7 @@ "assignment": true, "assignmentDetails": { "value": true, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -554,9 +530,7 @@ "assignment": true, "assignmentDetails": { "value": true, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-age-50+\".", "variationKey": "on", @@ -602,9 +576,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "9 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -639,9 +611,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "10 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -676,9 +646,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "11 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -715,9 +683,7 @@ "assignment": true, "assignmentDetails": { "value": true, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -766,9 +732,7 @@ "assignment": true, "assignmentDetails": { "value": true, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"on-for-NA\".", "variationKey": "on", @@ -815,9 +779,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "14 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -854,9 +816,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "15 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -893,9 +853,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "16 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -932,9 +890,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "17 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -971,9 +927,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "18 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", @@ -1010,9 +964,7 @@ "assignment": false, "assignmentDetails": { "value": false, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "19 belongs to the range of traffic assigned to \"off\" defined in allocation \"off-for-all\".", "variationKey": "off", diff --git a/ufc/tests/test-case-new-user-onboarding-flag.json b/ufc/tests/test-case-new-user-onboarding-flag.json index 9a0c55b..ddf4f96 100644 --- a/ufc/tests/test-case-new-user-onboarding-flag.json +++ b/ufc/tests/test-case-new-user-onboarding-flag.json @@ -12,9 +12,7 @@ "assignment": "green", "assignmentDetails": { "value": "green", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"internal users\".", "variationKey": "green", @@ -67,9 +65,7 @@ "assignment": "default", "assignmentDetails": { "value": "default", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -113,9 +109,7 @@ "assignment": "default", "assignmentDetails": { "value": "default", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -161,9 +155,7 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -220,9 +212,7 @@ "assignment": "purple", "assignmentDetails": { "value": "purple", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"id rule\".", "variationKey": "purple", @@ -276,9 +266,7 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -335,9 +323,7 @@ "assignment": "default", "assignmentDetails": { "value": "default", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -379,9 +365,7 @@ "assignment": "default", "assignmentDetails": { "value": "default", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -425,9 +409,7 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -483,9 +465,7 @@ "assignment": "control", "assignmentDetails": { "value": "control", - "environment": { - "name": "Test" - }, + "environmentName": "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", @@ -541,9 +521,7 @@ "assignment": "red", "assignmentDetails": { "value": "red", - "environment": { - "name": "Test" - }, + "environmentName": "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", @@ -599,9 +577,7 @@ "assignment": "yellow", "assignmentDetails": { "value": "yellow", - "environment": { - "name": "Test" - }, + "environmentName": "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", @@ -657,9 +633,7 @@ "assignment": "yellow", "assignmentDetails": { "value": "yellow", - "environment": { - "name": "Test" - }, + "environmentName": "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", @@ -715,9 +689,7 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -772,9 +744,7 @@ "assignment": "red", "assignmentDetails": { "value": "red", - "environment": { - "name": "Test" - }, + "environmentName": "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", @@ -830,9 +800,7 @@ "assignment": "default", "assignmentDetails": { "value": "default", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -874,9 +842,7 @@ "assignment": "default", "assignmentDetails": { "value": "default", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -918,9 +884,7 @@ "assignment": "default", "assignmentDetails": { "value": "default", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -964,9 +928,7 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -1021,9 +983,7 @@ "assignment": "blue", "assignmentDetails": { "value": "blue", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"rollout\".", "variationKey": "blue", @@ -1076,9 +1036,7 @@ "assignment": "default", "assignmentDetails": { "value": "default", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -1122,9 +1080,7 @@ "assignment": "yellow", "assignmentDetails": { "value": "yellow", - "environment": { - "name": "Test" - }, + "environmentName": "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", @@ -1180,9 +1136,7 @@ "assignment": "control", "assignmentDetails": { "value": "control", - "environment": { - "name": "Test" - }, + "environmentName": "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", @@ -1238,9 +1192,7 @@ "assignment": "control", "assignmentDetails": { "value": "control", - "environment": { - "name": "Test" - }, + "environmentName": "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", @@ -1296,9 +1248,7 @@ "assignment": "default", "assignmentDetails": { "value": "default", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -1342,9 +1292,7 @@ "assignment": "red", "assignmentDetails": { "value": "red", - "environment": { - "name": "Test" - }, + "environmentName": "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", diff --git a/ufc/tests/test-case-null-operator-flag.json b/ufc/tests/test-case-null-operator-flag.json index 0c992b1..6334355 100644 --- a/ufc/tests/test-case-null-operator-flag.json +++ b/ufc/tests/test-case-null-operator-flag.json @@ -12,9 +12,7 @@ "assignment": "old", "assignmentDetails": { "value": "old", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"null-operator\".", "variationKey": "old", @@ -54,9 +52,7 @@ "assignment": "new", "assignmentDetails": { "value": "new", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"not-null-operator\".", "variationKey": "new", @@ -95,9 +91,7 @@ "assignment": "old", "assignmentDetails": { "value": "old", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"null-operator\".", "variationKey": "old", @@ -136,9 +130,7 @@ "assignment": "new", "assignmentDetails": { "value": "new", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"not-null-operator\".", "variationKey": "new", @@ -177,9 +169,7 @@ "assignment": "old", "assignmentDetails": { "value": "old", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"null-operator\".", "variationKey": "old", diff --git a/ufc/tests/test-case-numeric-flag.json b/ufc/tests/test-case-numeric-flag.json index bda3118..8129441 100644 --- a/ufc/tests/test-case-numeric-flag.json +++ b/ufc/tests/test-case-numeric-flag.json @@ -12,9 +12,7 @@ "assignment": 3.1415926, "assignmentDetails": { "value": 3.1415926, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "alice belongs to the range of traffic assigned to \"pi\" defined in allocation \"rollout\".", "variationKey": "pi", @@ -39,9 +37,7 @@ "assignment": 3.1415926, "assignmentDetails": { "value": 3.1415926, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "bob belongs to the range of traffic assigned to \"pi\" defined in allocation \"rollout\".", "variationKey": "pi", @@ -65,9 +61,7 @@ "assignment": 3.1415926, "assignmentDetails": { "value": 3.1415926, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "charlie belongs to the range of traffic assigned to \"pi\" defined in allocation \"rollout\".", "variationKey": "pi", diff --git a/ufc/tests/test-case-numeric-one-of.json b/ufc/tests/test-case-numeric-one-of.json index 291e2c9..848f2ce 100644 --- a/ufc/tests/test-case-numeric-one-of.json +++ b/ufc/tests/test-case-numeric-one-of.json @@ -11,9 +11,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"1-for-1\".", "variationKey": "1", @@ -60,9 +58,7 @@ "assignment": 0, "assignmentDetails": { "value": 0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -100,9 +96,7 @@ "assignment": 3, "assignmentDetails": { "value": 3, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"3-for-not-2\".", "variationKey": "3", @@ -149,9 +143,7 @@ "assignment": 3, "assignmentDetails": { "value": 3, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"3-for-not-2\".", "variationKey": "3", @@ -198,9 +190,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"1-for-1\".", "variationKey": "1", @@ -247,9 +237,7 @@ "assignment": 1, "assignmentDetails": { "value": 1, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"1-for-1\".", "variationKey": "1", @@ -296,9 +284,7 @@ "assignment": 2, "assignmentDetails": { "value": 2, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"2-for-123456789\".", "variationKey": "2", diff --git a/ufc/tests/test-case-regex-flag.json b/ufc/tests/test-case-regex-flag.json index 7ba0036..11a1c87 100644 --- a/ufc/tests/test-case-regex-flag.json +++ b/ufc/tests/test-case-regex-flag.json @@ -12,9 +12,7 @@ "assignment": "partial-example", "assignmentDetails": { "value": "partial-example", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"partial-example\".", "variationKey": "partial-example", @@ -54,9 +52,7 @@ "assignment": "test", "assignmentDetails": { "value": "test", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"test\".", "variationKey": "test", @@ -95,9 +91,7 @@ "assignment": "none", "assignmentDetails": { "value": "none", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -130,9 +124,7 @@ "assignment": "none", "assignmentDetails": { "value": "none", - "environment": { - "name": "Test" - }, + "environmentName": "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-semver-flag.json b/ufc/tests/test-case-semver-flag.json index 6205485..10940de 100644 --- a/ufc/tests/test-case-semver-flag.json +++ b/ufc/tests/test-case-semver-flag.json @@ -12,9 +12,7 @@ "assignment": "current", "assignmentDetails": { "value": "current", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"current-versions\".", "variationKey": "current", @@ -66,9 +64,7 @@ "assignment": "old", "assignmentDetails": { "value": "old", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"old-versions\".", "variationKey": "old", @@ -113,9 +109,7 @@ "assignment": "current", "assignmentDetails": { "value": "current", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"current-versions\".", "variationKey": "current", @@ -166,9 +160,7 @@ "assignment": "unknown", "assignmentDetails": { "value": "unknown", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "DEFAULT_ALLOCATION_NULL", "flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL", "variationKey": null, @@ -206,9 +198,7 @@ "assignment": "new", "assignmentDetails": { "value": "new", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"new-versions\".", "variationKey": "new", @@ -253,9 +243,7 @@ "assignment": "current", "assignmentDetails": { "value": "current", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"current-versions\".", "variationKey": "current", 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 252962c..dfa45e4 100644 --- a/ufc/tests/test-case-start-and-end-date-flag.json +++ b/ufc/tests/test-case-start-and-end-date-flag.json @@ -12,9 +12,7 @@ "assignment": "current", "assignmentDetails": { "value": "current", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "alice belongs to the range of traffic assigned to \"current\" defined in allocation \"current-versions\".", "variationKey": "current", @@ -52,9 +50,7 @@ "assignment": "current", "assignmentDetails": { "value": "current", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "bob belongs to the range of traffic assigned to \"current\" defined in allocation \"current-versions\".", "variationKey": "current", @@ -91,9 +87,7 @@ "assignment": "current", "assignmentDetails": { "value": "current", - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "MATCH", "flagEvaluationDescription": "charlie belongs to the range of traffic assigned to \"current\" defined in allocation \"current-versions\".", "variationKey": "current", diff --git a/ufc/tests/test-flag-that-does-not-exist.json b/ufc/tests/test-flag-that-does-not-exist.json index 752124b..60b5ed1 100644 --- a/ufc/tests/test-flag-that-does-not-exist.json +++ b/ufc/tests/test-flag-that-does-not-exist.json @@ -12,9 +12,7 @@ "assignment": 0.0, "assignmentDetails": { "value": 0.0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: flag-that-does-not-exist", "variationKey": null, @@ -34,9 +32,7 @@ "assignment": 0.0, "assignmentDetails": { "value": 0.0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: flag-that-does-not-exist", "variationKey": null, @@ -55,9 +51,7 @@ "assignment": 0.0, "assignmentDetails": { "value": 0.0, - "environment": { - "name": "Test" - }, + "environmentName": "Test", "flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED", "flagEvaluationDescription": "Unrecognized or disabled flag: flag-that-does-not-exist", "variationKey": null,