Skip to content

Commit

Permalink
Fix tags & provider not being passed to the pact-provider-verifier (#117
Browse files Browse the repository at this point in the history
)

fix: provider and tags not being passed to consumer verifier
  • Loading branch information
mellowplace authored and mefellows committed Aug 9, 2019
1 parent 735416c commit 3640617
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dsl/pact.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ func (p *Pact) VerifyProviderRaw(request types.VerifyRequest) (types.ProviderVer
BrokerToken: request.BrokerToken,
PublishVerificationResults: request.PublishVerificationResults,
ProviderVersion: request.ProviderVersion,
Provider: request.Provider,
ProviderStatesSetupURL: setupURL,
CustomProviderHeaders: request.CustomProviderHeaders,
}
Expand Down
4 changes: 4 additions & 0 deletions types/verify_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,9 @@ func (v *VerifyRequest) Validate() error {
log.Println("[DEBUG] verifier: ignoring deprecated Verbose flag")
}

for _, tag := range v.Tags {
v.Args = append(v.Args, "--consumer-version-tag", tag)
}

return nil
}

0 comments on commit 3640617

Please sign in to comment.