Skip to content

Commit

Permalink
fixed test data
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicMarka committed Jan 23, 2025
1 parent 96d90e7 commit 03cf9ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
10 changes: 5 additions & 5 deletions ufc/flags-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 5 additions & 11 deletions ufc/tests/test-case-flag-with-empty-string.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"flag": "string-variations",
"variationType": "STRING",
"defaultValue": "non_empty",
"defaultValue": "default",
"subjects": [
{
"subjectKey": "alice",
Expand All @@ -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
},
Expand All @@ -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",
Expand Down

0 comments on commit 03cf9ae

Please sign in to comment.