parent
ceb8b4a5f9
commit
48232ce3d8
@ -1412,7 +1412,7 @@ in
|
|||||||
wakapi = runTest ./wakapi.nix;
|
wakapi = runTest ./wakapi.nix;
|
||||||
warzone2100 = handleTest ./warzone2100.nix { };
|
warzone2100 = handleTest ./warzone2100.nix { };
|
||||||
wasabibackend = handleTest ./wasabibackend.nix { };
|
wasabibackend = handleTest ./wasabibackend.nix { };
|
||||||
wastebin = handleTest ./wastebin.nix { };
|
wastebin = runTest ./wastebin.nix;
|
||||||
watchdogd = handleTest ./watchdogd.nix { };
|
watchdogd = handleTest ./watchdogd.nix { };
|
||||||
webhook = runTest ./webhook.nix;
|
webhook = runTest ./webhook.nix;
|
||||||
weblate = handleTest ./web-apps/weblate.nix { };
|
weblate = handleTest ./web-apps/weblate.nix { };
|
||||||
|
@ -1,24 +1,22 @@
|
|||||||
import ./make-test-python.nix (
|
{ lib, ... }:
|
||||||
{ pkgs, lib, ... }:
|
{
|
||||||
{
|
name = "wastebin";
|
||||||
name = "wastebin";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
maintainers = with lib.maintainers; [ pinpox ];
|
maintainers = with lib.maintainers; [ pinpox ];
|
||||||
|
};
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.wastebin = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nodes.machine =
|
testScript = ''
|
||||||
{ pkgs, ... }:
|
machine.wait_for_unit("wastebin.service")
|
||||||
{
|
machine.wait_for_open_port(8088)
|
||||||
services.wastebin = {
|
machine.succeed("curl --fail http://localhost:8088/")
|
||||||
enable = true;
|
'';
|
||||||
};
|
}
|
||||||
};
|
|
||||||
|
|
||||||
testScript = ''
|
|
||||||
machine.wait_for_unit("wastebin.service")
|
|
||||||
machine.wait_for_open_port(8088)
|
|
||||||
machine.succeed("curl --fail http://localhost:8088/")
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user