diff --git a/import-export-cli/integration/testutils/devFirst_testUtils.go b/import-export-cli/integration/testutils/devFirst_testUtils.go index 6e333da5..b4ddea33 100644 --- a/import-export-cli/integration/testutils/devFirst_testUtils.go +++ b/import-export-cli/integration/testutils/devFirst_testUtils.go @@ -21,7 +21,6 @@ package testutils import ( "io/ioutil" "log" - "os" "path/filepath" "strconv" "strings" @@ -150,7 +149,7 @@ func ValidateInitializeProject(t *testing.T, args *InitTestArgs) { }) } -// Function to initialize a project using API definition +//Function to initialize a project using API definition func ValidateInitializeProjectWithOASFlag(t *testing.T, args *InitTestArgs) { t.Helper() @@ -169,7 +168,7 @@ func ValidateInitializeProjectWithOASFlag(t *testing.T, args *InitTestArgs) { }) } -// Function to initialize a project using API definition +//Function to initialize a project using API definition func ValidateInitializeProjectWithOASFlagWithoutCleaning(t *testing.T, args *InitTestArgs) { t.Helper() @@ -183,7 +182,7 @@ func ValidateInitializeProjectWithOASFlagWithoutCleaning(t *testing.T, args *Ini } -// Function to initialize a project using API definition using --definition flag +//Function to initialize a project using API definition using --definition flag func ValidateInitializeProjectWithDefinitionFlag(t *testing.T, args *InitTestArgs) { t.Helper() @@ -281,7 +280,6 @@ func ValidateImportUpdateProject(t *testing.T, args *InitTestArgs, preserveProvi base.WaitForIndexing() // Get App from env 2 importedAPI := GetAPI(t, args.SrcAPIM, args.APIName, args.CtlUser.Username, args.CtlUser.Password) - base.Log("#importedAPIOperations : ", importedAPI.Operations) //Remove Created project and logout t.Cleanup(func() { @@ -387,16 +385,10 @@ func ValidateAPIWithUpdatedSequenceIsExported(t *testing.T, args *InitTestArgs, relativePath := strings.ReplaceAll(exportedPath, ".zip", "") base.Unzip(relativePath, exportedPath) - // - dstDir := filepath.Join(os.Getenv("HOME"), "Downloads", filepath.Base(exportedPath)) - base.Copy(exportedPath, dstDir) - // Check whether the exported operation policy is equivalent to the latest operation policy exportedApiSequencePath := relativePath + TestDefaultExtractedFileName + DevFirstSampleCaseDestExportedPolicy1PathSuffix - base.Log("#exportedApiSequencePath : ", exportedApiSequencePath) lastUpdatedSequencePath, _ := filepath.Abs(DevFirstUpdatedSampleCasePolicy1Path) - base.Log("#lastUpdatedSequencePath : ", lastUpdatedSequencePath) isSequenceUpdated := base.IsFileContentIdentical(exportedApiSequencePath, lastUpdatedSequencePath) base.Log("Exported operation policy is updated", isSequenceUpdated) assert.Equal(t, true, isSequenceUpdated, "Error while updating the operation policy of API") diff --git a/import-export-cli/integration/testutils/testConstants.go b/import-export-cli/integration/testutils/testConstants.go index 5dd919d0..0052766c 100644 --- a/import-export-cli/integration/testutils/testConstants.go +++ b/import-export-cli/integration/testutils/testConstants.go @@ -234,5 +234,5 @@ const TestAPIPolicyOffset = "0" const TestAPIPolicyLimit = "5" const CleanUpFunction = "cleanup" -// Constant for API versioning tests +//Constant for API versioning tests const APIVersion2 = "2.0.0"