about summary refs log tree commit diff
path: root/nixos/tests/auth-mysql.nix
diff options
context:
space:
mode:
authornetali <me@netali.de>2023-12-02 20:18:30 +0100
committernetali <me@netali.de>2023-12-02 20:18:30 +0100
commit22b5fecd98c2af980c787e03ea98ead70f7d5a01 (patch)
treeeb9580604017ac506aefb8122a42ffb31b03a901 /nixos/tests/auth-mysql.nix
parentb1b67e980a9a8e6227d5f71f8b036e17c7716f0d (diff)
nixos/tests/auth-mysql: fix test
Diffstat (limited to 'nixos/tests/auth-mysql.nix')
-rw-r--r--nixos/tests/auth-mysql.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/auth-mysql.nix b/nixos/tests/auth-mysql.nix
index 0ed4b050a69a4..77a69eb1cd581 100644
--- a/nixos/tests/auth-mysql.nix
+++ b/nixos/tests/auth-mysql.nix
@@ -84,7 +84,7 @@ in
           getpwuid = ''
             SELECT name, 'x', uid, gid, name, CONCAT('/home/', name), "/run/current-system/sw/bin/bash" \
             FROM users \
-            WHERE id=%1$u \
+            WHERE uid=%1$u \
             LIMIT 1
           '';
           getspnam = ''
@@ -140,6 +140,7 @@ in
 
     machine.wait_for_unit("multi-user.target")
     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'")
 
     with subtest("Local login"):