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)
fi
if [[ $SCENARIO == magnum ]]; then
packages+=(python-designateclient python-magnumclient python-octaviaclient)
packages+=(python-designateclient python-magnumclient python-octaviaclient python-troveclient)
fi
if [[ $SCENARIO == masakari ]]; then
packages+=(python-masakariclient)
@ -63,7 +63,7 @@ function prepare_images {
GATE_IMAGES+=",^dnsmasq,^ironic,^iscsid"
fi
if [[ $SCENARIO == "magnum" ]]; then
GATE_IMAGES+=",^designate,^magnum,^octavia"
GATE_IMAGES+=",^designate,^magnum,^octavia,^trove"
fi
if [[ $SCENARIO == "masakari" ]]; then
GATE_IMAGES+=",^masakari"

View File

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

View File

@ -18,6 +18,12 @@ function test_octavia {
openstack loadbalancer list
}
function test_trove {
# smoke test
openstack database instance list
openstack database cluster list
}
function test_designate {
# Smoke test.
openstack zone list --all
@ -62,16 +68,17 @@ function test_magnum_logged {
test_magnum_clusters
test_octavia
test_designate
test_trove
}
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
result=$?
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
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
return $result
}

View File

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