nixosTests.corteza: init
This commit is contained in:
parent
c721b7dfe9
commit
354d9d7986
@ -347,6 +347,7 @@ in
|
|||||||
containers-unified-hierarchy = runTest ./containers-unified-hierarchy.nix;
|
containers-unified-hierarchy = runTest ./containers-unified-hierarchy.nix;
|
||||||
convos = runTest ./convos.nix;
|
convos = runTest ./convos.nix;
|
||||||
corerad = handleTest ./corerad.nix { };
|
corerad = handleTest ./corerad.nix { };
|
||||||
|
corteza = runTest ./corteza.nix;
|
||||||
cosmic = runTest {
|
cosmic = runTest {
|
||||||
imports = [ ./cosmic.nix ];
|
imports = [ ./cosmic.nix ];
|
||||||
_module.args.testName = "cosmic";
|
_module.args.testName = "cosmic";
|
||||||
|
|||||||
23
nixos/tests/corteza.nix
Normal file
23
nixos/tests/corteza.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
port = 8080;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
name = "corteza";
|
||||||
|
meta.maintainers = [ lib.teams.ngi.members ];
|
||||||
|
|
||||||
|
nodes.machine = {
|
||||||
|
services.corteza = {
|
||||||
|
enable = true;
|
||||||
|
inherit port;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
machine.start()
|
||||||
|
|
||||||
|
machine.wait_for_unit("default.target")
|
||||||
|
|
||||||
|
machine.wait_until_succeeds("curl http://localhost:${toString port}/auth/login | grep button-login")
|
||||||
|
'';
|
||||||
|
}
|
||||||
@ -5,6 +5,7 @@
|
|||||||
callPackage,
|
callPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
lib,
|
lib,
|
||||||
|
nixosTests,
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -161,6 +162,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
srcs = { inherit corteza-server corteza-webapp; };
|
srcs = { inherit corteza-server corteza-webapp; };
|
||||||
|
tests = { inherit (nixosTests) corteza; };
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (corteza-server) meta;
|
inherit (corteza-server) meta;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user