Default insecure to false in sample config
In PR [1] the default for insecure was set to False. This commit updates the sample configuration file to match that default. NOTE: We also mock out test_insecure as is done in test_secure so that the test doesn't actually rely on what is set in openstack.ini to pass. [1] https://review.openstack.org/#/c/474366/ Change-Id: I5257be8cfb9483ac7dd02b893e4a22a2ee46bbf7
This commit is contained in:
parent
f655761212
commit
d99b674500
|
@ -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
|
||||
|
||||
|
|
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue