Skip to content

Commit

Permalink
Pteudo 1658 (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrorichardtoledo authored Nov 18, 2024
1 parent 4e01456 commit f0b26bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/databasecontroller_migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,11 @@ var _ = Describe("claim migrate", func() {
Expect(activeDB.ConnectionInfo).NotTo(BeNil())
Expect(activeDB.ConnectionInfo.Uri()).To(Equal(compareDSN))

By(fmt.Sprintf("Verify owner of migrated DB is %s", migratedowner))
By(fmt.Sprintf("Verify owner of migrated DB is %s", migratedowner+"_a"))
row := fakeCli.QueryRowContext(ctxLogger, "select tableowner from pg_tables where tablename = 'users' AND schemaname = 'public';")
var owner string
Expect(row.Scan(&owner)).NotTo(HaveOccurred())
Expect(owner).To(Equal(migratedowner))
Expect(owner).To(Equal(migratedowner + "_a"))

})

Expand Down
1 change: 1 addition & 0 deletions internal/metrics/databaseclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func updateMetrics(ctx context.Context, log logr.Logger, client client.Client) {
metrics.ErrorStateClaims.Reset()
metrics.MigrationStateClaims.Reset()
metrics.ActiveDBState.Reset()
metrics.ExistingSourceClaims.Reset()

for _, dbClaim := range databaseClaims.Items {
metrics.TotalDatabaseClaims.WithLabelValues(dbClaim.Namespace).Inc()
Expand Down

0 comments on commit f0b26bb

Please sign in to comment.