Update affected and broken tests.

Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/6c05fbb5
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/6c05fbb5
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/6c05fbb5

Branch: refs/heads/trunk
Commit: 6c05fbb5f6eaef79cb79c9bd06571db5e0bda044
Parents: 08ea1dd
Author: Tomaz Muraus <[email protected]>
Authored: Sun Apr 5 11:57:40 2015 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Sun Apr 5 11:57:40 2015 +0200

----------------------------------------------------------------------
 libcloud/test/compute/test_azure.py | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/6c05fbb5/libcloud/test/compute/test_azure.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_azure.py 
b/libcloud/test/compute/test_azure.py
index 28311c5..f60132a 100644
--- a/libcloud/test/compute/test_azure.py
+++ b/libcloud/test/compute/test_azure.py
@@ -122,10 +122,10 @@ class AzureNodeDriverTests(unittest.TestCase):
         self.assertEquals(extra["ssh_port"], u'22')
 
     def test_list_nodes_returned_no_deployments(self):
-        vmimages = self.driver.list_nodes(
+        nodes = self.driver.list_nodes(
             ex_cloud_service_name="dcoddkinztest03"
         )
-        self.assertIsNone(vmimages)
+        self.assertEqual(nodes, [])
 
     def test_list_nodes_returned_no_cloud_service(self):
         with self.assertRaises(LibcloudError):
@@ -555,6 +555,10 @@ class AzureMockHttp(MockHttp):
 
         return (httplib.OK, body, headers, httplib.responses[httplib.OK])
 
+    def 
_3761b98b_673d_526c_8d55_fee918758e6e_services_hostedservices_testdcabc_deployments_dcoddkinztest02_roles(self,
 method, url, body, headers):
+        headers["x-ms-request-id"] = "acc33f6756cda6fd96826394fce4c9f3"
+        return (httplib.ACCEPTED, body, headers, 
httplib.responses[httplib.ACCEPTED])
+
     def 
_3761b98b_673d_526c_8d55_fee918758e6e_services_hostedservices_testdcabc2_deployments_dcoddkinztest02_roles(self,
 method, url, body, headers):
         headers["x-ms-request-id"] = "acc33f6756cda6fd96826394fce4c9f3"
         return (httplib.ACCEPTED, body, headers, 
httplib.responses[httplib.ACCEPTED])
@@ -565,6 +569,12 @@ class AzureMockHttp(MockHttp):
 
         return (httplib.OK, body, headers, httplib.responses[httplib.OK])
 
+    def 
_3761b98b_673d_526c_8d55_fee918758e6e_services_hostedservices_testdcabc_deploymentslots_Production(self,
 method, url, body, headers):
+        if method == "GET":
+            body = 
self.fixtures.load('_3761b98b_673d_526c_8d55_fee918758e6e_services_hostedservices_testdcabc2_deploymentslots_Production.xml')
+
+        return (httplib.OK, body, headers, httplib.responses[httplib.OK])
+
     def 
_3761b98b_673d_526c_8d55_fee918758e6e_services_hostedservices_testdcabc3_deploymentslots_Production(self,
 method, url, body, headers):
         if method == "GET":
             body = 
self.fixtures.load('_3761b98b_673d_526c_8d55_fee918758e6e_services_hostedservices_testdcabc2_deploymentslots_Production.xml')

Reply via email to