diff --git a/flagd/Dockerfile b/flagd/Dockerfile index 5214475..02ff773 100644 --- a/flagd/Dockerfile +++ b/flagd/Dockerfile @@ -1,4 +1,4 @@ -ARG FLAGD_BASE_IMAGE=ghcr.io/open-feature/flagd:v0.12.9 +ARG FLAGD_BASE_IMAGE=ghcr.io/open-feature/flagd:v0.14.0 ARG TARGETARCH FROM ${FLAGD_BASE_IMAGE} AS flagd diff --git a/gherkin/evaluation.feature b/gherkin/evaluation.feature index d44a20c..a6516c7 100644 --- a/gherkin/evaluation.feature +++ b/gherkin/evaluation.feature @@ -64,7 +64,8 @@ Feature: flagd evaluations | integer-targeted-zero-flag | Integer | 1 | 0 | | float-targeted-zero-flag | Float | 0.1 | 0.0 | - @no-default + # This suite is deprecated and @no-default-variant should be used instead + @no-default @deprecated Scenario Outline: Resolves flag with no defaultValue correctly Given a -flag with key "" and a default value "" And a context containing a key "email", with type "String" and with value "" @@ -84,3 +85,21 @@ Feature: flagd evaluations | no-default-flag-null-targeting-variant | String | wozniak@orange.com | Founder | Founder | ERROR | FLAG_NOT_FOUND | | no-default-flag-null-targeting-variant | String | jobs@orange.com | CEO | CEO | TARGETING_MATCH | | | no-default-flag-undefined-targeting-variant | String | wozniak@orange.com | Retired | Retired | ERROR | FLAG_NOT_FOUND | + + @no-default-variant + Scenario Outline: Resolves flag with no default variant correctly + Given a -flag with key "" and a default value "" + And a context containing a key "email", with type "String" and with value "" + When the flag was evaluated with details + Then the resolved details value should be "" + And the reason should be "" + + Examples: + | key | type | email | code_default | resolved_value | reason | + | null-default-flag | Boolean | | true | true | DEFAULT | + | null-default-flag | Boolean | | false | false | DEFAULT | + | undefined-default-flag | Integer | | 100 | 100 | DEFAULT | + | no-default-flag-null-targeting-variant | String | wozniak@orange.com | Inventor | Inventor | DEFAULT | + | no-default-flag-null-targeting-variant | String | wozniak@orange.com | Founder | Founder | DEFAULT | + | no-default-flag-null-targeting-variant | String | jobs@orange.com | CEO | CEO | TARGETING_MATCH | + | no-default-flag-undefined-targeting-variant | String | wozniak@orange.com | Retired | Retired | DEFAULT |