From 03887c9bd32cbed4c359d754b3ad3a99ab5d38b0 Mon Sep 17 00:00:00 2001 From: pashakostohrys Date: Mon, 4 Dec 2023 01:24:43 +0200 Subject: [PATCH] feat: release-2.9 fix tests v3 --- controller/appcontroller_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/appcontroller_test.go b/controller/appcontroller_test.go index d96df4d45b583..adc4a26b8fd1e 100644 --- a/controller/appcontroller_test.go +++ b/controller/appcontroller_test.go @@ -885,6 +885,9 @@ func TestGetResourceTree_HasOrphanedResources(t *testing.T) { managedDeploy := v1alpha1.ResourceNode{ ResourceRef: v1alpha1.ResourceRef{Group: "apps", Kind: "Deployment", Namespace: "default", Name: "nginx-deployment", Version: "v1"}, + Labels: map[string]string{ + "app": "nginx", + }, } orphanedDeploy1 := v1alpha1.ResourceNode{ ResourceRef: v1alpha1.ResourceRef{Group: "apps", Kind: "Deployment", Namespace: "default", Name: "deploy1"},