Skip to content

Commit 41cd729

Browse files
committed
test: more debugging
1 parent 337ea34 commit 41cd729

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

testinfra/test_ami_nix.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,13 @@ def is_healthy(ssh) -> bool:
364364
# Then check if the socket directory exists and has correct permissions
365365
h.run("sudo ls -la /run/postgresql"),
366366
# Then try pg_isready
367-
h.run("sudo -u postgres /usr/bin/pg_isready -U postgres")
367+
h.run("sudo -u postgres /usr/bin/pg_isready -U postgres"),
368+
# Check Nix profile setup
369+
h.run("echo 'Check Nix profile setup'"),
370+
h.run("sudo -u postgres ls -la /home/postgres/.nix-profile"),
371+
h.run("sudo -u postgres ls -la /home/postgres/.nix-profile/bin"),
372+
h.run("sudo -u postgres test -x /home/postgres/.nix-profile/bin/switch_pg_cron_version"),
373+
h.run("sudo -u postgres cat /home/postgres/.nix-profile/bin/switch_pg_cron_version")
368374
),
369375
),
370376
(

0 commit comments

Comments
 (0)