
To mimic real life environment during update/upgrade/ffwd we'll expose a 'HTTP-live' test. This test asserts that web server running in overcloud is reachable via its FIP and that content served is accessible. To access WEB server(s) running in overcloud appropriate ports 80 and 443 have to be added to the security group(s). Initial work done in https://review.openstack.org/#/c/547220/ Co-Authored-By: Marius Cornea <mcornea@redhat.com> Change-Id: I818949e0e498d5cd8da4640bda2be99aafd1aa76
10 lines
269 B
Django/Jinja
10 lines
269 B
Django/Jinja
#!/bin/env bash
|
|
|
|
RESULT_CODE=$(grep 'HTTP Code' {{ working_dir }}/http_response.log | sort | uniq)
|
|
|
|
#TODO: assert other conditions/thresholds for pass/fail criteria
|
|
if [[ "$RESULT_CODE" != "HTTP Code: 200" ]]; then
|
|
echo 'There are non-200 HTTP calls'
|
|
exit 1
|
|
fi
|