From 25ae4e9c132d6e68ddb389808b8f22c8f43b17cd Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Mon, 14 Dec 2015 22:23:28 -0500 Subject: Begin rewrite for new OAuth API --- tests/replies/devices.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 tests/replies/devices.json (limited to 'tests/replies') diff --git a/tests/replies/devices.json b/tests/replies/devices.json deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3 From 7636932bc6af6b509269c6adfd620c5283051b3f Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 16 Dec 2015 22:09:50 -0500 Subject: Update unit tests --- tests/replies/alert.json | 45 ++++++++++++++++++++++++++++++++++++++++++++ tests/replies/alerts.json | 15 +++++++++++++++ tests/replies/location.json | 22 ++++++++++++++++++++++ tests/replies/locations.json | 11 +++++++++++ tests/replies/resource.json | 22 ++++++++++++++++++++++ 5 files changed, 115 insertions(+) create mode 100644 tests/replies/alert.json create mode 100644 tests/replies/alerts.json create mode 100644 tests/replies/location.json create mode 100644 tests/replies/locations.json create mode 100644 tests/replies/resource.json (limited to 'tests/replies') diff --git a/tests/replies/alert.json b/tests/replies/alert.json new file mode 100644 index 0000000..f069ae9 --- /dev/null +++ b/tests/replies/alert.json @@ -0,0 +1,45 @@ +{ + "result": "success", + "message": { + "alert": { + "id": "1", + "agency": { + "id": "1", + "uri": "https://access.active911.com/interface/open_api/api/" + }, + "place": "My Place", + "address": "123 Main Street", + "unit": "", + "city": "Allentown", + "state": "PA", + "latitude": 40, + "longitude": -70, + "source": "Source", + "units": "My Units", + "cad_code": "29A1", + "priority": "Priority 3", + "details": "Medical emergency", + "sent": "timestamp", + "description": "My description", + "pagegroups": [ + { + "title": "Group 1", + "prefix": "My Prefix" + } + ], + "map_code": "None", + "received": "Received", + "cross_street": "Cross Street", + "responses": [ + { + "device": { + "id": "1", + "uri": "https://access.active911.com/interface/open_api/api/devices/1" + }, + "timestamp": "123", + "response": "Responding" + } + ] + } + } +} diff --git a/tests/replies/alerts.json b/tests/replies/alerts.json new file mode 100644 index 0000000..0fa10e5 --- /dev/null +++ b/tests/replies/alerts.json @@ -0,0 +1,15 @@ +{ + "result": "success", + "message": { + "alerts": [ + { + "id": 1, + "uri": "https://access.active911.com/interface/open_api/api/alerts/1" + }, + { + "id": 2, + "uri": "https://access.active911.com/interface/open_api/api/alerts/2" + } + ] + } +} diff --git a/tests/replies/location.json b/tests/replies/location.json new file mode 100644 index 0000000..114307e --- /dev/null +++ b/tests/replies/location.json @@ -0,0 +1,22 @@ +{ + "result": "success", + "message": { + "location": { + "id": "1", + "name": "My Resource", + "description": "My Description", + "icon_id": "1", + "icon_color": "blue", + "latitude": 40, + "longitude": -70, + "location_type": "Hydrant", + "resources": [ + { + "id": "1", + "uri": "https://access.active911.com/interface/open_api/api/resources/1" + } + ] + } + } +} + diff --git a/tests/replies/locations.json b/tests/replies/locations.json new file mode 100644 index 0000000..ec12c28 --- /dev/null +++ b/tests/replies/locations.json @@ -0,0 +1,11 @@ +{ + "result": "success", + "message": { + "locations": [ + { + "id": "1", + "uri": "https://access.active911.com/interface/open_api/api/locations/1" + } + ] + } +} diff --git a/tests/replies/resource.json b/tests/replies/resource.json new file mode 100644 index 0000000..19762db --- /dev/null +++ b/tests/replies/resource.json @@ -0,0 +1,22 @@ +{ + "result": "success", + "message": { + "resource": { + "id": "1", + "title": "My Resource", + "filename": "resource.pdf", + "extension": "pdf", + "size": 0, + "details": "My resource details", + "agency": { + "id": "1", + "uri": "https://access.active911.com/interface/open_api/api/" + }, + "location": { + "id": "1", + "uri": "https://access.active911.com/interface/open_api/api/locations/1" + } + } + } +} + -- cgit v1.2.3