aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
authorboastful-squirrel <boastful.squirrel@gmail.com>2019-04-26 17:05:59 +0000
committerboastful-squirrel <boastful.squirrel@gmail.com>2019-04-26 17:05:59 +0000
commit8440d59dd69594d8f09e640a02f0494544385d61 (patch)
treeee549f132ffd3fa44469d1e80813c1ac3c4b4dcd /src/auth.rs
parentMerge pull request #76 from KSXGitHub/pullrequest.hashed-password (diff)
downloadminiserve-8440d59dd69594d8f09e640a02f0494544385d61.tar.gz
miniserve-8440d59dd69594d8f09e640a02f0494544385d61.zip
Cargo fmt
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/auth.rs b/src/auth.rs
index e75f498..d8de30e 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -165,13 +165,18 @@ mod tests {
}
#[rstest_parametrize(
- should_pass, param_username, param_password, required_username, required_password, encrypt,
+ should_pass,
+ param_username,
+ param_password,
+ required_username,
+ required_password,
+ encrypt,
case(true, "obi", "hello there", "obi", "hello there", "plain"),
case(false, "obi", "hello there", "obi", "hi!", "plain"),
case(true, "obi", "hello there", "obi", "hello there", "sha256"),
case(false, "obi", "hello there", "obi", "hi!", "sha256"),
case(true, "obi", "hello there", "obi", "hello there", "sha512"),
- case(false, "obi", "hello there", "obi", "hi!", "sha512"),
+ case(false, "obi", "hello there", "obi", "hi!", "sha512")
)]
fn test_auth(
should_pass: bool,