) .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",
Inscription number 44,989,186
Genesis block 819,068
File type text
File size 1 KB
Creation date Nov 30,2023 3:4 am