From 6326a856ae62bf90d46e217c4b1a271752db7913 Mon Sep 17 00:00:00 2001 From: Joris Coenen Date: Tue, 12 Apr 2022 10:41:11 +0200 Subject: [PATCH] Fix test Annotations are no longer copied from the deployment to the secret, so the test should not assert that the secret has a name annotation. --- pkg/controller/deployment/deployment_controller_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/controller/deployment/deployment_controller_test.go b/pkg/controller/deployment/deployment_controller_test.go index bd98231..0597c5f 100644 --- a/pkg/controller/deployment/deployment_controller_test.go +++ b/pkg/controller/deployment/deployment_controller_test.go @@ -281,7 +281,6 @@ var tests = []testReconcileItem{ Annotations: map[string]string{ op.VersionAnnotation: fmt.Sprint(version), op.ItemPathAnnotation: itemPath, - op.NameAnnotation: name, }, }, Data: expectedSecretData, @@ -294,7 +293,6 @@ var tests = []testReconcileItem{ Annotations: map[string]string{ op.VersionAnnotation: fmt.Sprint(version), op.ItemPathAnnotation: itemPath, - op.NameAnnotation: name, }, Labels: map[string]string(nil), }, @@ -385,7 +383,7 @@ var tests = []testReconcileItem{ }, } -func TestReconcileDepoyment(t *testing.T) { +func TestReconcileDeployment(t *testing.T) { for _, testData := range tests { t.Run(testData.testName, func(t *testing.T) {