mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/dae: add basic test
This commit is contained in:
parent
8f070876da
commit
17e386205b
@ -210,6 +210,7 @@ in {
|
||||
custom-ca = handleTest ./custom-ca.nix {};
|
||||
croc = handleTest ./croc.nix {};
|
||||
darling = handleTest ./darling.nix {};
|
||||
dae = handleTest ./dae.nix {};
|
||||
dconf = handleTest ./dconf.nix {};
|
||||
deepin = handleTest ./deepin.nix {};
|
||||
deluge = handleTest ./deluge.nix {};
|
||||
|
29
nixos/tests/dae.nix
Normal file
29
nixos/tests/dae.nix
Normal file
@ -0,0 +1,29 @@
|
||||
import ./make-test-python.nix ({ lib, pkgs, ... }: {
|
||||
|
||||
name = "dae";
|
||||
|
||||
meta = {
|
||||
maintainers = with lib.maintainers; [ oluceps ];
|
||||
};
|
||||
|
||||
nodes.machine = { pkgs, ... }: {
|
||||
environment.systemPackages = [ pkgs.curl ];
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
statusPage = true;
|
||||
};
|
||||
services.dae = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.wait_for_unit("nginx.service")
|
||||
machine.wait_for_unit("dae.service")
|
||||
|
||||
machine.wait_for_open_port(80)
|
||||
|
||||
machine.succeed("curl --fail --max-time 10 http://localhost")
|
||||
'';
|
||||
|
||||
})
|
Loading…
Reference in New Issue
Block a user