Skip to main content

Console tool for validating the Supplier API implementation

Project description

Supplier API Testing Tool

Requirements

Python 3.7+

Installation

pip install supplier-api-tester

Usage

supplier_tester --help
Usage: supplier_tester [OPTIONS]

  Test you Supplier API implementation

Options:
  -u, --url TEXT         [required]
  -k, --api-key TEXT     [required]
  -p, --product-id TEXT  Product ID to call tests on. Required with -a and -t flags
  -t, --timeslots        Use timeslots
  -a, --availability     Run availability tests
  -r, --reservation      Run reservation tests
  -b, --booking          Run booking tests
  -c, --catalog          Run product catalog tests
  --help                 Show this message and exit.

Running all tests:

    supplier_tester -u 'http://localhost:8000' -k 'secret' -p 'A500-FX'  # For products without timeslots
    supplier_tester -u 'http://localhost:8000' -k 'secret' -p 'A400-FX' -t  # For products with timeslots

Remember to choose valid product id. It has to refer timeslotted product when you use -t flag.

Running only availability tests:

    supplier_tester -u 'http://localhost:8000' -k 'secret' -p 'A500-FX' -a  # For products without timeslots
    supplier_tester -u 'http://localhost:8000' -k 'secret' -p 'A400-FX' -a -t  # For products with timeslots

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Supplier_API_tester-1.3.3-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file Supplier_API_tester-1.3.3-py3-none-any.whl.

File metadata

  • Download URL: Supplier_API_tester-1.3.3-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for Supplier_API_tester-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1026e8bdbf5a3128356d0461e6a59f4092ba3ad8e912cfba486686aea1f8fc4
MD5 5f863936837b82bb6c4a1cc18b2b5eda
BLAKE2b-256 d8b529d3abf0c07c341412d03adbc8b7c62ac82baa481e45927950637c609455

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page