Skip to content

Commit

Permalink
Fix #503
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Nov 29, 2017
1 parent b375d1e commit 6450f10
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit/connectors/OpenStack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6450f10

Please sign in to comment.