Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 1 | import pytest |
| 2 | |
| 3 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 4 | @pytest.mark.smoke |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 5 | @pytest.mark.usefixtures('check_openstack') |
| 6 | def test_ui_horizon(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 7 | IP = local_salt_client.pillar_get( |
| 8 | tgt='horizon:server', |
| 9 | param='_param:cluster_public_host') |
| 10 | if not IP: |
mkraynov | e940404 | 2018-12-04 10:42:41 +0400 | [diff] [blame] | 11 | pytest.skip("Horizon is not enabled on this environment") |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 12 | result = local_salt_client.cmd_any( |
| 13 | tgt=ctl_nodes_pillar, |
| 14 | param='curl --insecure https://{}/auth/login/ 2>&1 | \ |
| 15 | grep Login'.format(IP), |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 16 | expr_form='pillar') |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 17 | assert len(result) != 0, \ |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 18 | 'Horizon login page is not reachable on {} from ctl nodes'.format( |
| 19 | IP[0]) |
| 20 | |
| 21 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 22 | @pytest.mark.smoke |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 23 | @pytest.mark.usefixtures('check_openstack') |
| 24 | def test_public_openstack(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 25 | IP = local_salt_client.pillar_get(param='_param:cluster_public_host') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 26 | protocol = 'https' |
| 27 | port = '5000' |
| 28 | url = "{}://{}:{}/v3".format(protocol, IP, port) |
| 29 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 30 | tgt=ctl_nodes_pillar, |
| 31 | param='curl -k {}/ 2>&1 | \ |
| 32 | grep stable'.format(url), |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 33 | expr_form='pillar') |
| 34 | assert len(result[result.keys()[0]]) != 0, \ |
| 35 | 'Public Openstack url is not reachable on {} from ctl nodes'.format(url) |
| 36 | |
| 37 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 38 | @pytest.mark.sl_dup |
| 39 | #stacklight-pytest? |
| 40 | @pytest.mark.full |
Oleksii Zhurba | 8ce9fcf | 2018-10-05 18:38:22 +0300 | [diff] [blame] | 41 | @pytest.mark.usefixtures('check_kibana') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 42 | def test_internal_ui_kibana(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 43 | IP = local_salt_client.pillar_get(param='_param:stacklight_log_address') |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 44 | protocol = 'http' |
| 45 | port = '5601' |
| 46 | url = "{}://{}:{}".format(protocol, IP, port) |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 47 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 48 | tgt=ctl_nodes_pillar, |
| 49 | param='curl {}/app/kibana 2>&1 | \ |
| 50 | grep loading'.format(url), |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 51 | expr_form='pillar') |
| 52 | assert len(result[result.keys()[0]]) != 0, \ |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 53 | 'Internal Kibana login page is not reachable on {} ' \ |
| 54 | 'from ctl nodes'.format(url) |
| 55 | |
| 56 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 57 | @pytest.mark.smoke |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 58 | @pytest.mark.usefixtures('check_kibana') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 59 | def test_public_ui_kibana(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 60 | IP = local_salt_client.pillar_get(param='_param:cluster_public_host') |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 61 | protocol = 'https' |
| 62 | port = '5601' |
| 63 | url = "{}://{}:{}".format(protocol, IP, port) |
| 64 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 65 | tgt=ctl_nodes_pillar, |
| 66 | param='curl {}/app/kibana 2>&1 | \ |
| 67 | grep loading'.format(url), |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 68 | expr_form='pillar') |
| 69 | assert len(result[result.keys()[0]]) != 0, \ |
| 70 | 'Public Kibana login page is not reachable on {} ' \ |
| 71 | 'from ctl nodes'.format(url) |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 72 | |
| 73 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 74 | @pytest.mark.sl_dup |
| 75 | #stacklight-pytest? |
| 76 | @pytest.mark.full |
Oleksii Zhurba | 8ce9fcf | 2018-10-05 18:38:22 +0300 | [diff] [blame] | 77 | @pytest.mark.usefixtures('check_prometheus') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 78 | def test_internal_ui_prometheus(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 79 | IP = local_salt_client.pillar_get(param='_param:stacklight_monitor_address') |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 80 | protocol = 'http' |
| 81 | port = '15010' |
| 82 | url = "{}://{}:{}".format(protocol, IP, port) |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 83 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 84 | tgt=ctl_nodes_pillar, |
| 85 | param='curl {}/graph 2>&1 | \ |
| 86 | grep Prometheus'.format(url), |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 87 | expr_form='pillar') |
| 88 | assert len(result[result.keys()[0]]) != 0, \ |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 89 | 'Internal Prometheus page is not reachable on {} ' \ |
| 90 | 'from ctl nodes'.format(url) |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 91 | |
| 92 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 93 | @pytest.mark.smoke |
Oleksii Zhurba | 8ce9fcf | 2018-10-05 18:38:22 +0300 | [diff] [blame] | 94 | @pytest.mark.usefixtures('check_prometheus') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 95 | def test_public_ui_prometheus(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 96 | IP = local_salt_client.pillar_get(param='_param:cluster_public_host') |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 97 | protocol = 'https' |
| 98 | port = '15010' |
| 99 | url = "{}://{}:{}".format(protocol, IP, port) |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 100 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 101 | tgt=ctl_nodes_pillar, |
| 102 | param='curl {}/graph 2>&1 | \ |
| 103 | grep Prometheus'.format(url), |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 104 | expr_form='pillar') |
| 105 | assert len(result[result.keys()[0]]) != 0, \ |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 106 | 'Public Prometheus page is not reachable on {} ' \ |
| 107 | 'from ctl nodes'.format(url) |
| 108 | |
| 109 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 110 | @pytest.mark.sl_dup |
| 111 | #stacklight-pytest? |
| 112 | @pytest.mark.full |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 113 | @pytest.mark.usefixtures('check_prometheus') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 114 | def test_internal_ui_alert_manager(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 115 | IP = local_salt_client.pillar_get(param='_param:stacklight_monitor_address') |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 116 | protocol = 'http' |
| 117 | port = '15011' |
| 118 | url = "{}://{}:{}".format(protocol, IP, port) |
| 119 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 120 | tgt=ctl_nodes_pillar, |
| 121 | param='curl -s {}/ | grep Alertmanager'.format(url), |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 122 | expr_form='pillar') |
| 123 | assert len(result[result.keys()[0]]) != 0, \ |
| 124 | 'Internal AlertManager page is not reachable on {} ' \ |
| 125 | 'from ctl nodes'.format(url) |
| 126 | |
| 127 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 128 | @pytest.mark.smoke |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 129 | @pytest.mark.usefixtures('check_prometheus') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 130 | def test_public_ui_alert_manager(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 131 | IP = local_salt_client.pillar_get(param='_param:cluster_public_host') |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 132 | protocol = 'https' |
| 133 | port = '15011' |
| 134 | url = "{}://{}:{}".format(protocol, IP, port) |
| 135 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 136 | tgt=ctl_nodes_pillar, |
| 137 | param='curl -s {}/ | grep Alertmanager'.format(url), |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 138 | expr_form='pillar') |
| 139 | assert len(result[result.keys()[0]]) != 0, \ |
| 140 | 'Public AlertManager page is not reachable on {} ' \ |
| 141 | 'from ctl nodes'.format(url) |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 142 | |
| 143 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 144 | @pytest.mark.sl_dup |
| 145 | #stacklight-pytest? |
| 146 | @pytest.mark.full |
Oleksii Zhurba | 8ce9fcf | 2018-10-05 18:38:22 +0300 | [diff] [blame] | 147 | @pytest.mark.usefixtures('check_grafana') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 148 | def test_internal_ui_grafana(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 149 | IP = local_salt_client.pillar_get(param='_param:stacklight_monitor_address') |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 150 | protocol = 'http' |
| 151 | port = '15013' |
| 152 | url = "{}://{}:{}".format(protocol, IP, port) |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 153 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 154 | tgt=ctl_nodes_pillar, |
| 155 | param='curl {}/login 2>&1 | grep Grafana'.format(url), |
Oleksii Zhurba | 020fab4 | 2017-11-01 20:13:28 +0000 | [diff] [blame] | 156 | expr_form='pillar') |
| 157 | assert len(result[result.keys()[0]]) != 0, \ |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 158 | 'Internal Grafana page is not reachable on {} ' \ |
| 159 | 'from ctl nodes'.format(url) |
| 160 | |
| 161 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 162 | @pytest.mark.smoke |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 163 | @pytest.mark.usefixtures('check_grafana') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 164 | def test_public_ui_grafana(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 165 | IP = local_salt_client.pillar_get(param='_param:cluster_public_host') |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 166 | protocol = 'https' |
| 167 | port = '8084' |
| 168 | url = "{}://{}:{}".format(protocol, IP, port) |
| 169 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 170 | tgt=ctl_nodes_pillar, |
| 171 | param='curl {}/login 2>&1 | grep Grafana'.format(url), |
Ievgeniia Zadorozhna | 09b1ae8 | 2019-01-28 13:06:01 +0300 | [diff] [blame] | 172 | expr_form='pillar') |
| 173 | assert len(result[result.keys()[0]]) != 0, \ |
| 174 | 'Public Grafana page is not reachable on {} from ctl nodes'.format(url) |
Ievgeniia Zadorozhna | df243ef | 2018-11-08 18:17:17 +0300 | [diff] [blame] | 175 | |
| 176 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 177 | @pytest.mark.sl_dup |
| 178 | #stacklight-pytest? |
| 179 | @pytest.mark.full |
Ievgeniia Zadorozhna | df243ef | 2018-11-08 18:17:17 +0300 | [diff] [blame] | 180 | @pytest.mark.usefixtures('check_alerta') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 181 | def test_internal_ui_alerta(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 182 | IP = local_salt_client.pillar_get(param='_param:stacklight_monitor_address') |
Ievgeniia Zadorozhna | df243ef | 2018-11-08 18:17:17 +0300 | [diff] [blame] | 183 | protocol = 'http' |
| 184 | port = '15017' |
| 185 | url = "{}://{}:{}".format(protocol, IP, port) |
| 186 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 187 | tgt=ctl_nodes_pillar, |
| 188 | param='curl {}/ 2>&1 | \ |
| 189 | grep Alerta'.format(url), |
Ievgeniia Zadorozhna | df243ef | 2018-11-08 18:17:17 +0300 | [diff] [blame] | 190 | expr_form='pillar') |
| 191 | assert len(result[result.keys()[0]]) != 0, \ |
| 192 | 'Internal Alerta page is not reachable on {} from ctl nodes'.format(url) |
| 193 | |
| 194 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 195 | @pytest.mark.smoke |
Ievgeniia Zadorozhna | df243ef | 2018-11-08 18:17:17 +0300 | [diff] [blame] | 196 | @pytest.mark.usefixtures('check_alerta') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 197 | def test_public_ui_alerta(local_salt_client, ctl_nodes_pillar): |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 198 | IP = local_salt_client.pillar_get(param='_param:cluster_public_host') |
Ievgeniia Zadorozhna | df243ef | 2018-11-08 18:17:17 +0300 | [diff] [blame] | 199 | protocol = 'https' |
| 200 | port = '15017' |
| 201 | url = "{}://{}:{}".format(protocol, IP, port) |
| 202 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 203 | tgt=ctl_nodes_pillar, |
| 204 | param='curl {}/ 2>&1 | \ |
| 205 | grep Alerta'.format(url), |
Ievgeniia Zadorozhna | df243ef | 2018-11-08 18:17:17 +0300 | [diff] [blame] | 206 | expr_form='pillar') |
| 207 | assert len(result[result.keys()[0]]) != 0, \ |
| 208 | 'Public Alerta page is not reachable on {} from ctl nodes'.format(url) |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 209 | |
| 210 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 211 | @pytest.mark.smoke |
Oleksii Zhurba | bcb27cd | 2019-04-23 17:04:20 -0500 | [diff] [blame] | 212 | @pytest.mark.usefixtures('check_openstack') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 213 | @pytest.mark.usefixtures('check_drivetrain') |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 214 | def test_public_ui_jenkins(local_salt_client, ctl_nodes_pillar): |
| 215 | IP = local_salt_client.pillar_get(param='_param:cluster_public_host') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 216 | protocol = 'https' |
| 217 | port = '8081' |
| 218 | url = "{}://{}:{}".format(protocol, IP, port) |
| 219 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 220 | tgt=ctl_nodes_pillar, |
| 221 | param='curl -k {}/ 2>&1 | \ |
| 222 | grep Authentication'.format(url), |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 223 | expr_form='pillar') |
| 224 | assert len(result[result.keys()[0]]) != 0, \ |
| 225 | 'Public Jenkins page is not reachable on {} from ctl nodes'.format(url) |
| 226 | |
| 227 | |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 228 | @pytest.mark.smoke |
Oleksii Zhurba | bcb27cd | 2019-04-23 17:04:20 -0500 | [diff] [blame] | 229 | @pytest.mark.usefixtures('check_openstack') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 230 | @pytest.mark.usefixtures('check_drivetrain') |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 231 | def test_public_ui_gerrit(local_salt_client, ctl_nodes_pillar): |
| 232 | IP = local_salt_client.pillar_get(param='_param:cluster_public_host') |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 233 | protocol = 'https' |
| 234 | port = '8070' |
| 235 | url = "{}://{}:{}".format(protocol, IP, port) |
| 236 | result = local_salt_client.cmd( |
Oleksii Zhurba | 4bfd2ee | 2019-04-10 21:56:58 -0500 | [diff] [blame] | 237 | tgt=ctl_nodes_pillar, |
| 238 | param='curl -k {}/ 2>&1 | \ |
| 239 | grep "Gerrit Code Review"'.format(url), |
Oleksii Zhurba | 25215d9 | 2019-01-31 16:35:57 -0600 | [diff] [blame] | 240 | expr_form='pillar') |
| 241 | assert len(result[result.keys()[0]]) != 0, \ |
Oleksii Zhurba | 5b15b9b | 2019-05-09 18:53:40 -0500 | [diff] [blame^] | 242 | 'Public Gerrit page is not reachable on {} from ctl nodes'.format(url) |