Skip to content

Commit 703bbb0

Browse files
committed
test: error on missing CRD
Signed-off-by: Artur Shad Nik <arturshadnik@gmail.com>
1 parent 6f52b69 commit 703bbb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fleetconfig-controller/api/v1alpha1/webhook_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var _ = BeforeSuite(func() {
8383
filepath.Join(root, "charts", "fleetconfig-controller", "crds"),
8484
filepath.Join(root, "config", "crds"),
8585
},
86-
ErrorIfCRDPathMissing: false,
86+
ErrorIfCRDPathMissing: true,
8787
WebhookInstallOptions: envtest.WebhookInstallOptions{
8888
Paths: []string{filepath.Join("..", "..", "config", "webhook")},
8989
},

fleetconfig-controller/internal/webhook/v1beta1/webhook_suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ var _ = BeforeSuite(func() {
9090
filepath.Join(root, "charts", "fleetconfig-controller", "crds"),
9191
filepath.Join(root, "config", "crds"),
9292
},
93-
ErrorIfCRDPathMissing: false,
93+
ErrorIfCRDPathMissing: true,
9494

9595
WebhookInstallOptions: envtest.WebhookInstallOptions{
96-
Paths: []string{filepath.Join("..", "..", "..", "config", "webhook")},
96+
Paths: []string{filepath.Join(root, "config", "webhook")},
9797
},
9898
}
9999

0 commit comments

Comments
 (0)