nixosTests.krb5: Port to python

This commit is contained in:
Jacek Galowicz 2020-02-14 09:56:32 +01:00
parent c5b6c6958f
commit 0c0a338d20
2 changed files with 8 additions and 4 deletions

View File

@ -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}"
)
'';
})

View File

@ -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}"
)
'';
})