Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions dagger/maintenance/testingvalues.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
type ExtensionSpec struct {
Ensure string `yaml:"ensure"`
Name string `yaml:"name"`
Version string `yaml:"version"`
}

type DatabaseConfig struct {
Expand Down Expand Up @@ -123,7 +122,6 @@ func generateDatabaseConfig(extensionInfos []*testingExtensionInfo) *DatabaseCon
ExtensionSpec{
Ensure: "present",
Name: info.SQLName,
Version: info.Version,
},
)
}
Expand Down
6 changes: 2 additions & 4 deletions test/check-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ spec:
env:
- name: EXT_SQL_NAME
value: ($values.sql_name)
- name: EXT_VERSION
value: ($values.version)
- name: CREATE_EXTENSION
value: (to_string($values.create_extension))
- name: DB_URI
Expand All @@ -30,5 +28,5 @@ spec:
exit 0
fi
DB_URI=$(echo $DB_URI | sed "s|/\*|/|")
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = '${EXT_SQL_NAME}' AND extversion = '${EXT_VERSION}')" -q)" = "t"
echo "Extension '${EXT_SQL_NAME} v${EXT_VERSION}' is installed!"
test "$(psql "$DB_URI" -tAc "SELECT EXISTS (SELECT FROM pg_catalog.pg_extension WHERE extname = '${EXT_SQL_NAME}')" -q)" = "t"
echo "Extension '${EXT_SQL_NAME}' is installed!"