Skip to content

Commit 19a9a31

Browse files
author
Assaf Lavie
committed
named networks
1 parent 4b7401f commit 19a9a31

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

fixtures.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
22
docker build -t runlike_fixture dockerfiles/
3+
4+
docker network rm runlike_fixture_bridge
5+
docker network create runlike_fixture_bridge
6+
37
docker rm -f runlike_fixture1
48
docker run -d --name runlike_fixture1 \
59
--hostname Essos \
@@ -23,4 +27,5 @@ docker run -d --name runlike_fixture2 \
2327
docker rm -f runlike_fixture3
2428
docker run -d --name runlike_fixture3 \
2529
--restart=on-failure:3 \
30+
--network runlike_fixture_bridge \
2631
runlike_fixture

test_runlike.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ def test_hostname_not_present(self):
6363
self.dont_expect_substr('--hostname \\', 2)
6464

6565
def test_network_mode(self):
66-
self.expect_substr('--network=host', 2)
6766
self.dont_expect_substr('--network', 1)
67+
self.expect_substr('--network=host', 2)
68+
self.expect_substr('--network=runlike_fixture_bridge', 3)

0 commit comments

Comments
 (0)