mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
c47cefd05e
Added attributes to nixos/tests/mesos.nix to verify that mesos-slave attributes work. If the generated attributes are invalid, the daemon should fail to start. Change-Id: I5511245add30aba658b1af22cd7355b0bbf5d15c
30 lines
617 B
Nix
30 lines
617 B
Nix
import ./make-test.nix {
|
|
name = "simple";
|
|
|
|
machine = { config, pkgs, ... }: {
|
|
services.zookeeper.enable = true;
|
|
virtualisation.docker.enable = true;
|
|
services.mesos = {
|
|
slave = {
|
|
enable = true;
|
|
master = "zk://localhost:2181/mesos";
|
|
attributes = {
|
|
tag1 = "foo";
|
|
tag2 = "bar";
|
|
};
|
|
};
|
|
master = {
|
|
enable = true;
|
|
zk = "zk://localhost:2181/mesos";
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
startAll;
|
|
$machine->waitForUnit("mesos-master.service");
|
|
$machine->waitForUnit("mesos-slave.service");
|
|
'';
|
|
}
|