[CI] Add trove smoke test CI
Add trove smoke test. Change-Id: I571d9663bcadb1ddc5a7ad86a2c478706e0705a9
This commit is contained in:
parent
4b3ef3f4ca
commit
be7d640c05
@ -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"
|
||||
|
@ -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 %}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user