Skip to content

Commit

Permalink
adding secret logic test
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Reddy <vivekrsplunk@github.com>
  • Loading branch information
Vivek Reddy committed Oct 12, 2024
1 parent 9383d30 commit 5fe1e34
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/secret/manager_secret_c3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ var _ = Describe("Secret Test for SVA C3", func() {
Expect(err).To(Succeed(), "Unable to download license file from Azure")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
case "gcp":
licenseFilePath, err := testenv.DownloadLicenseFromGCPBucket()
Expect(err).To(Succeed(), "Unable to download license file from S3")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
default:
fmt.Printf("Unable to download license file")
testcaseEnvInst.Log.Info(fmt.Sprintf("Unable to download license file with Cluster Provider set as %v", testenv.ClusterProvider))
Expand Down
5 changes: 5 additions & 0 deletions test/secret/manager_secret_m4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ var _ = Describe("Secret Test for M4 SVA", func() {
Expect(err).To(Succeed(), "Unable to download license file from Azure")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
case "gcp":
licenseFilePath, err := testenv.DownloadLicenseFromGCPBucket()
Expect(err).To(Succeed(), "Unable to download license file from S3")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
default:
fmt.Printf("Unable to download license file")
testcaseEnvInst.Log.Info(fmt.Sprintf("Unable to download license file with Cluster Provider set as %v", testenv.ClusterProvider))
Expand Down
10 changes: 10 additions & 0 deletions test/secret/manager_secret_s1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ var _ = Describe("Secret Test for SVA S1", func() {
Expect(err).To(Succeed(), "Unable to download license file from Azure")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
case "gcp":
licenseFilePath, err := testenv.DownloadLicenseFromGCPBucket()
Expect(err).To(Succeed(), "Unable to download license file from S3")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
default:
fmt.Printf("Unable to download license file")
testcaseEnvInst.Log.Info(fmt.Sprintf("Unable to download license file with Cluster Provider set as %v", testenv.ClusterProvider))
Expand Down Expand Up @@ -180,6 +185,11 @@ var _ = Describe("Secret Test for SVA S1", func() {
Expect(err).To(Succeed(), "Unable to download license file from Azure")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
case "gcp":
licenseFilePath, err := testenv.DownloadLicenseFromGCPBucket()
Expect(err).To(Succeed(), "Unable to download license file from S3")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
default:
fmt.Printf("Unable to download license file")
testcaseEnvInst.Log.Info(fmt.Sprintf("Unable to download license file with Cluster Provider set as %v", testenv.ClusterProvider))
Expand Down
5 changes: 5 additions & 0 deletions test/secret/secret_c3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ var _ = Describe("Secret Test for SVA C3", func() {
Expect(err).To(Succeed(), "Unable to download license file from Azure")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
case "gcp":
licenseFilePath, err := testenv.DownloadLicenseFromGCPBucket()
Expect(err).To(Succeed(), "Unable to download license file from S3")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
default:
fmt.Printf("Unable to download license file")
testcaseEnvInst.Log.Info(fmt.Sprintf("Unable to download license file with Cluster Provider set as %v", testenv.ClusterProvider))
Expand Down
5 changes: 5 additions & 0 deletions test/secret/secret_m4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ var _ = Describe("Secret Test for M4 SVA", func() {
Expect(err).To(Succeed(), "Unable to download license file from Azure")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
case "gcp":
licenseFilePath, err := testenv.DownloadLicenseFromGCPBucket()
Expect(err).To(Succeed(), "Unable to download license file from S3")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
default:
fmt.Printf("Unable to download license file")
testcaseEnvInst.Log.Info(fmt.Sprintf("Unable to download license file with Cluster Provider set as %v", testenv.ClusterProvider))
Expand Down
10 changes: 10 additions & 0 deletions test/secret/secret_s1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ var _ = Describe("Secret Test for SVA S1", func() {
Expect(err).To(Succeed(), "Unable to download license file from Azure")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
case "gcp":
licenseFilePath, err := testenv.DownloadLicenseFromGCPBucket()
Expect(err).To(Succeed(), "Unable to download license file from S3")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
default:
fmt.Printf("Unable to download license file")
testcaseEnvInst.Log.Info(fmt.Sprintf("Unable to download license file with Cluster Provider set as %v", testenv.ClusterProvider))
Expand Down Expand Up @@ -180,6 +185,11 @@ var _ = Describe("Secret Test for SVA S1", func() {
Expect(err).To(Succeed(), "Unable to download license file from Azure")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
case "gcp":
licenseFilePath, err := testenv.DownloadLicenseFromGCPBucket()
Expect(err).To(Succeed(), "Unable to download license file from S3")
// Create License Config Map
testcaseEnvInst.CreateLicenseConfigMap(licenseFilePath)
default:
fmt.Printf("Unable to download license file")
testcaseEnvInst.Log.Info(fmt.Sprintf("Unable to download license file with Cluster Provider set as %v", testenv.ClusterProvider))
Expand Down

0 comments on commit 5fe1e34

Please sign in to comment.