forked from mirrors/nixpkgs
nixosTests.hadoop.yarn: Port tests to python
This commit is contained in:
parent
563eea492b
commit
5cb7b2cf60
|
@ -1,4 +1,4 @@
|
|||
import ../make-test.nix ({...}: {
|
||||
import ../make-test-python.nix ({...}: {
|
||||
nodes = {
|
||||
resourcemanager = {pkgs, ...}: {
|
||||
services.hadoop.package = pkgs.hadoop_3_1;
|
||||
|
@ -28,19 +28,19 @@ import ../make-test.nix ({...}: {
|
|||
};
|
||||
|
||||
testScript = ''
|
||||
startAll;
|
||||
start_all()
|
||||
|
||||
$resourcemanager->waitForUnit("yarn-resourcemanager");
|
||||
$resourcemanager->waitForUnit("network.target");
|
||||
$resourcemanager->waitForOpenPort(8031);
|
||||
$resourcemanager->waitForOpenPort(8088);
|
||||
resourcemanager.wait_for_unit("yarn-resourcemanager")
|
||||
resourcemanager.wait_for_unit("network.target")
|
||||
resourcemanager.wait_for_open_port(8031)
|
||||
resourcemanager.wait_for_open_port(8088)
|
||||
|
||||
$nodemanager->waitForUnit("yarn-nodemanager");
|
||||
$nodemanager->waitForUnit("network.target");
|
||||
$nodemanager->waitForOpenPort(8042);
|
||||
$nodemanager->waitForOpenPort(8041);
|
||||
nodemanager.wait_for_unit("yarn-nodemanager")
|
||||
nodemanager.wait_for_unit("network.target")
|
||||
nodemanager.wait_for_open_port(8042)
|
||||
nodemanager.wait_for_open_port(8041)
|
||||
|
||||
$resourcemanager->succeed("curl http://localhost:8088");
|
||||
$nodemanager->succeed("curl http://localhost:8042");
|
||||
resourcemanager.succeed("curl http://localhost:8088")
|
||||
nodemanager.succeed("curl http://localhost:8042")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue