nixosTests.hadoop.yarn: Port tests to python

This commit is contained in:
Christian Kampka 2019-12-16 21:45:46 +01:00
parent 563eea492b
commit 5cb7b2cf60
No known key found for this signature in database
GPG Key ID: B88E140DB4FE1AA5
1 changed files with 12 additions and 12 deletions

View File

@ -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")
''; '';
}) })