mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
Merge pull request #179425 from McSinyx/phylactery
phylactery: init at 0.1.1
This commit is contained in:
commit
a8c2879f43
6 changed files with 102 additions and 0 deletions
20
nixos/tests/web-apps/phylactery.nix
Normal file
20
nixos/tests/web-apps/phylactery.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
import ../make-test-python.nix ({ pkgs, lib, ... }: {
|
||||
name = "phylactery";
|
||||
|
||||
nodes.machine = { ... }: {
|
||||
services.phylactery = rec {
|
||||
enable = true;
|
||||
port = 8080;
|
||||
library = "/tmp";
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
machine.wait_for_unit('phylactery')
|
||||
machine.wait_for_open_port(8080)
|
||||
machine.wait_until_succeeds('curl localhost:8080')
|
||||
'';
|
||||
|
||||
meta.maintainers = with lib.maintainers; [ McSinyx ];
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue