Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts implemented in https://review.openstack.org/381853 Change-Id: I71328a0d24eec716232a227ce52c63e25102ae46
This commit is contained in:
parent
90609aed17
commit
007a748cbf
@ -58,7 +58,7 @@
|
|||||||
shell: |
|
shell: |
|
||||||
. {{ tempest_venv_bin }}/activate
|
. {{ tempest_venv_bin }}/activate
|
||||||
{{ tempest_venv_bin | dirname }}/run_tempest.sh --no-virtual-env ${RUN_TEMPEST_OPTS} \
|
{{ tempest_venv_bin | dirname }}/run_tempest.sh --no-virtual-env ${RUN_TEMPEST_OPTS} \
|
||||||
magnum.tests.functional.api.v1.test_cluster.ClusterTest
|
magnum.tests.functional.api.v1.test_cluster.ClusterTest.test_create_cluster*
|
||||||
environment:
|
environment:
|
||||||
RUN_TEMPEST_OPTS: "--serial"
|
RUN_TEMPEST_OPTS: "--serial"
|
||||||
vars_files:
|
vars_files:
|
||||||
|
45
tox.ini
45
tox.ini
@ -25,6 +25,7 @@ whitelist_externals =
|
|||||||
setenv =
|
setenv =
|
||||||
PYTHONUNBUFFERED=1
|
PYTHONUNBUFFERED=1
|
||||||
ROLE_NAME=os_magnum
|
ROLE_NAME=os_magnum
|
||||||
|
TEST_IDEMPOTENCE=false
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
WORKING_DIR={toxinidir}
|
WORKING_DIR={toxinidir}
|
||||||
|
|
||||||
@ -83,62 +84,30 @@ commands =
|
|||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
-rhttp://git.openstack.org/cgit/openstack/openstack-ansible-tests/plain/test-ansible-deps.txt
|
-rhttp://git.openstack.org/cgit/openstack/openstack-ansible-tests/plain/test-ansible-deps.txt
|
||||||
commands =
|
|
||||||
{[testenv:tests_clone]commands}
|
|
||||||
bash -c "{toxinidir}/tests/common/test-ansible-env-prep.sh"
|
|
||||||
|
|
||||||
|
|
||||||
[testenv:ansible-syntax]
|
[testenv:ansible-syntax]
|
||||||
deps =
|
deps =
|
||||||
{[testenv:ansible]deps}
|
{[testenv:ansible]deps}
|
||||||
commands =
|
commands =
|
||||||
{[testenv:ansible]commands}
|
{[testenv:tests_clone]commands}
|
||||||
ansible-playbook -i {toxinidir}/tests/inventory \
|
bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh"
|
||||||
--syntax-check \
|
|
||||||
--list-tasks \
|
|
||||||
{toxinidir}/tests/test.yml
|
|
||||||
|
|
||||||
|
|
||||||
[testenv:ansible-lint]
|
[testenv:ansible-lint]
|
||||||
deps =
|
deps =
|
||||||
{[testenv:ansible]deps}
|
{[testenv:ansible]deps}
|
||||||
commands =
|
commands =
|
||||||
{[testenv:ansible]commands}
|
{[testenv:tests_clone]commands}
|
||||||
ansible-lint {toxinidir}
|
bash -c "{toxinidir}/tests/common/test-ansible-lint.sh"
|
||||||
|
|
||||||
|
|
||||||
[testenv:func_base]
|
|
||||||
# NOTE(odyssey4me): this target does not use constraints because
|
|
||||||
# it doesn't work in OpenStack-CI yet. Once that's fixed, we can
|
|
||||||
# drop the install_command.
|
|
||||||
install_command =
|
|
||||||
pip install -U --force-reinstall {opts} {packages}
|
|
||||||
|
|
||||||
|
|
||||||
[testenv:func_logs]
|
|
||||||
commands =
|
|
||||||
bash -c "{toxinidir}/tests/common/test-log-collect.sh"
|
|
||||||
|
|
||||||
|
|
||||||
[testenv:functional]
|
[testenv:functional]
|
||||||
# Ignore_errors is set to true so that the logs are collected at the
|
|
||||||
# end of the run. This will not produce a false positive. Any
|
|
||||||
# exception will be mark the run as failed and exit 1 after all of
|
|
||||||
# the commands have been iterated through.
|
|
||||||
ignore_errors = True
|
|
||||||
# NOTE(odyssey4me): this target does not use constraints because
|
|
||||||
# it doesn't work in OpenStack-CI yet. Once that's fixed, we can
|
|
||||||
# drop the install_command.
|
|
||||||
install_command =
|
|
||||||
{[testenv:func_base]install_command}
|
|
||||||
deps =
|
deps =
|
||||||
{[testenv:ansible]deps}
|
{[testenv:ansible]deps}
|
||||||
commands =
|
commands =
|
||||||
{[testenv:ansible]commands}
|
{[testenv:tests_clone]commands}
|
||||||
ansible-playbook -i {toxinidir}/tests/inventory \
|
bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
|
||||||
-e @{toxinidir}/tests/os_magnum-overrides.yml \
|
|
||||||
{toxinidir}/tests/test.yml -vvvv
|
|
||||||
{[testenv:func_logs]commands}
|
|
||||||
|
|
||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
|
Loading…
Reference in New Issue
Block a user