summaryrefslogtreecommitdiffstats
path: root/application/test/tests/api_v2
AgeCommit message (Collapse)AuthorFilesLines
2020-10-07API: Add `minimum-id-length` post parameterSimon Schuster2-0/+64
This parameter controls the generated id for files (file/upload) and multipastes (file/create_multipaste). The post parameter has to be a positive integer value >= 2. Changes by Florian Pritz: - minor style and typo fixes - NEWS entry - check expected error reply content in tests Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-09-21Tests: Use is instead of ok for improved debug outputFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-07-04API: Fix return type of empty values in file/deleteFlorian Pritz1-0/+15
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-07-04API: Fix return type of empty values in file/historyFlorian Pritz2-2/+12
If the array is not casted to a object, json_encode will encode it as [] if empty, but {} if it contains data. Always return an object by casting the array to an object if it is empty. Fixes #15 Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-01tests: Expect string instead of intFlorian Pritz1-4/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05test_file_upload: Ensure we compare the correct contentdev-2.xFlorian Pritz1-0/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05Parallelize remaining API testsFlorian Pritz9-420/+532
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05Parallelize some API testsFlorian Pritz3-0/+605
Signed-off-by: Florian Pritz <bluewind@xinu.at>