Annotations are no longer copied from the deployment to the secret,
so the test should not assert that the secret has a name annotation.
This commit is contained in:
Joris Coenen
2022-04-12 10:41:11 +02:00
parent 1ddf92c5a0
commit 6326a856ae

View File

@@ -281,7 +281,6 @@ var tests = []testReconcileItem{
Annotations: map[string]string{ Annotations: map[string]string{
op.VersionAnnotation: fmt.Sprint(version), op.VersionAnnotation: fmt.Sprint(version),
op.ItemPathAnnotation: itemPath, op.ItemPathAnnotation: itemPath,
op.NameAnnotation: name,
}, },
}, },
Data: expectedSecretData, Data: expectedSecretData,
@@ -294,7 +293,6 @@ var tests = []testReconcileItem{
Annotations: map[string]string{ Annotations: map[string]string{
op.VersionAnnotation: fmt.Sprint(version), op.VersionAnnotation: fmt.Sprint(version),
op.ItemPathAnnotation: itemPath, op.ItemPathAnnotation: itemPath,
op.NameAnnotation: name,
}, },
Labels: map[string]string(nil), 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 { for _, testData := range tests {
t.Run(testData.testName, func(t *testing.T) { t.Run(testData.testName, func(t *testing.T) {