diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-22 10:23:55 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-22 10:23:55 -0700 |
| commit | b73503c320ac6fd7cdf93974859ae501862ce4c8 (patch) | |
| tree | 009bbeabd71e399e6f6691c927c13f0524f464e5 | |
| parent | 9f5b9e7a081742dfced42eabbd56a2d4267c21f0 (diff) | |
add more examples to acceptance script.
| -rwxr-xr-x | bin/acceptance.sh | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/bin/acceptance.sh b/bin/acceptance.sh index 709ed6c..12b1406 100755 --- a/bin/acceptance.sh +++ b/bin/acceptance.sh @@ -1,12 +1,6 @@ #!/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 @@ -39,21 +33,31 @@ curl $TARGET_HOST/v1/licenses/7a4bebeb-c067-44a1-9f9c-2c1ee513b526 echo echo -#* GET /company/:guid/licenses - list of all active licences for company +#* GET /companies/: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 +#* GET /companies/:guid/licenses?township=:township - list of active licenses for township, for company. +echo $TARGET_HOST/v1/companies/$COMPANY_XYZ/licenses?township=2 +curl $TARGET_HOST/v1/companies/$COMPANY_XYZ/licenses?township=2 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 +#* GET /companies/:guid/licenses?township=:township&status=expired - list of active licenses for township, for company. +echo $TARGET_HOST/v1/companies/$COMPANY_ABC/licenses?status=expired&township=1 +curl $TARGET_HOST/v1/companies/$COMPANY_ABC/licenses?status=expired&township=1 echo echo +#* GET /companies/:guid/licenses?status=confidential - list of confidential licenses for company. +echo $TARGET_HOST/v1/companies/$COMPANY_XYZ/licenses?status=confidential +curl $TARGET_HOST/v1/companies/$COMPANY_XYZ/licenses?status=confidential +echo +echo + +sleep 1 +echo +echo +echo "goodbye" |
