From 841b5699185442f2cc6f87a776fd707045be5587 Mon Sep 17 00:00:00 2001 From: spisarski Date: Fri, 14 Jul 2017 13:28:37 -0600 Subject: Last task necessary to stop users from easily obtaining OS objects. Changed external interfaces still exposing OpenStack created APIs to either return SNAPS-OO domain objects or objects contained on the OpenStack generated objects as to not leak implementation details that would eventually break the library when new API versions are released. JIRA: SNAPS-125 Change-Id: Iab6d6d298c4c5da68daed4b1b252313a1595a295 Signed-off-by: spisarski --- snaps/provisioning/tests/ansible_utils_tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'snaps/provisioning') diff --git a/snaps/provisioning/tests/ansible_utils_tests.py b/snaps/provisioning/tests/ansible_utils_tests.py index 4c8dea6..203ba33 100644 --- a/snaps/provisioning/tests/ansible_utils_tests.py +++ b/snaps/provisioning/tests/ansible_utils_tests.py @@ -225,10 +225,10 @@ class AnsibleProvisioningTests(OSIntegrationTestCase): Should this not be performed, the creation of the host ssh key will cause your ansible calls to fail. """ - vm = self.inst_creator.create(block=True) + self.inst_creator.create(block=True) priv_ip = self.inst_creator.get_port_ip(self.port_1_name) - self.assertTrue(check_dhcp_lease(self.nova, vm, priv_ip)) + self.assertTrue(check_dhcp_lease(self.inst_creator, priv_ip)) # Apply Security Group self.inst_creator.add_security_group( @@ -277,10 +277,10 @@ class AnsibleProvisioningTests(OSIntegrationTestCase): Should this not be performed, the creation of the host ssh key will cause your ansible calls to fail. """ - vm = self.inst_creator.create(block=True) + self.inst_creator.create(block=True) priv_ip = self.inst_creator.get_port_ip(self.port_1_name) - self.assertTrue(check_dhcp_lease(self.nova, vm, priv_ip)) + self.assertTrue(check_dhcp_lease(self.inst_creator, priv_ip)) # Apply Security Group self.inst_creator.add_security_group( -- cgit 1.2.3-korg