aboutsummaryrefslogtreecommitdiffstats
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-05-18Fix security issue with --no-symlinksSven-Hendrik Haase1-21/+27
Even with --no-symlinks specified, if a direct path to a symlink had been entered, it would be resolved. This fixes that behavior and improves tests to ensure this behavior.
2022-03-13Add test cases for the media-type parametersJohannes May1-0/+20
2022-02-06Fix route_prefix for css and faviconAli MJ Al-Nasrawy2-4/+5
2022-02-05update to actix-web v4.0-rc.2Ali MJ Al-Nasrawy4-7/+61
2022-01-04Bump depsSven-Hendrik Haase1-1/+1
2021-12-29Implement --route-prefix to set specific route prefixjikstra1-0/+15
2021-12-09Bump depsSven-Hendrik Haase1-1/+1
2021-10-26Add test for --spaSven-Hendrik Haase1-5/+22
2021-10-18Update clapSven-Hendrik Haase1-2/+2
2021-09-23Golf tests a bitSven-Hendrik Haase1-38/+30
2021-09-11cargo fmtjikstra1-1/+3
2021-09-10Fix testsjikstra2-2/+14
2021-09-10Remove unused imports and filesjikstra2-16/+0
2021-09-10Fix testsjikstra1-2/+2
2021-09-10Apply requested changesjikstra1-2/+0
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-02cargo fmt & cargo clippyjikstra1-5/+3
2021-09-02Fix testsjikstra1-16/+19
2021-09-01Implement a raw rendering mode for recursive folder downloadjikstra1-0/+103
- Raw mode only displays file/folders and is more focused on computer processing - Display a banner in footer to recursively download the current folder with wget
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-30Implement show symlink destinationDean Li1-4/+15
Add option `show_symlink_info` to represent show symlink info or not. (Default to no) Show symlink destination after symlink symbol in directory listing Resemble `ls -l` and also the short argument select for this feature is also `-l`. Basic testing is included. Related to #499
2021-08-30order interface verticallyAli MJ Al-Nasrawy1-9/+6
2021-08-30tests for binding behaviorAli MJ Al-Nasrawy1-0/+91
2021-08-30Switch from structopt to clap v3Sven-Hendrik Haase1-1/+2
2021-08-29Fix stderr output in test index_fallback_to_listingSven-Hendrik Haase1-3/+4
2021-08-29list directory if index not foundAli MJ Al-Nasrawy1-0/+11
2021-08-28Execute backslash test only on non windows systemsjikstra1-0/+1
2021-08-28Add file with backslash to the test FILES fixturejikstra1-0/+1
2021-08-27Add TLS support via rustls (fixes #18)Sven-Hendrik Haase5-8/+156
2021-08-26Golf tests a bit moreSven-Hendrik Haase1-9/+3
2021-08-26new partial-injection syntaxAli MJ Al-Nasrawy4-8/+8
2021-08-26address commentsAli MJ Al-Nasrawy4-23/+41
2021-08-26tests: Refactor!Ali MJ Al-Nasrawy8-442/+192
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.
2021-04-11Test for --no-symlink optionAli MJ Al-Nasrawy1-8/+18
2021-04-11Separate tar archive and tar flagsDean Li1-0/+41
It used to have one flag (-r) to enable both tar archive and tar. Now it has two flags [ -r: for tar, -g: for tar archive]. Related to #451
2021-04-06Test URL encoding for special charactersAli MJ Al-Nasrawy2-0/+9
2021-03-31Test for symlink directories and filesAli MJ Al-Nasrawy1-0/+64
Replace some of the testing files and directories with symbolic links. They should behave exactly the same.
2021-03-28Fix testsSven-Hendrik Haase1-2/+3
2021-03-28Generate completions with `miniserve --print-completions <shell>`Andy Freeland1-1/+27
This patch adds a `--print-completions` option to generate shell completion files at runtime. This ensures the completions are always up to date. Fixes #377.
2021-03-20Add negative test for hidden directoriesSven-Hendrik Haase1-0/+31
2021-03-20Hide some annoying test outputSven-Hendrik Haase1-0/+1
2021-03-20Finish up --hidden featureSven-Hendrik Haase2-8/+3
2021-03-07Add option to show hidden filesSven-Hendrik Haase2-4/+69
2021-03-07Test that all directories properly get trailing slashesSven-Hendrik Haase1-6/+17
2021-03-07Fix DoS issue when deliberately sending unconforming URL pathsSven-Hendrik Haase1-0/+30
2021-02-28Fix formatSven-Hendrik Haase1-1/+2
2021-02-28Re-do the way setting multiple headers worksSven-Hendrik Haase1-17/+11
2021-02-27Fix grammarSven-Hendrik Haase1-1/+1
2021-02-27Multiple headers support for custom headersDean Li1-9/+19