about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorJanik <80165193+Janik-Haag@users.noreply.github.com>2023-12-02 23:34:51 +0100
committerGitHub <noreply@github.com>2023-12-02 23:34:51 +0100
commitc3ac6b916c927c049e0ad014f9aee95f73f0c92c (patch)
treed9ad39a8b4a48a86bd057e7a4030ca3450245454 /nixos/tests
parent1e6914815f447950bb326752cd51d3b418e0745f (diff)
parentc0b2326892f6f2468522b2062745e8d1cd1fae09 (diff)
downloadnixlib-c3ac6b916c927c049e0ad014f9aee95f73f0c92c.tar
nixlib-c3ac6b916c927c049e0ad014f9aee95f73f0c92c.tar.gz
nixlib-c3ac6b916c927c049e0ad014f9aee95f73f0c92c.tar.bz2
nixlib-c3ac6b916c927c049e0ad014f9aee95f73f0c92c.tar.lz
nixlib-c3ac6b916c927c049e0ad014f9aee95f73f0c92c.tar.xz
nixlib-c3ac6b916c927c049e0ad014f9aee95f73f0c92c.tar.zst
nixlib-c3ac6b916c927c049e0ad014f9aee95f73f0c92c.zip
Merge pull request #271441 from NetaliDev/mysql-auth-fix
Diffstat (limited to 'nixos/tests')
-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 0ed4b050a69a..77a69eb1cd58 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"):