diff --git a/ufc/flags-v1.json b/ufc/flags-v1.json index 599a6224..636b934c 100644 --- a/ufc/flags-v1.json +++ b/ufc/flags-v1.json @@ -415,22 +415,22 @@ "enabled": true, "variationType": "STRING", "variations": { - "empty_a": { + "empty_string": { "key": "empty_a", - "value": {"a": "", "b": "non-empty"} + "value": "" }, "empty_b": { "key": "empty_b", - "value": {"a": "non-empty", "b": ""} + "value": "" }, "non_empty": { "key": "non_empty", - "value": {"a": "value1", "b": "value2"} + "value": "value2" } }, "allocations": [ { - "key": "allocation-test", + "key": "allocation-empty", "splits": [ { "variationKey": "empty_a", diff --git a/ufc/tests/test-case-flag-with-empty-string.json b/ufc/tests/test-case-flag-with-empty-string.json index b8fab09e..f9b6f26f 100644 --- a/ufc/tests/test-case-flag-with-empty-string.json +++ b/ufc/tests/test-case-flag-with-empty-string.json @@ -1,7 +1,7 @@ { "flag": "string-variations", "variationType": "STRING", - "defaultValue": "non_empty", + "defaultValue": "default", "subjects": [ { "subjectKey": "alice", @@ -14,13 +14,10 @@ "banditKey": null, "banditAction": null, "variationKey": "empty_a", - "variationValue": { - "a": "", - "b": "non-empty" - }, + "variationValue": "", "matchedRule": null, "matchedAllocation": { - "key": "allocation-test", + "key": "allocation-empty", "allocationEvaluationCode": "MATCH", "orderPosition": 1 }, @@ -47,11 +44,8 @@ "flagEvaluationDescription": "bob belongs to the range of traffic assigned to \"empty_b\" defined in allocation \"allocation-test\".", "banditKey": null, "banditAction": null, - "variationKey": "empty_b", - "variationValue": { - "a": "non-empty", - "b": "" - }, + "variationKey": "non_empty_b", + "variationValue": "non_empty_b", "matchedRule": null, "matchedAllocation": { "key": "allocation-test",