Skip to content

Commit 0c493de

Browse files
aepfliCopilot
andcommitted
test(fractional): add invalid/missing variant fallback cases
Per review feedback: add two rows to the nested-var scenario that exercise fallback behavior when the resolved variant name is not present in the flag's variants map. | jon@company.com | yellow | fallback | (variant not in map → error → caller default) | jon@company.com | | fallback | (empty string → not in map → error → caller default) Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9bf3313 commit 0c493de

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

gherkin/targeting.feature

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ Feature: Targeting rules
101101
When the flag was evaluated with details
102102
Then the resolved details value should be "<value>"
103103
Examples:
104-
| targetingKey | color | value |
105-
| jon@company.com | red | red |
106-
| jon@company.com | green | green |
107-
| user1 | red | blue |
104+
| targetingKey | color | value |
105+
| jon@company.com | red | red |
106+
| jon@company.com | green | green |
107+
| user1 | red | blue |
108+
| jon@company.com | yellow | fallback |
109+
| jon@company.com | | fallback |
108110

109111
@string
110112
Scenario Outline: Substring operators

0 commit comments

Comments
 (0)