ohsu-comp-bio / euler

Authentication (authN) and high-level Authorization (authZ) for BMEG, Dirac and Search. Includes Swift object store.
MIT License
0 stars 0 forks source link

initial checkin #2

Closed bwalsh closed 7 years ago

bwalsh commented 7 years ago

API

Features:

Testing

Is very preliminary at this time. The tests that do exist are integration tests, that is they test the API with the backends, no mocks exists. Therefore, real databases need to exist and the server needs to be able to connect to them. Since LDAP servers are often behind firewalls, travis is not possible at this time.

# run tests from container
$ docker exec -it api  bash
$ export EVE_SETTINGS=$(pwd)/settings.py

# then start tests
$ py.test --flake8 --cov=. --cov-report term-missing

---------- coverage: platform linux2, python 2.7.11-final-0 ----------
Name                                                Stmts   Miss  Cover   Missing
---------------------------------------------------------------------------------
conftest.py                                             8      0   100%
eve_util.py                                             4      0   100%
keystone_authenticator.py                              60      0   100%
keystone_connector.py                                  29      0   100%
publisher.py                                            3      0   100%
run.py                                                 35      0   100%
settings.py                                            24      0   100%
tests/integration/api_tests.py                          5      0   100%
tests/integration/keystone_authenticator_tests.py      80      0   100%
tests/integration/keystone_connector_tests.py          25      0   100%
tests/integration/proxy_tests.py                        5      0   100%
tests/integration/schema_tests.py                       5      0   100%
---------------------------------------------------------------------------------
TOTAL                                                 283      0   100%

TODO

bwalsh commented 7 years ago

@kellrott @ksonmez @mayfielg @k1643 @ksonmez @adamstruck @buchanae @prismofeverything: can you review and comment

@AAMargolin:FYI

ghost commented 7 years ago

Should we review this pull request, or just skip to the "Swift" pull request?