summaryrefslogtreecommitdiffstats
path: root/application/test
AgeCommit message (Collapse)AuthorFilesLines
2016-11-05tests: Fix testing of username/pw with unsupported endpointFlorian Pritz2-8/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-01Test \service\multipaste_queueFlorian Pritz1-0/+93
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-21muser: Add delete_user()Florian Pritz1-0/+57
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20tests: Use one webserver per testcaseFlorian Pritz3-8/+53
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-08-20Test \libraries\Output_cacheFlorian Pritz1-0/+82
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20Test \services\storageFlorian Pritz1-0/+172
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-20Test \libraries\Image some moreFlorian Pritz1-0/+15
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-02Test filebin_helperFlorian Pritz1-0/+70
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-01Test \libraries\PygmentsFlorian Pritz1-0/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-01Test \libraries\ExifFlorian Pritz1-0/+48
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-08-01Test \libraries\Image::get_exif_orientationFlorian Pritz1-0/+15
Also pull in some test files Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Test \libraries\TempfileFlorian Pritz1-0/+46
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Test \libraries\ProcRunnerFlorian Pritz1-0/+118
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Silence some untestable coverage warnings in the test casesFlorian Pritz2-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-31Add code coverage outputFlorian Pritz1-0/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-21Add special *.asciinema.json filename0.9.18Florian Pritz1-0/+6
Don't force users to name all their files asciinema.json. Give them some room for descriptive names. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-14Tests: Test muser username/email verificationFlorian Pritz1-0/+56
Email verification is pretty basic since we use the framework function right now. This might change in the future. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-14Tests: Use muser->add_user to create test usersFlorian Pritz2-22/+12
Change the username to fit within the username restrictions. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-13Improve insufficient permisions error messageFlorian Pritz2-2/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-07-13Add site URL to authentication errorFlorian Pritz2-2/+2
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>
2016-07-04Add function to ellipsize textFlorian Pritz1-0/+32
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-11-23l/Pygments: Fix exception for filenames ending with a dotFlorian Pritz1-1/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-09-20API 2.1: Add thumbnail link to historyFlorian Pritz2-4/+20
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 Pritz2-0/+498
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>
2015-05-31test: Add more \libraries\Image testsFlorian Pritz1-0/+30
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21Calc correct total size for history with duplicate hashesFlorian Pritz1-0/+20
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-21tests: Make prove --state work; Restructure testsFlorian Pritz6-0/+890
This moves all tests into a subdirectory and lets prove itself figure out which tests exist. It seems if you supply the testlist via arguments or stdin --state won't affect the order. Signed-off-by: Florian Pritz <bluewind@xinu.at>