Choosing protocol for horizon

The patch checks whether SSL enabled for horizon site in
apache in case of AIO case.

Change-Id: Idaab325127d36ab42c087b178df69b040525873c
Related-PROD: PROD-25528
diff --git a/_modules/runtest/tempest_sections/dashboard.py b/_modules/runtest/tempest_sections/dashboard.py
index 369bdda..964a99d 100644
--- a/_modules/runtest/tempest_sections/dashboard.py
+++ b/_modules/runtest/tempest_sections/dashboard.py
@@ -36,8 +36,13 @@
                 else:
                   protocol = binds_data[0]['protocol']
             else:
+                # AIO case
+                if (self.get_item_when_condition_match('horizon.server.secure', horizon_enable) or
+                   self.get_item_when_condition_match('horizon.server.ssl.enabled', horizon_enable)):
+                  protocol = 'https'
+                else:
+                  protocol = 'http'
                 port = self.get_item_when_condition_match('horizon.server.bind.port', horizon_enable)
-                protocol = 'http'
                 ip = self.get_item_when_condition_match('_param.cluster_local_address', horizon_enable)
             # When CSRF protection is enabled Refferer and Host header should match.
             # Common browsers doesn't add default ports like 80 and 443 to the headers