-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
π£ Context
Would like to ProviderVerifier.Options to support --header <custom-header> option
π¬ Narrative
When I run my PactVerifiable conforming tests
I want to be able to pass in a header option
So that I can inject the header with an authorization token
π Notes
According to the pact_verifier_cli documentation , passing a custom header is one of the available options.
--header <custom-header>...
Add a custom header to be included in the calls to the provider. Values must be in the
form KEY=VALUE, where KEY and VALUE contain ASCII characters (32-127) only. Can be
repeated.
π Design
β Acceptance Criteria
GIVEN header = ["Authorization" : "sometokenhere"
WHEN
ProviderVerifier.Options is initialized with custom header value
options = ProviderVerifier.Options(
provider: provider,
pactsSource: .broker(pactBroker),
customHeader: header,
logLevel: .error
)
THEN
Provider Verification is successful and custom header to pact_verifier_cli is passed in the option list.
π« Out of Scope
surpher
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request