Skip to content

Commit

Permalink
fix: add cloud provider to unit test config
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabricio committed Mar 3, 2025
1 parent 343eb8f commit 1036292
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/controller/databaseclaim_controller_tagging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ var _ = Describe("Tagging", Ordered, func() {
},
}
mockReconciler.Config.Viper.Set("dbMultiAZEnabled", true)
mockReconciler.Config.Viper.Set("cloud", "aws")
mockReconciler.Setup()

// providing names of non-existing resources below
Expand Down Expand Up @@ -221,6 +222,7 @@ var _ = Describe("Tagging", Ordered, func() {
},
}
mockReconciler.Config.Viper.Set("dbMultiAZEnabled", false)
mockReconciler.Config.Viper.Set("cloud", "aws")
mockReconciler.Setup()

check, err := mockReconciler.Reconciler().ManageOperationalTagging(context.Background(), logger, name, name)
Expand Down Expand Up @@ -278,6 +280,7 @@ var _ = Describe("Tagging", Ordered, func() {
},
}
mockReconciler.Config.Viper.Set("dbMultiAZEnabled", true)
mockReconciler.Config.Viper.Set("cloud", "aws")
mockReconciler.Setup()

check, err := mockReconciler.Reconciler().ManageOperationalTagging(context.Background(), logger, name, name)
Expand Down Expand Up @@ -318,6 +321,7 @@ var _ = Describe("Tagging", Ordered, func() {
},
}
mockReconciler.Config.Viper.Set("dbMultiAZEnabled", true)
mockReconciler.Config.Viper.Set("cloud", "aws")
mockReconciler.Setup()

By("adding tags beforehand to .status.AtProvier.TagList. As in reality, if tags gets successfully added. It will reflect at the said path")
Expand Down

0 comments on commit 1036292

Please sign in to comment.