nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

nixosTests.go-camo: handleTest -> runTest

+22 -32
+1 -1
nixos/tests/all-tests.nix
··· 605 605 gns3-server = runTest ./gns3-server.nix; 606 606 gnupg = runTest ./gnupg.nix; 607 607 goatcounter = runTest ./goatcounter.nix; 608 - go-camo = handleTest ./go-camo.nix { }; 608 + go-camo = runTest ./go-camo.nix; 609 609 go-neb = runTest ./go-neb.nix; 610 610 gobgpd = runTest ./gobgpd.nix; 611 611 gocd-agent = runTest ./gocd-agent.nix;
+21 -31
nixos/tests/go-camo.nix
··· 1 + { lib, ... }: 2 + let 3 + key_val = "12345678"; 4 + in 1 5 { 2 - system ? builtins.currentSystem, 3 - config ? { }, 4 - pkgs ? import ../.. { inherit system config; }, 5 - }: 6 + name = "go-camo-file-key"; 7 + meta = { 8 + maintainers = [ lib.maintainers.viraptor ]; 9 + }; 6 10 7 - with 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 ]; 11 + nodes.machine = 12 + { pkgs, ... }: 13 + { 14 + services.go-camo = { 15 + enable = true; 16 + keyFile = pkgs.writeText "foo" key_val; 18 17 }; 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 18 }; 19 + 20 + # go-camo responds to http requests 21 + testScript = '' 22 + machine.wait_for_unit("go-camo.service") 23 + machine.wait_for_open_port(8080) 24 + machine.succeed("curl http://localhost:8080") 25 + ''; 36 26 }