aboutsummaryrefslogtreecommitdiffstats
path: root/tests/upload_files.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-12-30Run cargo fmtSven-Hendrik Haase1-1/+2
2022-12-19Fix lintsSven-Hendrik Haase1-3/+3
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-03-13Add test cases for the media-type parametersJohannes May1-0/+20
2021-09-04Better name and docs for symlink testAli MJ Al-Nasrawy1-1/+7
2021-09-04Adress review commentsAli MJ Al-Nasrawy1-4/+8
2021-09-01file_upload.rs: sanitize path inputAli MJ Al-Nasrawy1-1/+80
Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
2021-08-26new partial-injection syntaxAli MJ Al-Nasrawy1-2/+2
2021-08-26tests: Refactor!Ali MJ Al-Nasrawy1-40/+10
Remove duplicate code responsible for the initial setup and teardown of the test binary. This introduces `TestServer` as a resource manager for a running miniserve binary, which can be created with the fixtures `server()` and `server_no_stderr()` It also provides convenience function for handling server url.
2020-03-11Bump reqwests to v0.10Sven-Hendrik Haase1-10/+13
2019-12-18Added test for disabled file uploadsDamian1-0/+46
2019-05-01Make tests into their own proper modules without star importsSven-Hendrik Haase1-1/+11
Star imports make it hard to see which imports a module is actually using so I prefer to have this be a bit more explicit.
2019-04-29Move helpers.rs to fixtures/mod.rskhai96_1-2/+2
2019-04-28Split integration test into multiple fileskhai96_1-0/+51