diff options
author | Adam Stephens <adam@valkor.net> | 2024-05-01 08:51:11 -0400 |
---|---|---|
committer | Adam Stephens <adam@valkor.net> | 2024-05-01 09:47:06 -0400 |
commit | 87ce2c95ae2add5bb507626cb63f41429ea9e1f5 (patch) | |
tree | 13e924dd09f6bdd57febc894eef122b81da4ce75 /nixos/tests/kanidm.nix | |
parent | 9e0290f49acb2b91b0c7509a837cd4f4d4a21963 (diff) |
kanidm: 1.1.0-rc.16 -> 1.2.0
https://github.com/kanidm/kanidm/releases/tag/v1.2.0 Added updatescript, and removed Cargo.lock as no more git deps. New release process documented here: https://github.com/kanidm/kanidm/blob/a67d1f51607d92338dd17f62c2b29cabeed18953/book/src/support.md Re-ordered test and removed anonymous login as logout no longer works: [info]: Ignoring request to logout session - these sessions are not recorded
Diffstat (limited to 'nixos/tests/kanidm.nix')
-rw-r--r-- | nixos/tests/kanidm.nix | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/nixos/tests/kanidm.nix b/nixos/tests/kanidm.nix index fa24d4a8a5e13..8ed9af63f1d41 100644 --- a/nixos/tests/kanidm.nix +++ b/nixos/tests/kanidm.nix @@ -76,14 +76,17 @@ import ./make-test-python.nix ({ pkgs, ... }: with subtest("Test LDAP interface"): server.succeed("ldapsearch -H ldaps://${serverDomain}:636 -b '${ldapBaseDN}' -x '(name=test)'") - with subtest("Test CLI login"): - client.succeed("kanidm login -D anonymous") - client.succeed("kanidm self whoami | grep anonymous@${serverDomain}") - client.succeed("kanidm logout") - with subtest("Recover idm_admin account"): idm_admin_password = server.succeed("su - kanidm -c 'kanidmd recover-account -c ${serverConfigFile} idm_admin 2>&1 | rg -o \'[A-Za-z0-9]{48}\' '").strip().removeprefix("'").removesuffix("'") + with subtest("Test CLI login"): + client.wait_until_tty_matches("1", "login: ") + client.send_chars("root\n") + client.send_chars("kanidm login -D idm_admin\n") + client.wait_until_tty_matches("1", "Enter password: ") + client.send_chars(f"{idm_admin_password}\n") + client.wait_until_tty_matches("1", "Login Success for idm_admin") + with subtest("Test unixd connection"): client.wait_for_unit("kanidm-unixd.service") client.wait_for_file("/run/kanidm-unixd/sock") @@ -92,12 +95,6 @@ import ./make-test-python.nix ({ pkgs, ... }: with subtest("Test user creation"): client.wait_for_unit("getty@tty1.service") client.wait_until_succeeds("pgrep -f 'agetty.*tty1'") - client.wait_until_tty_matches("1", "login: ") - client.send_chars("root\n") - client.send_chars("kanidm login -D idm_admin\n") - client.wait_until_tty_matches("1", "Enter password: ") - client.send_chars(f"{idm_admin_password}\n") - client.wait_until_tty_matches("1", "Login Success for idm_admin") client.succeed("kanidm person create testuser TestUser") client.succeed("kanidm person posix set --shell \"$SHELL\" testuser") client.send_chars("kanidm person posix set-password testuser\n") |