at 25.11-pre 792 B view raw
1{ 2 system ? builtins.currentSystem, 3 config ? { }, 4 pkgs ? import ../.. { inherit system config; }, 5}: 6 7with import ../lib/testing-python.nix { inherit system pkgs; }; 8 9{ 10 gocamo_file_key = 11 let 12 key_val = "12345678"; 13 in 14 makeTest { 15 name = "go-camo-file-key"; 16 meta = { 17 maintainers = [ pkgs.lib.maintainers.viraptor ]; 18 }; 19 20 nodes.machine = 21 { config, pkgs, ... }: 22 { 23 services.go-camo = { 24 enable = true; 25 keyFile = pkgs.writeText "foo" key_val; 26 }; 27 }; 28 29 # go-camo responds to http requests 30 testScript = '' 31 machine.wait_for_unit("go-camo.service") 32 machine.wait_for_open_port(8080) 33 machine.succeed("curl http://localhost:8080") 34 ''; 35 }; 36}