From 49b51514dfd4c67f2e0e6b98662de7067d6d0fed Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Fri, 12 Dec 2025 12:23:37 +0100 Subject: [PATCH] fix: fix an issue with testing --- internal/controller/nucleiscan_controller_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/internal/controller/nucleiscan_controller_test.go b/internal/controller/nucleiscan_controller_test.go index a747a8b..d1961de 100644 --- a/internal/controller/nucleiscan_controller_test.go +++ b/internal/controller/nucleiscan_controller_test.go @@ -51,7 +51,16 @@ var _ = Describe("NucleiScan Controller", func() { Name: resourceName, Namespace: "default", }, - // TODO(user): Specify other spec details if needed. + Spec: nucleiv1alpha1.NucleiScanSpec{ + SourceRef: nucleiv1alpha1.SourceReference{ + APIVersion: "networking.k8s.io/v1", + Kind: "Ingress", + Name: "test-ingress", + Namespace: "default", + UID: "test-uid-12345", + }, + Targets: []string{"https://example.com"}, + }, } Expect(k8sClient.Create(ctx, resource)).To(Succeed()) }