Merge pull request #74123 from filalex77/nixosTests.rabbitmq-python

nixosTests.rabbitmq: port to python
This commit is contained in:
Maximilian Bosch 2019-11-26 19:37:29 +01:00 committed by GitHub
commit bf39cf8518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,21 +1,21 @@
# This test runs rabbitmq and checks if rabbitmq is up and running. # This test runs rabbitmq and checks if rabbitmq is up and running.
import ./make-test.nix ({ pkgs, ... }: { import ./make-test-python.nix ({ pkgs, ... }: {
name = "rabbitmq"; name = "rabbitmq";
meta = with pkgs.stdenv.lib.maintainers; { meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ eelco offline ]; maintainers = [ eelco offline ];
}; };
nodes = { machine = {
one = { ... }: { services.rabbitmq.enable = true;
services.rabbitmq.enable = true;
};
}; };
testScript = '' testScript = ''
startAll; machine.start()
$one->waitForUnit("rabbitmq.service"); machine.wait_for_unit("rabbitmq.service")
$one->waitUntilSucceeds("su -s ${pkgs.stdenv.shell} rabbitmq -c \"rabbitmqctl status\""); machine.wait_until_succeeds(
'su -s ${pkgs.stdenv.shell} rabbitmq -c "rabbitmqctl status"'
)
''; '';
}) })