From 9bdc2b72af2ae63ced48c642c4588b17b784590c Mon Sep 17 00:00:00 2001 From: "glm-5.1" Date: Fri, 12 Jun 2026 04:48:25 +0000 Subject: [PATCH] Add acme_contact to test config TOML strings The main code changes were already committed (3f2550f), but test config TOML strings in cli.rs, admin/socket.rs, shutdown.rs, and integration_test.rs still needed the new acme_contact field to pass validation rule 19. --- src/admin/socket.rs | 2 ++ src/cli.rs | 3 +++ src/shutdown.rs | 1 + src/tls/acceptor.rs | 2 +- tests/integration_test.rs | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/admin/socket.rs b/src/admin/socket.rs index 303c5cf..eb11cfe 100644 --- a/src/admin/socket.rs +++ b/src/admin/socket.rs @@ -422,6 +422,7 @@ mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme-cache" acme_directory = "staging" +acme_contact = "mailto:admin@test.local" [[listeners.sites]] host = "test.local" @@ -563,6 +564,7 @@ mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme-cache" acme_directory = "staging" +acme_contact = "mailto:admin@test.local" [[listeners.sites]] host = "test.local" diff --git a/src/cli.rs b/src/cli.rs index 3f59767..89323ea 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -274,6 +274,7 @@ https_port = 443 mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme" +acme_contact = "mailto:admin@test.local" "#; let config_path = dir.path().join("config.toml"); std::fs::write(&config_path, toml).unwrap(); @@ -311,6 +312,7 @@ https_port = 443 mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme" +acme_contact = "mailto:admin@test.local" "#; let config_path = dir.path().join("config.toml"); std::fs::write(&config_path, toml).unwrap(); @@ -367,6 +369,7 @@ https_port = 443 mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme" +acme_contact = "mailto:admin@test.local" "#; let config_path = dir.path().join("config.toml"); std::fs::write(&config_path, toml).unwrap(); diff --git a/src/shutdown.rs b/src/shutdown.rs index e0eef33..4bfb2b4 100644 --- a/src/shutdown.rs +++ b/src/shutdown.rs @@ -198,6 +198,7 @@ mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme-cache" acme_directory = "staging" +acme_contact = "mailto:admin@test.local" [[listeners.sites]] host = "test.local" diff --git a/src/tls/acceptor.rs b/src/tls/acceptor.rs index 4f05eae..d12e32a 100644 --- a/src/tls/acceptor.rs +++ b/src/tls/acceptor.rs @@ -209,4 +209,4 @@ mod tests { let err = result.unwrap_err().to_string(); assert!(err.contains("unknown TLS mode")); } -} \ No newline at end of file +} diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 4ef164d..025a08a 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -511,6 +511,7 @@ https_port = 443 mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme-cache" +acme_contact = "mailto:admin@test.local" [[listeners.sites]] host = "test.local" @@ -818,6 +819,7 @@ https_port = 443 mode = "acme" acme_domains = ["test.local"] acme_cache_dir = "/tmp/acme-cache" +acme_contact = "mailto:admin@test.local" acme_directory = "staging" [[listeners.sites]]