Artifactory Tests: Use path.Join in TestArtifactoryUploadAndSyncDelete
in order to use forward-slash (/) as a delimiter.
@@ -557,21 +557,21 @@ func TestArtifactoryUploadAndExplode(t *testing.T) {
func TestArtifactoryUploadAndSyncDelete(t *testing.T) {
initArtifactoryTest(t)
// Upload all testdata/a/
- artifactoryCli.Exec("upload", filepath.Join("testsdata", "a", "*"), tests.Repo1+"/syncDir/", "--flat=false")
+ artifactoryCli.Exec("upload", path.Join("testsdata", "a", "*"), tests.Repo1+"/syncDir/", "--flat=false")
searchFilePath, err := tests.CreateSpec(tests.SearchAllRepo1)
if err != nil {
t.Error(err)
}
isExistInArtifactory(tests.GetUploadExpectedRepo1SyncDeleteStep1(), searchFilePath, t)
// Upload testdata/a/b/*1.in and sync syncDir/testdata/a/b/
- artifactoryCli.Exec("upload", filepath.Join("testsdata", "a", "b", "*1.in"), tests.Repo1+"/syncDir/", "--sync-deletes="+tests.Repo1+"/syncDir/testsdata/a/b/", "--quiet=true", "--flat=false")
+ artifactoryCli.Exec("upload", path.Join("testsdata", "a", "b", "*1.in"), tests.Repo1+"/syncDir/", "--sync-deletes="+tests.Repo1+"/syncDir/testsdata/a/b/", "--quiet=true", "--flat=false")
searchFilePath, err = tests.CreateSpec(tests.SearchAllRepo1)
if err != nil {
t.Error(err)
}
isExistInArtifactory(tests.GetUploadExpectedRepo1SyncDeleteStep2(), searchFilePath, t)
// Upload testdata/archives/* and sync syncDir/
- artifactoryCli.Exec("upload", filepath.Join("testsdata", "archives", "*"), tests.Repo1+"/syncDir/", "--sync-deletes="+tests.Repo1+"/syncDir/", "--quiet=true")
+ artifactoryCli.Exec("upload", path.Join("testsdata", "archives", "*"), tests.Repo1+"/syncDir/", "--sync-deletes="+tests.Repo1+"/syncDir/", "--quiet=true")
searchFilePath, err = tests.CreateSpec(tests.SearchAllRepo1)
if err != nil {
t.Error(err)
