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 03cf9ae commit 4688dc2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
10 changes: 3 additions & 7 deletions ufc/flags-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,24 +416,20 @@
"variationType": "STRING",
"variations": {
"empty_string": {
"key": "empty_a",
"value": ""
},
"empty_b": {
"key": "empty_b",
"key": "empty_string",
"value": ""
},
"non_empty": {
"key": "non_empty",
"value": "value2"
"value": "non_empty"
}
},
"allocations": [
{
"key": "allocation-empty",
"splits": [
{
"variationKey": "empty_a",
"variationKey": "empty_string",
"shards": []
}
],
Expand Down
15 changes: 6 additions & 9 deletions ufc/tests/test-case-flag-with-empty-string.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
{
"subjectKey": "alice",
"subjectAttributes": {},
"assignment": {"a": "", "b": "non-empty"},
"assignment": "",
"evaluationDetails": {
"environmentName": "Test",
"flagEvaluationCode": "MATCH",
"flagEvaluationDescription": "alice belongs to the range of traffic assigned to \"empty_a\" defined in allocation \"allocation-test\".",
"flagEvaluationDescription": "alice belongs to the range of traffic assigned to \"empty_string\" defined in allocation \"allocation-empty\".",
"banditKey": null,
"banditAction": null,
"variationKey": "empty_a",
"variationKey": "empty_string",
"variationValue": "",
"matchedRule": null,
"matchedAllocation": {
Expand All @@ -34,18 +34,15 @@
{
"subjectKey": "bob",
"subjectAttributes": {},
"assignment": {
"a": "non-empty",
"b": ""
},
"assignment": "non_empty",
"evaluationDetails": {
"environmentName": "Test",
"flagEvaluationCode": "MATCH",
"flagEvaluationDescription": "bob belongs to the range of traffic assigned to \"empty_b\" defined in allocation \"allocation-test\".",
"banditKey": null,
"banditAction": null,
"variationKey": "non_empty_b",
"variationValue": "non_empty_b",
"variationKey": "non_empty",
"variationValue": "non_empty",
"matchedRule": null,
"matchedAllocation": {
"key": "allocation-test",
Expand Down

0 comments on commit 4688dc2

Please sign in to comment.