extract helper for obtaining container ip address
thus keeping the ghastly regexp in one place instead of three.
This commit is contained in:
1 parent
bb8a745431
commit
2647fd4c92
4 files changed
+7
-3
No files matched your search
@@ -11,7 +11,7 @@ weave_on $HOST2 launch -iprange $UNIVERSE $HOST1
|
||||
|
||||
weave_on $HOST1 run -t --name=c1 gliderlabs/alpine /bin/sh
|
||||
weave_on $HOST2 run -t --name=c2 gliderlabs/alpine /bin/sh
|
||||
C2=$(weave_on $HOST2 ps | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
|
||||
C2=$(container_ip $HOST2 c2)
|
||||
assert_raises "exec_on $HOST1 c1 ping -q -c 4 $C2"
|
||||
|
||||
end_suite
|
||||
Reference in new issue
Block a user