Skip to content

Commit

Permalink
feat: update to standalone 1.86.0 and support new verifier options: -…
Browse files Browse the repository at this point in the history
…-log-level and --log-dir
mefellows committed Jun 27, 2020
1 parent 26aac7a commit 18398ce
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install/installer.go
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ type Installer struct {

const (
mockServiceRange = ">= 3.5.0, < 4.0.0"
verifierRange = ">= 1.30.0, < 2.0.0"
verifierRange = ">= 1.31.0, < 2.0.0"
brokerRange = ">= 1.22.3"
)

17 changes: 17 additions & 0 deletions types/verify_request.go
Original file line number Diff line number Diff line change
@@ -105,6 +105,15 @@ type VerifyRequest struct {
// Pull in new WIP pacts from _any_ tag (see pact.io/wip)
IncludeWIPPactsSince *time.Time

// Specify an output directory to log all of the verification request/responses
// seen by the verification process. Useful to debug issues with your contract
// and API
PactLogDir string

// Specify the log verbosity of the CLI verifier process spawned through verification
// Useful for debugging issues with the framework itself
PactLogLevel string

// Verbose increases verbosity of output
// Deprecated
Verbose bool
@@ -217,5 +226,13 @@ func (v *VerifyRequest) Validate() error {
v.Args = append(v.Args, "--include-wip-pacts-since", v.IncludeWIPPactsSince.Format(time.RFC3339))
}

if v.PactLogDir != "" {
v.Args = append(v.Args, "--log-dir", v.PactLogDir)
}

if v.PactLogLevel != "" {
v.Args = append(v.Args, "--log-level", v.PactLogLevel)
}

return nil
}

0 comments on commit 18398ce

Please sign in to comment.