Ensure library and tests close all necessary resources. 93/38293/1
authorspisarski <s.pisarski@cablelabs.com>
Thu, 27 Jul 2017 16:27:14 +0000 (10:27 -0600)
committerspisarski <s.pisarski@cablelabs.com>
Thu, 27 Jul 2017 16:27:14 +0000 (10:27 -0600)
commitca276f452540f68c08cb3df9049e9e7876364dac
treece26c5fb721f10402669bf761c4e69317d3f3eca
parentfdcd5600bade294ae2a2207ef01da92f22f64327
Ensure library and tests close all necessary resources.

The SNAPS-OO library and tests had left open files, ssh, and scp
connections. These have all now been wrapped with try/finally
blocks.

JIRA: SNAPS-152

Change-Id: I43e09978b5c075bd78ff3279c0799556b8758878
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
snaps/file_utils.py
snaps/openstack/create_instance.py
snaps/openstack/tests/conf/os_credentials_tests.py
snaps/openstack/tests/create_instance_tests.py
snaps/openstack/tests/create_keypairs_tests.py
snaps/openstack/utils/glance_utils.py
snaps/openstack/utils/nova_utils.py
snaps/playbook_runner.py
snaps/provisioning/tests/ansible_utils_tests.py
snaps/tests/file_utils_tests.py