0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

wastebin: init at 2.4.3 (#287455)

* wastebin: init at 2.4.3

* nixos/wastebin: init

Add module and test for wastebin
This commit is contained in:
Pablo Ovelleiro Corral 2024-04-01 02:55:15 +02:00 committed by GitHub
parent dbe5775901
commit 7f797a698f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 224 additions and 0 deletions

19
nixos/tests/wastebin.nix Normal file
View file

@ -0,0 +1,19 @@
import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "wastebin";
meta = {
maintainers = with lib.maintainers; [ pinpox ];
};
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/")
'';
})