Skip to content

Commit

Permalink
integration: make PGVERSION a pattern
Browse files Browse the repository at this point in the history
This change makes it so that specifying a pattern like `latest` or `15`
looks at the bill of materials for the embedded PostgreSQL binaries and
fetches a matching version. Previously, this environment variable needed
to be a full `<major>.<minor>.<patch>` version. That's still allowed if
a specific version is needed.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Nov 17, 2023
1 parent b15bdcb commit 0d4fb6e
Show file tree
Hide file tree
Showing 14 changed files with 455 additions and 256 deletions.
5 changes: 2 additions & 3 deletions test/integration/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,11 @@ func NeedDB(t testing.TB) {
if testing.Short() {
t.Skip(`skipping integration test: short tests`)
}
if (!inCI && skip) && binUncached(t) {
t.Skip("skipping integration test: would need to fetch binaries")
}
if inGHA {
up.Do(startGithubActions(t))
return
}
embedDB.DiscoverVersion(t)
up.Do(startEmbedded(t))
}

Expand Down
43 changes: 0 additions & 43 deletions test/integration/db_init.go

This file was deleted.

11 changes: 0 additions & 11 deletions test/integration/db_versions.go

This file was deleted.

Loading

0 comments on commit 0d4fb6e

Please sign in to comment.