Skip to content

Commit

Permalink
Merge pull request #1218 from RusJaI/4.2.x
Browse files Browse the repository at this point in the history
Remove added logs and additional spaces
  • Loading branch information
npamudika authored Oct 14, 2024
2 parents ce629d3 + 6496cd2 commit 9a6e8d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions import-export-cli/integration/testutils/devFirst_testUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ package testutils
import (
"io/ioutil"
"log"
"os"
"path/filepath"
"strconv"
"strings"
Expand Down Expand Up @@ -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()

Expand All @@ -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()

Expand All @@ -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()

Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion import-export-cli/integration/testutils/testConstants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 9a6e8d5

Please sign in to comment.