Metadata-Version: 2.1
Name: audentes
Version: 0.1.8
Summary: A package for writing component tests with docker compose
Home-page: https://gitlab.com/magnus.odman/audentes
Author: Magnus Odman
Author-email: magnus.odman@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: ruamel.yaml

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
~~~~

