about summary refs log tree commit diff
path: root/nixos/tests/krb5
diff options
context:
space:
mode:
authorJacek Galowicz <jacek.galowicz@cyberus-technology.de>2020-02-14 09:56:32 +0100
committerJacek Galowicz <jacek.galowicz@cyberus-technology.de>2020-02-14 09:56:32 +0100
commit0c0a338d20ab628706fd645caa0257161e239c4e (patch)
tree9fdbc1dfeba472f14a060f6c5dfa8cbacb337305 /nixos/tests/krb5
parentc5b6c6958fa2cdabe9dad3f33f51a02b6496645c (diff)
downloadnixlib-0c0a338d20ab628706fd645caa0257161e239c4e.tar
nixlib-0c0a338d20ab628706fd645caa0257161e239c4e.tar.gz
nixlib-0c0a338d20ab628706fd645caa0257161e239c4e.tar.bz2
nixlib-0c0a338d20ab628706fd645caa0257161e239c4e.tar.lz
nixlib-0c0a338d20ab628706fd645caa0257161e239c4e.tar.xz
nixlib-0c0a338d20ab628706fd645caa0257161e239c4e.tar.zst
nixlib-0c0a338d20ab628706fd645caa0257161e239c4e.zip
nixosTests.krb5: Port to python
Diffstat (limited to 'nixos/tests/krb5')
-rw-r--r--nixos/tests/krb5/deprecated-config.nix6
-rw-r--r--nixos/tests/krb5/example-config.nix6
2 files changed, 8 insertions, 4 deletions
diff --git a/nixos/tests/krb5/deprecated-config.nix b/nixos/tests/krb5/deprecated-config.nix
index 7d7926309c95..be6ebce9e051 100644
--- a/nixos/tests/krb5/deprecated-config.nix
+++ b/nixos/tests/krb5/deprecated-config.nix
@@ -1,7 +1,7 @@
 # Verifies that the configuration suggested in deprecated example values
 # will result in the expected output.
 
-import ../make-test.nix ({ pkgs, ...} : {
+import ../make-test-python.nix ({ pkgs, ...} : {
   name = "krb5-with-deprecated-config";
   meta = with pkgs.stdenv.lib.maintainers; {
     maintainers = [ eqyiel ];
@@ -43,6 +43,8 @@ import ../make-test.nix ({ pkgs, ...} : {
 
     '';
   in ''
-    $machine->succeed("diff /etc/krb5.conf ${snapshot}");
+    machine.succeed(
+        "diff /etc/krb5.conf ${snapshot}"
+    )
   '';
 })
diff --git a/nixos/tests/krb5/example-config.nix b/nixos/tests/krb5/example-config.nix
index f01cf6988eef..be195b513935 100644
--- a/nixos/tests/krb5/example-config.nix
+++ b/nixos/tests/krb5/example-config.nix
@@ -1,7 +1,7 @@
 # Verifies that the configuration suggested in (non-deprecated) example values
 # will result in the expected output.
 
-import ../make-test.nix ({ pkgs, ...} : {
+import ../make-test-python.nix ({ pkgs, ...} : {
   name = "krb5-with-example-config";
   meta = with pkgs.stdenv.lib.maintainers; {
     maintainers = [ eqyiel ];
@@ -101,6 +101,8 @@ import ../make-test.nix ({ pkgs, ...} : {
         default      = SYSLOG:NOTICE
     '';
   in ''
-    $machine->succeed("diff /etc/krb5.conf ${snapshot}");
+    machine.succeed(
+        "diff /etc/krb5.conf ${snapshot}"
+    )
   '';
 })