iamjillsanluis / pact-universe

Playing around with Consumer Driven Contract Testing using Pact
0 stars 0 forks source link

Investigate if there is auto publish pact to broker #2

Open iamjillsanluis opened 5 years ago

iamjillsanluis commented 5 years ago

Read a bit more of docs, but there doesn't seem to be a way to auto publish pacts to broker.

Instructions here worked, but running curl command is less ideal when tests is driven in PyTest.

So in my case, in the kiddo-test container, run:

curl -v -XPUT \-H "Content-Type: application/json" \
    -d@pacts/Kid-Mommy-pact.json \
    http://pact-broker:80/pacts/provider/Mommy/consumer/Kid/version/0.0.1

Go RTFM!

iamjillsanluis commented 5 years ago

Documentation is also incomplete - i.e. there is Language Support list.

Screen Shot 2019-03-16 at 12 39 25 PM