You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/09/13 15:31:14 UTC

[15/21] git commit: LIBCLOUD-357: Updated unit tests for ElasticStack to ensure driver UUID is stored in 'extra' field.

LIBCLOUD-357: Updated unit tests for ElasticStack to ensure driver UUID is stored in 'extra' field.

Signed-off-by: Tomaz Muraus <to...@apache.org>


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

Branch: refs/heads/0.13.2
Commit: b571b43690f64bdbefa0e0e99604e50c327b47f5
Parents: 64181eb
Author: Bob Thompson <bo...@gmail.com>
Authored: Fri Jul 5 08:55:00 2013 -0400
Committer: Tomaz Muraus <to...@apache.org>
Committed: Fri Sep 13 15:19:35 2013 +0200

----------------------------------------------------------------------
 libcloud/test/compute/test_elasticstack.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b571b436/libcloud/test/compute/test_elasticstack.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_elasticstack.py b/libcloud/test/compute/test_elasticstack.py
index 7f8a0ee..5d30bbd 100644
--- a/libcloud/test/compute/test_elasticstack.py
+++ b/libcloud/test/compute/test_elasticstack.py
@@ -105,6 +105,7 @@ class ElasticStackTestCase(object):
         self.assertEqual(node.public_ips[0], "1.2.3.4")
         self.assertEqual(node.public_ips[1], "1.2.3.5")
         self.assertEqual(node.extra['smp'], 1)
+        self.assertEqual(node.extra['ide:0:0'], "b6049e7a-aa1b-47f9-b21d-cdf2354e28d3")
 
     def test_list_sizes(self):
         images = self.driver.list_sizes()
@@ -194,20 +195,20 @@ class ElasticStackMockHttp(MockHttp):
     fixtures = ComputeFileFixtures('elastichosts')
 
     def _servers_info_UNAUTHORIZED(self, method, url, body, headers):
-         return (httplib.UNAUTHORIZED, body, {}, httplib.responses[httplib.NO_CONTENT])
+        return (httplib.UNAUTHORIZED, body, {}, httplib.responses[httplib.NO_CONTENT])
 
     def _servers_info_MALFORMED(self, method, url, body, headers):
-         body = "{malformed: '"
-         return (httplib.OK, body, {}, httplib.responses[httplib.NO_CONTENT])
+        body = "{malformed: '"
+        return (httplib.OK, body, {}, httplib.responses[httplib.NO_CONTENT])
 
     def _servers_info_PARSE_ERROR(self, method, url, body, headers):
-         return (505, body, {}, httplib.responses[httplib.NO_CONTENT])
+        return (505, body, {}, httplib.responses[httplib.NO_CONTENT])
 
     def _servers_b605ca90_c3e6_4cee_85f8_a8ebdf8f9903_reset(self, method, url, body, headers):
-         return (httplib.NO_CONTENT, body, {}, httplib.responses[httplib.NO_CONTENT])
+        return (httplib.NO_CONTENT, body, {}, httplib.responses[httplib.NO_CONTENT])
 
     def _servers_b605ca90_c3e6_4cee_85f8_a8ebdf8f9903_destroy(self, method, url, body, headers):
-         return (httplib.NO_CONTENT, body, {}, httplib.responses[httplib.NO_CONTENT])
+        return (httplib.NO_CONTENT, body, {}, httplib.responses[httplib.NO_CONTENT])
 
     def _drives_create(self, method, url, body, headers):
         body = self.fixtures.load('drives_create.json')