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