Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Tiger Kaovilai <[email protected]>
  • Loading branch information
kaovilai committed Feb 7, 2025
1 parent 000cfd0 commit 99388be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions internal/controller/nonadminbackup_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,9 @@ var _ = ginkgo.Describe("Test single reconciles of NonAdminBackup Reconcile func
resultError: reconcile.TerminalError(fmt.Errorf("NonAdminBackup spec.backupSpec.includedNamespaces can not contain namespaces other than: ")),
}))
})

const testuuid = "test-uuid"

func testStorageLocation(name, namespace, uuid, provider, bucket, prefix string) velerov1.BackupStorageLocation {
return velerov1.BackupStorageLocation{
ObjectMeta: metav1.ObjectMeta{
Expand Down Expand Up @@ -1083,7 +1085,7 @@ var _ = ginkgo.Describe("Test full reconcile loop of NonAdminBackup Controller",
// so create one
nonAdminBackupStorageLocation := &nacv1alpha1.NonAdminBackupStorageLocation{
ObjectMeta: metav1.ObjectMeta{
Name: nonAdminBackup.Spec.BackupSpec.StorageLocation,
Name: nonAdminBackup.Spec.BackupSpec.StorageLocation,
Namespace: nonAdminBackup.Namespace,
},
Spec: nacv1alpha1.NonAdminBackupStorageLocationSpec{
Expand All @@ -1095,7 +1097,7 @@ var _ = ginkgo.Describe("Test full reconcile loop of NonAdminBackup Controller",
nonAdminBackupStorageLocation.Status = nacv1alpha1.NonAdminBackupStorageLocationStatus{
VeleroBackupStorageLocation: &nacv1alpha1.VeleroBackupStorageLocation{
NACUUID: testuuid,
Name: testBSL.Name,
Name: testBSL.Name,
},
}
gomega.Expect(k8sClient.Status().Update(ctxTimeout, nonAdminBackupStorageLocation)).To(gomega.Succeed())
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/nonadminrestore_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ var _ = ginkgo.Describe("Test full reconcile loop of NonAdminRestore Controller"
CompletionTimestamp: &metav1.Time{Time: time.Now()},
},
}
err := k8sClient.Create(context.Background(), &veleroBackup)
err = k8sClient.Create(context.Background(), &veleroBackup)
gomega.Expect(err).ToNot(gomega.HaveOccurred())
}

Expand Down

0 comments on commit 99388be

Please sign in to comment.