Removed current working directory logic retrieving test file resources. 93/35893/1
authorspisarski <s.pisarski@cablelabs.com>
Wed, 7 Jun 2017 20:56:00 +0000 (14:56 -0600)
committerspisarski <s.pisarski@cablelabs.com>
Wed, 7 Jun 2017 20:56:00 +0000 (14:56 -0600)
commit95d35a166fc66944fb0fc6091f4b84568aef0e7d
tree5ad804fe917c7c7a2bcf99ad285159ea0f29d015
parentc8212122569c2dbf6290b43a0fbde0171c2ffdc5
Removed current working directory logic retrieving test file resources.

Some of the SNAPS tests leverage file resources contained within the
project. These resources were being accessed via relative paths which
required the test clients to ensure that the CWD was the <repo>/snaps
directory. Replaced that logic to leverage the import pkg_resources
making the tests much more flexible and robust.

JIRA: SNAPS-89

Change-Id: Ic9c429ee53e4dd785641e11e1ed4de5aeeab54d1
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
examples/__init__.py [new file with mode: 0644]
examples/heat/__init__.py [new file with mode: 0644]
snaps/custom_image_test_runner.py
snaps/openstack/tests/conf/__init__.py [new file with mode: 0644]
snaps/openstack/tests/create_stack_tests.py
snaps/openstack/tests/os_source_file_test.py
snaps/openstack/utils/tests/heat_utils_tests.py
snaps/provisioning/tests/ansible_utils_tests.py
snaps/provisioning/tests/playbooks/__init__.py [new file with mode: 0644]
snaps/test_runner.py
snaps/tests/file_utils_tests.py