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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdbe7958b2325eff6b1a94ddc760dd65c93b13851d1b59ba7571567c12ea5522
|
|
| MD5 |
b12c5b215da788d382f205b5de2d2b60
|
|
| BLAKE2b-256 |
94fe73b2612744ed524a6770f3bcc06f953834e2ce2a046bdb0005c36c24e8d1
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
908703766ef9c920e36abee3daa264e2b729a20f8183b8cff64225c885ed9399
|
|
| MD5 |
802479ff434fee3ce858c1c360da59cb
|
|
| BLAKE2b-256 |
0aaf7853c3777df05d5d203bab748193a5a467031fae6559565112b438483f56
|