diff --git a/test/unit/connectors/OpenStack.py b/test/unit/connectors/OpenStack.py index 3402a68d1..4372a9892 100755 --- a/test/unit/connectors/OpenStack.py +++ b/test/unit/connectors/OpenStack.py @@ -240,7 +240,7 @@ def test_30_updateVMInfo(self, get_driver): node.public_ips = [] node.private_ips = ['10.0.0.1'] node.driver = driver - driver.list_nodes.return_value = [node] + driver.ex_get_node_details.return_value = node node_size = MagicMock() node_size.ram = 512 @@ -308,7 +308,7 @@ def test_40_stop(self, get_driver): node.public_ips = ['158.42.1.1'] node.private_ips = ['10.0.0.1'] node.driver = driver - driver.list_nodes.return_value = [node] + driver.ex_get_node_details.return_value = node driver.ex_stop_node.return_value = True @@ -336,7 +336,7 @@ def test_50_start(self, get_driver): node.public_ips = ['158.42.1.1'] node.private_ips = ['10.0.0.1'] node.driver = driver - driver.list_nodes.return_value = [node] + driver.ex_get_node_details.return_value = node driver.ex_start_node.return_value = True @@ -386,7 +386,7 @@ def test_55_alter(self, get_driver): node.public_ips = ['158.42.1.1'] node.private_ips = ['10.0.0.1'] node.driver = driver - driver.list_nodes.return_value = [node] + driver.ex_get_node_details.return_value = node node_size = MagicMock() node_size.ram = 2048 @@ -435,7 +435,7 @@ def test_60_finalize(self, sleep, get_driver): node.private_ips = ['10.0.0.1'] node.driver = driver node.destroy.return_value = True - driver.list_nodes.return_value = [node] + driver.ex_get_node_details.return_value = node keypair = MagicMock() driver.get_key_pair.return_value = keypair @@ -468,7 +468,7 @@ def test_70_create_snapshot(self, get_driver): node = MagicMock() node.id = "1" node.driver = driver - driver.list_nodes.return_value = [node] + driver.ex_get_node_details.return_value = node image = MagicMock() image.id = "newimage" driver.create_image.return_value = image