Skip to content

Latest commit

 

History

History

tck-extensions

TCK extensions

flagd's scenarios as extensions for the OpenFeature Provider TCK. A flagd provider that adopts the TCK runs these alongside the TCK's own scenarios. They replace the gherkin/ suite, which 4.0 removed; it lives on in the 3.x releases cut from release/v3.

They ask only what the TCK's canonical scenarios do not. Each file's header names its source feature, the scenarios it leaves out, and why; most of those the TCK already asks. One source feature has no extension at all: errors.feature is the TCK's own errors.feature matrix, its String rows behind @string-typing, and its ERROR reason is asked by reason.feature.

They are written in the TCK's step vocabulary (a stable provider, a context with the following keys:), plus flagd-specific steps an adopter supplies as extension glue: provider options (an option "<name>" of type "<type>" with value "<value>"), connection control, the configuration steps of config.feature, and the flag should not be part of the event payload. Feature tags name the resolvers a scenario applies to (@rpc, @in-process, @file).

Java, JavaScript, Python and .NET read this directory through the test-harness submodule. Go reads it from the repository's root module, github.com/open-feature/flagd-testbed/v4, as testbed.TCKExtensions(), because a Go module zip carries a submodule without its files.

A scenario fixed or added on release/v3 should be added here too, or listed as not ported in the matching file's header.