Commit 91f37cdf authored by David Trudgian's avatar David Trudgian
Browse files

API simple connectivity test

parent 942d92d1
sudo: required
dist: trusty
language: python
services:
- docker
python:
- "2.7"
- "3.4"
......@@ -9,6 +11,9 @@ before_install:
- sudo apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9
- sudo apt-get -qq update
- sudo apt-get install -y singularity-container
- docker run -d --name db arminc/clair-db:20187-08-21
- docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan:v2.0.0
- docker ps
install:
- pip install --only-binary=numpy,scipy,scikit-learn,pandas numpy scipy scikit-learn pandas
- pip install flake8 pytest pytest-cov pytest-flake8
......
import pytest
from clair_singularity.clair import check_clair, post_layer, get_report
API_URL = 'http://127.0.0.1:6060'
def test_check_clair:
# We can talk to the API
assert check_clair(API_URL)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment