summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoffrey F <f.joffrey@gmail.com>2015-09-10 10:37:05 -0700
committerJoffrey F <f.joffrey@gmail.com>2015-09-10 10:37:05 -0700
commitde5aab87b419ce24c7e3e84225e9a06b9e880300 (patch)
treef8733a7ec7ad8283bab7f4f5f45446705d1b5f19 /tests
parent03f54f44e523b36d01bc8c03f015286fa84ed8ce (diff)
parent1e916a1e83af49bc8d2fd5026ca9746129d1cebc (diff)
downloaddocker-py-de5aab87b419ce24c7e3e84225e9a06b9e880300.tar.gz
Merge pull request #753 from docker/715-user-int-uid
Always send a string for the user param in create_container
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/integration_test.py b/tests/integration_test.py
index 0cf1250..6d44d07 100644
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -1621,3 +1621,9 @@ class TestRegressions(BaseTestCase):
ctnr = self.client.create_container('busybox', ['sleep', '2'])
self.client.start(ctnr)
self.client.stop(ctnr)
+
+ def test_715(self):
+ ctnr = self.client.create_container('busybox', ['id', '-u'], user=1000)
+ self.client.start(ctnr)
+ self.client.wait(ctnr)
+ assert self.client.logs(ctnr) == '1000\n'