Skip to content

Commit

Permalink
FF-2526 update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
greghuels committed Jun 28, 2024
1 parent be7a41e commit f16f031
Show file tree
Hide file tree
Showing 16 changed files with 529 additions and 0 deletions.
96 changes: 96 additions & 0 deletions ufc/tests/test-case-boolean-one-of-matches.json

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions ufc/tests/test-case-comparator-operator-flag.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"assignment": "small",
"assignmentDetails": {
"value": "small",
"environment": "Test",
"flagEvaluationCode": "MATCH",
"flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"small-size\".",
"variationKey": "small",
Expand All @@ -27,18 +28,21 @@
},
"matchedAllocation": {
"key": "small-size",
"name": "Allocation for small-size",
"allocationEvaluationCode": "MATCH",
"orderPosition": 1
},
"unmatchedAllocations": [],
"unevaluatedAllocations": [
{
"key": "medum-size",
"name": "Allocation for medum-size",
"allocationEvaluationCode": "UNEVALUATED",
"orderPosition": 2
},
{
"key": "large-size",
"name": "Allocation for large-size",
"allocationEvaluationCode": "UNEVALUATED",
"orderPosition": 3
}
Expand All @@ -54,6 +58,7 @@
"assignment": "medium",
"assignmentDetails": {
"value": "medium",
"environment": "Test",
"flagEvaluationCode": "MATCH",
"flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"medum-size\".",
"variationKey": "medium",
Expand All @@ -74,19 +79,22 @@
},
"matchedAllocation": {
"key": "medum-size",
"name": "Allocation for medum-size",
"allocationEvaluationCode": "MATCH",
"orderPosition": 2
},
"unmatchedAllocations": [
{
"key": "small-size",
"name": "Allocation for small-size",
"allocationEvaluationCode": "FAILING_RULE",
"orderPosition": 1
}
],
"unevaluatedAllocations": [
{
"key": "large-size",
"name": "Allocation for large-size",
"allocationEvaluationCode": "UNEVALUATED",
"orderPosition": 3
}
Expand All @@ -101,6 +109,7 @@
"assignment": "unknown",
"assignmentDetails": {
"value": "unknown",
"environment": "Test",
"flagEvaluationCode": "DEFAULT_ALLOCATION_NULL",
"flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL",
"variationKey": null,
Expand All @@ -110,16 +119,19 @@
"unmatchedAllocations": [
{
"key": "small-size",
"name": "Allocation for small-size",
"allocationEvaluationCode": "FAILING_RULE",
"orderPosition": 1
},
{
"key": "medum-size",
"name": "Allocation for medum-size",
"allocationEvaluationCode": "FAILING_RULE",
"orderPosition": 2
},
{
"key": "large-size",
"name": "Allocation for large-size",
"allocationEvaluationCode": "FAILING_RULE",
"orderPosition": 3
}
Expand All @@ -135,6 +147,7 @@
"assignment": "large",
"assignmentDetails": {
"value": "large",
"environment": "Test",
"flagEvaluationCode": "MATCH",
"flagEvaluationDescription": "Supplied attributes match rules defined in allocation \"large-size\".",
"variationKey": "large",
Expand All @@ -150,17 +163,20 @@
},
"matchedAllocation": {
"key": "large-size",
"name": "Allocation for large-size",
"allocationEvaluationCode": "MATCH",
"orderPosition": 3
},
"unmatchedAllocations": [
{
"key": "small-size",
"name": "Allocation for small-size",
"allocationEvaluationCode": "FAILING_RULE",
"orderPosition": 1
},
{
"key": "medum-size",
"name": "Allocation for medum-size",
"allocationEvaluationCode": "FAILING_RULE",
"orderPosition": 2
}
Expand All @@ -176,6 +192,7 @@
"assignment": "unknown",
"assignmentDetails": {
"value": "unknown",
"environment": "Test",
"flagEvaluationCode": "DEFAULT_ALLOCATION_NULL",
"flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL",
"variationKey": null,
Expand All @@ -185,16 +202,19 @@
"unmatchedAllocations": [
{
"key": "small-size",
"name": "Allocation for small-size",
"allocationEvaluationCode": "FAILING_RULE",
"orderPosition": 1
},
{
"key": "medum-size",
"name": "Allocation for medum-size",
"allocationEvaluationCode": "FAILING_RULE",
"orderPosition": 2
},
{
"key": "large-size",
"name": "Allocation for large-size",
"allocationEvaluationCode": "FAILING_RULE",
"orderPosition": 3
}
Expand Down
3 changes: 3 additions & 0 deletions ufc/tests/test-case-disabled-flag.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"assignment": 0,
"assignmentDetails": {
"value": 0,
"environment": "Test",
"flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED",
"flagEvaluationDescription": "Unrecognized or disabled flag: disabled_flag",
"variationKey": null,
Expand All @@ -31,6 +32,7 @@
"assignment": 0,
"assignmentDetails": {
"value": 0,
"environment": "Test",
"flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED",
"flagEvaluationDescription": "Unrecognized or disabled flag: disabled_flag",
"variationKey": null,
Expand All @@ -49,6 +51,7 @@
"assignment": 0,
"assignmentDetails": {
"value": 0,
"environment": "Test",
"flagEvaluationCode": "FLAG_UNRECOGNIZED_OR_DISABLED",
"flagEvaluationDescription": "Unrecognized or disabled flag: disabled_flag",
"variationKey": null,
Expand Down
3 changes: 3 additions & 0 deletions ufc/tests/test-case-empty-flag.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"assignment": "default_value",
"assignmentDetails": {
"value": "default_value",
"environment": "Test",
"flagEvaluationCode": "DEFAULT_ALLOCATION_NULL",
"flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL",
"variationKey": null,
Expand All @@ -31,6 +32,7 @@
"assignment": "default_value",
"assignmentDetails": {
"value": "default_value",
"environment": "Test",
"flagEvaluationCode": "DEFAULT_ALLOCATION_NULL",
"flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL",
"variationKey": null,
Expand All @@ -49,6 +51,7 @@
"assignment": "default_value",
"assignmentDetails": {
"value": "default_value",
"environment": "Test",
"flagEvaluationCode": "DEFAULT_ALLOCATION_NULL",
"flagEvaluationDescription": "No allocations matched. Falling back to \"Default Allocation\", serving NULL",
"variationKey": null,
Expand Down
Loading

0 comments on commit f16f031

Please sign in to comment.