Enable SSL for clouds in system tests

SSL is going to be disabled by default for new
OpenStack environments, so tests must enable it
if 'DISABLE_SSL' is not set to 'True'.

Related-bug: #1520495
Change-Id: Ib3a851413c935e1423910fd65ea4f3086a5cd17d
This commit is contained in:
Artem Panchenko 2015-11-27 15:32:02 +02:00
parent 1ce056eb36
commit 450ecbe97c

View File

@ -59,6 +59,10 @@ def change_cluster_ssl_config(attributes, CN):
attributes['editable']['public_ssl']['horizon'][
'value'] = False
elif not DISABLE_SSL and is_ssl_available:
attributes['editable']['public_ssl']['services'][
'value'] = True
attributes['editable']['public_ssl']['horizon'][
'value'] = True
attributes['editable']['public_ssl']['hostname'][
'value'] = CN
if USER_OWNED_CERT: