Skip to content

feat: Support the flag-overrides capability in the contract test service - #368

Draft
kinyoklion wants to merge 1 commit into
rlamb/overrides-dotnet-file-sourcefrom
rlamb/overrides-dotnet-contract-tests
Draft

kinyoklion wants to merge 1 commit into
rlamb/overrides-dotnet-file-sourcefrom
rlamb/overrides-dotnet-contract-tests

Conversation

@kinyoklion

Copy link
Copy Markdown
Member

Summary

Adds the flag-overrides capability to the contract test service and the overrides block of the SDK configuration it accepts, as described in the test harness service specification. The block's filePaths, duplicateKeysHandling (fail or ignore), changeDetection (polling or watching), and pollIntervalMs map onto FileOverrides.Source() options, and the source is attached to the FDv2 data system builder that the dataSystem block configures. The test service supplies a YamlDotNet parser to the source so the harness's YAML document test can run.

The test service also takes an optional port as its first command line argument, defaulting to 8000, so that several test services can run on one machine.

This PR is based on the branch of the file-based override source change, which it depends on.

The test service advertises the flag-overrides capability and accepts
the overrides block of the SDK configuration: filePaths,
duplicateKeysHandling, changeDetection, and pollIntervalMs map onto the
FileOverrides.Source() options, and the source is attached to the FDv2
data system builder. The service supplies a YamlDotNet parser so YAML
documents can be tested. An optional first command line argument selects
the port.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant