-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add dedicated gherkin file for events (and grace attempts) (#164)
Signed-off-by: Simon Schrottner <[email protected]>
- Loading branch information
Showing
2 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@grace | ||
Feature: Flagd Provider State Changes | ||
|
||
Background: | ||
Given a flagd provider is set | ||
|
||
Scenario Outline: Provider events | ||
When a <event> handler is added | ||
Then the <event> handler must run | ||
Examples: | ||
| event | | ||
| PROVIDER_ERROR | | ||
| PROVIDER_STALE | | ||
| PROVIDER_READY | | ||
|
||
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 |