Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
This commit is contained in:
Xian Chaobo 2015-05-05 08:03:17 -04:00
parent 34afafa3bf
commit 2e874d3148
1 changed files with 2 additions and 3 deletions

View File

@ -43,9 +43,6 @@ function teardown() {
} }
@test "docker attach through websocket" { @test "docker attach through websocket" {
#FIXME: Broken
skip
CLIENT_API_VERSION="v1.17" CLIENT_API_VERSION="v1.17"
start_docker 2 start_docker 2
swarm_manage swarm_manage
@ -57,6 +54,8 @@ function teardown() {
# jimmyxian/centos7-wssh is an image with websocket CLI(WSSH) wirtten in Nodejs # 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" # 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 # Note: with stdout=1&stdin=1&stream=1: it can be used as SSH
docker pull jimmyxian/centos7-wssh
URL="ws://${SWARM_HOST}/${CLIENT_API_VERSION}/containers/test_container/attach/ws?stderr=1" 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 run docker_host run --rm --net=host jimmyxian/centos7-wssh wssh $URL
[ "$status" -eq 0 ] [ "$status" -eq 0 ]