Skip to content

Commit

Permalink
Merge pull request #246 from antonym/RI-495
Browse files Browse the repository at this point in the history
RI-495 Fix tempest tests to run on Queens upgrade
  • Loading branch information
antonym authored Sep 28, 2018
2 parents dcc30ed + a8b3c97 commit 6c0d6fd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/run-tempest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,31 @@

set -evu

# remove tempest settings from openstack_deploy variable files
if [ -f /etc/openstack_deploy/user_variables.yml ]; then
sed -i '/^tempest/d' /etc/openstack_deploy/user_variables.yml
fi
if [ -f /etc/openstack_deploy/user_rpco_variables_overrides.yml ]; then
sed -i '/^tempest/d' /etc/openstack_deploy/user_rpco_variables_overrides.yml
fi

# generate tempest tests
cat > /etc/openstack_deploy/user_rpco_tempest.yml <<EOF
---
tempest_install: yes
tempest_run: yes
tempest_public_subnet_cidr: 172.29.248.0/22
tempest_public_subnet_allocation_pools: "172.29.249.110-172.29.249.200"
# RI-357 Tempest Overrides
tempest_test_whitelist:
- "{{ (tempest_service_available_ceilometer | bool) | ternary('tempest.api.telemetry', '') }}"
- "{{ (tempest_service_available_heat | bool) | ternary('tempest.api.orchestration.stacks.test_non_empty_stack', '') }}"
- "{{ (tempest_service_available_nova | bool) | ternary('tempest.scenario.test_server_basic_ops', '') }}"
- "{{ (tempest_service_available_swift | bool) | ternary('tempest.scenario.test_object_storage_basic_ops', '') }}"
- "{{ (tempest_volume_backup_enabled | bool) | ternary('tempest.api.volume.admin.test_volumes_backup', '') }}"
- "{{ (tempest_volume_multi_backend_enabled | bool) | ternary('tempest.api.volume.admin.test_multi_backend', '') }}"
EOF

pushd /opt/openstack-ansible/playbooks
# TODO: establish any overrides
# install and run tempest
Expand Down

0 comments on commit 6c0d6fd

Please sign in to comment.