Skip to content

Commit 78ce3e8

Browse files
committed
tests: don't skip webhooks in our tests
We were skipping the deny-immutable-field-updates webhook, which meant that any problems here are harder to detect.
1 parent c41bc40 commit 78ce3e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config/tests/samples/create/harness.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ import (
6969
"github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test"
7070
testenvironment "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test/environment"
7171
testgcp "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test/gcp"
72-
testwebhook "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test/webhook"
7372
cnrmwebhook "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/webhook"
7473
)
7574

@@ -199,7 +198,7 @@ func NewHarness(ctx context.Context, t *testing.T, opts ...HarnessOption) *Harne
199198
h.KubeTarget = os.Getenv("E2E_KUBE_TARGET")
200199
}
201200
if h.KubeTarget == "envtest" {
202-
whCfgs, err := testwebhook.GetTestCommonWebhookConfigs()
201+
whCfgs, err := cnrmwebhook.GetCommonWebhookConfigs()
203202
if err != nil {
204203
h.Fatalf("error getting common wehbook configs: %v", err)
205204
}

0 commit comments

Comments
 (0)