From 5b85b1368f81b7eed8efef9d07ae8c077bac73c4 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 17 Mar 2023 07:04:22 -0300 Subject: Test for expected output of Postfix config files --- tests/local/system.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/local/system.scm (limited to 'tests/local/system.scm') diff --git a/tests/local/system.scm b/tests/local/system.scm new file mode 100644 index 0000000..a520ee1 --- /dev/null +++ b/tests/local/system.scm @@ -0,0 +1,39 @@ +(use-modules + ((org euandre queue) #:prefix queue:) + ((xyz euandreh heredoc) #:prefix heredoc:) + (gnu)) +(use-package-modules) +(use-service-modules) +(heredoc:enable-syntax) + +(operating-system + (host-name "a-local-test-host") + (services + (append + (list + (service queue:local-postfix-service-type + (queue:postfix-configuration + (main.cf-extra #"- + smtp_sender_dependent_authentication = yes + sender_dependent_relayhost_maps = hash:/var/lib/private/postfix/relayhosts-maps + smtp_sasl_password_maps = hash:/var/lib/private/postfix/sasl-password + smtp_sasl_auth_enable = yes + smtp_sasl_security_options = noanonymous + smtp_sasl_mechanism_filter = login, plain + smtp_use_tls = yes + smtp_tls_security_level = encrypt + smtp_tls_note_starttls_offer = yes + "#)))) + %base-services)) + (bootloader + (bootloader-configuration + (bootloader grub-bootloader))) + (file-systems + (append + (list + (file-system + (mount-point "/") + (type "btrfs") + (device + (uuid "2c66de32-dde7-ea35-750a-a1ca47a58d45" 'btrfs)))) + %base-file-systems))) -- cgit v1.2.3