2020-02-12 08:35:32 +00:00
|
|
|
mod common;
|
|
|
|
|
2021-12-21 17:40:01 +00:00
|
|
|
pub use common::*;
|
2020-02-12 08:35:32 +00:00
|
|
|
|
2022-02-21 17:58:24 +00:00
|
|
|
#[tokio::test]
|
|
|
|
async fn authenticated_sender() {
|
|
|
|
let milter = SpamAssassinMilter::spawn(LOCALHOST, Default::default())
|
|
|
|
.await
|
|
|
|
.unwrap();
|
2020-02-12 08:35:32 +00:00
|
|
|
|
2022-02-21 17:58:24 +00:00
|
|
|
let exit_code = run_miltertest(file!(), milter.addr()).await.unwrap();
|
2020-02-12 08:35:32 +00:00
|
|
|
|
2022-02-21 17:58:24 +00:00
|
|
|
milter.shutdown().await.unwrap();
|
2020-02-12 08:35:32 +00:00
|
|
|
|
2022-02-21 17:58:24 +00:00
|
|
|
assert!(exit_code.success());
|
2020-02-12 08:35:32 +00:00
|
|
|
}
|