at 25.11-pre 843 B view raw
1import ./make-test-python.nix ( 2 { pkgs, lib, ... }: 3 { 4 name = "sympa"; 5 meta.maintainers = with lib.maintainers; [ ]; 6 7 nodes.machine = 8 { ... }: 9 { 10 11 services.sympa = { 12 enable = true; 13 domains = { 14 "lists.example.org" = { 15 webHost = "localhost"; 16 }; 17 }; 18 listMasters = [ "bob@example.org" ]; 19 web.enable = true; 20 web.https = false; 21 database = { 22 type = "PostgreSQL"; 23 createLocally = true; 24 }; 25 }; 26 }; 27 28 testScript = '' 29 start_all() 30 31 machine.wait_for_unit("sympa.service") 32 machine.wait_for_unit("wwsympa.service") 33 assert "Mailing lists service" in machine.succeed( 34 "curl --fail --insecure -L http://localhost/" 35 ) 36 ''; 37 } 38)