Skip to content
Snippets Groups Projects
Commit 053ed574 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "[CI] Add trove smoke test CI"

parents f35f7630 be7d640c
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment