diff --git a/etc/openstack.ini b/etc/openstack.ini index 9b0b659..c493a6f 100644 --- a/etc/openstack.ini +++ b/etc/openstack.ini @@ -7,7 +7,7 @@ # Allow insecure TLS (https) requests. # If your SSL certificate is not valid set this option to true, # else omit it or set it false. -insecure = true +insecure = false auth_url = https://127.0.0.1:5000/v3 diff --git a/tests/unit/test_os_utils.py b/tests/unit/test_os_utils.py index 2316dba..e240305 100644 --- a/tests/unit/test_os_utils.py +++ b/tests/unit/test_os_utils.py @@ -154,10 +154,11 @@ class TestOSUtilsConnection(unittest.TestCase): def test_insecure(self): """Test True insecure value.""" - self.osu = os_utils.OpenStack( - os_auth_args=self.config - ) - self.assertFalse(self.osu.verify) + with mock.patch.dict(self.config, {'insecure': 'True'}): + self.osu = os_utils.OpenStack( + os_auth_args=self.config + ) + self.assertFalse(self.osu.verify) def test_secure(self): """Test False insecure value."""