my-calculator-poc / my-calculator-poc.github.io

The meta repo organize the operations for the POC
Apache License 2.0
1 stars 0 forks source link

Explore PACT #3

Open jabrena opened 5 years ago

jabrena commented 5 years ago

Phase 1: Follow PACT Training

https://github.com/DiUS/pact-workshop-jvm

Phase 2: Use a complete project not associated with PACT to understand more details in relation to the interation between Consumers & Producers

https://github.com/davidkgp/PactDemo

jabrena commented 5 years ago

http://wiremock.org/docs/getting-started/ http://kong.github.io/unirest-java/#requests https://www.reddit.com/r/docker/comments/a6bvcs/docker_vpnkit_uses_port_8080/

lsof -i :8080 | grep LISTEN

jabrena commented 5 years ago

To complete this Step: https://github.com/jabrena/pact-workshop-jvm#step-13---using-a-pact-broker

It is necessary to register in PACT: https://pactflow.io/register/

pact {
  publish {
    pactBrokerUrl = 'https://test.pact.dius.com.au'
    pactBrokerUsername = project.pactBrokerUser
    pactBrokerPassword = project.pactBrokerPassword
  }
}

In order to run the project: ./gradlew consumer:pactPublish

jabrena commented 5 years ago

A test Pact Boker is running at https://test.pact.dius.com.au

Username: dXfltyFMgNOFZAxr8io9wJ37iUpY42M Password: O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1

https://github.com/pact-foundation/pact-js/blob/master/examples/e2e/README.md

curl -v -u 'dXfltyFMgNOFZAxr8io9wJ37iUpY42M:O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1' https://test.pact.dius.com.au