diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-09-17 08:51:58 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-09-17 08:51:58 +0300 |
commit | e61c54196ead96b7efcdc0794ced2314de26d030 (patch) | |
tree | cd1eb6aefae89da0a70ff648fa185b614995a406 /ick2/versionapi_tests.py | |
parent | 4519bdb40920bdec5d2d09084da52e37ea4d570d (diff) | |
download | ick2-e61c54196ead96b7efcdc0794ced2314de26d030.tar.gz |
Change: worker-manager gets APT server from controller
Diffstat (limited to 'ick2/versionapi_tests.py')
-rw-r--r-- | ick2/versionapi_tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ick2/versionapi_tests.py b/ick2/versionapi_tests.py index 76879ed..6dc8f54 100644 --- a/ick2/versionapi_tests.py +++ b/ick2/versionapi_tests.py @@ -22,18 +22,23 @@ import ick2 class VersionAPITests(unittest.TestCase): def test_returns_version_correcly(self): + apt = 'apt.example.com' bloburl = 'https://blobs.example.com' idpurl = 'https://idp.example.com' notifyurl = 'https://notify.example.com' + api = ick2.VersionAPI(None) + api.set_apt_server(apt) api.set_artifact_store_url(bloburl) api.set_auth_url(idpurl) api.set_notify_url(notifyurl) + response = api.get_version() self.assertEqual( response, { 'version': ick2.__version__, + 'apt_server': apt, 'artifact_store': bloburl, 'auth_url': idpurl, 'notify_url': notifyurl, |