in aws_secretsmanager_agent/src/config.rs [529:540]
fn test_validate_config_http_port_invalid_values() {
for value in ["1023", "-1", "65536", "not a number"] {
let invalid_config = ConfigFile {
http_port: String::from(value),
..get_default_config_file()
};
match Config::build(invalid_config) {
Ok(_) => panic!(),
Err(e) => assert_eq!(e.to_string(), INVALID_HTTP_PORT_ERR_MSG),
};
}
}