Browse Source

e2e: add json test case to providers and vault

Mateus Oliveira Patrício 4 years ago
parent
commit
e38481b748

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

@@ -44,5 +44,6 @@ var _ = Describe("[alibaba] ", func() {
 		Entry(common.SSHKeySync(f)),
 		Entry(common.SSHKeySyncDataProperty(f)),
 		Entry(common.SyncWithoutTargetName(f)),
+		Entry(common.JSONDataWithoutTargetName(f)),
 	)
 })

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

@@ -127,5 +127,6 @@ var _ = Describe("[aws] ", func() {
 		Entry(common.SSHKeySync(f)),
 		Entry(common.SSHKeySyncDataProperty(f)),
 		Entry(common.SyncWithoutTargetName(f)),
+		Entry(common.JSONDataWithoutTargetName(f)),
 	)
 })

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

@@ -43,5 +43,6 @@ var _ = Describe("[azure] ", func() {
 		Entry(common.SSHKeySync(f)),
 		Entry(common.SSHKeySyncDataProperty(f)),
 		Entry(common.SyncWithoutTargetName(f)),
+		Entry(common.JSONDataWithoutTargetName(f)),
 	)
 })

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

@@ -151,6 +151,7 @@ x6HaRh+EUwU51von6M9lEF9/p5Q=
 		Entry(common.SSHKeySync(f)),
 		Entry(common.SSHKeySyncDataProperty(f)),
 		Entry(common.SyncWithoutTargetName(f)),
+		Entry(common.JSONDataWithoutTargetName(f)),
 		Entry("should sync p12 encoded cert secret", p12Cert),
 	)
 })

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

@@ -42,5 +42,6 @@ var _ = Describe("[gitlab] ", func() {
 		Entry(common.NestedJSONWithGJSON(f)),
 		Entry(common.JSONDataWithTemplate(f)),
 		Entry(common.SyncWithoutTargetName(f)),
+		Entry(common.JSONDataWithoutTargetName(f)),
 	)
 })

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

@@ -44,5 +44,6 @@ var _ = Describe("[oracle] ", func() {
 		Entry(common.SSHKeySync(f)),
 		Entry(common.SSHKeySyncDataProperty(f)),
 		Entry(common.SyncWithoutTargetName(f)),
+		Entry(common.JSONDataWithoutTargetName(f)),
 	)
 })

+ 6 - 6
e2e/suite/vault/vault.go

@@ -34,37 +34,37 @@ var _ = Describe("[vault] ", func() {
 		compose("with token auth", f, common.JSONDataWithProperty, useTokenAuth),
 		compose("with token auth", f, common.JSONDataWithTemplate, useTokenAuth),
 		compose("with token auth", f, common.DataPropertyDockerconfigJSON, useTokenAuth),
-		compose("with token auth", f, common.SyncWithoutTargetName, useTokenAuth),
+		compose("with token auth", f, common.JSONDataWithoutTargetName, useTokenAuth),
 		// use cert auth
 		compose("with cert auth", f, common.JSONDataFromSync, useCertAuth),
 		compose("with cert auth", f, common.JSONDataWithProperty, useCertAuth),
 		compose("with cert auth", f, common.JSONDataWithTemplate, useCertAuth),
 		compose("with cert auth", f, common.DataPropertyDockerconfigJSON, useCertAuth),
-		compose("with cert auth", f, common.SyncWithoutTargetName, useTokenAuth),
+		compose("with cert auth", f, common.JSONDataWithoutTargetName, useTokenAuth),
 		// use approle auth
 		compose("with appRole auth", f, common.JSONDataFromSync, useApproleAuth),
 		compose("with appRole auth", f, common.JSONDataWithProperty, useApproleAuth),
 		compose("with appRole auth", f, common.JSONDataWithTemplate, useApproleAuth),
 		compose("with appRole auth", f, common.DataPropertyDockerconfigJSON, useApproleAuth),
-		compose("with appRole auth", f, common.SyncWithoutTargetName, useTokenAuth),
+		compose("with appRole auth", f, common.JSONDataWithoutTargetName, useTokenAuth),
 		// use v1 provider
 		compose("with v1 kv provider", f, common.JSONDataFromSync, useV1Provider),
 		compose("with v1 kv provider", f, common.JSONDataWithProperty, useV1Provider),
 		compose("with v1 kv provider", f, common.JSONDataWithTemplate, useV1Provider),
 		compose("with v1 kv provider", f, common.DataPropertyDockerconfigJSON, useV1Provider),
-		compose("with v1 kv provider", f, common.SyncWithoutTargetName, useTokenAuth),
+		compose("with v1 kv provider", f, common.JSONDataWithoutTargetName, useTokenAuth),
 		// use jwt provider
 		compose("with jwt provider", f, common.JSONDataFromSync, useJWTProvider),
 		compose("with jwt provider", f, common.JSONDataWithProperty, useJWTProvider),
 		compose("with jwt provider", f, common.JSONDataWithTemplate, useJWTProvider),
 		compose("with jwt provider", f, common.DataPropertyDockerconfigJSON, useJWTProvider),
-		compose("with jwt provider", f, common.SyncWithoutTargetName, useTokenAuth),
+		compose("with jwt provider", f, common.JSONDataWithoutTargetName, useTokenAuth),
 		// use kubernetes provider
 		compose("with kubernetes provider", f, common.JSONDataFromSync, useKubernetesProvider),
 		compose("with kubernetes provider", f, common.JSONDataWithProperty, useKubernetesProvider),
 		compose("with kubernetes provider", f, common.JSONDataWithTemplate, useKubernetesProvider),
 		compose("with kubernetes provider", f, common.DataPropertyDockerconfigJSON, useKubernetesProvider),
-		compose("with kubernetes provider", f, common.SyncWithoutTargetName, useTokenAuth),
+		compose("with kubernetes provider", f, common.JSONDataWithoutTargetName, useTokenAuth),
 	)
 })