aboutsummaryrefslogtreecommitdiffstats
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-07Reformat everything with Rust 2024 editionSven-Hendrik Haase15-142/+198
2025-03-07Upgrade to Rust 2024 editionSven-Hendrik Haase1-1/+1
2025-03-07Add healthcheck route at /__miniserve_internal/healthcheckSven-Hendrik Haase1-0/+19
Fixes #1435
2025-02-22feat: address comments; add in new argument (`temp-directory`); add comments ↵Alec Di Vito1-8/+83
to upload code; add tests
2025-02-17feat: implement temporary file uploads and tweak mobile designAlec Di Vito1-2/+17
2025-02-06move favicon and css to stable, non-random routesLukas Stabe1-3/+3
2025-02-06Strip symlink target dir to make Windows happySven-Hendrik Haase1-1/+1
Turns out Windows doesn't like forward slashes.
2025-02-06Clean up and modernize rstest usageSven-Hendrik Haase7-148/+127
We still had some old-style syntax in there.
2025-02-06Get rid of server_no_stderrSven-Hendrik Haase6-54/+28
We'll now always just pipe the contents of the child to the parent.
2025-02-06Make symlinks into global fixturesSven-Hendrik Haase4-60/+48
So far, tests had to create their own symlinks which made them less concise. Also, now that we always have symlinks in all tests, side effects of having them won't go undetected.
2025-02-05add read-only webdav supportLukas Stabe1-0/+164
2025-01-10Reorganize imports to be more consistentSven-Hendrik Haase15-78/+92
2025-01-10Remove some unnecessary #[allow(dead_code)]Sven-Hendrik Haase2-12/+2
2024-09-12Fix lintsSven-Hendrik Haase2-3/+3
2024-06-09Bump reqwest to v0.12Sven-Hendrik Haase2-2/+2
2024-06-09Remove explicit dependency on httpSven-Hendrik Haase2-2/+2
We now use the one supplied by actix-web.
2024-01-30tweak test assertionsCarson McManus1-1/+5
2024-01-30add test for disabled archivesCarson McManus1-0/+28
2024-01-30add unit testsCarson McManus1-0/+31
2024-01-13Make default sorting test more meaningfulSven-Hendrik Haase1-12/+27
2024-01-13Clean up default order functionSven-Hendrik Haase2-17/+13
I removed the stringly typing as we already have enums for this that we can make use of.
2024-01-13Fix formattingSven-Hendrik Haase1-1/+1
2024-01-13Use tokio::fs instead of std::fs to enable async file operations (fixes #445)Sven-Hendrik Haase1-2/+2
2024-01-13Set default sorting order and method with argumentselandsborough2-1/+45
2024-01-07Skip newline test case on WindowsSven-Hendrik Haase1-0/+1
2024-01-07Fix serving files with a newline (fixes #1294)Sven-Hendrik Haase1-0/+1
2023-09-05Fix clippy complaintscyqsimon1-36/+36
2023-08-21Fix formattingSven-Hendrik Haase1-6/+10
2023-08-08Add tests for `--auth-file` flagProudmuslim2-0/+65
2023-08-06Add pretty urlsNorberto Lopes1-0/+18
This adds a new flag namely `--pretty-urls` that when enabled will serve the equivalent `.html` if it exists. Very much the same approach that [`netlify` uses](https://docs.netlify.com/site-deploys/post-processing/). It can be quite useful when having hrefs like `/about` serve `/about.html`.
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