diff options
author | Christian Kampka <christian@kampka.net> | 2019-12-16 21:45:46 +0100 |
---|---|---|
committer | Christian Kampka <christian@kampka.net> | 2019-12-17 09:37:06 +0100 |
commit | 5cb7b2cf60a674658ae4c8225bf1d0c11b7bdc2a (patch) | |
tree | 4d66acb2abce43da15d56e52146704bf6bfa4b5e /nixos/tests/hadoop | |
parent | 563eea492b18743810cae04f766172e8ecf86bc8 (diff) |
nixosTests.hadoop.yarn: Port tests to python
Diffstat (limited to 'nixos/tests/hadoop')
-rw-r--r-- | nixos/tests/hadoop/yarn.nix | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/nixos/tests/hadoop/yarn.nix b/nixos/tests/hadoop/yarn.nix index 031592301f17..2264ecaff155 100644 --- a/nixos/tests/hadoop/yarn.nix +++ b/nixos/tests/hadoop/yarn.nix @@ -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") ''; }) |