Skip to content

[FEATURE] Add Flag and Gherkin Assertions To Test Missing and null defaultValue #268

@toddbaert

Description

@toddbaert

As outlined here, we want to support the defaultValue being optional. This will allow users to omit this field, which will indicate that flagd providers should revert to the code default for the flag in question, if targeting is not defined or falls through.

We need to enhance the gherkin suite to test this use-case.

Steps

  • add flags with null and undefined defaultValue and no targeting
  • add flags with null and undefined defaultValue and defined targeting
  • add Gherkin assertions testing that when targeting falls through or is undefined, the supplied code default is used, and the FLAG_NOT_FOUND error code is set

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions