at 23.11-pre 582 B view raw
1import ./make-test-python.nix ({ pkgs, ... }: 2 3{ 4 name = "morty"; 5 meta = with pkgs.lib.maintainers; { 6 maintainers = [ leenaars ]; 7 }; 8 9 nodes = 10 { mortyProxyWithKey = 11 12 { ... }: 13 { services.morty = { 14 enable = true; 15 key = "78a9cd0cfee20c672f78427efb2a2a96036027f0"; 16 port = 3001; 17 }; 18 }; 19 20 }; 21 22 testScript = 23 { ... }: 24 '' 25 mortyProxyWithKey.wait_for_unit("default.target") 26 mortyProxyWithKey.wait_for_open_port(3001) 27 mortyProxyWithKey.succeed("curl -fL 127.0.0.1:3001 | grep MortyProxy") 28 ''; 29 30})