github.com/jfrog/jfrog-cli-go@v1.22.1-0.20200318093948-4826ef344ffd/utils/tests/artifactoryconsts.go (about)

     1  package tests
     2  
     3  import (
     4  	"path/filepath"
     5  
     6  	"github.com/jfrog/jfrog-cli-go/artifactory/commands/generic"
     7  	clientutils "github.com/jfrog/jfrog-client-go/artifactory/services/utils"
     8  )
     9  
    10  const (
    11  	ArchiveEntriesDownload                 = "archive_entries_download_spec.json"
    12  	ArchiveEntriesUpload                   = "archive_entries_upload_spec.json"
    13  	BuildAddDepsBuildName                  = "cli-bad-test-build"
    14  	BuildAddDepsDoubleSpec                 = "build_add_deps_double_spec.json"
    15  	BuildAddDepsSpec                       = "build_add_deps_simple_spec.json"
    16  	BuildDownloadSpec                      = "build_download_spec.json"
    17  	BuildDownloadSpecNoBuildNumber         = "build_download_spec_no_build_number.json"
    18  	BuildDownloadSpecNoBuildNumberWithSort = "build_download_spec_no_build_number_with_sort.json"
    19  	BuildDownloadSpecNoPattern             = "build_download_spec_no_pattern.json"
    20  	BundleDownloadSpec                     = "bundle_download_spec.json"
    21  	BundleDownloadSpecNoPattern            = "bundle_download_spec_no_pattern.json"
    22  	CopyByBuildPatternAllSpec              = "move_copy_delete_by_build_pattern_all_spec.json"
    23  	CopyByBuildSpec                        = "move_copy_delete_by_build_spec.json"
    24  	CopyByBundleSpec                       = "copy_by_bundle_spec.json"
    25  	CopyItemsSpec                          = "copy_items_spec.json"
    26  	CopyMoveSimpleSpec                     = "copy_move_simple.json"
    27  	CpMvDlByBuildAssertSpec                = "copy_by_build_assert_spec.json"
    28  	DebianTestRepositoryConfig             = "debian_test_repository_config.json"
    29  	DebianUploadSpec                       = "upload_debian_spec.json"
    30  	DeleteSimpleSpec                       = "delete_simple_spec.json"
    31  	DeleteSpec                             = "delete_spec.json"
    32  	DeleteSpecWildcardInRepo               = "delete_spec_wildcard.json"
    33  	DelSpecExclude                         = "delete_spec_exclude.json"
    34  	DelSpecExclusions                      = "delete_spec_exclusions.json"
    35  	DistributionRules                      = "distribution_rules.json"
    36  	DownloadAllRepo1TestResources          = "download_all_repo1_test_resources.json"
    37  	DownloadEmptyDirs                      = "download_empty_dir_spec.json"
    38  	DownloadModFileGo                      = "downloadmodfile_go.json"
    39  	DownloadModOfDependencyGo              = "downloadmodofdependency_go.json"
    40  	DownloadSpecExclude                    = "download_spec_exclude.json"
    41  	DownloadSpecExclusions                 = "download_spec_exclusions.json"
    42  	DownloadWildcardRepo                   = "download_wildcard_repo.json"
    43  	GitLfsAssertSpec                       = "git_lfs_assert_spec.json"
    44  	GitLfsTestRepositoryConfig             = "git_lfs_test_repository_config.json"
    45  	GoLocalRepositoryConfig                = "go_local_repository_config.json"
    46  	GradleConfig                           = "gradle.yaml"
    47  	GradleServerIDConfig                   = "gradle_server_id.yaml"
    48  	GradleServerIDUsesPluginConfig         = "gradle_server_id_uses_plugin.yaml"
    49  	GradleUsernamePasswordTemplate         = "gradle_user_pass_template.yaml"
    50  	HttpsProxyEnvVar                       = "PROXY_HTTPS_PORT"
    51  	JcenterRemoteRepositoryConfig          = "jcenter_remote_repository_config.json"
    52  	MavenConfig                            = "maven.yaml"
    53  	MavenServerIDConfig                    = "maven_server_id.yaml"
    54  	MavenUsernamePasswordTemplate          = "maven_user_pass_template.yaml"
    55  	MoveCopySpecExclude                    = "move_copy_spec_exclude.json"
    56  	MoveCopySpecExclusions                 = "move_copy_spec_exclusions.json"
    57  	MoveRepositoryConfig                   = "move_repository_config.json"
    58  	NpmBuildName                           = "cli-npm-test-build"
    59  	NpmLocalRepositoryConfig               = "npm_local_repository_config.json"
    60  	NpmRemoteRepositoryConfig              = "npm_remote_repository_config.json"
    61  	NugetBuildName                         = "cli-nuget-test-build"
    62  	NugetRemoteRepo                        = "jfrog-cli-tests-nuget-remote-repo"
    63  	Out                                    = "out"
    64  	PipBuildName                           = "cli-pip-test-build"
    65  	PypiRemoteRepositoryConfig             = "pypi_remote_repository_config.json"
    66  	PypiVirtualRepositoryConfig            = "pypi_virtual_repository_config.json"
    67  	RepoDetailsUrl                         = "api/repositories/"
    68  	RtServerId                             = "rtTestServerId"
    69  	SearchAllRepo1                         = "search_all_repo1.json"
    70  	SearchGo                               = "search_go.json"
    71  	SearchRepo1ByInSuffix                  = "search_repo1_by_in_suffix.json"
    72  	SearchRepo1TestResources               = "search_repo1_test_resources.json"
    73  	SearchRepo2                            = "search_repo2.json"
    74  	SearchSimplePlaceholders               = "search_simple_placeholders.json"
    75  	SearchTargetInRepo2                    = "search_target_in_repo2.json"
    76  	SearchTxt                              = "search_txt.json"
    77  	SetDeletePropsSpec                     = "set_delete_props_spec.json"
    78  	SpecsTestRepositoryConfig              = "specs_test_repository_config.json"
    79  	SplitUploadSpecA                       = "upload_split_spec_a.json"
    80  	SplitUploadSpecB                       = "upload_split_spec_b.json"
    81  	Temp                                   = "tmp"
    82  	UploadEmptyDirs                        = "upload_empty_dir_spec.json"
    83  	UploadFileWithParenthesesSpec          = "upload_file_with_parentheses.json"
    84  	UploadFlatNonRecursive                 = "upload_flat_non_recursive.json"
    85  	UploadFlatRecursive                    = "upload_flat_recursive.json"
    86  	UploadMultipleFileSpecs                = "upload_multiple_file_specs.json"
    87  	UploadSimplePlaceholders               = "upload_simple_placeholders.json"
    88  	UploadSpecExclude                      = "upload_spec_exclude.json"
    89  	UploadSpecExcludeRegex                 = "upload_spec_exclude_regex.json"
    90  	UploadTempWildcard                     = "upload_temp_wildcard.json"
    91  	UploadWithPropsSpec                    = "upload_with_props_spec.json"
    92  	VirtualRepositoryConfig                = "specs_virtual_repository_config.json"
    93  	WinBuildAddDepsSpec                    = "win_simple_build_add_deps_spec.json"
    94  	WinSimpleDownloadSpec                  = "win_simple_download_spec.json"
    95  	WinSimpleUploadSpec                    = "win_simple_upload_spec.json"
    96  	ReplicationTempCreate                  = "replication_push_create.json"
    97  )
    98  
    99  var Repo1 = "jfrog-cli-tests-repo1"
   100  var Repo2 = "jfrog-cli-tests-repo2"
   101  var Repo1And2 = "jfrog-cli-tests-repo*"
   102  var VirtualRepo = "jfrog-cli-tests-virtual-repo"
   103  var JcenterRemoteRepo = "jfrog-cli-tests-jcenter-remote"
   104  var LfsRepo = "jfrog-cli-tests-lfs-repo"
   105  var DebianRepo = "jfrog-cli-tests-debian-repo"
   106  var NpmLocalRepo = "jfrog-cli-tests-npm-local-repo"
   107  var NpmRemoteRepo = "jfrog-cli-tests-npm-remote-repo"
   108  var GoLocalRepo = "jfrog-cli-tests-go-local-repo"
   109  var PypiRemoteRepo = "jfrog-cli-tests-pypi-remote-repo"
   110  var PypiVirtualRepo = "jfrog-cli-tests-pypi-virtual-repo"
   111  
   112  func GetTxtUploadExpectedRepo1() []string {
   113  	return []string{
   114  		Repo1 + "/cliTestFile.txt",
   115  	}
   116  }
   117  
   118  func GetSimpleUploadExpectedRepo1() []string {
   119  	return []string{
   120  		Repo1 + "/test_resources/a3.in",
   121  		Repo1 + "/test_resources/a1.in",
   122  		Repo1 + "/test_resources/a2.in",
   123  		Repo1 + "/test_resources/b2.in",
   124  		Repo1 + "/test_resources/b3.in",
   125  		Repo1 + "/test_resources/b1.in",
   126  		Repo1 + "/test_resources/c2.in",
   127  		Repo1 + "/test_resources/c1.in",
   128  		Repo1 + "/test_resources/c3.in",
   129  	}
   130  }
   131  
   132  func GetSimpleWildcardUploadExpectedRepo1() []string {
   133  	return []string{
   134  		Repo1 + "/upload_simple_wildcard/github.com/github.in",
   135  	}
   136  }
   137  
   138  func GetSimpleUploadSpecialCharNoRegexExpectedRepo1() []string {
   139  	return []string{
   140  		Repo1 + "/a1.in",
   141  	}
   142  }
   143  
   144  func GetSimpleUploadSpecialCharNoRegexExpectedRepo2() []string {
   145  	return []string{
   146  		Repo2 + "/a1.in",
   147  	}
   148  }
   149  
   150  func GetSimpleUploadSpecialCharNoRegexExpected2filesRepo1() []string {
   151  	return []string{
   152  		Repo1 + "/a1.in",
   153  		Repo1 + "/a2.in",
   154  	}
   155  }
   156  
   157  func GetSimpleUploadSpecialCharNoRegexExpected2filesRepo2() []string {
   158  	return []string{
   159  		Repo2 + "/a1.in",
   160  		Repo2 + "/a2.in",
   161  	}
   162  }
   163  
   164  func GetUploadSpecExcludeRepo1() []string {
   165  	return []string{
   166  		Repo1 + "/a1.in",
   167  		Repo1 + "/b1.in",
   168  		Repo1 + "/c2.in",
   169  		Repo1 + "/c3.in",
   170  	}
   171  }
   172  
   173  func GetUploadDebianExpected() []string {
   174  	return []string{
   175  		DebianRepo + "/data/a1.in",
   176  		DebianRepo + "/data/a2.in",
   177  		DebianRepo + "/data/a3.in",
   178  	}
   179  }
   180  
   181  func GetSingleFileCopy() []string {
   182  	return []string{
   183  		Repo2 + "/path/a1.in",
   184  	}
   185  }
   186  
   187  func GetSingleFileCopyFullPath() []string {
   188  	return []string{
   189  		Repo2 + "/path/inner/a1.in",
   190  	}
   191  }
   192  
   193  func GetSingleInnerFileCopyFullPath() []string {
   194  	return []string{
   195  		Repo2 + "/path/path/inner/a1.in",
   196  	}
   197  }
   198  
   199  func GetFolderCopyTwice() []string {
   200  	return []string{
   201  		Repo2 + "/path/inner/a1.in",
   202  		Repo2 + "/path/path/inner/a1.in",
   203  	}
   204  }
   205  
   206  func GetFolderCopyIntoFolder() []string {
   207  	return []string{
   208  		Repo2 + "/path/path/inner/a1.in",
   209  	}
   210  }
   211  
   212  func GetSingleDirectoryCopyFlat() []string {
   213  	return []string{
   214  		Repo2 + "/inner/a1.in",
   215  	}
   216  }
   217  
   218  func GetAnyItemCopy() []string {
   219  	return []string{
   220  		Repo2 + "/path/inner/a1.in",
   221  		Repo2 + "/someFile",
   222  	}
   223  }
   224  
   225  func GetAnyItemCopyRecursive() []string {
   226  	return []string{
   227  		Repo2 + "/a/b/a1.in",
   228  		Repo2 + "/aFile",
   229  	}
   230  }
   231  
   232  func GetCopyFolderRename() []string {
   233  	return []string{
   234  		Repo2 + "/newPath/inner/a1.in",
   235  	}
   236  }
   237  
   238  func GetAnyItemCopyUsingSpec() []string {
   239  	return []string{
   240  		Repo2 + "/a1.in",
   241  	}
   242  }
   243  
   244  func GetExplodeUploadExpectedRepo1() []string {
   245  	return []string{
   246  		Repo1 + "/a/a3.in",
   247  		Repo1 + "/a/a1.in",
   248  		Repo1 + "/a/a2.in",
   249  		Repo1 + "/a/b/b1.in",
   250  		Repo1 + "/a/b/b2.in",
   251  		Repo1 + "/a/b/b3.in",
   252  		Repo1 + "/a/b/c/c1.in",
   253  		Repo1 + "/a/b/c/c2.in",
   254  		Repo1 + "/a/b/c/c3.in",
   255  	}
   256  }
   257  
   258  func GetCopyFileNameWithParentheses() []string {
   259  	return []string{
   260  		Repo2 + "/testsdata/b/(/(.in",
   261  		Repo2 + "/testsdata/b/(b/(b.in",
   262  		Repo2 + "/testsdata/b/)b/)b.in",
   263  		Repo2 + "/testsdata/b/b(/b(.in",
   264  		Repo2 + "/testsdata/b/b)/b).in",
   265  		Repo2 + "/testsdata/b/(b)/(b).in",
   266  		Repo2 + "/testsdata/b/)b)/)b).in",
   267  		Repo2 + "/(/b(.in",
   268  		Repo2 + "/()/(b.in",
   269  		Repo2 + "/()/testsdata/b/(b)/(b).in",
   270  		Repo2 + "/(/testsdata/b/(/(.in.zip",
   271  		Repo2 + "/(/in-b(",
   272  		Repo2 + "/(/b(.in-up",
   273  		Repo2 + "/c/(.in.zip",
   274  	}
   275  }
   276  func GetUploadFileNameWithParentheses() []string {
   277  	return []string{
   278  		Repo1 + "/(.in",
   279  		Repo1 + "/(b.in",
   280  		Repo1 + "/)b.in",
   281  		Repo1 + "/b(.in",
   282  		Repo1 + "/b).in",
   283  		Repo1 + "/(b).in",
   284  		Repo1 + "/)b).in",
   285  		Repo1 + "/(new)/testsdata/b/(/(.in",
   286  		Repo1 + "/(new)/testsdata/b/(b/(b.in",
   287  		Repo1 + "/(new)/testsdata/b/b(/b(.in",
   288  		Repo1 + "/new)/testsdata/b/b)/b).in",
   289  		Repo1 + "/new)/testsdata/b/(b)/(b).in",
   290  		Repo1 + "/(new/testsdata/b/)b)/)b).in",
   291  		Repo1 + "/(new/testsdata/b/)b/)b.in",
   292  	}
   293  }
   294  
   295  func GetMoveCopySpecExpected() []string {
   296  	return []string{
   297  		Repo2 + "/copy_move_target/a1.in",
   298  		Repo2 + "/copy_move_target/a2.in",
   299  		Repo2 + "/copy_move_target/a3.in",
   300  		Repo2 + "/copy_move_target/b/b1.in",
   301  		Repo2 + "/copy_move_target/b/b2.in",
   302  		Repo2 + "/copy_move_target/b/b3.in",
   303  		Repo2 + "/copy_move_target/b/c/c1.in",
   304  		Repo2 + "/copy_move_target/b/c/c2.in",
   305  		Repo2 + "/copy_move_target/b/c/c3.in",
   306  	}
   307  }
   308  
   309  func GetRepo1TestResourcesExpected() []string {
   310  	return []string{
   311  		Repo1 + "/test_resources/a1.in",
   312  		Repo1 + "/test_resources/a2.in",
   313  		Repo1 + "/test_resources/a3.in",
   314  		Repo1 + "/test_resources/b/b1.in",
   315  		Repo1 + "/test_resources/b/b2.in",
   316  		Repo1 + "/test_resources/b/b3.in",
   317  		Repo1 + "/test_resources/b/c/c1.in",
   318  		Repo1 + "/test_resources/b/c/c2.in",
   319  		Repo1 + "/test_resources/b/c/c3.in",
   320  	}
   321  }
   322  
   323  func GetBuildBeforeCopyExpected() []string {
   324  	return GetBuildBeforeMoveExpected()
   325  }
   326  
   327  func GetBuildCopyExpected() []string {
   328  	return []string{
   329  		Repo1 + "/data/a1.in",
   330  		Repo1 + "/data/a2.in",
   331  		Repo1 + "/data/a3.in",
   332  		Repo1 + "/data/b1.in",
   333  		Repo1 + "/data/b2.in",
   334  		Repo1 + "/data/b3.in",
   335  		Repo2 + "/data/a1.in",
   336  		Repo2 + "/data/a2.in",
   337  		Repo2 + "/data/a3.in",
   338  	}
   339  }
   340  
   341  func GetGitLfsExpected() []string {
   342  	return []string{
   343  		LfsRepo + "/objects/4b/f4/4bf4c8c0fef3f5c8cf6f255d1c784377138588c0a9abe57e440bce3ccb350c2e",
   344  	}
   345  }
   346  
   347  func GetBuildBeforeMoveExpected() []string {
   348  	return []string{
   349  		Repo1 + "/data/b1.in",
   350  		Repo1 + "/data/b2.in",
   351  		Repo1 + "/data/b3.in",
   352  		Repo1 + "/data/a1.in",
   353  		Repo1 + "/data/a2.in",
   354  		Repo1 + "/data/a3.in",
   355  	}
   356  }
   357  
   358  func GetBuildMoveExpected() []string {
   359  	return []string{
   360  		Repo1 + "/data/b1.in",
   361  		Repo1 + "/data/b2.in",
   362  		Repo1 + "/data/b3.in",
   363  		Repo2 + "/data/a1.in",
   364  		Repo2 + "/data/a2.in",
   365  		Repo2 + "/data/a3.in",
   366  	}
   367  }
   368  
   369  func GetBuildCopyExclude() []string {
   370  	return []string{
   371  		Repo1 + "/data/a1.in",
   372  		Repo1 + "/data/a2.in",
   373  		Repo1 + "/data/a3.in",
   374  		Repo1 + "/data/b1.in",
   375  		Repo1 + "/data/b2.in",
   376  		Repo1 + "/data/b3.in",
   377  		Repo2 + "/data/a1.in",
   378  		Repo2 + "/data/a2.in",
   379  		Repo2 + "/data/a3.in",
   380  	}
   381  }
   382  
   383  func GetBuildDeleteExpected() []string {
   384  	return []string{
   385  		Repo1 + "/data/b1.in",
   386  		Repo1 + "/data/b2.in",
   387  		Repo1 + "/data/b3.in",
   388  	}
   389  }
   390  
   391  func GetExtractedDownload() []string {
   392  	return []string{
   393  		filepath.Join(Out, "randFile"),
   394  		filepath.Join(Out, "concurrent.tar.gz"),
   395  	}
   396  }
   397  
   398  func GetFileWithParenthesesDownload() []string {
   399  	return []string{
   400  		filepath.Join(Out, "testsdata"),
   401  		filepath.Join(Out, "testsdata/b"),
   402  		filepath.Join(Out, "testsdata/b/("),
   403  		filepath.Join(Out, "testsdata/b/(/(.in"),
   404  		filepath.Join(Out, "testsdata/b/(b"),
   405  		filepath.Join(Out, "testsdata/b/(b/(b.in"),
   406  		filepath.Join(Out, "testsdata/b/(b)"),
   407  		filepath.Join(Out, "testsdata/b/(b)/(b).in"),
   408  		filepath.Join(Out, "testsdata/b/)b"),
   409  		filepath.Join(Out, "testsdata/b/)b/)b.in"),
   410  		filepath.Join(Out, "testsdata/b/)b)"),
   411  		filepath.Join(Out, "testsdata/b/)b)/)b).in"),
   412  		filepath.Join(Out, "testsdata/b/b("),
   413  		filepath.Join(Out, "testsdata/b/b(/b(.in"),
   414  		filepath.Join(Out, "testsdata/b/b)"),
   415  		filepath.Join(Out, "testsdata/b/b)/b).in"),
   416  	}
   417  }
   418  
   419  func GetVirtualDownloadExpected() []string {
   420  	return []string{
   421  		filepath.Join(Out, "a/a1.in"),
   422  		filepath.Join(Out, "a/a2.in"),
   423  		filepath.Join(Out, "a/a3.in"),
   424  		filepath.Join(Out, "a/b/b1.in"),
   425  		filepath.Join(Out, "a/b/b2.in"),
   426  		filepath.Join(Out, "a/b/b3.in"),
   427  		filepath.Join(Out, "a/b/c/c1.in"),
   428  		filepath.Join(Out, "a/b/c/c2.in"),
   429  		filepath.Join(Out, "a/b/c/c3.in"),
   430  	}
   431  }
   432  
   433  func GetExpectedSyncDeletesDownloadStep2() []string {
   434  	localPathPrefix := filepath.Join("syncDir", "testsdata", "a")
   435  	return []string{
   436  		filepath.Join(Out, localPathPrefix, "a1.in"),
   437  		filepath.Join(Out, localPathPrefix, "a2.in"),
   438  		filepath.Join(Out, localPathPrefix, "a3.in"),
   439  		filepath.Join(Out, localPathPrefix, "b/b1.in"),
   440  		filepath.Join(Out, localPathPrefix, "b/b2.in"),
   441  		filepath.Join(Out, localPathPrefix, "b/b3.in"),
   442  		filepath.Join(Out, localPathPrefix, "b/c/c1.in"),
   443  		filepath.Join(Out, localPathPrefix, "b/c/c2.in"),
   444  		filepath.Join(Out, localPathPrefix, "b/c/c3.in"),
   445  	}
   446  }
   447  
   448  func GetExpectedSyncDeletesDownloadStep3() []string {
   449  	return []string{
   450  		filepath.Join(Out, "a1.in"),
   451  		filepath.Join(Out, "a2.in"),
   452  		filepath.Join(Out, "a3.in"),
   453  		filepath.Join(Out, "b1.in"),
   454  		filepath.Join(Out, "b2.in"),
   455  		filepath.Join(Out, "b3.in"),
   456  		filepath.Join(Out, "c1.in"),
   457  		filepath.Join(Out, "c2.in"),
   458  		filepath.Join(Out, "c3.in"),
   459  	}
   460  }
   461  
   462  func GetExpectedSyncDeletesDownloadStep4() []string {
   463  	return []string{
   464  		filepath.Join(Out, "a2.in"),
   465  		filepath.Join(Out, "b2.in"),
   466  		filepath.Join(Out, "c2.in"),
   467  	}
   468  }
   469  
   470  func GetSyncExpectedDeletesDownloadStep5() []string {
   471  	localPathPrefix := filepath.Join("syncDir", "testsdata", "a")
   472  	return []string{
   473  		filepath.Join(Out, localPathPrefix, "a1.in"),
   474  		filepath.Join(Out, localPathPrefix, "a2.in"),
   475  		filepath.Join(Out, localPathPrefix, "a3.in"),
   476  		filepath.Join(Out, localPathPrefix, "b/b1.in"),
   477  		filepath.Join(Out, localPathPrefix, "b/b2.in"),
   478  		filepath.Join(Out, localPathPrefix, "b/b3.in"),
   479  	}
   480  }
   481  
   482  func GetSyncExpectedDeletesDownloadStep6() []string {
   483  	localPathPrefix := "/syncDir/testsdata/archives/"
   484  	return []string{
   485  		Repo1 + localPathPrefix + "a.zip",
   486  		Repo1 + localPathPrefix + "b.zip",
   487  		Repo1 + localPathPrefix + "c.zip",
   488  		Repo1 + localPathPrefix + "d.zip",
   489  	}
   490  }
   491  
   492  func GetSyncExpectedDeletesDownloadStep7() []string {
   493  	localPathPrefix := filepath.Join("syncDir", "testsdata", "archives")
   494  	return []string{
   495  		filepath.Join(Out, localPathPrefix, "a.zip"),
   496  		filepath.Join(Out, localPathPrefix, "b.zip"),
   497  		filepath.Join(Out, localPathPrefix, "c.zip"),
   498  		filepath.Join(Out, localPathPrefix, "d.zip"),
   499  	}
   500  }
   501  
   502  func GetDownloadWildcardRepo() []string {
   503  	return []string{
   504  		Repo1 + "/path/a1.in",
   505  		Repo2 + "/path/a2.in",
   506  	}
   507  }
   508  
   509  func GetBuildDownload() []string {
   510  	return []string{
   511  		Out,
   512  		filepath.Join(Out, "download"),
   513  		filepath.Join(Out, "download", "aql_by_build"),
   514  		filepath.Join(Out, "download", "aql_by_build", "data"),
   515  		filepath.Join(Out, "download", "aql_by_build", "data", "a1.in"),
   516  		filepath.Join(Out, "download", "aql_by_build", "data", "a2.in"),
   517  		filepath.Join(Out, "download", "aql_by_build", "data", "a3.in"),
   518  	}
   519  }
   520  
   521  func GetBuildDownloadDoesntExist() []string {
   522  	return []string{
   523  		Out,
   524  	}
   525  }
   526  
   527  func GetBuildDownloadByShaAndBuild() []string {
   528  	return []string{
   529  		Out,
   530  		filepath.Join(Out, "download"),
   531  		filepath.Join(Out, "download", "aql_by_build"),
   532  		filepath.Join(Out, "download", "aql_by_build", "data"),
   533  		filepath.Join(Out, "download", "aql_by_build", "data", "a10.in"),
   534  	}
   535  }
   536  
   537  func GetBuildDownloadByShaAndBuildName() []string {
   538  	return []string{
   539  		Out,
   540  		filepath.Join(Out, "download"),
   541  		filepath.Join(Out, "download", "aql_by_build"),
   542  		filepath.Join(Out, "download", "aql_by_build", "data"),
   543  		filepath.Join(Out, "download", "aql_by_build", "data", "a11.in"),
   544  	}
   545  }
   546  
   547  func GetBuildSimpleDownload() []string {
   548  	return []string{
   549  		Out,
   550  		filepath.Join(Out, "download"),
   551  		filepath.Join(Out, "download", "simple_by_build"),
   552  		filepath.Join(Out, "download", "simple_by_build", "data"),
   553  		filepath.Join(Out, "download", "simple_by_build", "data", "b1.in"),
   554  	}
   555  }
   556  
   557  func GetBuildSimpleDownloadNoPattern() []string {
   558  	return []string{
   559  		Out,
   560  		filepath.Join(Out, "download"),
   561  		filepath.Join(Out, "download", "simple_by_build"),
   562  		filepath.Join(Out, "download", "simple_by_build", "data"),
   563  		filepath.Join(Out, "download", "simple_by_build", "data", "a1.in"),
   564  		filepath.Join(Out, "download", "simple_by_build", "data", "a2.in"),
   565  		filepath.Join(Out, "download", "simple_by_build", "data", "a3.in"),
   566  	}
   567  }
   568  
   569  func GetBuildExcludeDownload() []string {
   570  	return []string{
   571  		Out,
   572  		filepath.Join(Out, "download"),
   573  		filepath.Join(Out, "download", "aql_by_artifacts"),
   574  		filepath.Join(Out, "download", "aql_by_artifacts", "data"),
   575  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "a3.in"),
   576  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "b1.in"),
   577  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "b2.in"),
   578  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "b3.in"),
   579  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "c1.in"),
   580  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "c3.in"),
   581  	}
   582  }
   583  
   584  func GetBuildExcludeDownloadBySpec() []string {
   585  	return []string{
   586  		Out,
   587  		filepath.Join(Out, "download"),
   588  		filepath.Join(Out, "download", "aql_by_artifacts"),
   589  		filepath.Join(Out, "download", "aql_by_artifacts", "data"),
   590  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "a2.in"),
   591  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "b1.in"),
   592  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "b2.in"),
   593  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "b3.in"),
   594  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "c1.in"),
   595  		filepath.Join(Out, "download", "aql_by_artifacts", "data", "c3.in"),
   596  	}
   597  }
   598  
   599  func GetCleanBuild() []string {
   600  	return []string{
   601  		filepath.Join(Out, "clean-build"),
   602  		filepath.Join(Out, "clean-build", "data"),
   603  		filepath.Join(Out, "clean-build", "data", "b1.in"),
   604  		filepath.Join(Out, "clean-build", "data", "b2.in"),
   605  		filepath.Join(Out, "clean-build", "data", "b3.in"),
   606  	}
   607  }
   608  
   609  func GetMultipleFileSpecs() []string {
   610  	return []string{
   611  		Repo1 + "/multiple/a1.out",
   612  		Repo1 + "/multiple/properties/testsdata/a/b/b2.in",
   613  	}
   614  }
   615  
   616  func GetSimplePlaceholders() []string {
   617  	return []string{
   618  		Repo1 + "/simple_placeholders/a-in.out",
   619  		Repo1 + "/simple_placeholders/b/b-in.out",
   620  		Repo1 + "/simple_placeholders/b/c/c-in.out",
   621  	}
   622  }
   623  
   624  func GetSimpleDelete() []string {
   625  	return []string{
   626  		Repo1 + "/test_resources/a1.in",
   627  		Repo1 + "/test_resources/a2.in",
   628  		Repo1 + "/test_resources/a3.in",
   629  	}
   630  }
   631  
   632  func GetDeleteFolderWithWildcard() []string {
   633  	return []string{
   634  		Repo1 + "/test_resources/a1.in",
   635  		Repo1 + "/test_resources/a2.in",
   636  		Repo1 + "/test_resources/a3.in",
   637  		Repo1 + "/test_resources/b/b1.in",
   638  		Repo1 + "/test_resources/b/b2.in",
   639  		Repo1 + "/test_resources/b/b3.in",
   640  	}
   641  }
   642  
   643  func GetSearchIncludeDirsFiles() []generic.SearchResult {
   644  	return []generic.SearchResult{
   645  		{
   646  			Path:  Repo1 + "/",
   647  			Type:  "folder",
   648  			Props: make(map[string][]string, 0),
   649  			Size:  0,
   650  		},
   651  		{
   652  			Path:  Repo1 + "/data",
   653  			Type:  "folder",
   654  			Props: make(map[string][]string, 0),
   655  			Size:  0,
   656  		},
   657  		{
   658  			Path:  Repo1 + "/data/testsdata",
   659  			Type:  "folder",
   660  			Props: make(map[string][]string, 0),
   661  			Size:  0,
   662  		},
   663  		{
   664  			Path:  Repo1 + "/data/testsdata/a",
   665  			Type:  "folder",
   666  			Props: make(map[string][]string, 0),
   667  			Size:  0,
   668  		},
   669  		{
   670  			Path:  Repo1 + "/data/testsdata/a/a1.in",
   671  			Type:  "file",
   672  			Props: make(map[string][]string, 0),
   673  			Size:  7,
   674  		},
   675  		{
   676  			Path:  Repo1 + "/data/testsdata/a/a2.in",
   677  			Type:  "file",
   678  			Props: make(map[string][]string, 0),
   679  			Size:  7,
   680  		},
   681  		{
   682  			Path:  Repo1 + "/data/testsdata/a/a3.in",
   683  			Type:  "file",
   684  			Props: make(map[string][]string, 0),
   685  			Size:  7,
   686  		},
   687  		{
   688  			Path:  Repo1 + "/data/testsdata/a/b",
   689  			Type:  "folder",
   690  			Props: make(map[string][]string, 0),
   691  			Size:  0,
   692  		},
   693  		{
   694  			Path:  Repo1 + "/data/testsdata/a/b/b1.in",
   695  			Type:  "file",
   696  			Props: make(map[string][]string, 0),
   697  			Size:  9,
   698  		},
   699  		{
   700  			Path:  Repo1 + "/data/testsdata/a/b/b2.in",
   701  			Type:  "file",
   702  			Props: make(map[string][]string, 0),
   703  			Size:  9,
   704  		},
   705  		{
   706  			Path:  Repo1 + "/data/testsdata/a/b/b3.in",
   707  			Type:  "file",
   708  			Props: make(map[string][]string, 0),
   709  			Size:  9,
   710  		},
   711  		{
   712  			Path:  Repo1 + "/data/testsdata/a/b/c",
   713  			Type:  "folder",
   714  			Props: make(map[string][]string, 0),
   715  			Size:  0,
   716  		},
   717  		{
   718  			Path:  Repo1 + "/data/testsdata/a/b/c/c1.in",
   719  			Type:  "file",
   720  			Props: make(map[string][]string, 0),
   721  			Size:  11,
   722  		},
   723  		{
   724  			Path:  Repo1 + "/data/testsdata/a/b/c/c2.in",
   725  			Type:  "file",
   726  			Props: make(map[string][]string, 0),
   727  			Size:  11,
   728  		},
   729  		{
   730  			Path:  Repo1 + "/data/testsdata/a/b/c/c3.in",
   731  			Type:  "file",
   732  			Props: make(map[string][]string, 0),
   733  			Size:  11,
   734  		},
   735  	}
   736  }
   737  
   738  func GetSearchNotIncludeDirsFiles() []generic.SearchResult {
   739  	return []generic.SearchResult{
   740  		{
   741  			Path:  Repo1 + "/data/testsdata/a/a1.in",
   742  			Type:  "file",
   743  			Props: make(map[string][]string, 0),
   744  			Size:  7,
   745  		},
   746  		{
   747  			Path:  Repo1 + "/data/testsdata/a/a2.in",
   748  			Type:  "file",
   749  			Props: make(map[string][]string, 0),
   750  			Size:  7,
   751  		},
   752  		{
   753  			Path:  Repo1 + "/data/testsdata/a/a3.in",
   754  			Type:  "file",
   755  			Props: make(map[string][]string, 0),
   756  			Size:  7,
   757  		},
   758  		{
   759  			Path:  Repo1 + "/data/testsdata/a/b/b1.in",
   760  			Type:  "file",
   761  			Props: make(map[string][]string, 0),
   762  			Size:  9,
   763  		},
   764  		{
   765  			Path:  Repo1 + "/data/testsdata/a/b/b2.in",
   766  			Type:  "file",
   767  			Props: make(map[string][]string, 0),
   768  			Size:  9,
   769  		},
   770  		{
   771  			Path:  Repo1 + "/data/testsdata/a/b/b3.in",
   772  			Type:  "file",
   773  			Props: make(map[string][]string, 0),
   774  			Size:  9,
   775  		},
   776  		{
   777  			Path:  Repo1 + "/data/testsdata/a/b/c/c1.in",
   778  			Type:  "file",
   779  			Props: make(map[string][]string, 0),
   780  			Size:  11,
   781  		},
   782  		{
   783  			Path:  Repo1 + "/data/testsdata/a/b/c/c2.in",
   784  			Type:  "file",
   785  			Props: make(map[string][]string, 0),
   786  			Size:  11,
   787  		},
   788  		{
   789  			Path:  Repo1 + "/data/testsdata/a/b/c/c3.in",
   790  			Type:  "file",
   791  			Props: make(map[string][]string, 0),
   792  			Size:  11,
   793  		},
   794  	}
   795  }
   796  
   797  func GetSearchPropsStep1() []generic.SearchResult {
   798  	return []generic.SearchResult{
   799  		{
   800  			Path: Repo1 + "/a/a3.in",
   801  			Type: "file",
   802  			Size: 7,
   803  			Props: map[string][]string{
   804  				"a": {"1"},
   805  				"b": {"3"},
   806  				"c": {"3"},
   807  			},
   808  		},
   809  		{
   810  			Path: Repo1 + "/a/b/b2.in",
   811  			Type: "file",
   812  			Size: 9,
   813  			Props: map[string][]string{
   814  				"b": {"1"},
   815  				"c": {"3"},
   816  			},
   817  		},
   818  		{
   819  			Path: Repo1 + "/a/b/b3.in",
   820  			Type: "file",
   821  			Size: 9,
   822  			Props: map[string][]string{
   823  				"a": {"1"},
   824  				"b": {"2"},
   825  				"c": {"3"},
   826  			},
   827  		},
   828  		{
   829  			Path: Repo1 + "/a/b/c/c2.in",
   830  			Type: "file",
   831  			Size: 11,
   832  			Props: map[string][]string{
   833  				"c": {"3"},
   834  			},
   835  		},
   836  		{
   837  			Path: Repo1 + "/a/b/c/c3.in",
   838  			Type: "file",
   839  			Size: 11,
   840  			Props: map[string][]string{
   841  				"c": {"3"},
   842  			},
   843  		},
   844  	}
   845  }
   846  
   847  func GetSearchPropsStep2() []generic.SearchResult {
   848  	return []generic.SearchResult{
   849  		{
   850  			Path: Repo1 + "/a/a1.in",
   851  			Type: "file",
   852  			Size: 7,
   853  			Props: map[string][]string{
   854  				"a": {"2"},
   855  				"b": {"3"},
   856  			},
   857  		},
   858  		{
   859  			Path: Repo1 + "/a/a2.in",
   860  			Type: "file",
   861  			Size: 7,
   862  			Props: map[string][]string{
   863  				"a": {"1"},
   864  			},
   865  		},
   866  		{
   867  			Path: Repo1 + "/a/b/b1.in",
   868  			Type: "file",
   869  			Size: 9,
   870  			Props: map[string][]string{
   871  				"a": {"1"},
   872  				"c": {"5"},
   873  			},
   874  		},
   875  		{
   876  			Path: Repo1 + "/a/b/c/c1.in",
   877  			Type: "file",
   878  			Size: 11,
   879  			Props: map[string][]string{
   880  				"b": {"1"},
   881  			},
   882  		},
   883  	}
   884  }
   885  
   886  func GetSearchPropsStep3() []generic.SearchResult {
   887  	return []generic.SearchResult{
   888  		{
   889  			Path: Repo1 + "/a/a1.in",
   890  			Type: "file",
   891  			Size: 7,
   892  			Props: map[string][]string{
   893  				"a": {"2"},
   894  				"b": {"3"},
   895  			},
   896  		},
   897  		{
   898  			Path: Repo1 + "/a/a2.in",
   899  			Type: "file",
   900  			Size: 7,
   901  			Props: map[string][]string{
   902  				"a": {"1"},
   903  			},
   904  		},
   905  		{
   906  			Path: Repo1 + "/a/a3.in",
   907  			Type: "file",
   908  			Size: 7,
   909  			Props: map[string][]string{
   910  				"a": {"1"},
   911  				"b": {"3"},
   912  				"c": {"3"},
   913  			},
   914  		},
   915  		{
   916  			Path: Repo1 + "/a/b/b1.in",
   917  			Type: "file",
   918  			Size: 9,
   919  			Props: map[string][]string{
   920  				"a": {"1"},
   921  				"c": {"5"},
   922  			},
   923  		},
   924  		{
   925  			Path: Repo1 + "/a/b/b2.in",
   926  			Type: "file",
   927  			Size: 9,
   928  			Props: map[string][]string{
   929  				"b": {"1"},
   930  				"c": {"3"},
   931  			},
   932  		},
   933  		{
   934  			Path: Repo1 + "/a/b/c/c1.in",
   935  			Type: "file",
   936  			Size: 11,
   937  			Props: map[string][]string{
   938  				"b": {"1"},
   939  			},
   940  		},
   941  		{
   942  			Path: Repo1 + "/a/b/c/c2.in",
   943  			Type: "file",
   944  			Size: 11,
   945  			Props: map[string][]string{
   946  				"c": {"3"},
   947  			},
   948  		},
   949  		{
   950  			Path: Repo1 + "/a/b/c/c3.in",
   951  			Type: "file",
   952  			Size: 11,
   953  			Props: map[string][]string{
   954  				"c": {"3"},
   955  			},
   956  		},
   957  	}
   958  }
   959  
   960  func GetSearchPropsStep4() []generic.SearchResult {
   961  	return []generic.SearchResult{
   962  		{
   963  			Path: Repo1 + "/a/a3.in",
   964  			Type: "file",
   965  			Size: 7,
   966  			Props: map[string][]string{
   967  				"a": {"1"},
   968  				"b": {"3"},
   969  				"c": {"3"},
   970  			},
   971  		},
   972  		{
   973  			Path: Repo1 + "/a/b/b2.in",
   974  			Type: "file",
   975  			Size: 9,
   976  			Props: map[string][]string{
   977  				"b": {"1"},
   978  				"c": {"3"},
   979  			},
   980  		},
   981  		{
   982  			Path: Repo1 + "/a/b/c/c2.in",
   983  			Type: "file",
   984  			Size: 11,
   985  			Props: map[string][]string{
   986  				"c": {"3"},
   987  			},
   988  		},
   989  		{
   990  			Path: Repo1 + "/a/b/c/c3.in",
   991  			Type: "file",
   992  			Size: 11,
   993  			Props: map[string][]string{
   994  				"c": {"3"},
   995  			},
   996  		},
   997  	}
   998  }
   999  
  1000  func GetSearchPropsStep5() []generic.SearchResult {
  1001  	return make([]generic.SearchResult, 0)
  1002  }
  1003  
  1004  func GetSearchPropsStep6() []generic.SearchResult {
  1005  	return []generic.SearchResult{
  1006  		{
  1007  			Path: Repo1 + "/a/b/c/c1.in",
  1008  			Type: "file",
  1009  			Size: 11,
  1010  			Props: map[string][]string{
  1011  				"b": {"1"},
  1012  			},
  1013  		},
  1014  	}
  1015  }
  1016  
  1017  func GetSearchResultAfterDeleteByPropsStep1() []generic.SearchResult {
  1018  	return []generic.SearchResult{
  1019  		{
  1020  			Path: Repo1 + "/a/a1.in",
  1021  			Type: "file",
  1022  			Size: 7,
  1023  			Props: map[string][]string{
  1024  				"a": {"2"},
  1025  				"b": {"3"},
  1026  			},
  1027  		},
  1028  		{
  1029  			Path: Repo1 + "/a/a2.in",
  1030  			Type: "file",
  1031  			Size: 7,
  1032  			Props: map[string][]string{
  1033  				"a": {"1"},
  1034  			},
  1035  		},
  1036  		{
  1037  			Path: Repo1 + "/a/a3.in",
  1038  			Type: "file",
  1039  			Size: 7,
  1040  			Props: map[string][]string{
  1041  				"a": {"1"},
  1042  				"b": {"3"},
  1043  				"c": {"3"},
  1044  			},
  1045  		},
  1046  		{
  1047  			Path: Repo1 + "/a/b/b2.in",
  1048  			Type: "file",
  1049  			Size: 9,
  1050  			Props: map[string][]string{
  1051  				"b": {"1"},
  1052  				"c": {"3"},
  1053  				"D": {"5"},
  1054  			},
  1055  		},
  1056  		{
  1057  			Path: Repo1 + "/a/b/b3.in",
  1058  			Type: "file",
  1059  			Size: 9,
  1060  			Props: map[string][]string{
  1061  				"a": {"1"},
  1062  				"b": {"2"},
  1063  				"c": {"3"},
  1064  				"D": {"5"},
  1065  			},
  1066  		},
  1067  		{
  1068  			Path: Repo1 + "/a/b/c/c2.in",
  1069  			Type: "file",
  1070  			Size: 11,
  1071  			Props: map[string][]string{
  1072  				"c": {"3"},
  1073  				"D": {"2"},
  1074  			},
  1075  		},
  1076  		{
  1077  			Path: Repo1 + "/a/b/c/c3.in",
  1078  			Type: "file",
  1079  			Size: 11,
  1080  			Props: map[string][]string{
  1081  				"c": {"3"},
  1082  				"D": {"2"},
  1083  			},
  1084  		},
  1085  	}
  1086  }
  1087  
  1088  func GetSearchResultAfterDeleteByPropsStep2() []generic.SearchResult {
  1089  	return []generic.SearchResult{
  1090  		{
  1091  			Path: Repo1 + "/a/a1.in",
  1092  			Type: "file",
  1093  			Size: 7,
  1094  			Props: map[string][]string{
  1095  				"a": {"2"},
  1096  				"b": {"3"},
  1097  			},
  1098  		},
  1099  		{
  1100  			Path: Repo1 + "/a/a2.in",
  1101  			Type: "file",
  1102  			Size: 7,
  1103  			Props: map[string][]string{
  1104  				"a": {"1"},
  1105  			},
  1106  		},
  1107  		{
  1108  			Path: Repo1 + "/a/a3.in",
  1109  			Type: "file",
  1110  			Size: 7,
  1111  			Props: map[string][]string{
  1112  				"a": {"1"},
  1113  				"b": {"3"},
  1114  				"c": {"3"},
  1115  			},
  1116  		},
  1117  		{
  1118  			Path: Repo1 + "/a/b/b3.in",
  1119  			Type: "file",
  1120  			Size: 9,
  1121  			Props: map[string][]string{
  1122  				"a": {"1"},
  1123  				"b": {"2"},
  1124  				"c": {"3"},
  1125  				"D": {"5"},
  1126  			},
  1127  		},
  1128  	}
  1129  }
  1130  
  1131  func GetSearchResultAfterDeleteByPropsStep3() []generic.SearchResult {
  1132  	return []generic.SearchResult{
  1133  		{
  1134  			Path: Repo1 + "/a/a1.in",
  1135  			Type: "file",
  1136  			Size: 7,
  1137  			Props: map[string][]string{
  1138  				"a": {"2"},
  1139  				"b": {"3"},
  1140  			},
  1141  		},
  1142  		{
  1143  			Path: Repo1 + "/a/a3.in",
  1144  			Type: "file",
  1145  			Size: 7,
  1146  			Props: map[string][]string{
  1147  				"a": {"1"},
  1148  				"b": {"3"},
  1149  				"c": {"3"},
  1150  			},
  1151  		},
  1152  	}
  1153  }
  1154  
  1155  func GetMavenDeployedArtifacts() []string {
  1156  	return []string{
  1157  		Repo1 + "/org/jfrog/cli-test/1.0/cli-test-1.0.jar",
  1158  		Repo1 + "/org/jfrog/cli-test/1.0/cli-test-1.0.pom",
  1159  	}
  1160  }
  1161  
  1162  func GetGradleDeployedArtifacts() []string {
  1163  	return []string{
  1164  		Repo1 + "/minimal-example/1.0/minimal-example-1.0.jar",
  1165  	}
  1166  }
  1167  
  1168  func GetNpmDeployedScopedArtifacts() []string {
  1169  	return []string{
  1170  		NpmLocalRepo + "/@jscope/jfrog-cli-tests/-/jfrog-cli-tests-1.0.0.tgz",
  1171  	}
  1172  }
  1173  func GetNpmDeployedArtifacts() []string {
  1174  	return []string{
  1175  		NpmLocalRepo + "/jfrog-cli-tests/-/jfrog-cli-tests-1.0.0.tgz",
  1176  	}
  1177  }
  1178  
  1179  func GetSortAndLimit() []string {
  1180  	return []string{
  1181  		Out,
  1182  		filepath.Join(Out, "download"),
  1183  		filepath.Join(Out, "download", "sort_limit"),
  1184  		filepath.Join(Out, "download", "sort_limit", "data"),
  1185  		filepath.Join(Out, "download", "sort_limit", "data", "a1.in"),
  1186  		filepath.Join(Out, "download", "sort_limit", "data", "b"),
  1187  		filepath.Join(Out, "download", "sort_limit", "data", "b", "c"),
  1188  		filepath.Join(Out, "download", "sort_limit", "data", "b", "c", "c1.in"),
  1189  		filepath.Join(Out, "download", "sort_limit", "data", "b", "c", "c2.in"),
  1190  		filepath.Join(Out, "download", "sort_limit", "data", "b", "c", "c3.in"),
  1191  	}
  1192  }
  1193  
  1194  func GetBuildDownloadByShaAndBuildNameWithSort() []string {
  1195  	return []string{
  1196  		filepath.Join(Out, "download", "sort_limit_by_build"),
  1197  		filepath.Join(Out, "download", "sort_limit_by_build", "data"),
  1198  		filepath.Join(Out, "download", "sort_limit_by_build", "data", "a11.in"),
  1199  	}
  1200  }
  1201  
  1202  func GetBuildArchiveEntriesDownloadCli() []string {
  1203  	return []string{
  1204  		Out,
  1205  		filepath.Join(Out, "a.zip"),
  1206  		filepath.Join(Out, "b.zip"),
  1207  		filepath.Join(Out, "c.zip"),
  1208  	}
  1209  }
  1210  
  1211  func GetBuildArchiveEntriesSpecificPathDownload() []string {
  1212  	return []string{
  1213  		Out,
  1214  		filepath.Join(Out, "b.zip"),
  1215  	}
  1216  }
  1217  
  1218  func GetBuildArchiveEntriesDownloadSpec() []string {
  1219  	return []string{
  1220  		Out,
  1221  		filepath.Join(Out, "d.zip"),
  1222  	}
  1223  }
  1224  
  1225  func GetWinCompatibility() []string {
  1226  	return []string{
  1227  		Out,
  1228  		filepath.Join(Out, "win"),
  1229  		filepath.Join(Out, "win", "a2.in"),
  1230  		filepath.Join(Out, "win", "b1.in"),
  1231  		filepath.Join(Out, "win", "b3.in"),
  1232  	}
  1233  }
  1234  
  1235  func GetUploadExpectedRepo1SyncDeleteStep1() []string {
  1236  	return []string{
  1237  		Repo1 + "/syncDir/testsdata/a/a3.in",
  1238  		Repo1 + "/syncDir/testsdata/a/a1.in",
  1239  		Repo1 + "/syncDir/testsdata/a/a2.in",
  1240  		Repo1 + "/syncDir/testsdata/a/b/b1.in",
  1241  		Repo1 + "/syncDir/testsdata/a/b/b2.in",
  1242  		Repo1 + "/syncDir/testsdata/a/b/b3.in",
  1243  		Repo1 + "/syncDir/testsdata/a/b/c/c1.in",
  1244  		Repo1 + "/syncDir/testsdata/a/b/c/c2.in",
  1245  		Repo1 + "/syncDir/testsdata/a/b/c/c3.in",
  1246  	}
  1247  }
  1248  
  1249  func GetUploadExpectedRepo1SyncDeleteStep2() []string {
  1250  	return []string{
  1251  		Repo1 + "/syncDir/testsdata/a/a3.in",
  1252  		Repo1 + "/syncDir/testsdata/a/a1.in",
  1253  		Repo1 + "/syncDir/testsdata/a/a2.in",
  1254  		Repo1 + "/syncDir/testsdata/a/b/b1.in",
  1255  		Repo1 + "/syncDir/testsdata/a/b/c/c1.in",
  1256  	}
  1257  }
  1258  
  1259  func GetUploadExpectedRepo1SyncDeleteStep3() []string {
  1260  	return []string{
  1261  		Repo1 + "/syncDir/a.zip",
  1262  		Repo1 + "/syncDir/b.zip",
  1263  		Repo1 + "/syncDir/c.zip",
  1264  		Repo1 + "/syncDir/d.zip",
  1265  	}
  1266  }
  1267  
  1268  func GetReplicationConfig() []clientutils.ReplicationParams {
  1269  	return []clientutils.ReplicationParams{
  1270  		{
  1271  			Url:                    *RtUrl,
  1272  			Username:               *RtUser,
  1273  			Password:               "",
  1274  			CronExp:                "0 0 12 * * ?",
  1275  			RepoKey:                Repo1,
  1276  			EnableEventReplication: false,
  1277  			SocketTimeoutMillis:    15000,
  1278  			Enabled:                true,
  1279  			SyncDeletes:            true,
  1280  			SyncProperties:         true,
  1281  			SyncStatistics:         false,
  1282  			PathPrefix:             "/my/path",
  1283  		},
  1284  	}
  1285  }