From e4316b851e41fb7d380c9bd6a5deb3b9e22af80a Mon Sep 17 00:00:00 2001 From: Entlein Date: Wed, 22 Apr 2026 21:35:49 +0200 Subject: [PATCH] tests(component): rename to Related{Kind,Name,Namespace}MetadataKey MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kubescape/k8s-interface renamed KindMetadataKey → RelatedKindMetadataKey (and Name / Namespace variants) between v0.0.204 and v0.0.206. Our Test_28 (UserDefinedNetworkNeighborhood) and Test_30 (TamperedSigned Profiles) still referenced the old names, so with the v0.0.206 helpers pulled in by upstream go.mod the full component_test.go failed to compile. Unit tests pass with -short because they skip these full- cluster tests. 5 occurrences renamed. No semantic change. Co-Authored-By: Claude Opus 4.7 (1M context) --- tests/component_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/component_test.go b/tests/component_test.go index 1a8e43618..621839f22 100644 --- a/tests/component_test.go +++ b/tests/component_test.go @@ -2211,9 +2211,9 @@ func Test_28_UserDefinedNetworkNeighborhood(t *testing.T) { Labels: map[string]string{ helpersv1.ApiGroupMetadataKey: "apps", helpersv1.ApiVersionMetadataKey: "v1", - helpersv1.KindMetadataKey: "Deployment", - helpersv1.NameMetadataKey: "curl-28", - helpersv1.NamespaceMetadataKey: ns.Name, + helpersv1.RelatedKindMetadataKey: "Deployment", + helpersv1.RelatedNameMetadataKey: "curl-28", + helpersv1.RelatedNamespaceMetadataKey: ns.Name, }, }, Spec: v1beta1.NetworkNeighborhoodSpec{ @@ -2836,8 +2836,8 @@ func Test_30_TamperedSignedProfiles(t *testing.T) { helpersv1.CompletionMetadataKey: helpersv1.Full, }, Labels: map[string]string{ - helpersv1.KindMetadataKey: "Deployment", - helpersv1.NameMetadataKey: "tamper-test", + helpersv1.RelatedKindMetadataKey: "Deployment", + helpersv1.RelatedNameMetadataKey: "tamper-test", }, }, Spec: v1beta1.NetworkNeighborhoodSpec{