exoscale / python-exoscale

Python bindings for the Exoscale APIs
https://exoscale.github.io/python-exoscale/
ISC License
14 stars 7 forks source link

Add iam: add support for API key #8

Closed illi-j closed 4 years ago

illi-j commented 4 years ago

This PR adds support for IAM API key resources management.

illi-j commented 4 years ago
======================================== test session starts ========================================
platform darwin -- Python 3.7.6, pytest-5.3.2, py-1.8.1, pluggy-0.13.1 -- /usr/local/opt/python/bin/python3.7
cachedir: .pytest_cache
rootdir: /Users/johnatan/Works/exoscale/python-exoscale, inifile: pytest.ini
collected 5 items

tests/test_iam.py::TestIAM::test_create_api_key
>>> tests/test_iam.py::TestIAM::test_create_api_key (setup): test started at 2020-01-14 15:12:14.354968
PASSED
<<< tests/test_iam.py::TestIAM::test_create_api_key (teardown): test stopped at 2020-01-14 15:12:14.662044
--- Test duration: 0.31s

tests/test_iam.py::TestIAM::test_list_api_key
>>> tests/test_iam.py::TestIAM::test_list_api_key (setup): test started at 2020-01-14 15:12:14.664326
PASSED
<<< tests/test_iam.py::TestIAM::test_list_api_key (teardown): test stopped at 2020-01-14 15:12:15.097818
--- Test duration: 0.43s

tests/test_iam.py::TestIAM::test_get_api_key
>>> tests/test_iam.py::TestIAM::test_get_api_key (setup): test started at 2020-01-14 15:12:15.251551
PASSED
<<< tests/test_iam.py::TestIAM::test_get_api_key (teardown): test stopped at 2020-01-14 15:12:15.744956
--- Test duration: 0.49s

tests/test_iam.py::TestIAM::test_list_api_key_operations
>>> tests/test_iam.py::TestIAM::test_list_api_key_operations (setup): test started at 2020-01-14 15:12:15.895133
PASSED
<<< tests/test_iam.py::TestIAM::test_list_api_key_operations (teardown): test stopped at 2020-01-14 15:12:16.078133
--- Test duration: 0.18s

tests/test_iam_apikey.py::TestIAMAPIKey::test_revoke
>>> tests/test_iam_apikey.py::TestIAMAPIKey::test_revoke (setup): test started at 2020-01-14 15:12:16.090853
PASSED
<<< tests/test_iam_apikey.py::TestIAMAPIKey::test_revoke (teardown): test stopped at 2020-01-14 15:12:16.611412
--- Test duration: 0.52s

========================================= 5 passed in 2.61s =========================================
illi-j commented 4 years ago

🤘