Skip to content

Commit

Permalink
[bitnami/postgresql-ha] test: ✅ Temporary change the ginkgo check com…
Browse files Browse the repository at this point in the history
…mand (#29179)

* [bitnami/ginkgo] test: ✅ Temporary change the ginkgo check command

Signed-off-by: Javier J. Salmerón García <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

---------

Signed-off-by: Javier J. Salmerón García <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
  • Loading branch information
javsalgar and bitnami-bot authored Sep 3, 2024
1 parent 0c795af commit f887121
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .vib/postgresql-ha/ginkgo/postgresql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ var _ = Describe("Postgresql", Ordered, func() {
return c.AppsV1().StatefulSets(namespace).Get(ctx, stsName, getOpts)
}, timeout, PollingInterval).Should(WithTransform(getAvailableReplicas, Equal(origReplicas)))

By("creating a job to drop the test database")
// TODO: We're finding issues with pgpool when restarting the cluster. It is not properly updating
// the primary node, causing the test to fail. While we find a solution, we change to perform a
// query compatible with both primary and replica nodes
By("creating a job to show the test database")
deleteDBJobName := fmt.Sprintf("%s-deletedb-%s",
releaseName, jobSuffix)
err = createJob(ctx, c, deleteDBJobName, pgPoolName, port, image, fmt.Sprintf("DROP DATABASE %s WITH (FORCE);", dbName))
err = createJob(ctx, c, deleteDBJobName, pgPoolName, port, image, fmt.Sprintf("\\c %s;", dbName))
Expect(err).NotTo(HaveOccurred())

Eventually(func() (*batchv1.Job, error) {
Expand Down
8 changes: 6 additions & 2 deletions bitnami/postgresql-ha/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 14.2.20 (2024-09-03)
## 14.2.21 (2024-09-03)

* [bitnami/postgresql-ha] test: :white_check_mark: Improve ginkgo test reliability ([#29166](https://github.com/bitnami/charts/pull/29166))
* [bitnami/postgresql-ha] test: :white_check_mark: Temporary change the ginkgo check command ([#29179](https://github.com/bitnami/charts/pull/29179))

## <small>14.2.20 (2024-09-03)</small>

* [bitnami/postgresql-ha] test: :white_check_mark: Improve ginkgo test reliability (#29166) ([7e4276d](https://github.com/bitnami/charts/commit/7e4276d84ff247c178297763cfb31a4dfeaae00d)), closes [#29166](https://github.com/bitnami/charts/issues/29166)

## <small>14.2.19 (2024-08-30)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/postgresql-ha/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ maintainers:
name: postgresql-ha
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql-ha
version: 14.2.20
version: 14.2.21

0 comments on commit f887121

Please sign in to comment.