use std::net::{Ipv4Addr, SocketAddr};
use std::time::Duration;
use super::AppConfig;
#[test]
fn defaults_match_the_initial_design_profile() {
let config = AppConfig::default();
assert_eq!(config.bind, SocketAddr::from((Ipv4Addr::LOCALHOST, 8080)));
assert_eq!(config.admin_bind, None);
assert!(!config.allow_remote_admin);
assert_eq!(config.request_body_limit, 1024 * 1024);
assert_eq!(config.max_in_flight, 128);
assert_eq!(config.max_connections, 256);
assert_eq!(config.header_timeout, Duration::from_secs(5));
assert_eq!(config.body_idle_timeout, Duration::from_secs(10));
assert_eq!(config.request_timeout, Duration::from_secs(30));
assert_eq!(config.startup_timeout, Duration::from_secs(30));
assert_eq!(config.shutdown_timeout, Duration::from_secs(25));
assert_eq!(config.cleanup_reserve, Duration::from_secs(5));
assert_eq!(config.validate(), Ok(()));
}