libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [3/4] libcloud git commit: change Status from Exited to running so to check that state equal to running Closes #1049
Date Mon, 19 Jun 2017 00:23:04 GMT
change Status from Exited to running so to check that state equal to running
Closes #1049


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

Branch: refs/heads/trunk
Commit: 7c8d053f6d31fd73109bb10adf842399753f1849
Parents: 29e82dc
Author: johnnyWalnut <ikarydis0@gmail.com>
Authored: Thu Jun 1 18:50:55 2017 +0200
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Mon Jun 19 10:21:41 2017 +1000

----------------------------------------------------------------------
 .../test/container/fixtures/docker/linux_124/container_a68.json    | 2 +-
 libcloud/test/container/test_docker.py                             | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/7c8d053f/libcloud/test/container/fixtures/docker/linux_124/container_a68.json
----------------------------------------------------------------------
diff --git a/libcloud/test/container/fixtures/docker/linux_124/container_a68.json b/libcloud/test/container/fixtures/docker/linux_124/container_a68.json
index 88282ec..e4aab0d 100644
--- a/libcloud/test/container/fixtures/docker/linux_124/container_a68.json
+++ b/libcloud/test/container/fixtures/docker/linux_124/container_a68.json
@@ -6,7 +6,7 @@
     "None"
   ],
   "State": {
-    "Status": "exited",
+    "Status": "running",
     "Running": false,
     "Paused": false,
     "Restarting": false,

http://git-wip-us.apache.org/repos/asf/libcloud/blob/7c8d053f/libcloud/test/container/test_docker.py
----------------------------------------------------------------------
diff --git a/libcloud/test/container/test_docker.py b/libcloud/test/container/test_docker.py
index 95011e9..cb82ea2 100644
--- a/libcloud/test/container/test_docker.py
+++ b/libcloud/test/container/test_docker.py
@@ -78,6 +78,7 @@ class DockerContainerDriverTestCase(unittest.TestCase):
             container = driver.get_container('a68c1872c74630522c7aa74b85558b06824c5e672cee334296c50fb209825303')
             self.assertEqual(container.id, 'a68c1872c74630522c7aa74b85558b06824c5e672cee334296c50fb209825303')
             self.assertEqual(container.name, 'gigantic_goldberg')
+            self.assertEqual(container.state, 'running')
 
     def test_start_container(self):
         for driver in self.drivers:


Mime
View raw message