Skip to content

Commit

Permalink
feat: allow setting of ProviderTags on VerifyMessageRequest
Browse files Browse the repository at this point in the history
This will enable the tagging of the provider verification results in the broker.
  • Loading branch information
James Halsall committed Sep 16, 2020
1 parent d3c15fb commit d3abbd8
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -674,6 +674,7 @@ func (p *Pact) VerifyMessageProviderRaw(request VerifyMessageRequest) ([]types.P
BrokerToken: request.BrokerToken,
PublishVerificationResults: request.PublishVerificationResults,
ProviderVersion: request.ProviderVersion,
ProviderTags: request.ProviderTags,
Provider: p.Provider,
}

Expand Down
3 changes: 3 additions & 0 deletions dsl/verify_mesage_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ type VerifyMessageRequest struct {
// ProviderVersion is the semantical version of the Provider API.
ProviderVersion string

// ProviderTags is the set of tags to apply to the provider application version when results are published to the broker
ProviderTags []string

// MessageHandlers contains a mapped list of message handlers for a provider
// that will be rable to produce the correct message format for a given
// consumer interaction
Expand Down

0 comments on commit d3abbd8

Please sign in to comment.