aboutsummaryrefslogtreecommitdiffstats
path: root/tests/upload_files.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Reformat everything with Rust 2024 editionSven-Hendrik Haase2025-03-071-16/+24
|
* feat: address comments; add in new argument (`temp-directory`); add comments ↵Alec Di Vito2025-02-221-8/+83
| | | | to upload code; add tests
* feat: implement temporary file uploads and tweak mobile designAlec Di Vito2025-02-171-2/+17
|
* Get rid of server_no_stderrSven-Hendrik Haase2025-02-061-4/+4
| | | | We'll now always just pipe the contents of the child to the parent.
* Reorganize imports to be more consistentSven-Hendrik Haase2025-01-101-4/+6
|
* Use tokio::fs instead of std::fs to enable async file operations (fixes #445)Sven-Hendrik Haase2024-01-131-2/+2
|
* Run cargo fmtSven-Hendrik Haase2022-12-301-1/+2
|
* Fix lintsSven-Hendrik Haase2022-12-191-3/+3
|
* Return 403 instead of 500 for upload errsJonas Diemer2022-09-191-1/+1
|
* Switched to using Path in test to handle windows platform.Jonas Diemer2022-09-191-12/+12
|
* Fixing (hopefully) issue with path on WindowsJonas Diemer2022-09-181-7/+5
|
* Fixed formattingJonas Diemer2022-09-181-3/+4
|
* trying to handle paths in a way that works for windowsJonas Diemer2022-09-181-8/+12
|
* Test dir with starting -Jonas Diemer2022-09-181-1/+1
|
* sanitize allowed upload paths for cases like ./dirJonas Diemer2022-09-181-0/+1
|
* Use argument -u instead of --allowed-upload-dirJonas Diemer2022-09-181-5/+5
|
* check status code when restricted; fix formattingJonas Diemer2022-09-181-14/+12
|
* test case with two allowed dirsJonas Diemer2022-09-181-35/+39
|
* Moved use to globalJonas Diemer2022-09-181-2/+1
|
* renaming of option for clarity in testJonas Diemer2022-09-181-5/+5
|
* Renamed option for more clarityJonas Diemer2022-09-181-4/+4
|
* Avoid error message during testing of restrictedJonas Diemer2022-09-181-2/+2
|
* added test cases for sub directoryJonas Diemer2022-09-181-5/+10
|
* Added positive test for --restrict-upload-dirJonas Diemer2022-09-181-0/+45
|
* Removed redundant test code, fixed commentsJonas Diemer2022-09-181-11/+5
|
* Test that uploads fail if outside restricted dirJonas Diemer2022-09-181-0/+38
|
* Add test cases for the media-type parametersJohannes May2022-03-131-0/+20
|
* Better name and docs for symlink testAli MJ Al-Nasrawy2021-09-041-1/+7
|
* Adress review commentsAli MJ Al-Nasrawy2021-09-041-4/+8
|
* file_upload.rs: sanitize path inputAli MJ Al-Nasrawy2021-09-011-1/+80
| | | | Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
* new partial-injection syntaxAli MJ Al-Nasrawy2021-08-261-2/+2
|
* tests: Refactor!Ali MJ Al-Nasrawy2021-08-261-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.
* Bump reqwests to v0.10Sven-Hendrik Haase2020-03-111-10/+13
|
* Added test for disabled file uploadsDamian2019-12-181-0/+46
|
* Make tests into their own proper modules without star importsSven-Hendrik Haase2019-05-011-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.
* Move helpers.rs to fixtures/mod.rskhai96_2019-04-291-2/+2
|
* Split integration test into multiple fileskhai96_2019-04-281-0/+51