Skip to content

Commit

Permalink
Pass consumer version selectors in VerifyMessageProviderRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halsall committed Jun 15, 2021
1 parent 629d508 commit 65f4304
Show file tree
Hide file tree
Showing 2 changed files with 8 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
PactURLs: request.PactURLs,
BrokerURL: request.BrokerURL,
Tags: request.Tags,
ConsumerVersionSelectors: request.ConsumerVersionSelectors,
BrokerUsername: request.BrokerUsername,
BrokerPassword: request.BrokerPassword,
BrokerToken: request.BrokerToken,
Expand Down
7 changes: 7 additions & 0 deletions dsl/verify_mesage_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package dsl

import (
"fmt"

"github.com/pact-foundation/pact-go/types"
)

// VerifyMessageRequest contains the verification logic
Expand All @@ -16,6 +18,11 @@ type VerifyMessageRequest struct {
// Tags to find in Broker for matrix-based testing
Tags []string

// Selectors are the way we specify which pacticipants and
// versions we want to use when configuring verifications
// See https://docs.pact.io/selectors for more
ConsumerVersionSelectors []types.ConsumerVersionSelector

// Username when authenticating to a Pact Broker.
BrokerUsername string

Expand Down

0 comments on commit 65f4304

Please sign in to comment.