mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
22 lines
417 B
Nix
22 lines
417 B
Nix
|
import ./make-test-python.nix ({ lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
name = "fluidd";
|
||
|
meta.maintainers = with maintainers; [ vtuan10 ];
|
||
|
|
||
|
nodes.machine = { pkgs, ... }: {
|
||
|
services.fluidd = {
|
||
|
enable = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
machine.start()
|
||
|
machine.wait_for_unit("nginx.service")
|
||
|
machine.wait_for_open_port(80)
|
||
|
machine.succeed("curl -sSfL http://localhost/ | grep 'fluidd'")
|
||
|
'';
|
||
|
})
|