nixosTests.corteza: init

Changed files
+26
nixos
pkgs
by-name
co
corteza
+1
nixos/tests/all-tests.nix
···
containers-unified-hierarchy = runTest ./containers-unified-hierarchy.nix;
convos = runTest ./convos.nix;
corerad = handleTest ./corerad.nix { };
+
corteza = runTest ./corteza.nix;
cosmic = runTest {
imports = [ ./cosmic.nix ];
_module.args.testName = "cosmic";
+23
nixos/tests/corteza.nix
···
+
{ 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")
+
'';
+
}
+2
pkgs/by-name/co/corteza/package.nix
···
callPackage,
fetchFromGitHub,
lib,
+
nixosTests,
stdenvNoCC,
}:
···
passthru = {
srcs = { inherit corteza-server corteza-webapp; };
+
tests = { inherit (nixosTests) corteza; };
};
inherit (corteza-server) meta;