mirror of
https://github.com/mailscope/kumomta.git
synced 2026-10-08 08:02:24 +00:00
shaping: validate the default shaping.toml file
We used to do this as part of a more structured test, but decoupled
that from the test case outcome in 899178351a.
This commit explicitly loads the default file to make sure that it
is valid.
This commit is contained in:
@@ -90,8 +90,7 @@ duration = "30 days"
|
||||
match=[
|
||||
{MXSuffix=".google.com"},
|
||||
{MXSuffix=".googlemail.com"}
|
||||
]
|
||||
|
||||
]
|
||||
max_deliveries_per_connection = 50
|
||||
provider_connection_limit = 5
|
||||
consecutive_connection_failures_before_delay = 5
|
||||
|
||||
@@ -1917,4 +1917,11 @@ MergedEntry {
|
||||
"#
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_load_default_shaping_toml() {
|
||||
Shaping::merge_files(&["../../assets/policy-extras/shaping.toml".into()])
|
||||
.await
|
||||
.unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user