Skip to content

Commit c74d6ad

Browse files
committed
feat(flagd): add graceful attempts
Signed-off-by: Simon Schrottner <[email protected]>
1 parent d15f529 commit c74d6ad

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Feature: flagd providers
2+
3+
# This test suite contains scenarios to test flagd providers.
4+
# It's associated with the flags configured in flags/changing-flag.json and flags/zero-flags.json.
5+
# It should be used in conjunction with the suites supplied by the OpenFeature specification.
6+
7+
Background:
8+
Given a flagd provider is set
9+
10+
# events
11+
Scenario Outline: Provider events
12+
When a <event> handler is added
13+
Then the <event> handler must run
14+
Examples:
15+
| event |
16+
| PROVIDER_ERROR |
17+
| PROVIDER_STALE |
18+
| PROVIDER_READY |
19+
20+
# events
21+
Scenario: Provider events chain ready -> stale -> error -> ready
22+
When a PROVIDER_READY handler is added
23+
Then the PROVIDER_READY handler must run
24+
When a PROVIDER_STALE handler is added
25+
Then the PROVIDER_STALE handler must run
26+
When a PROVIDER_ERROR handler is added
27+
Then the PROVIDER_ERROR handler must run
28+
When a PROVIDER_READY handler is added
29+
Then the PROVIDER_READY handler must run

0 commit comments

Comments
 (0)