Git Product home page Git Product logo

pact-demo's Introduction

pact-demo

Demonstrate pact

A full end to end demonstration of consumer driven contract testing using pact framework.

  • Ability to run pact broker locally using docker containers
  • Run and publish pacts for jvm and js consumers
  • Verify against a running microservice

Pact Broker startup

docker-compose up --build

Access at http://localhost:80 (Basic auth is username:shanelee007/password:password123)

Join the chat at https://gitter.im/shavo007/pact-demo

Development tracked on waffle.io

https://waffle.io/shavo007/pact-demo

Stories in Ready

Running pact broker via Kubernetes

Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery.

To run pact broker via k8s check out README and resources here

Running pact broker via Elastic beanstalk

Dockerrun.aws.json file describes how to deploy pact broker container as an Elastic Beanstalk application.

Create eb env and deploy.

Resources

Useful Commands

`eb local run`  Runs commands on your local machine.
`eb local open` Open pact broker locally in browser
`eb local status`  Gets environment information and status locally
`eb use Sample-env-1`
`eb deploy `
`eb use Sample-env-1`

Pact broker postgres docker container

https://store.docker.com/community/images/shanelee007/docker-pact-postgres

Resources

Blog: https://blog.shanelee.name/2016/07/19/consumer-driven-contract-testing-using-pact/

Docker compose file: https://gist.github.com/shavo007/6660cd3230188a094b5d7d3e0647d769

pact broker

pact-demo's People

Contributors

gitter-badger avatar jpost48 avatar renovate-bot avatar shavo007 avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pact-demo's Issues

Unable to generate pact file with jsConsumer

tried to use your example to generate pact file with jsConsumer.
gulp task run ok, but it doesn't generate pact file.
when i manually put a pact file (generated from jvmConsumer) in pacts folder it publish the pact to the pact broker and pactverify works.

Not sure what I am missing. Any clues, really appreciate it.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency @pact-foundation/pact to v13
  • Update dependency axios to v1
  • Update dependency chai to v5
  • Update dependency gradle to v8
  • Update dependency io.rest-assured:rest-assured to v5
  • Update dependency mocha to v10
  • Update dependency rimraf to v5
  • Update plugin au.com.dius.pact to v4
  • Update plugin com.gorylenko.gradle-git-properties to v2
  • Update spring boot to v3 (major) (org.springframework.boot, org.springframework.boot:spring-boot-gradle-plugin)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker-compose.yml
kubernetes/docker-compose.yml
gradle
jvmConsumer/build.gradle
  • org.springframework.boot:spring-boot-gradle-plugin 1.4.0.RC1
  • au.com.dius.pact 3.4.0
  • au.com.dius:pact-jvm-consumer-junit_2.11 3.2.10
  • io.rest-assured:rest-assured 3.0.0
microservice/build.gradle
  • au.com.dius.pact 3.4.0
  • com.gorylenko.gradle-git-properties 1.4.17
  • org.springframework.boot 1.5.4.RELEASE
  • au.com.dius:pact-jvm-consumer-junit_2.11 3.2.10
  • io.rest-assured:rest-assured 3.0.0
gradle-wrapper
microservice/gradle/wrapper/gradle-wrapper.properties
  • gradle 2.13
npm
jsConsumer/package.json
  • @pact-foundation/pact 6.0.2
  • @pact-foundation/pact-node 6.20.0
  • axios 0.18.0
  • chai 4.2.0
  • mocha 5.2.0
  • rimraf 2.6.2
  • node >=8
nvm
jsConsumer/.nvmrc

  • Check this box to trigger a request for Renovate to run again on this repository

Upgrade pact version

Just released ๐Ÿš€: Pact JS v2.0.0.

Simplified API, bug fixes and updated documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.