nixos/tests/kanidm: Update recover_account commandline

The username is now passed directly as an argument.
This commit is contained in:
Martin Weinelt 2022-09-05 14:56:23 +02:00 committed by Kerstin
parent b6f5b81920
commit 9ac9449a0a

View File

@ -69,7 +69,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
server.wait_until_succeeds("curl -sf https://${serverDomain} | grep Kanidm")
server.wait_until_succeeds("ldapsearch -H ldap://[::1]:636 -b '${ldapBaseDN}' -x '(name=test)'")
client.wait_until_succeeds("kanidm login -D anonymous && kanidm self whoami | grep anonymous@${serverDomain}")
(rv, result) = server.execute("kanidmd recover_account -d quiet -c ${serverConfigFile} -n admin 2>&1 | rg -o '[A-Za-z0-9]{48}'")
rv, result = server.execute("kanidmd recover_account -c ${serverConfigFile} idm_admin 2>&1 | rg -o '[A-Za-z0-9]{48}'")
assert rv == 0
'';
})