Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow requiring basic HTTP authentication #3131

Merged
merged 13 commits into from
Feb 20, 2024
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
casey committed Feb 20, 2024
commit 326ddaa673fefc1a084f78c9a6843875bb43892f
6 changes: 3 additions & 3 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5309,10 +5309,10 @@ next

#[test]
fn authentication_requires_username_and_password_are() {
assert!(Arguments::try_parse_from(["ord", "server", "--username", "foo"]).is_err());
assert!(Arguments::try_parse_from(["ord", "server", "--password", "bar"]).is_err());
assert!(Arguments::try_parse_from(["ord", "--username", "server", "foo"]).is_err());
assert!(Arguments::try_parse_from(["ord", "--password", "server", "bar"]).is_err());
assert!(
Arguments::try_parse_from(["ord", "server", "--username", "foo", "--password", "bar"])
Arguments::try_parse_from(["ord", "--username", "foo", "--password", "bar", "server"])
.is_ok()
);
}
Expand Down