Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
BioHPC
clair-singularity
Commits
91f37cdf
Commit
91f37cdf
authored
Aug 24, 2017
by
David Trudgian
Browse files
API simple connectivity test
parent
942d92d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
91f37cdf
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
...
...
tests/test_clair.py
0 → 100644
View file @
91f37cdf
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment