nixosTests.go-camo: handleTest -> runTest

This commit is contained in:
Sizhe Zhao 2025-07-09 12:37:43 +08:00
parent a698ac1214
commit ffbaf47a72
No known key found for this signature in database
GPG Key ID: ED1807251A7DA08F
2 changed files with 22 additions and 32 deletions

View File

@ -605,7 +605,7 @@ in
gns3-server = runTest ./gns3-server.nix; gns3-server = runTest ./gns3-server.nix;
gnupg = runTest ./gnupg.nix; gnupg = runTest ./gnupg.nix;
goatcounter = runTest ./goatcounter.nix; goatcounter = runTest ./goatcounter.nix;
go-camo = handleTest ./go-camo.nix { }; go-camo = runTest ./go-camo.nix;
go-neb = runTest ./go-neb.nix; go-neb = runTest ./go-neb.nix;
gobgpd = runTest ./gobgpd.nix; gobgpd = runTest ./gobgpd.nix;
gocd-agent = runTest ./gocd-agent.nix; gocd-agent = runTest ./gocd-agent.nix;

View File

@ -1,24 +1,15 @@
{ { lib, ... }:
system ? builtins.currentSystem, let
config ? { },
pkgs ? import ../.. { inherit system config; },
}:
with import ../lib/testing-python.nix { inherit system pkgs; };
{
gocamo_file_key =
let
key_val = "12345678"; key_val = "12345678";
in in
makeTest { {
name = "go-camo-file-key"; name = "go-camo-file-key";
meta = { meta = {
maintainers = [ pkgs.lib.maintainers.viraptor ]; maintainers = [ lib.maintainers.viraptor ];
}; };
nodes.machine = nodes.machine =
{ config, pkgs, ... }: { pkgs, ... }:
{ {
services.go-camo = { services.go-camo = {
enable = true; enable = true;
@ -32,5 +23,4 @@ with import ../lib/testing-python.nix { inherit system pkgs; };
machine.wait_for_open_port(8080) machine.wait_for_open_port(8080)
machine.succeed("curl http://localhost:8080") machine.succeed("curl http://localhost:8080")
''; '';
};
} }