add curl test for proxy v1.0 api support
This commit is contained in:
1 parent
c8b95a2527
commit
147c7f503c
1 file changed
+18
@@ -32,4 +32,22 @@ weave_on $HOST1 launch-proxy --with-ipam
|
||||
|
||||
assert_raises "proxy docker_on $HOST1 run check-ethwe-up"
|
||||
|
||||
create_container_json=$(cat <<-EOF
|
||||
{
|
||||
"Hostname":"c1",
|
||||
"AttachStdin":false,
|
||||
"AttachStdout":true,
|
||||
"AttachStderr":true,
|
||||
"Tty":false,
|
||||
"OpenStdin":false,
|
||||
"StdinOnce":false,
|
||||
"Image":"check-ethwe-up"
|
||||
}
|
||||
EOF
|
||||
)
|
||||
|
||||
# Test a minimal request to the unversioned (v1.0) docker api
|
||||
CONTAINER_ID=$(curl -s -X POST --header "Content-Type: application/json" http://$HOST1:12375/containers/create -d "$create_container_json" | sed -e 's/.*"Id":"\([^"]*\)".*/\1/')
|
||||
assert_raises "proxy docker_on $HOST1 start -ai $CONTAINER_ID"
|
||||
|
||||
end_suite
|
||||
Reference in new issue
Block a user