summaryrefslogtreecommitdiff
path: root/ick2/versionapi_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-04-06 21:38:43 +0300
committerLars Wirzenius <liw@liw.fi>2018-04-06 21:38:43 +0300
commit5aeef33219103eb5f39bfc0a79ed462f46a12420 (patch)
tree7fd5f2deb719a8c4ff68bf7eda7ee024006cf986 /ick2/versionapi_tests.py
parent63a8c15a46b73232fc2162807eced80e5e2c7296 (diff)
downloadick2-5aeef33219103eb5f39bfc0a79ed462f46a12420.tar.gz
Add: authentication URL to controller /version
Diffstat (limited to 'ick2/versionapi_tests.py')
-rw-r--r--ick2/versionapi_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ick2/versionapi_tests.py b/ick2/versionapi_tests.py
index b8d59d5..32f9808 100644
--- a/ick2/versionapi_tests.py
+++ b/ick2/versionapi_tests.py
@@ -23,13 +23,16 @@ class VersionAPITests(unittest.TestCase):
def test_returns_version_correcly(self):
bloburl = 'https://blobs.example.com'
+ idpurl = 'https://idp.example.com'
api = ick2.VersionAPI(None)
api.set_artifact_store_url(bloburl)
+ api.set_auth_url(idpurl)
response = api.get_version()
self.assertEqual(
response,
{
'version': ick2.__version__,
'artifact_store': bloburl,
+ 'auth_url': idpurl,
}
)