mod behaviour; mod fixtures; mod helpers; use std::env; use u_lib::config::MASTER_PORT; #[macro_use] extern crate rstest; #[tokio::test] async fn test_non_auth_connection_dropped() { let env_server = env::var("U_SERVER").unwrap(); match reqwest::get(format!("https://{}:{}", env_server, MASTER_PORT)).await { Err(e) => { assert!(e .to_string() .contains("unable to get local issuer certificate")) } _ => panic!("no error occured on foreign client connection"), } }