Browse Source

Docker json template test added to common

KianTigger 4 years ago
parent
commit
fcf1f84cf3
3 changed files with 2 additions and 9 deletions
  1. 1 0
      e2e/suite/aws/secretsmanager.go
  2. 1 0
      e2e/suite/azure/azure.go
  3. 0 9
      e2e/suite/common/common.go

+ 1 - 0
e2e/suite/aws/secretsmanager.go

@@ -121,5 +121,6 @@ var _ = Describe("[aws] ", func() {
 		Entry(common.JSONDataWithProperty(f)),
 		Entry(common.JSONDataWithTemplate(f)),
 		Entry("should sync secrets with jwt auth", jwt),
+		Entry(common.DockerJSONConfig(f)),
 	)
 })

+ 1 - 0
e2e/suite/azure/azure.go

@@ -40,5 +40,6 @@ var _ = Describe("[azure] ", func() {
 		// Entry(common.JSONDataFromSync(f)),
 		Entry(common.JSONDataWithProperty(f)),
 		Entry(common.JSONDataWithTemplate(f)),
+		Entry(common.DockerJSONConfig(f)),
 	)
 })

+ 0 - 9
e2e/suite/common/common.go

@@ -258,18 +258,9 @@ func DockerJSONConfig(f *framework.Framework) (string, func(*framework.TestCase)
 		}
 
 		tc.ExternalSecret.Spec.Target.Template = &esv1alpha1.ExternalSecretTemplate{
-			Metadata: esv1alpha1.ExternalSecretTemplateMetadata{
-				Annotations: map[string]string{
-					"example": "annotation",
-				},
-				Labels: map[string]string{
-					"example": "label",
-				},
-			},
 			Data: map[string]string{
 				".dockerconfigjson": "{{ .mysecret | toString }}",
 			},
 		}
-
 	}
 }