kolla-ansible/tests/test-scenario-nfv.sh
Michal Nasiadka 81a5a7cf4d Remove tacker demos from contrib and their usage in nfv CI
These are not usable for long time, based on legacy API [1],
CI fails with non-existent openstack client commands.

[1]: https://review.opendev.org/c/openstack/python-tackerclient/+/900977

Change-Id: I316f6fc364bcff58c1f3ea1d884ec52de6e1675f
2024-12-12 13:04:40 +00:00

62 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
set -o xtrace
set -o errexit
# Enable unbuffered output for Ansible in Jenkins.
export PYTHONUNBUFFERED=1
function test_tacker {
echo "TESTING: Tacker VIM,VNFD and VNF creation"
openstack vim list
openstack vnf list
}
function test_barbican {
echo "TESTING: Barbican"
openstack secret list
}
function test_mistral {
echo "TESTING: Mistral"
openstack workflow list
openstack workflow execution list
openstack action execution list
}
function test_nova {
echo "TESTING: Nova"
openstack server list
}
function test_heat {
echo "TESTING: Heat"
openstack stack list
}
function test_scenario_nfv_logged {
. /etc/kolla/admin-openrc.sh
. ~/openstackclient-venv/bin/activate
test_tacker
test_barbican
test_mistral
test_nova
test_heat
}
function test_scenario_nfv {
echo "Testing Scenario NFV"
test_scenario_nfv_logged > /tmp/logs/ansible/test-scenario-nfv 2>&1
result=$?
if [[ $result != 0 ]]; then
echo "Testing Scenario NFV failed. See ansible/test-scenario-nfv for details"
else
echo "Successfully Scenario NFV. See ansible/test-scenario-nfv for details"
fi
return $result
}
test_scenario_nfv