Skip to content

Commit 766e902

Browse files
committed
Fix global test
1 parent a5c5ed1 commit 766e902

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

test/_global/Aptfile.dev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
libpq-dev

test/_global/all_features.sh renamed to test/_global/apt_with_postgresql_client.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ source dev-container-features-test-lib
1818

1919
# Feature-specific tests
2020
# The 'check' command comes from the dev-container-features-test-lib.
21-
check "ffmpeg is installed" bash -c "ffmpeg -version | grep 'ffmpeg version'"
21+
# Check if libpq-dev is installed
22+
check "libpq-dev installed" bash -c "dpkg -l | grep libpq-dev"
23+
24+
check "PostgreSQL client installed" bash -c "psql --version | grep PostgreSQL"
2225

2326
# Report result
2427
# If any of the checks above exited with a non-zero exit code, the test will fail.

test/_global/scenarios.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
2-
"all_features": {
2+
"apt_with_postgresql_client": {
33
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
44
"features": {
55
"apt": {
66
"version": "1",
77
"devFile": "Aptfile.dev"
8+
},
9+
"ghcr.io/rails/devcontainer/features/postgres-client": {
10+
"version": "14"
811
}
912
}
1013
}

0 commit comments

Comments
 (0)