nixos/tests/auth-mysql: fix test

This commit is contained in:
netali 2023-12-02 20:18:30 +01:00
parent b1b67e980a
commit 22b5fecd98
No known key found for this signature in database
GPG key ID: 9C55E636426B40A9

View file

@ -84,7 +84,7 @@ in
getpwuid = '' getpwuid = ''
SELECT name, 'x', uid, gid, name, CONCAT('/home/', name), "/run/current-system/sw/bin/bash" \ SELECT name, 'x', uid, gid, name, CONCAT('/home/', name), "/run/current-system/sw/bin/bash" \
FROM users \ FROM users \
WHERE id=%1$u \ WHERE uid=%1$u \
LIMIT 1 LIMIT 1
''; '';
getspnam = '' getspnam = ''
@ -140,6 +140,7 @@ in
machine.wait_for_unit("multi-user.target") machine.wait_for_unit("multi-user.target")
machine.wait_for_unit("mysql.service") machine.wait_for_unit("mysql.service")
machine.wait_until_succeeds("cat /etc/security/pam_mysql.conf | grep users.db_passwd")
machine.wait_until_succeeds("pgrep -f 'agetty.*tty1'") machine.wait_until_succeeds("pgrep -f 'agetty.*tty1'")
with subtest("Local login"): with subtest("Local login"):