Browse Source

Add extra test for port configuration

pull/2/head
Chris Smith 7 years ago
parent
commit
01dff6b28d
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      test.py

+ 1
- 0
test.py View File

@@ -42,6 +42,7 @@ def test_command_matches():
42 42
     yield check, ['docker', 'run', '--name=test123', '--net=host', '-d', 'hello-world']
43 43
     yield check, ['docker', 'run', '--name=test123', '-d', '-p=127.0.0.1:443:443', '-p=127.0.0.1::1336/udp', 'hello-world']
44 44
     yield check, ['docker', 'run', '--name=test123', '-d', '-p=443', 'hello-world']
45
+    yield check, ['docker', 'run', '--name=test123', '-d', '-p=80:80', '-p=90', 'hello-world']
45 46
     yield check, ['docker', 'run', '--name=test123', '--user=root', '-d', 'hello-world', '/hello', 'foobar']
46 47
     yield check, ['docker', 'run', '--name=test123', '--net=host', '--user=root:root', '-d', 'hello-world']
47 48
     yield check, ['docker', 'run', '--name=test123', '--volume=/dev/null:/null', '--volume=/dev/urandom:/mnt/random', '-d', 'hello-world']

Loading…
Cancel
Save