mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
nixosTests.kanboard: migrate to runTest
Tracking issue: NixOS#386873
This commit is contained in:
parent
6b617cec37
commit
2ae4dff6ab
2 changed files with 18 additions and 20 deletions
|
@ -656,7 +656,7 @@ in
|
||||||
jotta-cli = handleTest ./jotta-cli.nix { };
|
jotta-cli = handleTest ./jotta-cli.nix { };
|
||||||
k3s = handleTest ./k3s { };
|
k3s = handleTest ./k3s { };
|
||||||
kafka = handleTest ./kafka.nix { };
|
kafka = handleTest ./kafka.nix { };
|
||||||
kanboard = handleTest ./web-apps/kanboard.nix { };
|
kanboard = runTest ./web-apps/kanboard.nix;
|
||||||
kanidm = handleTest ./kanidm.nix { };
|
kanidm = handleTest ./kanidm.nix { };
|
||||||
kanidm-provisioning = handleTest ./kanidm-provisioning.nix { };
|
kanidm-provisioning = handleTest ./kanidm-provisioning.nix { };
|
||||||
karma = handleTest ./karma.nix { };
|
karma = handleTest ./karma.nix { };
|
||||||
|
|
|
@ -1,25 +1,23 @@
|
||||||
import ../make-test-python.nix (
|
{ lib, ... }:
|
||||||
{ lib, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "kanboard";
|
name = "kanboard";
|
||||||
meta.maintainers = with lib.maintainers; [ yzx9 ];
|
meta.maintainers = with lib.maintainers; [ yzx9 ];
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
machine = {
|
machine = {
|
||||||
services.kanboard = {
|
services.kanboard = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
start_all()
|
start_all()
|
||||||
machine.wait_for_unit("nginx.service")
|
machine.wait_for_unit("nginx.service")
|
||||||
machine.wait_for_unit("phpfpm-kanboard.service")
|
machine.wait_for_unit("phpfpm-kanboard.service")
|
||||||
machine.wait_for_open_port(80)
|
machine.wait_for_open_port(80)
|
||||||
|
|
||||||
machine.succeed("curl -k --fail http://localhost", timeout=10)
|
machine.succeed("curl -k --fail http://localhost", timeout=10)
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue