From ca940ad80d722eee0bc39c110505e14ab6779188 Mon Sep 17 00:00:00 2001 From: tobe Date: Fri, 26 Jun 2015 22:38:12 +0800 Subject: [PATCH] Add api test scripts with bat --- apitest/README.md | 6 ++++++ apitest/get_containers.sh | 3 +++ apitest/get_images.sh | 3 +++ apitest/get_info.sh | 3 +++ apitest/get_versino.sh | 3 +++ apitest/ping.sh | 3 +++ docs/README.md | 3 --- 7 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 apitest/README.md create mode 100755 apitest/get_containers.sh create mode 100755 apitest/get_images.sh create mode 100755 apitest/get_info.sh create mode 100755 apitest/get_versino.sh create mode 100755 apitest/ping.sh diff --git a/apitest/README.md b/apitest/README.md new file mode 100644 index 0000000..fd4bc40 --- /dev/null +++ b/apitest/README.md @@ -0,0 +1,6 @@ +# API test + +We're using [bat](https://github.com/astaxie/bat) to test seagull API(Docker Remote API). + + + diff --git a/apitest/get_containers.sh b/apitest/get_containers.sh new file mode 100755 index 0000000..7b63866 --- /dev/null +++ b/apitest/get_containers.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +bat :10086/dockerapi/containers/json diff --git a/apitest/get_images.sh b/apitest/get_images.sh new file mode 100755 index 0000000..672d346 --- /dev/null +++ b/apitest/get_images.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +bat :10086/dockerapi/images/json diff --git a/apitest/get_info.sh b/apitest/get_info.sh new file mode 100755 index 0000000..3032f47 --- /dev/null +++ b/apitest/get_info.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +bat :10086/dockerapi/info diff --git a/apitest/get_versino.sh b/apitest/get_versino.sh new file mode 100755 index 0000000..e84bec3 --- /dev/null +++ b/apitest/get_versino.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +bat :10086/dockerapi/version diff --git a/apitest/ping.sh b/apitest/ping.sh new file mode 100755 index 0000000..6b51c50 --- /dev/null +++ b/apitest/ping.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +bat :10086/dockerapi/_ping diff --git a/docs/README.md b/docs/README.md index 2824139..f444ee3 100644 --- a/docs/README.md +++ b/docs/README.md @@ -31,14 +31,12 @@ You can edit `mkdocs.yml` and change for Chinese. * [Use Godep to manage dependency](en/development/use-godep-to-manage-dependency.md) * [Use JQuery.Gritter for notification](en/development/use-jquerygritter-for-notification.md) * [Seagull dockerfile](en/development/write-seagull-dockerfile.md) - * [Seagull containers page](en/development/seagull-containers-page.md) * [Seagull images page](en/development/seagull-images-page.md) * [Seagull configuration page](en/development/seagull-configuration-page.md) * [Seagull dockerhub page](en/development/seagull-dockerhub-page.md) * [Similar docker projects](en/user_guide/similar-docker-projects.md) - ## 目录 * [请求Docker远程API](zh/development/access-docker-remote-api.md) @@ -57,7 +55,6 @@ You can edit `mkdocs.yml` and change for Chinese. * [使用Godep管理依赖](zh/development/use-godep-to-manage-dependency.md) * [使用JQuery.gritter实现通知](zh/development/use-jquerygritter-for-notification.md) * [编写海鸥的Dockerfile](zh/development/write-seagull-dockerfile.md) - * [海鸥的容器页面](zh/development/seagull-containers-page.md) * [海鸥的镜像页面](zh/development/seagull-images-page.md) * [海鸥的配置页面](zh/development/seagull-configuration-page.md)