-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include test case for special characters (#103)
* test case for special characters * update obfuscated config * update names in description * include unevaluated allocation * update cyrillic language example * fix reason
- Loading branch information
Showing
3 changed files
with
339 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
{ | ||
"flag": "special-characters", | ||
"variationType": "JSON", | ||
"defaultValue": {}, | ||
"subjects": [ | ||
{ | ||
"subjectKey": "ash", | ||
"subjectAttributes": {}, | ||
"assignment": { | ||
"a": "kümmert", | ||
"b": "schön" | ||
}, | ||
"evaluationDetails": { | ||
"environmentName": "Test", | ||
"flagEvaluationCode": "MATCH", | ||
"flagEvaluationDescription": "ash belongs to the range of traffic assigned to \"de\" defined in allocation \"allocation-test\".", | ||
"banditKey": null, | ||
"banditAction": null, | ||
"variationKey": "de", | ||
"variationValue": { | ||
"a": "kümmert", | ||
"b": "schön" | ||
}, | ||
"matchedRule": null, | ||
"matchedAllocation": { | ||
"key": "allocation-test", | ||
"allocationEvaluationCode": "MATCH", | ||
"orderPosition": 1 | ||
}, | ||
"unmatchedAllocations": [], | ||
"unevaluatedAllocations": [ | ||
{ | ||
"key": "allocation-default", | ||
"allocationEvaluationCode": "UNEVALUATED", | ||
"orderPosition": 2 | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"subjectKey": "ben", | ||
"subjectAttributes": {}, | ||
"assignment": { | ||
"a": "піклуватися", | ||
"b": "любов" | ||
}, | ||
"evaluationDetails": { | ||
"environmentName": "Test", | ||
"flagEvaluationCode": "MATCH", | ||
"flagEvaluationDescription": "ben belongs to the range of traffic assigned to \"ua\" defined in allocation \"allocation-test\".", | ||
"banditKey": null, | ||
"banditAction": null, | ||
"variationKey": "ua", | ||
"variationValue": { | ||
"a": "піклуватися", | ||
"b": "любов" | ||
}, | ||
"matchedRule": null, | ||
"matchedAllocation": { | ||
"key": "allocation-test", | ||
"allocationEvaluationCode": "MATCH", | ||
"orderPosition": 1 | ||
}, | ||
"unmatchedAllocations": [], | ||
"unevaluatedAllocations": [ | ||
{ | ||
"key": "allocation-default", | ||
"allocationEvaluationCode": "UNEVALUATED", | ||
"orderPosition": 2 | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"subjectKey": "cameron", | ||
"subjectAttributes": {}, | ||
"assignment": { | ||
"a": "照顾", | ||
"b": "漂亮" | ||
}, | ||
"evaluationDetails": { | ||
"environmentName": "Test", | ||
"flagEvaluationCode": "MATCH", | ||
"flagEvaluationDescription": "cameron belongs to the range of traffic assigned to \"zh\" defined in allocation \"allocation-test\".", | ||
"banditKey": null, | ||
"banditAction": null, | ||
"variationKey": "zh", | ||
"variationValue": { | ||
"a": "照顾", | ||
"b": "漂亮" | ||
}, | ||
"matchedRule": null, | ||
"matchedAllocation": { | ||
"key": "allocation-test", | ||
"allocationEvaluationCode": "MATCH", | ||
"orderPosition": 1 | ||
}, | ||
"unmatchedAllocations": [], | ||
"unevaluatedAllocations": [ | ||
{ | ||
"key": "allocation-default", | ||
"allocationEvaluationCode": "UNEVALUATED", | ||
"orderPosition": 2 | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"subjectKey": "darryl", | ||
"subjectAttributes": {}, | ||
"assignment": { | ||
"a": "🤗", | ||
"b": "🌸" | ||
}, | ||
"evaluationDetails": { | ||
"environmentName": "Test", | ||
"flagEvaluationCode": "MATCH", | ||
"flagEvaluationDescription": "darryl belongs to the range of traffic assigned to \"emoji\" defined in allocation \"allocation-test\".", | ||
"banditKey": null, | ||
"banditAction": null, | ||
"variationKey": "emoji", | ||
"variationValue": { | ||
"a": "🤗", | ||
"b": "🌸" | ||
}, | ||
"matchedRule": null, | ||
"matchedAllocation": { | ||
"key": "allocation-test", | ||
"allocationEvaluationCode": "MATCH", | ||
"orderPosition": 1 | ||
}, | ||
"unmatchedAllocations": [], | ||
"unevaluatedAllocations": [ | ||
{ | ||
"key": "allocation-default", | ||
"allocationEvaluationCode": "UNEVALUATED", | ||
"orderPosition": 2 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |