openstacksdk/openstack/tests/ansible
Artem Goncharov 4c0071916d Enable ansible module test for keypair to check return data
With a change in cloud layer to use proxy/resource layer for keypair
Ansible got borked and is not capable in resolving data we return it
back. Add test for it searching for the cause.
Investigation resulted in the fact, that when invoked by Ansible native
implementation of the Resoure.items was not suddifient under Py3, while
under Py2 it is fine. An attempt to integrate all invoked functions into SDK
from Ansible has not brought any success.

Change-Id: I60dec9ba26176efc5b8ad8378b0ef414754a857c
2019-08-03 20:57:22 +02:00
..
hooks Update python-openstacksdk references to openstacksdk 2018-03-23 12:31:24 -05:00
roles Enable ansible module test for keypair to check return data 2019-08-03 20:57:22 +02:00
README.txt Merge tox, tests and other support files 2017-10-04 14:51:08 -05:00
run.yml Merge remote-tracking branch 'shade/master' into merge-shade 2017-10-13 06:34:45 -05:00

This directory contains a testing infrastructure for the Ansible
OpenStack modules. You will need a clouds.yaml file in order to run
the tests. You must provide a value for the `cloud` variable for each
run (using the -e option) as a default is not currently provided.

If you want to run these tests against devstack, it is easiest to use
the tox target. This assumes you have a devstack-admin cloud defined
in your clouds.yaml file that points to devstack. Some examples of
using tox:

    tox -e ansible

    tox -e ansible keypair security_group

If you want to run these tests directly, or against different clouds,
then you'll need to use the ansible-playbook command that comes with
the Ansible distribution and feed it the run.yml playbook. Some examples:

    # Run all module tests against a provider
    ansible-playbook run.yml -e "cloud=hp"

    # Run only the keypair and security_group tests
    ansible-playbook run.yml -e "cloud=hp" --tags "keypair,security_group"

    # Run all tests except security_group
    ansible-playbook run.yml -e "cloud=hp" --skip-tags "security_group"