From 9f5b9e7a081742dfced42eabbd56a2d4267c21f0 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 22 Feb 2014 09:59:45 -0700 Subject: update acceptance script. --- bin/acceptance.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/acceptance.sh b/bin/acceptance.sh index dc2944b..709ed6c 100755 --- a/bin/acceptance.sh +++ b/bin/acceptance.sh @@ -1,14 +1,59 @@ #!/bin/bash set -e +#company: +#["3a573311-af7a-4a22-8ac6-d62e0b23b804", "05956a2f-6251-4705-9bba-48ac8b36ac86"] + +#license: +#["3806087a-ce07-47be-b613-85ee586fe5d3", "e35d2649-9bd0-4cea-9159-0daaad3f1115", "7a4bebeb-c067-44a1-9f9c-2c1ee513b526"] + TARGET_HOST=http://infinite-atoll-2481.herokuapp.com +COMPANY_ABC=3a573311-af7a-4a22-8ac6-d62e0b23b804 +COMPANY_XYZ=05956a2f-6251-4705-9bba-48ac8b36ac86 + +PUBLIC_ACTIVE_LICENSE=3806087a-ce07-47be-b613-85ee586fe5d3 +PUBLIC_EXPIRED_LICENSE=e35d2649-9bd0-4cea-9159-0daaad3f1115 +CONFIDENTIAL_ACTIVE_LICENSE=7a4bebeb-c067-44a1-9f9c-2c1ee513b526 clear -echo connecting to $TARGET_HOST +# GET /licenses - list of all well licenses +echo $TARGET_HOST curl $TARGET_HOST echo +echo -echo connecting to $TARGET_HOST/v1/licenses +echo $TARGET_HOST/v1/licenses curl $TARGET_HOST/v1/licenses echo +echo + +# GET /licenses/:guid - details of a single license +echo $TARGET_HOST/v1/licenses/$PUBLIC_ACTIVE_LICENSE +curl $TARGET_HOST/v1/licenses/7a4bebeb-c067-44a1-9f9c-2c1ee513b526 +echo +echo + +echo $TARGET_HOST/v1/licenses/$CONFIDENTIAL_ACTIVE_LICENSE +curl $TARGET_HOST/v1/licenses/7a4bebeb-c067-44a1-9f9c-2c1ee513b526 +echo +echo + +#* GET /company/:guid/licenses - list of all active licences for company +echo $TARGET_HOST/v1/companies/$COMPANY_ABC/licenses +curl $TARGET_HOST/v1/companies/$COMPANY_ABC/licenses +echo +echo + +#* GET /company/:guid/licenses?township=:township - list of active licenses for township, for company. +echo $TARGET_HOST/v1/companies/$COMPANY_ABC/licenses?township=1 +curl $TARGET_HOST/v1/companies/$COMPANY_ABC/licenses?township=1 +echo +echo + +#* GET /company/:guid/licenses?township=:township&status=expired - list of active licenses for township, for company. +echo $TARGET_HOST/v1/companies/$COMPANY_ABC/licenses?status=expired +curl $TARGET_HOST/v1/companies/$COMPANY_ABC/licenses?status=expired +echo +echo + -- cgit v1.2.3