Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Ramachandra Sekar <[email protected]>
  • Loading branch information
varunrsekar authored and shivamerla committed Jan 28, 2025
1 parent 3445276 commit f1be6b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/controller/nemo_entitystore_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ var _ = Describe("NemoEntitystore Controller", func() {
Expect(statusErr.ErrStatus.Details.Causes).To(ContainElement(invalidDatabasePortCause))
})

It("should reject the resource if databaseConfig credentails is missing required fields", func() {
It("should reject the resource if databaseConfig credentials is missing required fields", func() {
resource := &appsv1alpha1.NemoEntitystore{
ObjectMeta: metav1.ObjectMeta{
Name: resourceName,
Expand All @@ -244,7 +244,7 @@ var _ = Describe("NemoEntitystore Controller", func() {
Expect(statusErr.ErrStatus.Details.Causes).To(ContainElements(requiredSecretNameCause, requiredUserCause))
})

It("should reject the resource if databaseConfig credentails is invalid", func() {
It("should reject the resource if databaseConfig credentials is invalid", func() {
resource := &appsv1alpha1.NemoEntitystore{
ObjectMeta: metav1.ObjectMeta{
Name: resourceName,
Expand Down Expand Up @@ -299,6 +299,7 @@ var _ = Describe("NemoEntitystore Controller", func() {
_, err = reconciler.Reconcile(ctx, reconcile.Request{
NamespacedName: typeNamespacedName,
})
Expect(err).ToNot(HaveOccurred())

err = client.Get(ctx, typeNamespacedName, nemoEntityStore)
Expect(err).ToNot(HaveOccurred())
Expand All @@ -318,6 +319,7 @@ var _ = Describe("NemoEntitystore Controller", func() {
_, err = reconciler.Reconcile(ctx, reconcile.Request{
NamespacedName: typeNamespacedName,
})
Expect(err).ToNot(HaveOccurred())

// Nemo Entitystore CR should not exist.
Eventually(func() bool {
Expand Down

0 comments on commit f1be6b0

Please sign in to comment.