From b72e025d7e04efc7babbf2988531fcb3b431dc3f Mon Sep 17 00:00:00 2001 From: Michael Hwang Date: Wed, 18 Oct 2017 16:59:41 -0400 Subject: Turn off cert validation Change-Id: Ie43b6ffd4b50ee08ad65015d43ec262ba0b2b7f8 Issue-Id: DCAEGEN2-189 Signed-off-by: Michael Hwang --- python-dockering/tests/test_config_building.py | 3 ++- python-dockering/tests/test_core.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'python-dockering/tests') 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? -- cgit 1.2.3-korg