lol

nixos/tests/hadoop/hdfs.nix: get rid of `with lib`

+3 -4
+3 -4
nixos/tests/hadoop/hdfs.nix
··· 1 1 # Test a minimal HDFS cluster with no HA 2 2 import ../make-test-python.nix ({ package, lib, ... }: 3 - with lib; 4 3 { 5 4 name = "hadoop-hdfs"; 6 5 ··· 22 21 }; 23 22 httpfs = { 24 23 # The NixOS hadoop module only support webHDFS on 3.3 and newer 25 - enable = mkIf (versionAtLeast package.version "3.3") true; 24 + enable = lib.mkIf (lib.versionAtLeast package.version "3.3") true; 26 25 openFirewall = true; 27 26 }; 28 27 }; ··· 57 56 58 57 datanode.wait_for_unit("hdfs-datanode") 59 58 datanode.wait_for_unit("network.target") 60 - '' + ( if versionAtLeast package.version "3" then '' 59 + '' + (if lib.versionAtLeast package.version "3" then '' 61 60 datanode.wait_for_open_port(9864) 62 61 datanode.wait_for_open_port(9866) 63 62 datanode.wait_for_open_port(9867) ··· 76 75 datanode.succeed("echo testfilecontents | sudo -u hdfs hdfs dfs -put - /testfile") 77 76 assert "testfilecontents" in datanode.succeed("sudo -u hdfs hdfs dfs -cat /testfile") 78 77 79 - '' + optionalString ( versionAtLeast package.version "3.3" ) '' 78 + '' + lib.optionalString (lib.versionAtLeast package.version "3.3" ) '' 80 79 namenode.wait_for_unit("hdfs-httpfs") 81 80 namenode.wait_for_open_port(14000) 82 81 assert "testfilecontents" in datanode.succeed("curl -f \"http://namenode:14000/webhdfs/v1/testfile?user.name=hdfs&op=OPEN\" 2>&1")