Skip to content

Commit

Permalink
adding gcp_sanity
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 28, 2024
1 parent 521172b commit 486a374
Show file tree
Hide file tree
Showing 8 changed files with 2,036 additions and 2,036 deletions.
22 changes: 11 additions & 11 deletions test/appframework_gcp/c3/appframework_gcs_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ var (
testSuiteName = "c3appfw-" + testenv.RandomDNSName(3)
appListV1 []string
appListV2 []string
testDataS3Bucket = os.Getenv("TEST_BUCKET")
testS3Bucket = os.Getenv("TEST_INDEXES_S3_BUCKET")
s3AppDirV1 = testenv.AppLocationV1
s3AppDirV2 = testenv.AppLocationV2
s3PVTestApps = testenv.PVTestAppsLocation
testDataGcsBucket = os.Getenv("TEST_BUCKET")
testGcsBucket = os.Getenv("TEST_INDEXES_S3_BUCKET")
gcsAppDirV1 = testenv.AppLocationV1
gcsAppDirV2 = testenv.AppLocationV2
gcsPVTestApps = testenv.PVTestAppsLocation
currDir, _ = os.Getwd()
downloadDirV1 = filepath.Join(currDir, "c3appfwV1-"+testenv.RandomDNSName(4))
downloadDirV2 = filepath.Join(currDir, "c3appfwV2-"+testenv.RandomDNSName(4))
Expand All @@ -64,20 +64,20 @@ var _ = BeforeSuite(func() {
Expect(err).ToNot(HaveOccurred())

if testenv.ClusterProvider == "gcp" {
// Create a list of apps to upload to S3
// Create a list of apps to upload to Gcs
appListV1 = testenv.BasicApps
appFileList := testenv.GetAppFileList(appListV1)

// Download V1 Apps from S3
err = testenv.DownloadFilesFromGCP(testDataS3Bucket, s3AppDirV1, downloadDirV1, appFileList)
// Download V1 Apps from Gcs
err = testenv.DownloadFilesFromGCP(testDataGcsBucket, gcsAppDirV1, downloadDirV1, appFileList)
Expect(err).To(Succeed(), "Unable to download V1 app files")

// Create a list of apps to upload to S3 after poll period
// Create a list of apps to upload to Gcs after poll period
appListV2 = append(appListV1, testenv.NewAppsAddedBetweenPolls...)
appFileList = testenv.GetAppFileList(appListV2)

// Download V2 Apps from S3
err = testenv.DownloadFilesFromGCP(testDataS3Bucket, s3AppDirV2, downloadDirV2, appFileList)
// Download V2 Apps from Gcs
err = testenv.DownloadFilesFromGCP(testDataGcsBucket, gcsAppDirV2, downloadDirV2, appFileList)
Expect(err).To(Succeed(), "Unable to download V2 app files")
} else {
testenvInstance.Log.Info("Skipping Before Suite Setup", "Cluster Provider", testenv.ClusterProvider)
Expand Down
1,028 changes: 514 additions & 514 deletions test/appframework_gcp/c3/appframework_gcs_test.go

Large diffs are not rendered by default.

1,036 changes: 518 additions & 518 deletions test/appframework_gcp/c3/manager_appframework_test.go

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions test/appframework_gcp/m4/appframework_gcs_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ var (
testSuiteName = "m4appfw-" + testenv.RandomDNSName(3)
appListV1 []string
appListV2 []string
testDataS3Bucket = os.Getenv("TEST_BUCKET")
testS3Bucket = os.Getenv("TEST_INDEXES_S3_BUCKET")
s3AppDirV1 = testenv.AppLocationV1
s3AppDirV2 = testenv.AppLocationV2
s3PVTestApps = testenv.PVTestAppsLocation
testDataGcsBucket = os.Getenv("TEST_BUCKET")
testGcsBucket = os.Getenv("TEST_INDEXES_S3_BUCKET")
gcsAppDirV1 = testenv.AppLocationV1
gcsAppDirV2 = testenv.AppLocationV2
gcsPVTestApps = testenv.PVTestAppsLocation
currDir, _ = os.Getwd()
downloadDirV1 = filepath.Join(currDir, "m4appfwV1-"+testenv.RandomDNSName(4))
downloadDirV2 = filepath.Join(currDir, "m4appfwV2-"+testenv.RandomDNSName(4))
Expand All @@ -64,20 +64,20 @@ var _ = BeforeSuite(func() {
Expect(err).ToNot(HaveOccurred())

if testenv.ClusterProvider == "gcp" {
// Create a list of apps to upload to S3
// Create a list of apps to upload to GCP
appListV1 = testenv.BasicApps
appFileList := testenv.GetAppFileList(appListV1)

// Download V1 Apps from S3
err = testenv.DownloadFilesFromGCP(testDataS3Bucket, s3AppDirV1, downloadDirV1, appFileList)
// Download V1 Apps from GCP
err = testenv.DownloadFilesFromGCP(testDataGcsBucket, gcsAppDirV1, downloadDirV1, appFileList)
Expect(err).To(Succeed(), "Unable to download V1 app files")

// Create a list of apps to upload to S3 after poll period
// Create a list of apps to upload to GCP after poll period
appListV2 = append(appListV1, testenv.NewAppsAddedBetweenPolls...)
appFileList = testenv.GetAppFileList(appListV2)

// Download V2 Apps from S3
err = testenv.DownloadFilesFromGCP(testDataS3Bucket, s3AppDirV2, downloadDirV2, appFileList)
// Download V2 Apps from GCP
err = testenv.DownloadFilesFromGCP(testDataGcsBucket, gcsAppDirV2, downloadDirV2, appFileList)
Expect(err).To(Succeed(), "Unable to download V2 app files")
} else {
testenvInstance.Log.Info("Skipping Before Suite Setup", "Cluster Provider", testenv.ClusterProvider)
Expand Down
782 changes: 391 additions & 391 deletions test/appframework_gcp/m4/appframework_gcs_test.go

Large diffs are not rendered by default.

650 changes: 325 additions & 325 deletions test/appframework_gcp/m4/manager_appframework_test.go

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions test/appframework_gcp/s1/appframework_gcs_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ var (
testSuiteName = "s1appfw-" + testenv.RandomDNSName(3)
appListV1 []string
appListV2 []string
testDataS3Bucket = os.Getenv("TEST_BUCKET")
testS3Bucket = os.Getenv("TEST_INDEXES_S3_BUCKET")
s3AppDirV1 = testenv.AppLocationV1
s3AppDirV2 = testenv.AppLocationV2
s3PVTestApps = testenv.PVTestAppsLocation
testDataGcsBucket = os.Getenv("TEST_BUCKET")
testGCSBucket = os.Getenv("TEST_INDEXES_S3_BUCKET")
gcsAppDirV1 = testenv.AppLocationV1
gcsAppDirV2 = testenv.AppLocationV2
gcsPVTestApps = testenv.PVTestAppsLocation
currDir, _ = os.Getwd()
downloadDirV1 = filepath.Join(currDir, "s1appfwV1-"+testenv.RandomDNSName(4))
downloadDirV2 = filepath.Join(currDir, "s1appfwV2-"+testenv.RandomDNSName(4))
Expand All @@ -64,20 +64,20 @@ var _ = BeforeSuite(func() {
Expect(err).ToNot(HaveOccurred())

if testenv.ClusterProvider == "gcp" {
// Create a list of apps to upload to S3
// Create a list of apps to upload to GCP
appListV1 = testenv.BasicApps
appFileList := testenv.GetAppFileList(appListV1)

// Download V1 Apps from S3
err = testenv.DownloadFilesFromGCP(testDataS3Bucket, s3AppDirV1, downloadDirV1, appFileList)
// Download V1 Apps from GCP
err = testenv.DownloadFilesFromGCP(testDataGcsBucket, gcsAppDirV1, downloadDirV1, appFileList)
Expect(err).To(Succeed(), "Unable to download V1 app files")

// Create a list of apps to upload to S3 after poll period
// Create a list of apps to upload to GCP after poll period
appListV2 = append(appListV1, testenv.NewAppsAddedBetweenPolls...)
appFileList = testenv.GetAppFileList(appListV2)

// Download V2 Apps from S3
err = testenv.DownloadFilesFromGCP(testDataS3Bucket, s3AppDirV2, downloadDirV2, appFileList)
// Download V2 Apps from GCP
err = testenv.DownloadFilesFromGCP(testDataGcsBucket, gcsAppDirV2, downloadDirV2, appFileList)
Expect(err).To(Succeed(), "Unable to download V2 app files")
} else {
testenvInstance.Log.Info("Skipping Before Suite Setup", "Cluster Provider", testenv.ClusterProvider)
Expand Down
Loading

0 comments on commit 486a374

Please sign in to comment.