From b5756d601830f5043503182be1fdca41b402e2b4 Mon Sep 17 00:00:00 2001 From: Xian Chaobo Date: Tue, 5 May 2015 22:40:14 -0400 Subject: [PATCH] check pull status Signed-off-by: Xian Chaobo --- test/integration/api.bats | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/api.bats b/test/integration/api.bats index b0d9b0a079..a6a233a520 100644 --- a/test/integration/api.bats +++ b/test/integration/api.bats @@ -49,12 +49,14 @@ function teardown() { #create a container run docker_swarm run -d --name test_container busybox sleep 1000 + [ "$status" -eq 0 ] # test attach-ws api # jimmyxian/centos7-wssh is an image with websocket CLI(WSSH) wirtten in Nodejs # if connected successfull, it returns two lines, "Session Open" and "Session Closed" # Note: with stdout=1&stdin=1&stream=1: it can be used as SSH docker_host pull jimmyxian/centos7-wssh + [ "$status" -eq 0 ] URL="ws://${SWARM_HOST}/${CLIENT_API_VERSION}/containers/test_container/attach/ws?stderr=1" run docker_host run --rm --net=host jimmyxian/centos7-wssh wssh $URL