v0.2.17
RustBox CI / rustbox (push) Canceled after 0s

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-03 10:35:05 +01:00
1 parent 2ac1566eca
commit 1bb398acd1
32 files changed
+907 -136

No files matched your search

+3
View File
@@ -312,6 +312,7 @@ async fn auth_policy_exposes_only_login_requirements_before_authentication() {
config.sieve_enabled = false;
config.diagnostics_enabled = false;
config.about_enabled = false;
config.multi_account_enabled = false;
let store = test_store();
let (browser_id, account_id, token) = setup_test_account(&store, "alice@example.com");
let app = create_router(
@@ -345,6 +346,7 @@ async fn auth_policy_exposes_only_login_requirements_before_authentication() {
"sieveEnabled",
"diagnosticsEnabled",
"aboutEnabled",
"multiAccountEnabled",
] {
assert!(json.get(key).is_none(), "public policy leaked {key}");
}
@@ -377,6 +379,7 @@ async fn auth_policy_exposes_only_login_requirements_before_authentication() {
assert_eq!(json["sieveEnabled"], false);
assert_eq!(json["diagnosticsEnabled"], false);
assert_eq!(json["aboutEnabled"], false);
assert_eq!(json["multiAccountEnabled"], false);
assert!(json.get("rememberMeDays").is_none());
assert!(json.get("sessionTimeoutHours").is_none());
}