added location when creating ip
@@ -566,7 +566,8 @@ class AzureNodeDriverTests(LibcloudTestCase):
self.assertTrue(res_value)
def test_delete_public_ip(self):
- public_ip = self.driver.ex_create_public_ip(name='test_public_ip', resource_group='111111')
+ location = self.driver.list_locations()[0]
+ public_ip = self.driver.ex_create_public_ip(name='test_public_ip', resource_group='111111', location=location)
res_value = self.driver.ex_delete_public_ip(public_ip)
self.assertTrue(res_value)
