Skip to content

Commit

Permalink
feat(flagd): add graceful attempts
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
  • Loading branch information
aepfli committed Dec 6, 2024
1 parent d15f529 commit c74d6ad
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions providers/openfeature-provider-flagd/tests/e2e/events.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Feature: flagd providers

# This test suite contains scenarios to test flagd providers.
# It's associated with the flags configured in flags/changing-flag.json and flags/zero-flags.json.
# It should be used in conjunction with the suites supplied by the OpenFeature specification.

Background:
Given a flagd provider is set

# events
Scenario Outline: Provider events
When a <event> handler is added
Then the <event> handler must run
Examples:
| event |
| PROVIDER_ERROR |
| PROVIDER_STALE |
| PROVIDER_READY |

# events
Scenario: Provider events chain ready -> stale -> error -> ready
When a PROVIDER_READY handler is added
Then the PROVIDER_READY handler must run
When a PROVIDER_STALE handler is added
Then the PROVIDER_STALE handler must run
When a PROVIDER_ERROR handler is added
Then the PROVIDER_ERROR handler must run
When a PROVIDER_READY handler is added
Then the PROVIDER_READY handler must run

0 comments on commit c74d6ad

Please sign in to comment.