Skip to content

Set up working example of py wiremock#59

Merged
mikeywaites merged 6 commits intomasterfrom
feature/full-working-example
May 7, 2023
Merged

Set up working example of py wiremock#59
mikeywaites merged 6 commits intomasterfrom
feature/full-working-example

Conversation

@mikeywaites
Copy link
Collaborator

@mikeywaites mikeywaites commented Apr 29, 2023

This commit introduces a new "example" directory
that demonstrates how to use python-wiremock for
testing against a http service.

The idea behind this example is two fold.

  1. provide some expansive real world working examples of using wiremock

  2. develop a real world application using all of wiremocks features to aid with e2e testing.

The example directory builds a few python services using fast api which are built and run using docker. The two services Overview Service and Products Service in the example app communicate with each other via http. The test suite in the example app then demonstrates how to use wiremock to stub responses from Products Service so that Overview Service can be tested more easily without needing to run Product Service.

  • Set up example services with docker with simple test case
  • mount the development version of wiremock into the containers
  • write test suite that demonstrates full feature set
  • write documentation for the example module

This commit introduces a new "example" directory
that demonstrates how to use python-wiremock for
testing against a http service.

The idea behind this example is two fold.

1) provide some exspansive real world working examples
of using wiremock

2) develop a real world application using all of wiremocks features
to aid with e2e testing.

The example directory builds a few python services using fast api
which are built and run using docker. The two services Overview Service
and Products Service in the example app communicate with eachother via
http.  The test suite in the example app then demonstrates how to use
wiremock to stub responses from Products Service so that Overview
Service can be tested more easily without needing to run
Product Service.
@mikeywaites mikeywaites force-pushed the feature/full-working-example branch from a2e7ed4 to 36b7ba6 Compare May 7, 2023 06:36
This is a quick check-in to persist a couple of changes to fix some
things that i found to be broken from a large volume of work on this
branch.
@mikeywaites mikeywaites marked this pull request as ready for review May 7, 2023 11:36
@mikeywaites mikeywaites force-pushed the feature/full-working-example branch from ffa0285 to 26d472f Compare May 7, 2023 12:02
@mikeywaites mikeywaites force-pushed the feature/full-working-example branch from 26d472f to d5e1500 Compare May 7, 2023 12:06
@mikeywaites mikeywaites merged commit ccb09e4 into master May 7, 2023
@mikeywaites mikeywaites deleted the feature/full-working-example branch May 7, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant