Skip to main content

A package for writing component tests with docker compose

Project description

Audentes

A package for writing component tests with docker compose

Example:

docker-compose.yml

version: '2.1'
services:
  web:
    image: nginx
    ports:
     - "80"

test.py

import audentes
import requests

system = audentes.load_system() #Defaults to docker-comose.yml
system.start()
system.wait_for_service("web")  #Waits for web service to respond with status code 200 on /

host = system.endpoint("web").host() # Now we can do some testing
response = requests.get("http://{}/".format(host))

assert response.status_code == 200 # Assert that we get the response we expect

Project details


Download files

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

Source Distribution

audentes-0.1.9.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

audentes-0.1.9-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file audentes-0.1.9.tar.gz.

File metadata

  • Download URL: audentes-0.1.9.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for audentes-0.1.9.tar.gz
Algorithm Hash digest
SHA256 bdbe7958b2325eff6b1a94ddc760dd65c93b13851d1b59ba7571567c12ea5522
MD5 b12c5b215da788d382f205b5de2d2b60
BLAKE2b-256 94fe73b2612744ed524a6770f3bcc06f953834e2ce2a046bdb0005c36c24e8d1

See more details on using hashes here.

File details

Details for the file audentes-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: audentes-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for audentes-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 908703766ef9c920e36abee3daa264e2b729a20f8183b8cff64225c885ed9399
MD5 802479ff434fee3ce858c1c360da59cb
BLAKE2b-256 0aaf7853c3777df05d5d203bab748193a5a467031fae6559565112b438483f56

See more details on using hashes here.

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