nixos/tests/kanidm: update for 1.4.0

This commit is contained in:
Martin Weinelt 2024-11-01 04:28:46 +01:00
parent ff1111666f
commit 93083489ba
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -97,7 +97,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
with subtest("Test unixd connection"): with subtest("Test unixd connection"):
client.wait_for_unit("kanidm-unixd.service") client.wait_for_unit("kanidm-unixd.service")
client.wait_for_file("/run/kanidm-unixd/sock") client.wait_for_file("/run/kanidm-unixd/sock")
client.wait_until_succeeds("kanidm-unix status | grep working!") client.wait_until_succeeds("kanidm-unix status | grep online")
with subtest("Test user creation"): with subtest("Test user creation"):
client.wait_for_unit("getty@tty1.service") client.wait_for_unit("getty@tty1.service")
@ -107,7 +107,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
client.send_chars("kanidm person posix set-password testuser\n") client.send_chars("kanidm person posix set-password testuser\n")
client.wait_until_tty_matches("1", "Enter new") client.wait_until_tty_matches("1", "Enter new")
client.send_chars("${testCredentials.password}\n") client.send_chars("${testCredentials.password}\n")
client.wait_until_tty_matches("1", "Retype") client.wait_until_tty_matches("1", "Reenter")
client.send_chars("${testCredentials.password}\n") client.send_chars("${testCredentials.password}\n")
output = client.succeed("getent passwd testuser") output = client.succeed("getent passwd testuser")
assert "TestUser" in output assert "TestUser" in output