Skip to content

Commit d7620a4

Browse files
committed
fixed the issue with my first unit test
Signed-off-by: Mark DeNeve <3779715+xphyr@users.noreply.github.com>
1 parent 32285f2 commit d7620a4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pkg/controller/import-controller_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,12 @@ var _ = Describe("ImportConfig Controller reconcile loop", func() {
477477
})
478478

479479
It("Should set the InsecureTLS environment variable to true if the AnnInsecureSkipVerify annotation is set to true", func() {
480-
pvc := cc.CreatePvc("testPvc1", "default", map[string]string{cc.AnnEndpoint: testEndPoint, cc.AnnImportPod: "importer-testPvc1", cc.AnnInsecureSkipVerify: "true"}, nil)
480+
pvc := cc.CreatePvc("testPvc1", "default", map[string]string{
481+
cc.AnnEndpoint: testEndPoint,
482+
cc.AnnImportPod: "importer-testPvc1",
483+
cc.AnnInsecureSkipVerify: "true",
484+
cc.AnnSource: cc.SourceHTTP,
485+
}, nil)
481486
pvc.Status.Phase = v1.ClaimBound
482487
reconciler = createImportReconciler(pvc)
483488
_, err := reconciler.Reconcile(context.TODO(), reconcile.Request{NamespacedName: types.NamespacedName{Name: "testPvc1", Namespace: "default"}})

0 commit comments

Comments
 (0)