wiremock / python-wiremock

A Python library for API mocking and testing with Testcontainers module and WireMock

Home Page:https://wiremock.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WireMock-Python 3.0

oleg-nenashev opened this issue · comments

We would like to have a new major update and release of WireMock Python SDK that is aligned with WireMock 3.0. Key items

  • WireMock 3.0 compatibility and specification alignment
  • Quality of life enhancements, e.g. #34
  • Any other contributions!

Scope

See https://github.com/wiremock/python-wiremock/milestone/1

  • Support for starting the WireMock server using Testcontainers when Docker is present and no other WireMock server has been provided.
  • Integration with PyTest, allowing WireMock to be bootstrapped in a test module via an appropriate test framework extension point (building on top of the Testcontainers functionality).
  • Addition of missing API routes and matcher types (see below)

Missing features

API routes

Find stub mappings by metadata:
/mappings/find-by-metadata

Import stub mappings:
/mappings/import

File put and delete:
/files
/files/**

Set single scenario state:
/scenarios/{name}/state

Delete requests operations:
/requests/{id}
/requests/remove
/requests/remove-by-metadata

Recording:
/recordings/start
/recordings/stop
/recordings/snapshot

Matchers

doesNotContain
not
before
after
equalToDateTime
and
or