Merge pull request #80130 from tfc/port-krb5-test
nixosTests.krb5: Port to python
This commit is contained in:
commit
5bb3eaa223
@ -145,6 +145,7 @@ in
|
|||||||
kernel-testing = handleTest ./kernel-testing.nix {};
|
kernel-testing = handleTest ./kernel-testing.nix {};
|
||||||
keymap = handleTest ./keymap.nix {};
|
keymap = handleTest ./keymap.nix {};
|
||||||
knot = handleTest ./knot.nix {};
|
knot = handleTest ./knot.nix {};
|
||||||
|
krb5 = discoverTests (import ./krb5 {});
|
||||||
kubernetes.dns = handleTestOn ["x86_64-linux"] ./kubernetes/dns.nix {};
|
kubernetes.dns = handleTestOn ["x86_64-linux"] ./kubernetes/dns.nix {};
|
||||||
# kubernetes.e2e should eventually replace kubernetes.rbac when it works
|
# kubernetes.e2e should eventually replace kubernetes.rbac when it works
|
||||||
#kubernetes.e2e = handleTestOn ["x86_64-linux"] ./kubernetes/e2e.nix {};
|
#kubernetes.e2e = handleTestOn ["x86_64-linux"] ./kubernetes/e2e.nix {};
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user