Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pass consumer version selectors in VerifyMessageProviderRaw #166

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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