From 72e4e7d178154ecab0524ecbcae630cca324e37f Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Fri, 20 Jan 2017 16:23:41 +0000 Subject: [PATCH] Split upgrade test into its own play To avoid requiring all the os_previous_nova tasks to be evaluated, we should split the 2 tests up. This will help make the gate more efficient and avoids unnecessary issues. Change-Id: I8ab8de7db6d4b89eb58e183d453f04cd614cf085 --- tests/test-upgrade.yml | 38 ++++++++++++++++++++++++++++++++++++++ tests/test.yml | 6 ------ tox.ini | 10 +++++----- 3 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 tests/test-upgrade.yml diff --git a/tests/test-upgrade.yml b/tests/test-upgrade.yml new file mode 100644 index 00000000..67293019 --- /dev/null +++ b/tests/test-upgrade.yml @@ -0,0 +1,38 @@ +--- +# Copyright 2015, Rackspace US, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Setup the host +- include: common/test-setup-host.yml + +# Install RabbitMQ/MariaDB +- include: common/test-install-infra.yml + +# Install Keystone +- include: common/test-install-keystone.yml + +# Install Glance +- include: common/test-install-glance.yml + +# Install Neutron +- include: common/test-install-neutron.yml + +# Install previous Nova +- include: test-install-previous-nova.yml + +# Install Nova +- include: common/test-install-nova.yml + +# Install Tempest +- include: common/test-install-tempest.yml diff --git a/tests/test.yml b/tests/test.yml index f0ebc4de..7d196716 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -28,12 +28,6 @@ # Install Neutron - include: common/test-install-neutron.yml -# Install previous Nova -- include: test-install-previous-nova.yml - when: - - nova_upgrade is defined - - nova_upgrade | bool - # Install Nova - include: common/test-install-nova.yml diff --git a/tox.ini b/tox.ini index c3ef4c61..a9256d86 100644 --- a/tox.ini +++ b/tox.ini @@ -58,10 +58,6 @@ commands = bash -c "if [ ! -d "{toxinidir}/tests/common" ]; then \ git clone https://git.openstack.org/openstack/openstack-ansible-tests {toxinidir}/tests/common; \ fi" - bash -c "if [ ! -d "{toxinidir}/tests/common/previous" ]; then \ - git clone https://git.openstack.org/openstack/openstack-ansible-tests -b stable/newton \ - {toxinidir}/tests/common/previous; \ - fi" [testenv:pep8] @@ -118,10 +114,14 @@ deps = {[testenv:ansible]deps} setenv = {[testenv]setenv} + TEST_PLAYBOOK={toxinidir}/tests/test-upgrade.yml ANSIBLE_INVENTORY={toxinidir}/tests/upgrades-inventory - ANSIBLE_PARAMETERS=-vvv -e nova_upgrade=True commands = {[testenv:tests_clone]commands} + bash -c "if [ ! -d "{toxinidir}/tests/common/previous" ]; then \ + git clone https://git.openstack.org/openstack/openstack-ansible-tests -b stable/newton \ + {toxinidir}/tests/common/previous; \ + fi" bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"