Skip to content

Commit e07e328

Browse files
author
Ian Campbell
committed
test: Extra network related debugging output.
Shows the network confuguration on the host and inside the two containers. Signed-off-by: Ian Campbell <ijc@docker.com>
1 parent b84b816 commit e07e328

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/cases/000_smoke/test.exp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ if [string match "Welcome to nginx!" $curl] {
216216
}
217217
puts "SUCCESS nginx responded well"
218218

219+
sshcmd "cat cni config" {grep . /var/lib/cni/conf/*.conf /var/lib/cni/conf/*.conflist}
220+
sshcmd "host ifconfig" {ifconfig -a && route -n && echo && grep . /etc/resolv.conf}
221+
sshcmd "nginx ifconfig" {kubectl exec $(kubectl get pods -l name==nginx -o=jsonpath='{.items[*].metadata.name}') -- sh -c 'ifconfig -a && route -n && echo && grep . /etc/resolv.conf'}
222+
sshcmd "alpine ifconfig" {kubectl exec $(kubectl get pods -l name==alpine -o=jsonpath='{.items[*].metadata.name}') -- sh -c 'ifconfig -a && route -n && echo && grep . /etc/resolv.conf'}
223+
219224
# This also happens to test external connectivity...
220225
sshcmd "alpine install curl" {kubectl exec $(kubectl get pods -l name==alpine -o=jsonpath='{.items[*].metadata.name}') -- apk add --update curl}
221226

0 commit comments

Comments
 (0)