summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-22 09:59:45 -0700
committermo khan <mo@mokhan.ca>2014-02-22 09:59:45 -0700
commit9f5b9e7a081742dfced42eabbd56a2d4267c21f0 (patch)
treeaf32d909fa1ea832bedc8a3c4f184376de2fbca3
parent4498e6ec9a169d1e39cf5b1f7980aeaa0796f3fe (diff)
update acceptance script.
-rwxr-xr-xbin/acceptance.sh49
1 files changed, 47 insertions, 2 deletions
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
+