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:
parent
dbe5775901
commit
7f797a698f
6 changed files with 224 additions and 0 deletions
19
nixos/tests/wastebin.nix
Normal file
19
nixos/tests/wastebin.nix
Normal 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/")
|
||||
'';
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue