at 21.11-pre 479 B view raw
1# This test runs rabbitmq and checks if rabbitmq is up and running. 2 3import ./make-test-python.nix ({ pkgs, ... }: { 4 name = "rabbitmq"; 5 meta = with pkgs.lib.maintainers; { 6 maintainers = [ eelco offline ]; 7 }; 8 9 machine = { 10 services.rabbitmq.enable = true; 11 }; 12 13 testScript = '' 14 machine.start() 15 16 machine.wait_for_unit("rabbitmq.service") 17 machine.wait_until_succeeds( 18 'su -s ${pkgs.runtimeShell} rabbitmq -c "rabbitmqctl status"' 19 ) 20 ''; 21})