)
.1
.https_port(),
Some(1000)
);
}
#[test]
fn http_with_https_leaves_http_enabled() {
assert_eq!(
parse_server_args(
"ord server --https --http --acme-cache foo --acme-contact bar --acme-domain baz"
)
.1
.http_port(),
Some(80)
);
}
#[test]
fn http_with_https_leaves_https_enabled() {
assert_eq!(
parse_server_args(
"ord server --https --http --acme-cache foo --acme-contact bar --acme-domain baz"
)
.1
.https_port(),
Some(443)
);
}
#[test]
fn acme_contact_accepts_multiple_values() {
assert!(Arguments::try_parse_from([
"ord",
"server",
"--address",
"127.0.0.1",
"--http-port",
"0",
"--acme-contact",
"foo",
"--acme-contact",
"bar"
])
.is_ok());
}
#[test]
fn acme_domain_accepts_multiple_values() {
assert!(Arguments::try_parse_from([
"ord",
"server",
"--address",
"127.0.0.1",