You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/02 11:38:47 UTC
[05/16] libcloud git commit: access data and promote Nodes in
responses
access data and promote Nodes in responses
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/fb867e7f
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/fb867e7f
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/fb867e7f
Branch: refs/heads/trunk
Commit: fb867e7fe756f2f8d2e8958fca846e553483aa50
Parents: 6c1d29f
Author: Anthony Shaw <an...@apache.org>
Authored: Tue Jan 10 13:27:40 2017 +1100
Committer: Anthony Shaw <an...@apache.org>
Committed: Tue Jan 10 13:27:40 2017 +1100
----------------------------------------------------------------------
integration/__main__.py | 1 +
integration/driver/test.py | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/fb867e7f/integration/__main__.py
----------------------------------------------------------------------
diff --git a/integration/__main__.py b/integration/__main__.py
index 8f09ea9..7999ca4 100644
--- a/integration/__main__.py
+++ b/integration/__main__.py
@@ -3,6 +3,7 @@ import sys
from .driver.test import TestNodeDriver
+from .api.data import NODES
class IntegrationTest(unittest.TestCase):
def setUp(self):
http://git-wip-us.apache.org/repos/asf/libcloud/blob/fb867e7f/integration/driver/test.py
----------------------------------------------------------------------
diff --git a/integration/driver/test.py b/integration/driver/test.py
index 886c98f..b695002 100644
--- a/integration/driver/test.py
+++ b/integration/driver/test.py
@@ -16,7 +16,7 @@
import base64
from libcloud.common.base import JsonResponse, ConnectionUserAndKey
-from libcloud.compute.base import NodeDriver
+from libcloud.compute.base import NodeDriver, Node
from libcloud.utils.py3 import b
@@ -68,5 +68,5 @@ class TestNodeDriver(NodeDriver):
r = self.connection.request('/compute/nodes')
nodes = []
for node in r.object:
- nodes.append(Node(**node))
+ nodes.append(Node(driver=self, **node))
return nodes