From 092e81b794b515a59dd9857b6b3cd656eff59ab9 Mon Sep 17 00:00:00 2001 From: Greg Huels Date: Wed, 26 Jun 2024 07:10:26 -0500 Subject: [PATCH] FF-2465 FF-2465 make orderPosition 1-indexed to match UI --- .../test-case-boolean-one-of-matches.json | 160 +++++++------- .../test-case-comparator-operator-flag.json | 30 +-- 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 | 144 ++++++------ .../test-case-new-user-onboarding-flag.json | 208 +++++++++--------- ufc/tests/test-case-null-operator-flag.json | 20 +- ufc/tests/test-case-numeric-flag.json | 6 +- ufc/tests/test-case-numeric-one-of.json | 42 ++-- ufc/tests/test-case-regex-flag.json | 16 +- ufc/tests/test-case-semver-flag.json | 36 +-- .../test-case-start-and-end-date-flag.json | 18 +- ufc/tests/test-json-config-flag.json | 6 +- 13 files changed, 395 insertions(+), 395 deletions(-) diff --git a/ufc/tests/test-case-boolean-one-of-matches.json b/ufc/tests/test-case-boolean-one-of-matches.json index 991e25dc..b1676756 100644 --- a/ufc/tests/test-case-boolean-one-of-matches.json +++ b/ufc/tests/test-case-boolean-one-of-matches.json @@ -29,29 +29,29 @@ "matchedAllocation": { "key": "1-for-one-of", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "2-for-matches", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 4 + "orderPosition": 5 } ] } @@ -74,27 +74,27 @@ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 4 + "orderPosition": 5 } ], "unevaluatedAllocations": [] @@ -118,27 +118,27 @@ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 4 + "orderPosition": 5 } ], "unevaluatedAllocations": [] @@ -168,30 +168,30 @@ "matchedAllocation": { "key": "2-for-matches", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [ { "key": "3-for-not-one-of", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 4 + "orderPosition": 5 } ] } @@ -214,27 +214,27 @@ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 4 + "orderPosition": 5 } ], "unevaluatedAllocations": [] @@ -258,27 +258,27 @@ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 4 + "orderPosition": 5 } ], "unevaluatedAllocations": [] @@ -308,30 +308,30 @@ "matchedAllocation": { "key": "4-for-not-matches", "allocationEvaluationCode": "MATCH", - "orderPosition": 3 + "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [ { "key": "5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 4 + "orderPosition": 5 } ] } @@ -360,30 +360,30 @@ "matchedAllocation": { "key": "4-for-not-matches", "allocationEvaluationCode": "MATCH", - "orderPosition": 3 + "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [ { "key": "5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 4 + "orderPosition": 5 } ] } @@ -414,30 +414,30 @@ "matchedAllocation": { "key": "3-for-not-one-of", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "4-for-not-matches", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 4 + "orderPosition": 5 } ] } @@ -460,27 +460,27 @@ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 4 + "orderPosition": 5 } ], "unevaluatedAllocations": [] @@ -512,30 +512,30 @@ "matchedAllocation": { "key": "3-for-not-one-of", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "4-for-not-matches", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 4 + "orderPosition": 5 } ] } @@ -566,30 +566,30 @@ "matchedAllocation": { "key": "3-for-not-one-of", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "4-for-not-matches", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 4 + "orderPosition": 5 } ] } @@ -612,27 +612,27 @@ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 4 + "orderPosition": 5 } ], "unevaluatedAllocations": [] @@ -664,28 +664,28 @@ "matchedAllocation": { "key": "5-for-matches-null", "allocationEvaluationCode": "MATCH", - "orderPosition": 4 + "orderPosition": 5 }, "unmatchedAllocations": [ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 } ], "unevaluatedAllocations": [] @@ -709,27 +709,27 @@ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 4 + "orderPosition": 5 } ], "unevaluatedAllocations": [] @@ -751,27 +751,27 @@ { "key": "1-for-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-one-of", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "4-for-not-matches", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 }, { "key": "5-for-matches-null", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 4 + "orderPosition": 5 } ], "unevaluatedAllocations": [] diff --git a/ufc/tests/test-case-comparator-operator-flag.json b/ufc/tests/test-case-comparator-operator-flag.json index 18fd9e30..37908bea 100644 --- a/ufc/tests/test-case-comparator-operator-flag.json +++ b/ufc/tests/test-case-comparator-operator-flag.json @@ -28,19 +28,19 @@ "matchedAllocation": { "key": "small-size", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "medum-size", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "large-size", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -75,20 +75,20 @@ "matchedAllocation": { "key": "medum-size", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "small-size", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [ { "key": "large-size", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -111,17 +111,17 @@ { "key": "small-size", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "medum-size", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "large-size", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [] @@ -151,18 +151,18 @@ "matchedAllocation": { "key": "large-size", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "small-size", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "medum-size", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -186,17 +186,17 @@ { "key": "small-size", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "medum-size", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "large-size", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [] diff --git a/ufc/tests/test-case-integer-flag.json b/ufc/tests/test-case-integer-flag.json index fe4f2846..32e48dc9 100644 --- a/ufc/tests/test-case-integer-flag.json +++ b/ufc/tests/test-case-integer-flag.json @@ -32,14 +32,14 @@ "matchedAllocation": { "key": "targeted allocation", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "50/50 split", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 } ] } @@ -73,14 +73,14 @@ "matchedAllocation": { "key": "targeted allocation", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "50/50 split", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 } ] } @@ -101,13 +101,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -143,14 +143,14 @@ "matchedAllocation": { "key": "targeted allocation", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "50/50 split", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 } ] } @@ -169,13 +169,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -195,13 +195,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -221,13 +221,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -247,13 +247,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -273,13 +273,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -299,13 +299,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -325,13 +325,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -351,13 +351,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -377,13 +377,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -403,13 +403,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -429,13 +429,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -455,13 +455,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -481,13 +481,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -507,13 +507,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -533,13 +533,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -559,13 +559,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -585,13 +585,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -611,13 +611,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -637,13 +637,13 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "targeted allocation", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] diff --git a/ufc/tests/test-case-invalid-value-flag.json b/ufc/tests/test-case-invalid-value-flag.json index 2d1d8998..1fbd546d 100644 --- a/ufc/tests/test-case-invalid-value-flag.json +++ b/ufc/tests/test-case-invalid-value-flag.json @@ -23,12 +23,12 @@ { "key": "valid", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "invalid", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 } ] } @@ -60,14 +60,14 @@ "matchedAllocation": { "key": "valid", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "invalid", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 } ] } @@ -91,12 +91,12 @@ { "key": "valid", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "invalid", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 } ] } diff --git a/ufc/tests/test-case-kill-switch-flag.json b/ufc/tests/test-case-kill-switch-flag.json index a996ebf9..395a7732 100644 --- a/ufc/tests/test-case-kill-switch-flag.json +++ b/ufc/tests/test-case-kill-switch-flag.json @@ -32,19 +32,19 @@ "matchedAllocation": { "key": "on-for-NA", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "off-for-all", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -78,19 +78,19 @@ "matchedAllocation": { "key": "on-for-NA", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "off-for-all", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -112,18 +112,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -145,18 +145,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -192,19 +192,19 @@ "matchedAllocation": { "key": "on-for-NA", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "off-for-all", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -223,18 +223,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -268,19 +268,19 @@ "matchedAllocation": { "key": "on-for-NA", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "off-for-all", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -310,20 +310,20 @@ "matchedAllocation": { "key": "on-for-age-50+", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [ { "key": "off-for-all", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -344,18 +344,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -377,18 +377,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -410,18 +410,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -456,19 +456,19 @@ "matchedAllocation": { "key": "on-for-NA", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "off-for-all", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -498,20 +498,20 @@ "matchedAllocation": { "key": "on-for-age-50+", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [ { "key": "off-for-all", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -532,18 +532,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -563,18 +563,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -594,18 +594,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -639,19 +639,19 @@ "matchedAllocation": { "key": "on-for-NA", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "off-for-all", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -684,19 +684,19 @@ "matchedAllocation": { "key": "on-for-NA", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "on-for-age-50+", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "off-for-all", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -715,18 +715,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -748,18 +748,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -781,18 +781,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -814,18 +814,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -847,18 +847,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -880,18 +880,18 @@ "matchedAllocation": { "key": "off-for-all", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "on-for-NA", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "on-for-age-50+", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] diff --git a/ufc/tests/test-case-new-user-onboarding-flag.json b/ufc/tests/test-case-new-user-onboarding-flag.json index c65b2021..177de05c 100644 --- a/ufc/tests/test-case-new-user-onboarding-flag.json +++ b/ufc/tests/test-case-new-user-onboarding-flag.json @@ -28,25 +28,25 @@ "matchedAllocation": { "key": "internal users", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [ { "key": "experiment", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } @@ -70,22 +70,22 @@ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "TRAFFIC_EXPOSURE_MISS", - "orderPosition": 3 + "orderPosition": 4 } ], "unevaluatedAllocations": [] @@ -109,22 +109,22 @@ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 } ], "unevaluatedAllocations": [] @@ -160,23 +160,23 @@ "matchedAllocation": { "key": "rollout", "allocationEvaluationCode": "MATCH", - "orderPosition": 3 + "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [] @@ -208,24 +208,24 @@ "matchedAllocation": { "key": "id rule", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "internal users", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } @@ -261,23 +261,23 @@ "matchedAllocation": { "key": "rollout", "allocationEvaluationCode": "MATCH", - "orderPosition": 3 + "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [] @@ -303,22 +303,22 @@ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "TRAFFIC_EXPOSURE_MISS", - "orderPosition": 3 + "orderPosition": 4 } ], "unevaluatedAllocations": [] @@ -340,22 +340,22 @@ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 } ], "unevaluatedAllocations": [] @@ -389,23 +389,23 @@ "matchedAllocation": { "key": "rollout", "allocationEvaluationCode": "MATCH", - "orderPosition": 3 + "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [] @@ -440,25 +440,25 @@ "matchedAllocation": { "key": "experiment", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } @@ -491,25 +491,25 @@ "matchedAllocation": { "key": "experiment", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } @@ -542,25 +542,25 @@ "matchedAllocation": { "key": "experiment", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } @@ -593,25 +593,25 @@ "matchedAllocation": { "key": "experiment", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } @@ -644,23 +644,23 @@ "matchedAllocation": { "key": "rollout", "allocationEvaluationCode": "MATCH", - "orderPosition": 3 + "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [] @@ -694,25 +694,25 @@ "matchedAllocation": { "key": "experiment", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } @@ -735,22 +735,22 @@ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 } ], "unevaluatedAllocations": [] @@ -772,22 +772,22 @@ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 } ], "unevaluatedAllocations": [] @@ -809,22 +809,22 @@ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 } ], "unevaluatedAllocations": [] @@ -858,23 +858,23 @@ "matchedAllocation": { "key": "rollout", "allocationEvaluationCode": "MATCH", - "orderPosition": 3 + "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [] @@ -908,23 +908,23 @@ "matchedAllocation": { "key": "rollout", "allocationEvaluationCode": "MATCH", - "orderPosition": 3 + "orderPosition": 4 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [] @@ -946,22 +946,22 @@ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 } ], "unevaluatedAllocations": [] @@ -995,25 +995,25 @@ "matchedAllocation": { "key": "experiment", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } @@ -1046,25 +1046,25 @@ "matchedAllocation": { "key": "experiment", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } @@ -1097,25 +1097,25 @@ "matchedAllocation": { "key": "experiment", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } @@ -1138,22 +1138,22 @@ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "experiment", "allocationEvaluationCode": "TRAFFIC_EXPOSURE_MISS", - "orderPosition": 2 + "orderPosition": 3 }, { "key": "rollout", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 3 + "orderPosition": 4 } ], "unevaluatedAllocations": [] @@ -1187,25 +1187,25 @@ "matchedAllocation": { "key": "experiment", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "id rule", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "internal users", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [ { "key": "rollout", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 3 + "orderPosition": 4 } ] } diff --git a/ufc/tests/test-case-null-operator-flag.json b/ufc/tests/test-case-null-operator-flag.json index 8b8ebf82..35fc5d93 100644 --- a/ufc/tests/test-case-null-operator-flag.json +++ b/ufc/tests/test-case-null-operator-flag.json @@ -28,14 +28,14 @@ "matchedAllocation": { "key": "null-operator", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "not-null-operator", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 } ] } @@ -65,13 +65,13 @@ "matchedAllocation": { "key": "not-null-operator", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "null-operator", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -101,14 +101,14 @@ "matchedAllocation": { "key": "null-operator", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "not-null-operator", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 } ] } @@ -137,13 +137,13 @@ "matchedAllocation": { "key": "not-null-operator", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "null-operator", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -173,14 +173,14 @@ "matchedAllocation": { "key": "null-operator", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "not-null-operator", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 } ] } diff --git a/ufc/tests/test-case-numeric-flag.json b/ufc/tests/test-case-numeric-flag.json index 4690a9be..60305bed 100644 --- a/ufc/tests/test-case-numeric-flag.json +++ b/ufc/tests/test-case-numeric-flag.json @@ -20,7 +20,7 @@ "matchedAllocation": { "key": "rollout", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [] @@ -43,7 +43,7 @@ "matchedAllocation": { "key": "rollout", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [] @@ -65,7 +65,7 @@ "matchedAllocation": { "key": "rollout", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [] diff --git a/ufc/tests/test-case-numeric-one-of.json b/ufc/tests/test-case-numeric-one-of.json index aecf80b0..f4d09567 100644 --- a/ufc/tests/test-case-numeric-one-of.json +++ b/ufc/tests/test-case-numeric-one-of.json @@ -29,19 +29,19 @@ "matchedAllocation": { "key": "1-for-1", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "2-for-123456789", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-2", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -64,17 +64,17 @@ { "key": "1-for-1", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-123456789", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-2", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [] @@ -106,18 +106,18 @@ "matchedAllocation": { "key": "3-for-not-2", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "1-for-1", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-123456789", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -149,18 +149,18 @@ "matchedAllocation": { "key": "3-for-not-2", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "1-for-1", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "2-for-123456789", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -192,19 +192,19 @@ "matchedAllocation": { "key": "1-for-1", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "2-for-123456789", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-2", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -235,19 +235,19 @@ "matchedAllocation": { "key": "1-for-1", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "2-for-123456789", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "3-for-not-2", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -278,20 +278,20 @@ "matchedAllocation": { "key": "2-for-123456789", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "1-for-1", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [ { "key": "3-for-not-2", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } diff --git a/ufc/tests/test-case-regex-flag.json b/ufc/tests/test-case-regex-flag.json index 8329c273..78fee34d 100644 --- a/ufc/tests/test-case-regex-flag.json +++ b/ufc/tests/test-case-regex-flag.json @@ -28,14 +28,14 @@ "matchedAllocation": { "key": "partial-example", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "test", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 } ] } @@ -65,13 +65,13 @@ "matchedAllocation": { "key": "test", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "partial-example", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [] @@ -95,12 +95,12 @@ { "key": "partial-example", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "test", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -125,12 +125,12 @@ { "key": "partial-example", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "test", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] diff --git a/ufc/tests/test-case-semver-flag.json b/ufc/tests/test-case-semver-flag.json index b5485a46..4cd07a62 100644 --- a/ufc/tests/test-case-semver-flag.json +++ b/ufc/tests/test-case-semver-flag.json @@ -33,20 +33,20 @@ "matchedAllocation": { "key": "current-versions", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "old-versions", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [ { "key": "new-versions", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -76,19 +76,19 @@ "matchedAllocation": { "key": "old-versions", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [ { "key": "current-versions", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "new-versions", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -122,20 +122,20 @@ "matchedAllocation": { "key": "current-versions", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "old-versions", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [ { "key": "new-versions", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "orderPosition": 3 } ] } @@ -158,17 +158,17 @@ { "key": "old-versions", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "current-versions", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 }, { "key": "new-versions", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 2 + "orderPosition": 3 } ], "unevaluatedAllocations": [] @@ -198,18 +198,18 @@ "matchedAllocation": { "key": "new-versions", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "old-versions", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "current-versions", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -244,20 +244,20 @@ "matchedAllocation": { "key": "current-versions", "allocationEvaluationCode": "MATCH", - "orderPosition": 1 + "orderPosition": 2 }, "unmatchedAllocations": [ { "key": "old-versions", "allocationEvaluationCode": "FAILING_RULE", - "orderPosition": 0 + "orderPosition": 1 } ], "unevaluatedAllocations": [ { "key": "new-versions", "allocationEvaluationCode": "UNEVALUATED", - "orderPosition": 2 + "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 6f33c831..b927178d 100644 --- a/ufc/tests/test-case-start-and-end-date-flag.json +++ b/ufc/tests/test-case-start-and-end-date-flag.json @@ -20,18 +20,18 @@ "matchedAllocation": { "key": "current-versions", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "old-versions", "allocationEvaluationCode": "AFTER_END_TIME", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "future-versions", "allocationEvaluationCode": "BEFORE_START_TIME", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -54,18 +54,18 @@ "matchedAllocation": { "key": "current-versions", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "old-versions", "allocationEvaluationCode": "AFTER_END_TIME", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "future-versions", "allocationEvaluationCode": "BEFORE_START_TIME", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] @@ -87,18 +87,18 @@ "matchedAllocation": { "key": "current-versions", "allocationEvaluationCode": "MATCH", - "orderPosition": 2 + "orderPosition": 3 }, "unmatchedAllocations": [ { "key": "old-versions", "allocationEvaluationCode": "AFTER_END_TIME", - "orderPosition": 0 + "orderPosition": 1 }, { "key": "future-versions", "allocationEvaluationCode": "BEFORE_START_TIME", - "orderPosition": 1 + "orderPosition": 2 } ], "unevaluatedAllocations": [] diff --git a/ufc/tests/test-json-config-flag.json b/ufc/tests/test-json-config-flag.json index b7f4675f..bf6cc5f5 100644 --- a/ufc/tests/test-json-config-flag.json +++ b/ufc/tests/test-json-config-flag.json @@ -32,7 +32,7 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [] @@ -67,7 +67,7 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": [] @@ -101,7 +101,7 @@ "matchedAllocation": { "key": "50/50 split", "allocationEvaluationCode": "MATCH", - "orderPosition": 0 + "orderPosition": 1 }, "unmatchedAllocations": [], "unevaluatedAllocations": []