mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +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
|
@ -1,25 +1,23 @@
|
|||
import ../make-test-python.nix (
|
||||
{ lib, ... }:
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
name = "kanboard";
|
||||
meta.maintainers = with lib.maintainers; [ yzx9 ];
|
||||
{
|
||||
name = "kanboard";
|
||||
meta.maintainers = with lib.maintainers; [ yzx9 ];
|
||||
|
||||
nodes = {
|
||||
machine = {
|
||||
services.kanboard = {
|
||||
enable = true;
|
||||
};
|
||||
nodes = {
|
||||
machine = {
|
||||
services.kanboard = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
machine.wait_for_unit("nginx.service")
|
||||
machine.wait_for_unit("phpfpm-kanboard.service")
|
||||
machine.wait_for_open_port(80)
|
||||
testScript = ''
|
||||
start_all()
|
||||
machine.wait_for_unit("nginx.service")
|
||||
machine.wait_for_unit("phpfpm-kanboard.service")
|
||||
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