Skip to content

Commit 0e27325

Browse files
authored
feat: add context-sensitive test with connection err (#227)
Signed-off-by: Todd Baert <[email protected]>
1 parent a7a0559 commit 0e27325

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

gherkin/targeting.feature

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,19 @@ Feature: Targeting rules
145145
| non-string-variant-targeting-flag | 2 |
146146
| empty-targeting-flag | 1 |
147147

148-
@flagdcontext
149-
Scenario: Use Flagd provided context
148+
@contextEnrichment
149+
Scenario: Use enriched context
150150
Given a String-flag with key "flagd-context-aware" and a default value "not"
151151
When the flag was evaluated with details
152152
Then the resolved details value should be "INTERNAL"
153+
154+
@contextEnrichment
155+
Scenario: Use enriched context on connection error
156+
Given a String-flag with key "flagd-context-aware" and a default value "not"
157+
And a stale event handler
158+
When the flag was evaluated with details
159+
Then the resolved details value should be "INTERNAL"
160+
When the connection is lost for 6s
161+
And a stale event was fired
162+
When the flag was evaluated with details
163+
Then the resolved details value should be "INTERNAL"

0 commit comments

Comments
 (0)