at master 508 B view raw
1{ lib, pkgs, ... }: 2{ 3 name = "nginx-mime"; 4 meta.maintainers = with pkgs.lib.maintainers; [ izorkin ]; 5 6 nodes = { 7 server = 8 { pkgs, ... }: 9 { 10 services.nginx = { 11 enable = true; 12 virtualHosts."localhost" = { }; 13 }; 14 }; 15 }; 16 17 testScript = '' 18 server.start() 19 server.wait_for_unit("nginx") 20 # Check optimal size of types_hash 21 server.fail("journalctl --unit nginx --grep 'could not build optimal types_hash'") 22 server.shutdown() 23 ''; 24}