fix: fix an issue with testing

This commit is contained in:
Morten Olsen
2025-12-12 12:23:37 +01:00
parent d2288aa527
commit 49b51514df

View File

@@ -51,7 +51,16 @@ var _ = Describe("NucleiScan Controller", func() {
Name: resourceName, Name: resourceName,
Namespace: "default", 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()) Expect(k8sClient.Create(ctx, resource)).To(Succeed())
} }