aboutsummaryrefslogtreecommitdiffstats
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-04-16Add EC key support (closes #1080)Sven-Hendrik Haase7-104/+157
2023-02-25Added tests and small fixesSilux1-3/+19
...discovered when writing the tests. Ran rustfmt, clippy::all, cargo test, everything passed and I hope the tests I wrote are good. Now with 100% less forgotten debug logs!
2022-12-30Make clippy happySven-Hendrik Haase1-1/+1
2022-12-30Run cargo fmtSven-Hendrik Haase3-7/+5
2022-12-19Fix lintsSven-Hendrik Haase9-46/+44
2022-09-19Add support for README.txt and README filesGaurav-Lab-PC1-10/+12
2022-09-19Fix `fake-tty` API breaking changecyqsimon1-1/+1
It's difficult to create a more trivial commit. Possible, but difficult.
2022-09-19Return 403 instead of 500 for upload errsJonas Diemer1-1/+1
2022-09-19Switched to using Path in test to handle windows platform.Jonas Diemer1-12/+12
2022-09-18Fixing (hopefully) issue with path on WindowsJonas Diemer1-7/+5
2022-09-18Fixed formattingJonas Diemer1-3/+4
2022-09-18trying to handle paths in a way that works for windowsJonas Diemer1-8/+12
2022-09-18Test dir with starting -Jonas Diemer1-1/+1
2022-09-18sanitize allowed upload paths for cases like ./dirJonas Diemer1-0/+1
2022-09-18Use argument -u instead of --allowed-upload-dirJonas Diemer1-5/+5
2022-09-18check status code when restricted; fix formattingJonas Diemer1-14/+12
2022-09-18test case with two allowed dirsJonas Diemer1-35/+39
2022-09-18Moved use to globalJonas Diemer1-2/+1
2022-09-18renaming of option for clarity in testJonas Diemer1-5/+5
2022-09-18Renamed option for more clarityJonas Diemer1-4/+4
2022-09-18Avoid error message during testing of restrictedJonas Diemer1-2/+2
2022-09-18added test cases for sub directoryJonas Diemer1-5/+10
2022-09-18Added positive test for --restrict-upload-dirJonas Diemer1-0/+45
2022-09-18Removed redundant test code, fixed commentsJonas Diemer1-11/+5
2022-09-18Test that uploads fail if outside restricted dirJonas Diemer1-0/+38
2022-09-15Add tooltip on QR codecyqsimon1-1/+8
2022-09-15Fix test namecyqsimon1-1/+1
2022-09-15Restores webpage QR testscyqsimon1-1/+21
2022-09-15Check for directories in default request testSven-Hendrik Haase1-0/+3
2022-09-15Reformat readme tests and add some commentsSven-Hendrik Haase1-4/+11
2022-09-14Fix typosKian-Meng Ang1-2/+2
Found via `codespell -L crate`.
2022-09-13Add README test in rootGaurav1-32/+69
Root and Directories' readme test is in different functions to make it easier to catch bugs.
2022-09-02Test for different README.md in all directories.Gaurav2-46/+41
2022-09-01Remove outdated testcyqsimon1-21/+1
2022-08-27Add test for README.md file for `--readme`Gaurav1-6/+23
2022-08-26Make cases for `--readme` test functionsGaurav1-48/+27
* remove extra functions for directory check * add directory listing check for with and without readme
2022-08-26Appease `cargo fmt`Gaurav1-3/+4
2022-08-26Use `TestServer` in `--readme` testsGaurav2-43/+8
2022-08-26Modify `--readme` tests for directoriesGaurav1-4/+4
2022-08-26Add tests for `--readme`Gaurav1-0/+124
2022-08-22Fix QR code testcyqsimon1-3/+3
2022-08-22Fix QR test screwing up terminalcyqsimon1-1/+3
2022-08-22Disable broken tests for Windowscyqsimon1-0/+5
2022-08-22Fix testscyqsimon1-17/+68
2022-07-28Apply suggestions from code reviewzhoupeiheng2-30/+23
2022-07-28test: check_static_file_route_patternzhoupeiheng1-0/+28
2022-07-20Fix testcyqsimon1-1/+1
2022-07-18Bump depsSven-Hendrik Haase1-3/+3
2022-06-26Create directory (#781)Sheepy1-0/+163
* Add ability to make directory Frontend for making directories Fix potential security vulnerability (CWE-23) Add tests Update README.md Disallow using parent directories altogether Fix formatting Fix clippy warnings Address review comments Update README.md Change `making` to `creation` Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com> Have make directory flag require file upload flag Address review comments * Disallow uploading files and making directories through symlinks when disabled * Add test * Clippy formatting changes * Add test doc comment
2022-05-23Get rid of dead code warning for common test utility functionSven-Hendrik Haase1-0/+2