NAME
App::Dochazka::REST::Test - Test helper functions
VERSION
Version 0.253
DESCRIPTION
This module provides helper code for unit tests.
EXPORTS
FUNCTIONS
req_demo
Construct an HTTP request as 'demo' (passerby priv)
req_json_demo
Construct an HTTP request for JSON as 'demo' (passerby priv)
req_active
Construct an HTTP request as 'active' (passerby priv)
req_json_active
Construct an HTTP request for JSON as 'active' (passerby priv)
req_root
Construct an HTTP request as 'root' (admin priv)
req_json_root
Construct an HTTP request for JSON as 'demo' (passerby priv)
req_html
Construct an HTTP request for HTML as 'demo' (passerby priv)
req_bad_creds
Construct an HTTP request with improper credentials
status_from_json
Given a JSON string, check if it is valid JSON, blindly convert it into a Perl hashref, bless it into 'App::CELL::Status', and send it back to caller
docu_check
Check that the resource has on-line documentation (takes Plack::Test object and resource name without quotes)
create_testing_employee
Tests will need to set up and tear down testing employees
create_active_employee
Create testing employee with 'active' privilege
delete_testing_employee
Tests will need to set up and tear down testing employees
delete_active_employee
Delete testing employee with 'active' privilege
create_testing_activity
Tests will need to set up and tear down testing activities
delete_testing_activity
Tests will need to set up and tear down testing activities
create_testing_schedule
Tests will need to set up and tear down testing schedules. Takes a Plack::Test object as its only argument.
delete_testing_schedule
Tests will need to set up and tear down testing schedule. Takes a SID as its only argument.