kolla-cli/kolla_cli/tests/functional
Steve Noyes c6632efa75 Add ability to load inventory from a file
It would be helpful to have the ability to populate the
kolla-cli inventory file from any inventory file, not just the
all-in-one file from kolla.

To do this, The config reset command has been updated to take
an optional --inventory path argument that will cause the new
inventory to be generated from that anible inventory file.

While doing this found a few things to fix:

- renamed allineone.py & AllInOne to AnsibleInventory to better reflect
what they are now doing.

- In kolla_actions, preserve the empty globals.yml file (otherwise
the soft linkage is broken) and fix the kolla-cli directory name.

Change-Id: Ib250c5de8e00818b41c1a4539aba8c165a4ad2e2
2018-06-18 17:28:43 -04:00
..
README.txt Switch to using stestr 2018-06-07 09:58:34 -04:00
__init__.py Align tests with how functional tests are handled 2018-05-16 16:13:54 -04:00
common.py Align tests with how functional tests are handled 2018-05-16 16:13:54 -04:00
functional_test_setup.sh Add support for config reset command. 2018-05-25 11:16:02 -07:00
inventory_test_file Add ability to load inventory from a file 2018-06-18 17:28:43 -04:00
test_client_upgrade.py Add ability to load inventory from a file 2018-06-18 17:28:43 -04:00
test_config.py Add ability to load inventory from a file 2018-06-18 17:28:43 -04:00
test_deploy.py Add ability to load inventory from a file 2018-06-18 17:28:43 -04:00
test_destroy.py Enable py35 functional tests 2018-05-18 13:14:49 -04:00
test_group.py Add ability to load inventory from a file 2018-06-18 17:28:43 -04:00
test_host.py Enable py35 functional tests 2018-05-18 13:14:49 -04:00
test_password.py Add support for config reset command. 2018-05-25 11:16:02 -07:00
test_property.py Enable py35 functional tests 2018-05-18 13:14:49 -04:00
test_reconfigure.py Enable py35 functional tests 2018-05-18 13:14:49 -04:00
test_service.py Add ability to load inventory from a file 2018-06-18 17:28:43 -04:00
test_stop.py Enable py35 functional tests 2018-05-18 13:14:49 -04:00
test_support.py Enable py35 functional tests 2018-05-18 13:14:49 -04:00

README.txt

- As of change id: Id11cc1abcac6ac5b94176a1f17a8f5f82b6f00d5
removed all tests which expected remote systems
to be available / configured.  These tests should be
revived at some point using Tempest or something similar to run
more complete functional tests.

- To run a single functional test, you will need to setup these
environmental variables and the needed file structure:

export KOLLA_ETC=/tmp/kollaclitest/etc/kolla/
export KOLLA_HOME=/tmp/kollaclitest/usr/share/kolla-ansible/
export KOLLA_TOOLS_DIR=./tools/

./kolla_cli/tests/functional/functional_test_setup.sh

Then you can run a single test, for eg:

source .tox/functional/bin/activate
stestr run -n kolla_cli.tests.functional.test_deploy.TestFunctional.test_deploy