nixosTests.wastebin: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-05 18:17:28 +02:00
parent ceb8b4a5f9
commit 48232ce3d8
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 20 additions and 22 deletions

View file

@ -1412,7 +1412,7 @@ in
wakapi = runTest ./wakapi.nix;
warzone2100 = handleTest ./warzone2100.nix { };
wasabibackend = handleTest ./wasabibackend.nix { };
wastebin = handleTest ./wastebin.nix { };
wastebin = runTest ./wastebin.nix;
watchdogd = handleTest ./watchdogd.nix { };
webhook = runTest ./webhook.nix;
weblate = handleTest ./web-apps/weblate.nix { };

View file

@ -1,24 +1,22 @@
import ./make-test-python.nix (
{ pkgs, lib, ... }:
{
name = "wastebin";
{ lib, ... }:
{
name = "wastebin";
meta = {
maintainers = with lib.maintainers; [ pinpox ];
meta = {
maintainers = with lib.maintainers; [ pinpox ];
};
nodes.machine =
{ pkgs, ... }:
{
services.wastebin = {
enable = true;
};
};
nodes.machine =
{ pkgs, ... }:
{
services.wastebin = {
enable = true;
};
};
testScript = ''
machine.wait_for_unit("wastebin.service")
machine.wait_for_open_port(8088)
machine.succeed("curl --fail http://localhost:8088/")
'';
}
)
testScript = ''
machine.wait_for_unit("wastebin.service")
machine.wait_for_open_port(8088)
machine.succeed("curl --fail http://localhost:8088/")
'';
}