Skip to content

Commit

Permalink
feat(verify): allow user to increase verbosity of verification process
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Apr 28, 2017
1 parent c8f8c1b commit 483d134
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

export PACT_MOCK_SERVICE_VERSION=2.0.0 # Seg faults...
export PACT_PROVIDER_VERIFIER_VERSION=0.0.13
export PACT_PROVIDER_VERIFIER_VERSION=0.0.14

# Create the OS specific versions of the mock service and verifier
echo "==> Building Ruby Binaries..."
Expand Down
8 changes: 8 additions & 0 deletions types/verify_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ type VerifyRequest struct {
// Password when authenticating to a Pact Broker.
BrokerPassword string

// Verbose increases verbosity of output
Verbose bool

// Arguments to the VerificationProvider
// Deprecated: This will be deleted after the native library replaces Ruby deps.
Args []string
Expand Down Expand Up @@ -74,5 +77,10 @@ func (v *VerifyRequest) Validate() error {
v.Args = append(v.Args, "--broker-password")
v.Args = append(v.Args, v.BrokerPassword)
}

if v.Verbose {
v.Args = append(v.Args, "--verbose")
v.Args = append(v.Args, fmt.Sprintf("%v", v.Verbose))
}
return nil
}

0 comments on commit 483d134

Please sign in to comment.