Merge "[CI] Add trove smoke test CI"

This commit is contained in:
Zuul 2020-12-16 09:38:02 +00:00 committed by Gerrit Code Review
commit 053ed57461
4 changed files with 14 additions and 6 deletions

View File

@ -18,7 +18,7 @@ function setup_openstack_clients {
packages+=(python-ironicclient python-ironic-inspector-client) packages+=(python-ironicclient python-ironic-inspector-client)
fi fi
if [[ $SCENARIO == magnum ]]; then if [[ $SCENARIO == magnum ]]; then
packages+=(python-designateclient python-magnumclient python-octaviaclient) packages+=(python-designateclient python-magnumclient python-octaviaclient python-troveclient)
fi fi
if [[ $SCENARIO == masakari ]]; then if [[ $SCENARIO == masakari ]]; then
packages+=(python-masakariclient) packages+=(python-masakariclient)
@ -63,7 +63,7 @@ function prepare_images {
GATE_IMAGES+=",^dnsmasq,^ironic,^iscsid" GATE_IMAGES+=",^dnsmasq,^ironic,^iscsid"
fi fi
if [[ $SCENARIO == "magnum" ]]; then if [[ $SCENARIO == "magnum" ]]; then
GATE_IMAGES+=",^designate,^magnum,^octavia" GATE_IMAGES+=",^designate,^magnum,^octavia,^trove"
fi fi
if [[ $SCENARIO == "masakari" ]]; then if [[ $SCENARIO == "masakari" ]]; then
GATE_IMAGES+=",^masakari" GATE_IMAGES+=",^masakari"

View File

@ -154,5 +154,6 @@ enable_prometheus_openstack_exporter: "no"
{% if scenario == "magnum" %} {% if scenario == "magnum" %}
enable_designate: "yes" enable_designate: "yes"
enable_magnum: "yes" enable_magnum: "yes"
enable_trove: "yes"
enable_octavia: "yes" enable_octavia: "yes"
{% endif %} {% endif %}

View File

@ -18,6 +18,12 @@ function test_octavia {
openstack loadbalancer list openstack loadbalancer list
} }
function test_trove {
# smoke test
openstack database instance list
openstack database cluster list
}
function test_designate { function test_designate {
# Smoke test. # Smoke test.
openstack zone list --all openstack zone list --all
@ -62,16 +68,17 @@ function test_magnum_logged {
test_magnum_clusters test_magnum_clusters
test_octavia test_octavia
test_designate test_designate
test_trove
} }
function test_magnum { function test_magnum {
echo "Testing Magnum, Octavia and Designate" echo "Testing Magnum, Octavia, Trove and Designate"
test_magnum_logged > /tmp/logs/ansible/test-magnum 2>&1 test_magnum_logged > /tmp/logs/ansible/test-magnum 2>&1
result=$? result=$?
if [[ $result != 0 ]]; then if [[ $result != 0 ]]; then
echo "Testing Magnum, Octavia and Designate failed. See ansible/test-magnum for details" echo "Testing Magnum, Octavia, Trove and Designate failed. See ansible/test-magnum for details"
else else
echo "Successfully tested Magnum, Octavia and Designate . See ansible/test-magnum for details" echo "Successfully tested Magnum, Octavia, Trove and Designate . See ansible/test-magnum for details"
fi fi
return $result return $result
} }

View File

@ -132,7 +132,7 @@
parent: kolla-ansible-base parent: kolla-ansible-base
voting: false voting: false
files: files:
- ^ansible/roles/(designate|magnum|octavia|octavia-certificates)/ - ^ansible/roles/(designate|magnum|octavia|octavia-certificates|trove)/
- ^tests/test-dashboard.sh - ^tests/test-dashboard.sh
- ^tests/test-magnum.sh - ^tests/test-magnum.sh
vars: vars: