mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
21 lines
479 B
Nix
21 lines
479 B
Nix
# This test runs rabbitmq and checks if rabbitmq is up and running.
|
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "rabbitmq";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ eelco offline ];
|
|
};
|
|
|
|
machine = {
|
|
services.rabbitmq.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
|
|
machine.wait_for_unit("rabbitmq.service")
|
|
machine.wait_until_succeeds(
|
|
'su -s ${pkgs.runtimeShell} rabbitmq -c "rabbitmqctl status"'
|
|
)
|
|
'';
|
|
})
|