Skip to content

Commit

Permalink
feat: Update test harness (add assertions) #1467
Browse files Browse the repository at this point in the history
Signed-off-by: christian.lutnik <[email protected]>
  • Loading branch information
chrfwow committed Jan 13, 2025
1 parent d261f68 commit ff27af0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions specification/assets/gherkin/metadata.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@Metadata
Feature: Metadata

Background:
Given a provider is registered

Scenario: Returns metadata
Given a Boolean-flag with key "metadata-flag" and a default value "true"
When the flag was evaluated with details
Then the resolved metadata value "string" with type "String" should be "1.0.2"
And the resolved metadata value "integer" with type "Integer" should be "2"
And the resolved metadata value "double" with type "Double" should be "0.1"
And the resolved metadata value "boolean" with type "Boolean" should be "true"

Scenario Outline: Returns no metadata
Given a <type>-flag with key "<key>" and a default value "<default_value>"
When the flag was evaluated with details
Then the resolved metadata is empty

Examples: Flags
| key | type | default_value |
| boolean-flag | Boolean | true |
| integer-flag | Integer | 23 |
| float-flag | Float | 2.3 |
| string-flag | String | value |

0 comments on commit ff27af0

Please sign in to comment.