aboutsummaryrefslogtreecommitdiffstats
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
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-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-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-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
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.