contracts_test

package
v0.0.0-...-bf90f01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErrorAndCleanPact

func CheckErrorAndCleanPact(t *testing.T, pact *dsl.Pact, err1 error)

CheckErrorAndCleanPact is a workaround for the https://github.com/pact-foundation/pact-go/issues/108 issue by manually clearing the interactions from pact and the mock service.

func PactDir

func PactDir() string

PactDir returns a path to the directory to store pact files (taken from PACT_DIR env variable)

func PactFile

func PactFile(pactConsumer string, pactProvider string) string

PactFile returns a path to the generated pact file

func PublishPactFileToBroker

func PublishPactFileToBroker(pactFiles []string, pactBrokerURL string, pactBrokerUsername string, pactBrokerPassword string, pactVersion string, tags []string)

PublishPactFileToBroker publishes given Pact files to a given Pact broker.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL