소스 검색

Add extra test for port configuration

pull/2/head
Chris Smith 7 년 전
부모
커밋
01dff6b28d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      test.py

+ 1
- 0
test.py 파일 보기

@@ -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…
취소
저장