6 default = testsForPackage { sparkPackage = pkgs.spark; };
11 lib.recurseIntoAttrs {
12 sparkCluster = testSparkCluster args;
13 passthru.override = args': testsForPackage (args // args');
16 { sparkPackage, ... }:
17 pkgs.testers.nixosTest ({
25 package = sparkPackage;
28 master = "master:7077";
31 virtualisation.memorySize = 2048;
34 { config, pkgs, ... }:
37 package = sparkPackage;
43 networking.firewall.allowedTCPPorts = [
52 master.wait_for_unit("spark-master.service")
53 worker.wait_for_unit("spark-worker.service")
54 worker.copy_from_host( "${./spark_sample.py}", "/spark_sample.py" )
55 assert "<title>Spark Master at spark://" in worker.succeed("curl -sSfkL http://master:8080/")
56 worker.succeed("spark-submit --version | systemd-cat")
57 worker.succeed("spark-submit --master spark://master:7077 --executor-memory 512m --executor-cores 1 /spark_sample.py")