lol

nixosTests.snips-sh: init

Co-authored-by: NotAShelf <raf@notashelf.dev>

+28
+1
nixos/tests/all-tests.nix
··· 1335 1335 snapcast = runTest ./snapcast.nix; 1336 1336 snapper = runTest ./snapper.nix; 1337 1337 snipe-it = runTest ./web-apps/snipe-it.nix; 1338 + snips-sh = runTest ./snips-sh.nix; 1338 1339 soapui = runTest ./soapui.nix; 1339 1340 soft-serve = runTest ./soft-serve.nix; 1340 1341 sogo = runTest ./sogo.nix;
+27
nixos/tests/snips-sh.nix
··· 1 + { lib, ... }: 2 + { 3 + name = "snips-sh"; 4 + 5 + nodes.machine = { 6 + services.snips-sh = { 7 + enable = true; 8 + settings = { 9 + SNIPS_HTTP_INTERNAL = "http://0.0.0.0:8080"; 10 + SNIPS_SSH_INTERNAL = "ssh://0.0.0.0:2222"; 11 + }; 12 + }; 13 + }; 14 + 15 + testScript = '' 16 + start_all() 17 + 18 + machine.wait_for_unit("snips-sh.service") 19 + machine.wait_for_open_port(8080) 20 + machine.succeed("curl --fail http://localhost:8080") 21 + ''; 22 + 23 + meta.maintainers = with lib.maintainers; [ 24 + isabelroses 25 + NotAShelf 26 + ]; 27 + }