summaryrefslogtreecommitdiffstats
path: root/python-dockering/tests
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2017-10-18 16:59:41 -0400
committerMichael Hwang <mhwang@research.att.com>2017-11-01 15:30:04 -0400
commitb72e025d7e04efc7babbf2988531fcb3b431dc3f (patch)
tree991161a8e9554f870729e954cd0e03f37565fc17 /python-dockering/tests
parent310c9c1b71529a26a99f47852f5c566df8fbc909 (diff)
Turn off cert validation
Change-Id: Ie43b6ffd4b50ee08ad65015d43ec262ba0b2b7f8 Issue-Id: DCAEGEN2-189 Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'python-dockering/tests')
-rw-r--r--python-dockering/tests/test_config_building.py3
-rw-r--r--python-dockering/tests/test_core.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/python-dockering/tests/test_config_building.py b/python-dockering/tests/test_config_building.py
index ff1b409..16ecb58 100644
--- a/python-dockering/tests/test_config_building.py
+++ b/python-dockering/tests/test_config_building.py
@@ -93,7 +93,8 @@ def test_create_envs_healthcheck():
expected = {
"SERVICE_CHECK_HTTPS": endpoint,
"SERVICE_CHECK_INTERVAL": interval,
- "SERVICE_CHECK_TIMEOUT": timeout
+ "SERVICE_CHECK_TIMEOUT": timeout,
+ "SERVICE_CHECK_TLS_SKIP_VERIFY": "true"
}
assert expected == doc.create_envs_healthcheck(docker_config)
diff --git a/python-dockering/tests/test_core.py b/python-dockering/tests/test_core.py
index f66f88c..76e027b 100644
--- a/python-dockering/tests/test_core.py
+++ b/python-dockering/tests/test_core.py
@@ -30,7 +30,8 @@ def test_create_client():
# Bad - Could not connect to docker engine
with pytest.raises(DockerConnectionError):
- doc.create_client("fake", 2376, reauth=True)
+ doc.create_client("fake", 2376, reauth=True, logins=[{
+ "registry": "nowhere", "username": "bob", "password": "123"}])
# TODO: Does pytest provide an env file?