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.

Filename, size & hash SHA256 hash help File type Python version Upload date
audentes-0.1.7-py3-none-any.whl (4.9 kB) Copy SHA256 hash SHA256 Wheel py3
audentes-0.1.7.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page