summaryrefslogtreecommitdiffstats
path: root/application/test/tests/test_api_v2.php
AgeCommit message (Collapse)AuthorFilesLines
2016-11-05Parallelize some API testsFlorian Pritz1-552/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05Test calling endpoints with unsupported authentication methodFlorian Pritz1-0/+26
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05tests: Fix testing of username/pw with unsupported endpointFlorian Pritz1-4/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-01mmultipaste->delete_id: Fix inverted return valueFlorian Pritz1-0/+29
Broken in d2fdfc77f7a9485548869414d4377cd6848fe339 Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-10-31Disable special handling of {elapsed_time} and {memory_usage}Florian Pritz1-0/+13
Documentation says that the variable can be set from the controller, but it's protected and thus throws and exception. Good documentation is hard to come by... Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20tests: Use one webserver per testcaseFlorian Pritz1-3/+4
This allows the tests to run somewhat parallel (still limited by the database) and simplifies running single testcases without the ./run-tests.sh wrapper. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-14Tests: Use muser->add_user to create test usersFlorian Pritz1-11/+6
Change the username to fit within the username restrictions. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-13Improve insufficient permisions error messageFlorian Pritz1-1/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-13Add site URL to authentication errorFlorian Pritz1-1/+1
This might help users if they run their own installation, but forget to set the URL in the client config and then run into this error. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-09-20API 2.1: Add thumbnail link to historyFlorian Pritz1-2/+10
Also adjust test cases to check for the new value. API v1 does not change. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-09-14API 2.0: Remove private fields from file/historyFlorian Pritz1-0/+476
Since this is a breaking change bump the api version to 2. The private fields are user_id and multipaste_id which where leaked via the multipaste_items field. This commit also adds a test case to both api versions that checks the returned fields. NOTE: Most of this commit is copied from the files of api v1 so when viewing the diff use --find-copies-harder for an easy to read diff. Signed-off-by: Florian Pritz <bluewind@xinu.at>