update api README.md and using tab instead of whitespace

Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
This commit is contained in:
Xian Chaobo 2015-04-20 03:02:50 -04:00
parent c4d5b76db7
commit 33eedfa1d9
2 changed files with 12 additions and 13 deletions

View File

@ -15,7 +15,6 @@ Some endpoints have not yet been implemented and will return a 404 error.
```
GET "/images/get"
POST "/images/load"
POST "/images/create" : "docker import" flow not implement
```

View File

@ -100,31 +100,31 @@ function teardown() {
# temp file for saving image
IMAGE_FILE=$(mktemp)
# create a tar file
docker pull busybox:latest
docker save -o $IMAGE_FILE busybox:latest
# create a tar file
docker pull busybox:latest
docker save -o $IMAGE_FILE busybox:latest
start_docker 2
start_docker 2
swarm_manage
run docker_swarm images -q
[ "$status" -eq 0 ]
[ "${#lines[@]}" -eq 0 ]
[ "${#lines[@]}" -eq 0 ]
run docker_swarm load -i $IMAGE_FILE
[ "$status" -eq 0 ]
run docker_swarm load -i $IMAGE_FILE
[ "$status" -eq 0 ]
# check node0
run docker -H ${HOSTS[0]} images
[ "${#lines[@]}" -eq 2 ]
run docker -H ${HOSTS[0]} images
[ "${#lines[@]}" -eq 2 ]
[[ "${lines[1]}" == *"busybox"* ]]
# check node1
run docker -H ${HOSTS[1]} images
[ "${#lines[@]}" -eq 2 ]
run docker -H ${HOSTS[1]} images
[ "${#lines[@]}" -eq 2 ]
[[ "${lines[1]}" == *"busybox"* ]]
rm -f $IMAGE_FILE
rm -f $IMAGE_FILE
}
}