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 = {
|
nodes = {
|
||||||
resourcemanager = {pkgs, ...}: {
|
resourcemanager = {pkgs, ...}: {
|
||||||
services.hadoop.package = pkgs.hadoop_3_1;
|
services.hadoop.package = pkgs.hadoop_3_1;
|
||||||
|
@ -28,19 +28,19 @@ import ../make-test.nix ({...}: {
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
start_all()
|
||||||
|
|
||||||
$resourcemanager->waitForUnit("yarn-resourcemanager");
|
resourcemanager.wait_for_unit("yarn-resourcemanager")
|
||||||
$resourcemanager->waitForUnit("network.target");
|
resourcemanager.wait_for_unit("network.target")
|
||||||
$resourcemanager->waitForOpenPort(8031);
|
resourcemanager.wait_for_open_port(8031)
|
||||||
$resourcemanager->waitForOpenPort(8088);
|
resourcemanager.wait_for_open_port(8088)
|
||||||
|
|
||||||
$nodemanager->waitForUnit("yarn-nodemanager");
|
nodemanager.wait_for_unit("yarn-nodemanager")
|
||||||
$nodemanager->waitForUnit("network.target");
|
nodemanager.wait_for_unit("network.target")
|
||||||
$nodemanager->waitForOpenPort(8042);
|
nodemanager.wait_for_open_port(8042)
|
||||||
$nodemanager->waitForOpenPort(8041);
|
nodemanager.wait_for_open_port(8041)
|
||||||
|
|
||||||
$resourcemanager->succeed("curl http://localhost:8088");
|
resourcemanager.succeed("curl http://localhost:8088")
|
||||||
$nodemanager->succeed("curl http://localhost:8042");
|
nodemanager.succeed("curl http://localhost:8042")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue