Ensure insecure config option propagated by alarm evaluator

Fixes bug 1292130

Ensure insecure (i.e. non-cert-verifying) access over SSL to
keystone works from the alarm threshold evaluator for
statistics queries and alarm state transitions.

Change-Id: Idb94fa96a6a8b32bd071af1f73fd3172ae6948ad
This commit is contained in:
Eoghan Glynn 2014-03-14 17:37:29 +00:00
parent 87349b2572
commit 70621f4319
2 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,7 @@ class Evaluator(object):
os_username=auth_config.os_username,
os_cacert=auth_config.os_cacert,
os_endpoint_type=auth_config.os_endpoint_type,
insecure=auth_config.insecure,
)
self.api_client = ceiloclient.get_client(2, **creds)
return self.api_client

View File

@ -354,7 +354,8 @@ class TestEvaluate(base.TestEvaluatorBase):
os_password=conf.os_password,
os_username=conf.os_username,
os_cacert=conf.os_cacert,
os_endpoint_type=conf.os_endpoint_type)]
os_endpoint_type=conf.os_endpoint_type,
insecure=conf.insecure)]
actual = client.call_args_list
self.assertEqual(actual, expected)