import ../make-test-python.nix ({...}: { name = "spark"; nodes = { worker = { nodes, pkgs, ... }: { services.spark.worker = { enable = true; master = "master:7077"; }; }; master = { config, pkgs, ... }: { services.spark.master = { enable = true; bind = "0.0.0.0"; }; networking.firewall.allowedTCPPorts = [ 22 7077 8080 ]; }; }; testScript = '' master.wait_for_unit("spark-master.service") worker.wait_for_unit("spark-worker.service") worker.copy_from_host( "${./spark_sample.py}", "/spark_sample.py" ) assert "