nixosTests.krb5: Port to python
This commit is contained in:
parent
c5b6c6958f
commit
0c0a338d20
|
@ -1,7 +1,7 @@
|
||||||
# Verifies that the configuration suggested in deprecated example values
|
# Verifies that the configuration suggested in deprecated example values
|
||||||
# will result in the expected output.
|
# will result in the expected output.
|
||||||
|
|
||||||
import ../make-test.nix ({ pkgs, ...} : {
|
import ../make-test-python.nix ({ pkgs, ...} : {
|
||||||
name = "krb5-with-deprecated-config";
|
name = "krb5-with-deprecated-config";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ eqyiel ];
|
maintainers = [ eqyiel ];
|
||||||
|
@ -43,6 +43,8 @@ import ../make-test.nix ({ pkgs, ...} : {
|
||||||
|
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
$machine->succeed("diff /etc/krb5.conf ${snapshot}");
|
machine.succeed(
|
||||||
|
"diff /etc/krb5.conf ${snapshot}"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Verifies that the configuration suggested in (non-deprecated) example values
|
# Verifies that the configuration suggested in (non-deprecated) example values
|
||||||
# will result in the expected output.
|
# will result in the expected output.
|
||||||
|
|
||||||
import ../make-test.nix ({ pkgs, ...} : {
|
import ../make-test-python.nix ({ pkgs, ...} : {
|
||||||
name = "krb5-with-example-config";
|
name = "krb5-with-example-config";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ eqyiel ];
|
maintainers = [ eqyiel ];
|
||||||
|
@ -101,6 +101,8 @@ import ../make-test.nix ({ pkgs, ...} : {
|
||||||
default = SYSLOG:NOTICE
|
default = SYSLOG:NOTICE
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
$machine->succeed("diff /etc/krb5.conf ${snapshot}");
|
machine.succeed(
|
||||||
|
"diff /etc/krb5.conf ${snapshot}"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue