Make horizon check optional
Change-Id: I40fd6b00584925001f2672b8e1b4d679781fcc9f
diff --git a/tcp_tests/managers/openstack_manager.py b/tcp_tests/managers/openstack_manager.py
index afbd331..8f6b140 100644
--- a/tcp_tests/managers/openstack_manager.py
+++ b/tcp_tests/managers/openstack_manager.py
@@ -45,11 +45,12 @@
self.__config.openstack.horizon_port = h_data['horizon_port']
self.__config.openstack.horizon_user = h_data['horizon_user']
self.__config.openstack.horizon_password = h_data['horizon_password']
- self.auth_in_horizon(
- h_data['horizon_host'],
- h_data['horizon_port'],
- h_data['horizon_user'],
- h_data['horizon_password'])
+ if self.__config.openstack.horizon_check:
+ self.auth_in_horizon(
+ h_data['horizon_host'],
+ h_data['horizon_port'],
+ h_data['horizon_user'],
+ h_data['horizon_password'])
def get_horizon_data(self):
horizon_data = {}
diff --git a/tcp_tests/settings_oslo.py b/tcp_tests/settings_oslo.py
index 6773901..c0418c4 100644
--- a/tcp_tests/settings_oslo.py
+++ b/tcp_tests/settings_oslo.py
@@ -208,6 +208,8 @@
help="", default=False),
ct.Cfg('openstack_keystone_endpoint', ct.String(),
help="", default=''),
+ ct.Cfg('horizon_check', ct.Boolean(),
+ help="", default=True),
]
opencontrail_opts = [