at master 557 B view raw
1{ lib, ... }: 2{ 3 name = "pingvin-share"; 4 meta.maintainers = with lib.maintainers; [ ratcornu ]; 5 6 nodes.machine = 7 { ... }: 8 { 9 services.pingvin-share = { 10 enable = true; 11 12 backend.port = 9010; 13 frontend.port = 9011; 14 }; 15 }; 16 17 testScript = '' 18 machine.wait_for_unit("pingvin-share-frontend.service") 19 machine.wait_for_open_port(9010) 20 machine.wait_for_open_port(9011) 21 machine.succeed("curl --fail http://127.0.0.1:9010/api/configs") 22 machine.succeed("curl --fail http://127.0.0.1:9011/") 23 ''; 24}