mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
30 lines
570 B
Nix
30 lines
570 B
Nix
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")
|
|
'';
|
|
|
|
})
|