Documentation
¶
Index ¶
- Constants
- Variables
- func AreListsIdentical(expected, actual []string, t *testing.T)
- func CleanFileSystem()
- func CompareExpectedVsActuals(expected []string, actual []commands.SearchResult, t *testing.T)
- func FixWinPath(filePath string) string
- func GetFilePath(fileName string) string
- func GetTestResourcesPath() string
- func GetTestsLogsDir() (string, error)
- func GitExecutor(dotGitPath string) *gitManager
- func IsExistLocally(expected, actual []string, t *testing.T)
- type JfrogCli
- type PackageSearchResultItem
Constants ¶
View Source
const ( Repo1 = "jfrog-cli-tests-repo1" Repo2 = "jfrog-cli-tests-repo2" JcenterRemoteRepo = "jfrog-cli-tests-jcenter-remote" LfsRepo = "jfrog-cli-tests-lfs-repo" NpmLocalRepo = "jfrog-cli-tests-npm-local-repo" NpmRemoteRepo = "jfrog-cli-tests-npm-remote-repo" RtServerId = "rtTestServerId" BuildAddDepsSpec = "simple_bad_spec.json" BuildAddDepsDoubleSpec = "double_bad_spec.json" BuildAddDepsBuildName = "cli-bad-test-build" NpmBuildName = "cli-npm-test-build" Out = "out" DownloadSpec = "download_spec.json" BuildDownloadSpec = "build_download_spec.json" BuildDownloadSpecNoBuildNumber = "build_download_spec_no_build_number.json" SimpleUploadSpec = "simple_upload_spec.json" UploadEmptyDirs = "upload_empty_dir_spec.json" DownloadEmptyDirs = "download_empty_dir_spec.json" SplitUploadSpecA = "split_upload_spec_a.json" SplitUploadSpecB = "split_upload_spec_b.json" UploadSpec = "upload_spec.json" DeleteSpec = "delete_spec.json" DeleteComplexSpec = "delete_complex_spec.json" MoveCopyDeleteSpec = "move_copy_delete_spec.json" PrepareCopy = "prepare_copy.json" Search = "search.json" SearchAllRepo1 = "search_all_repo1.json" SearchRepo2 = "search_repo2.json" SearchTxt = "search_txt.json" SearchMoveDeleteRepoSpec = "search_move_delete_repo_spec.json" CopyByBuildSpec = "move_copy_delete_by_build_spec.json" CpMvDlByBuildAssertSpec = "copy_by_build_assert_spec.json" GitLfsAssertSpec = "git_lfs_assert_spec.json" MoveRepositoryConfig = "move_repository_config.json" SpecsTestRepositoryConfig = "specs_test_repository_config.json" GitLfsTestRepositoryConfig = "git_lfs_test_repository_config.json" JcenterRemoteRepositoryConfig = "jcenter_remote_repository_config.json" NpmLocalRepositoryConfig = "npm_local_repository_config.json" NpmRemoteRepositoryConfig = "npm_remote_repository_config.json" RepoDetailsUrl = "api/repositories/" CopyItemsSpec = "copy_items_spec.json" MavenServerIDConfig = "maven_server_id.yaml" MavenUsernamePasswordTemplate = "maven_user_pass_template.yaml" GradleServerIDConfig = "gradle_server_id.yaml" GradleUseramePasswordTemplate = "gradle_user_pass_template.yaml" DownloadSpecExclude = "download_spec_exclude.json" MoveCopySpecExclude = "move_copy_spec_exclude.json" DelSpecExclude = "delete_spec_exclude.json" UploadSpecExclude = "upload_spec_exclude.json" UploadSpecExcludeRegex = "upload_spec_exclude_regex.json" BuildDownloadSpecNoBuildNumberWithSort = "build_download_spec_no_build_number_with_sort.json" )
View Source
const ( BintrayRepo1 = "jfrog-cli-tests-repo1" BintrayTestRepositoryConfig = "bintray_repository_config.json" BintrayUploadTestPackageName = "uploadTestPackage" BintrayUploadTestVersion = "1.2.3" )
Variables ¶
View Source
var AnyItemCopy = []string{ Repo2 + "/path/inner/a1.in", Repo2 + "/someFile", }
View Source
var AnyItemCopyRecursive = []string{ Repo2 + "/a/b/a1.in", Repo2 + "/aFile", }
View Source
var AnyItemCopyUsingSpec = []string{ Repo2 + "/a1.in", }
View Source
var BintrayExpectedUploadFlatNonRecursive = []PackageSearchResultItem{{ Repo: BintrayRepo1, Path: "a1.in", Package: BintrayUploadTestPackageName, Name: "a1.in", Version: BintrayUploadTestVersion, Sha1: "507ac63c6b0f650fb6f36b5621e70ebca3b0965c"}, { Repo: BintrayRepo1, Path: "a2.in", Package: BintrayUploadTestPackageName, Name: "a2.in", Version: BintrayUploadTestVersion, Sha1: "de2f31d77e2c2b1039a806f21b0c5f3243e45588"}, { Repo: BintrayRepo1, Path: "a3.in", Package: BintrayUploadTestPackageName, Name: "a3.in", Version: BintrayUploadTestVersion, Sha1: "29d38faccfe74dee60d0142a716e8ea6fad67b49"}}
View Source
var BintrayExpectedUploadFlatNonRecursiveModified = []PackageSearchResultItem{{ Repo: BintrayRepo1, Path: "a1.in", Package: BintrayUploadTestPackageName, Name: "a1.in", Version: BintrayUploadTestVersion, Sha1: "954cf8f3f75c41f18540bb38460910b4f0074e6f"}, { Repo: BintrayRepo1, Path: "a2.in", Package: BintrayUploadTestPackageName, Name: "a2.in", Version: BintrayUploadTestVersion, Sha1: "de2f31d77e2c2b1039a806f21b0c5f3243e45588"}, { Repo: BintrayRepo1, Path: "a3.in", Package: BintrayUploadTestPackageName, Name: "a3.in", Version: BintrayUploadTestVersion, Sha1: "29d38faccfe74dee60d0142a716e8ea6fad67b49"}}
View Source
var BintrayExpectedUploadFlatRecursive = []PackageSearchResultItem{{ Repo: BintrayRepo1, Path: "a1.in", Package: BintrayUploadTestPackageName, Name: "a1.in", Version: BintrayUploadTestVersion, Sha1: "507ac63c6b0f650fb6f36b5621e70ebca3b0965c"}, { Repo: BintrayRepo1, Path: "a2.in", Package: BintrayUploadTestPackageName, Name: "a2.in", Version: BintrayUploadTestVersion, Sha1: "de2f31d77e2c2b1039a806f21b0c5f3243e45588"}, { Repo: BintrayRepo1, Path: "a3.in", Package: BintrayUploadTestPackageName, Name: "a3.in", Version: BintrayUploadTestVersion, Sha1: "29d38faccfe74dee60d0142a716e8ea6fad67b49"}, { Repo: BintrayRepo1, Path: "b1.in", Package: BintrayUploadTestPackageName, Name: "b1.in", Version: BintrayUploadTestVersion, Sha1: "954cf8f3f75c41f18540bb38460910b4f0074e6f"}, { Repo: BintrayRepo1, Path: "b2.in", Package: BintrayUploadTestPackageName, Name: "b2.in", Version: BintrayUploadTestVersion, Sha1: "3b60b837e037568856bedc1dd4952d17b3f06972"}, { Repo: BintrayRepo1, Path: "b3.in", Package: BintrayUploadTestPackageName, Name: "b3.in", Version: BintrayUploadTestVersion, Sha1: "ec6420d2b5f708283619b25e68f9ddd351f555fe"}, { Repo: BintrayRepo1, Path: "c1.in", Package: BintrayUploadTestPackageName, Name: "c1.in", Version: BintrayUploadTestVersion, Sha1: "063041114949bf19f6fe7508aef639640e7edaac"}, { Repo: BintrayRepo1, Path: "c2.in", Package: BintrayUploadTestPackageName, Name: "c2.in", Version: BintrayUploadTestVersion, Sha1: "a4f912be11e7d1d346e34c300e6d4b90e136896e"}, { Repo: BintrayRepo1, Path: "c3.in", Package: BintrayUploadTestPackageName, Name: "c3.in", Version: BintrayUploadTestVersion, Sha1: "2d6ee506188db9b816a6bfb79c5df562fc1d8658"}}
View Source
var BintrayExpectedUploadNonFlatNonRecursive = []PackageSearchResultItem{{ Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/a1.in", Package: BintrayUploadTestPackageName, Name: "a1.in", Version: BintrayUploadTestVersion, Sha1: "507ac63c6b0f650fb6f36b5621e70ebca3b0965c"}, { Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/a2.in", Package: BintrayUploadTestPackageName, Name: "a2.in", Version: BintrayUploadTestVersion, Sha1: "de2f31d77e2c2b1039a806f21b0c5f3243e45588"}, { Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/a3.in", Package: BintrayUploadTestPackageName, Name: "a3.in", Version: BintrayUploadTestVersion, Sha1: "29d38faccfe74dee60d0142a716e8ea6fad67b49"}}
View Source
var BintrayExpectedUploadNonFlatRecursive = []PackageSearchResultItem{{ Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/a1.in", Package: BintrayUploadTestPackageName, Name: "a1.in", Version: BintrayUploadTestVersion, Sha1: "507ac63c6b0f650fb6f36b5621e70ebca3b0965c"}, { Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/a2.in", Package: BintrayUploadTestPackageName, Name: "a2.in", Version: BintrayUploadTestVersion, Sha1: "de2f31d77e2c2b1039a806f21b0c5f3243e45588"}, { Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/a3.in", Package: BintrayUploadTestPackageName, Name: "a3.in", Version: BintrayUploadTestVersion, Sha1: "29d38faccfe74dee60d0142a716e8ea6fad67b49"}, { Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/b/b1.in", Package: BintrayUploadTestPackageName, Name: "b1.in", Version: BintrayUploadTestVersion, Sha1: "954cf8f3f75c41f18540bb38460910b4f0074e6f"}, { Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/b/b2.in", Package: BintrayUploadTestPackageName, Name: "b2.in", Version: BintrayUploadTestVersion, Sha1: "3b60b837e037568856bedc1dd4952d17b3f06972"}, { Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/b/b3.in", Package: BintrayUploadTestPackageName, Name: "b3.in", Version: BintrayUploadTestVersion, Sha1: "ec6420d2b5f708283619b25e68f9ddd351f555fe"}, { Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/b/c/c1.in", Package: BintrayUploadTestPackageName, Name: "c1.in", Version: BintrayUploadTestVersion, Sha1: "063041114949bf19f6fe7508aef639640e7edaac"}, { Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/b/c/c2.in", Package: BintrayUploadTestPackageName, Name: "c2.in", Version: BintrayUploadTestVersion, Sha1: "a4f912be11e7d1d346e34c300e6d4b90e136896e"}, { Repo: BintrayRepo1, Path: GetTestResourcesPath()[1:] + "a/b/c/c3.in", Package: BintrayUploadTestPackageName, Name: "c3.in", Version: BintrayUploadTestVersion, Sha1: "2d6ee506188db9b816a6bfb79c5df562fc1d8658"}}
View Source
var BtKey *string
View Source
var BtOrg *string
View Source
var BtUser *string
View Source
var BuildCopyExclude = []string{ Repo1 + "/data/a1.in", Repo1 + "/data/a2.in", Repo1 + "/data/a3.in", Repo1 + "/data/b1.in", Repo1 + "/data/b2.in", Repo1 + "/data/b3.in", Repo2 + "/data/a1.in", Repo2 + "/data/a2.in", Repo2 + "/data/a3.in", }
View Source
var BuildCopyExpected = []string{ Repo1 + "/data/a1.in", Repo1 + "/data/a2.in", Repo1 + "/data/a3.in", Repo1 + "/data/b1.in", Repo1 + "/data/b2.in", Repo1 + "/data/b3.in", Repo2 + "/data/a1.in", Repo2 + "/data/a2.in", Repo2 + "/data/a3.in", }
View Source
var BuildDeleteExpected = []string{ Repo1 + "/data/b1.in", Repo1 + "/data/b2.in", Repo1 + "/data/b3.in", }
View Source
var BuildDownload = []string{ Out, filepath.Join(Out, "download"), filepath.Join(Out, "download", "aql_by_build"), filepath.Join(Out, "download", "aql_by_build", "data"), filepath.Join(Out, "download", "aql_by_build", "data", "a1.in"), filepath.Join(Out, "download", "aql_by_build", "data", "a2.in"), filepath.Join(Out, "download", "aql_by_build", "data", "a3.in"), }
View Source
var BuildDownloadByShaAndBuild = []string{ Out, filepath.Join(Out, "download"), filepath.Join(Out, "download", "aql_by_build"), filepath.Join(Out, "download", "aql_by_build", "data"), filepath.Join(Out, "download", "aql_by_build", "data", "a10.in"), }
View Source
var BuildDownloadByShaAndBuildName = []string{ Out, filepath.Join(Out, "download"), filepath.Join(Out, "download", "aql_by_build"), filepath.Join(Out, "download", "aql_by_build", "data"), filepath.Join(Out, "download", "aql_by_build", "data", "a11.in"), }
View Source
var BuildDownloadByShaAndBuildNameWithSort = []string{ filepath.Join(Out, "download", "sort_limit_by_build"), filepath.Join(Out, "download", "sort_limit_by_build", "data"), filepath.Join(Out, "download", "sort_limit_by_build", "data", "a11.in"), }
View Source
var BuildDownloadDoesntExist = []string{ Out, }
View Source
var BuildExcludeDownload = []string{ Out, filepath.Join(Out, "download"), filepath.Join(Out, "download", "aql_by_artifacts"), filepath.Join(Out, "download", "aql_by_artifacts", "data"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "a3.in"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "b1.in"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "b2.in"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "b3.in"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "c1.in"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "c3.in"), }
View Source
var BuildExcludeDownloadBySpec = []string{ Out, filepath.Join(Out, "download"), filepath.Join(Out, "download", "aql_by_artifacts"), filepath.Join(Out, "download", "aql_by_artifacts", "data"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "a2.in"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "b1.in"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "b2.in"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "b3.in"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "c1.in"), filepath.Join(Out, "download", "aql_by_artifacts", "data", "c3.in"), }
View Source
var BuildMoveExpected = []string{ Repo1 + "/data/b1.in", Repo1 + "/data/b2.in", Repo1 + "/data/b3.in", Repo2 + "/data/a1.in", Repo2 + "/data/a2.in", Repo2 + "/data/a3.in", }
View Source
var BuildSimpleDownload = []string{ Out, filepath.Join(Out, "download"), filepath.Join(Out, "download", "simple_by_build"), filepath.Join(Out, "download", "simple_by_build", "data"), filepath.Join(Out, "download", "simple_by_build", "data", "b1.in"), }
View Source
var CopyFolderRename = []string{ Repo2 + "/newPath/inner/a1.in", }
View Source
var Delete1 = []string{ Repo2 + "/3_only_flat_recursive_target/a3.in", Repo2 + "/3_only_flat_recursive_target/b3.in", Repo2 + "/3_only_flat_recursive_target/c3.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/a1.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/a2.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/a3.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/b1.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/b2.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/b3.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/c/c1.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/c/c2.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/c/c3.in", Repo2 + "/flat_nonrecursive_target/a1.in", Repo2 + "/flat_nonrecursive_target/a2.in", Repo2 + "/flat_nonrecursive_target/a3.in", Repo2 + "/flat_recursive_target/a1.in", Repo2 + "/flat_recursive_target/a2.in", Repo2 + "/flat_recursive_target/a3.in", Repo2 + "/flat_recursive_target/b1.in", Repo2 + "/flat_recursive_target/b2.in", Repo2 + "/flat_recursive_target/b3.in", Repo2 + "/flat_recursive_target/c1.in", Repo2 + "/flat_recursive_target/c2.in", Repo2 + "/flat_recursive_target/c3.in", Repo2 + "/no_target/a/a1.in", Repo2 + "/no_target/a/a2.in", Repo2 + "/no_target/a/a3.in", Repo2 + "/no_target/a/b/b1.in", Repo2 + "/no_target/a/b/b2.in", Repo2 + "/no_target/a/b/b3.in", Repo2 + "/no_target/a/b/c/c1.in", Repo2 + "/no_target/a/b/c/c2.in", Repo2 + "/no_target/a/b/c/c3.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/a1.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/a2.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/a3.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/a1.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/a2.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/a3.in", Repo2 + "/pattern_placeholder_target/a/a1.in", Repo2 + "/pattern_placeholder_target/a/a2.in", Repo2 + "/pattern_placeholder_target/a/a3.in", Repo2 + "/pattern_placeholder_target/a/b/b1.in", Repo2 + "/pattern_placeholder_target/a/b/b2.in", Repo2 + "/pattern_placeholder_target/a/b/b3.in", Repo2 + "/pattern_placeholder_target/a/b/c/c1.in", Repo2 + "/pattern_placeholder_target/a/b/c/c2.in", Repo2 + "/pattern_placeholder_target/a/b/c/c3.in", Repo2 + "/properties_target/properties_source/a/a1.in", Repo2 + "/properties_target/properties_source/a/a2.in", Repo2 + "/properties_target/properties_source/a/a3.in", Repo2 + "/properties_target/properties_source/a/b/b1.in", Repo2 + "/properties_target/properties_source/a/b/b2.in", Repo2 + "/properties_target/properties_source/a/b/b3.in", Repo2 + "/properties_target/properties_source/a/b/c/c1.in", Repo2 + "/properties_target/properties_source/a/b/c/c2.in", Repo2 + "/properties_target/properties_source/a/b/c/c3.in", Repo2 + "/rename_target/RENAMED.in", Repo2 + "/simple_placeholder_target/a/a1.in", Repo2 + "/simple_target/a1.in", Repo2 + "/flat_nonrecursive_target/b/b1.in", Repo2 + "/flat_nonrecursive_target/b/b2.in", Repo2 + "/flat_nonrecursive_target/b/b3.in", Repo2 + "/flat_nonrecursive_target/b/c/c1.in", Repo2 + "/flat_nonrecursive_target/b/c/c2.in", Repo2 + "/flat_nonrecursive_target/b/c/c3.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/b1.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/b2.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/b3.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/c/c1.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/c/c2.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/c/c3.in", }
View Source
var DeleteDisplyedFiles = []string{ Repo2 + "/3_only_flat_recursive_source/a/b/", Repo2 + "/3_only_flat_recursive_source/a/a1.in", Repo2 + "/3_only_flat_recursive_source/a/a2.in", Repo2 + "/3_only_flat_recursive_source/a/a3.in", Repo2 + "/flat_recursive_source/a/b/c/", Repo2 + "/flat_recursive_source/a/b/b1.in", Repo2 + "/flat_recursive_source/a/b/b2.in", Repo2 + "/flat_recursive_source/a/b/b3.in", Repo2 + "/defaults_recursive_nonflat_source/a/a1.in", Repo2 + "/defaults_recursive_nonflat_source/a/a2.in", Repo2 + "/defaults_recursive_nonflat_source/a/a3.in", Repo2 + "/defaults_recursive_nonflat_source/a/b/", Repo2 + "/flat_nonrecursive_source/a/b/c/", Repo2 + "/flat_nonrecursive_source/a/b/b1.in", Repo2 + "/flat_nonrecursive_source/a/b/b2.in", Repo2 + "/flat_nonrecursive_source/a/b/b3.in", }
View Source
var DockerRepoDomain *string
View Source
var DockerTargetRepo *string
View Source
var ExplodeUploadExpectedRepo1 = []string{ Repo1 + "/a/a3.in", Repo1 + "/a/a1.in", Repo1 + "/a/a2.in", Repo1 + "/a/b/b1.in", Repo1 + "/a/b/b2.in", Repo1 + "/a/b/b3.in", Repo1 + "/a/b/c/c1.in", Repo1 + "/a/b/c/c2.in", Repo1 + "/a/b/c/c3.in", }
View Source
var ExtractedDownlod = []string{ filepath.Join(Out, "randLargeFile0"), filepath.Join(Out, "randLargeFile1"), filepath.Join(Out, "large.zip"), filepath.Join(Out, "a1.in"), filepath.Join(Out, "a", "a1.in"), filepath.Join(Out, "a", "a2.in"), filepath.Join(Out, "a", "a3.in"), filepath.Join(Out, "a", "b", "b1.in"), filepath.Join(Out, "a", "b", "b2.in"), filepath.Join(Out, "a", "b", "b3.in"), filepath.Join(Out, "a", "b", "c", "c1.in"), filepath.Join(Out, "a", "b", "c", "c2.in"), filepath.Join(Out, "a", "b", "c", "c3.in"), filepath.Join(Out, "a", "b", "c", "c3.in"), }
View Source
var FolderCopyIntoFolder = []string{ Repo2 + "/path/path/inner/a1.in", }
View Source
var FolderCopyTwice = []string{ Repo2 + "/path/inner/a1.in", Repo2 + "/path/path/inner/a1.in", }
View Source
var GitLfsExpected = []string{ LfsRepo + "/objects/4b/f4/4bf4c8c0fef3f5c8cf6f255d1c784377138588c0a9abe57e440bce3ccb350c2e", }
View Source
var GradleDeployedArtifacts = []string{ Repo1 + "/minimal-example/1.0/minimal-example-1.0.jar", }
View Source
var MassiveDownload = []string{ filepath.Join(Out, "a1.in"), filepath.Join(Out, "a2.in"), filepath.Join(Out, "a3.in"), filepath.Join(Out, "download"), filepath.Join(Out, "download", "3_only_flat_recursive", "a3.in"), filepath.Join(Out, "download", "3_only_flat_recursive", "b3.in"), filepath.Join(Out, "download", "3_only_flat_recursive", "c3.in"), filepath.Join(Out, "download", "aql", "downloadTestResources", "a"), filepath.Join(Out, "download", "aql", "downloadTestResources", "a", "a1.in"), filepath.Join(Out, "download", "aql_flat", "a1.in"), filepath.Join(Out, "download", "aql_flat", "a2.in"), filepath.Join(Out, "download", "aql_flat", "a3.in"), filepath.Join(Out, "download", "aql_flat", "b1.in"), filepath.Join(Out, "download", "aql_flat", "b2.in"), filepath.Join(Out, "download", "aql_flat", "b3.in"), filepath.Join(Out, "download", "aql_flat", "c1.in"), filepath.Join(Out, "download", "aql_flat", "c2.in"), filepath.Join(Out, "download", "aql_flat", "c3.in"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "a1.in"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "a2.in"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "a3.in"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "b"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "b", "b1.in"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "b", "b2.in"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "b", "b3.in"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "b", "c"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "b", "c", "c1.in"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "b", "c", "c2.in"), filepath.Join(Out, "download", "defaults_recursive_nonflat", "downloadTestResources", "a", "b", "c", "c3.in"), filepath.Join(Out, "download", "flat_nonrecursive", "a1.in"), filepath.Join(Out, "download", "flat_nonrecursive", "a2.in"), filepath.Join(Out, "download", "flat_nonrecursive", "a3.in"), filepath.Join(Out, "download", "flat_recursive", "a1.in"), filepath.Join(Out, "download", "flat_recursive", "a2.in"), filepath.Join(Out, "download", "flat_recursive", "a3.in"), filepath.Join(Out, "download", "flat_recursive", "b1.in"), filepath.Join(Out, "download", "flat_recursive", "b2.in"), filepath.Join(Out, "download", "flat_recursive", "b3.in"), filepath.Join(Out, "download", "flat_recursive", "c1.in"), filepath.Join(Out, "download", "flat_recursive", "c2.in"), filepath.Join(Out, "download", "flat_recursive", "c3.in"), filepath.Join(Out, "download", "nonflat_nonrecursive", "downloadTestResources", "a", "a1.in"), filepath.Join(Out, "download", "nonflat_nonrecursive", "downloadTestResources", "a", "a2.in"), filepath.Join(Out, "download", "nonflat_nonrecursive", "downloadTestResources", "a", "a3.in"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a", "a1.in"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a", "a2.in"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a", "a3.in"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a", "b"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a", "b", "b1.in"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a", "b", "b2.in"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a", "b", "b3.in"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a", "b", "c", "c1.in"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a", "b", "c", "c2.in"), filepath.Join(Out, "download", "nonflat_recursive", "downloadTestResources", "a", "b", "c", "c3.in"), filepath.Join(Out, "download", "properties", "downloadTestResources", "a", "a1.in"), filepath.Join(Out, "download", "properties", "downloadTestResources", "a", "a2.in"), filepath.Join(Out, "download", "properties", "downloadTestResources", "a", "a3.in"), filepath.Join(Out, "download", "properties", "downloadTestResources", "a", "b", "b1.in"), filepath.Join(Out, "download", "properties", "downloadTestResources", "a", "b", "b2.in"), filepath.Join(Out, "download", "properties", "downloadTestResources", "a", "b", "b3.in"), filepath.Join(Out, "download", "properties", "downloadTestResources", "a", "b", "c", "c1.in"), filepath.Join(Out, "download", "properties", "downloadTestResources", "a", "b", "c", "c2.in"), filepath.Join(Out, "download", "properties", "downloadTestResources", "a", "b", "c", "c3.in"), filepath.Join(Out, "download", "rename", "a1.out"), filepath.Join(Out, "download", "simple", "a1.in"), filepath.Join(Out, "download", "simple_placeholder", "a"), filepath.Join(Out, "download", "simple_placeholder", "a", "a1.in"), }
View Source
var MassiveMoveExpected = []string{ Repo2 + "/3_only_flat_recursive_target/a3.in", Repo2 + "/3_only_flat_recursive_target/b3.in", Repo2 + "/3_only_flat_recursive_target/c3.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/a1.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/a2.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/a3.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/b1.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/b2.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/b3.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/c/c1.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/c/c2.in", Repo2 + "/defaults_recursive_nonflat_target/defaults_recursive_nonflat_source/a/b/c/c3.in", Repo2 + "/flat_nonrecursive_target/a1.in", Repo2 + "/flat_nonrecursive_target/a2.in", Repo2 + "/flat_nonrecursive_target/a3.in", Repo2 + "/flat_recursive_target/a1.in", Repo2 + "/flat_recursive_target/a2.in", Repo2 + "/flat_recursive_target/a3.in", Repo2 + "/flat_recursive_target/b1.in", Repo2 + "/flat_recursive_target/b2.in", Repo2 + "/flat_recursive_target/b3.in", Repo2 + "/flat_recursive_target/c1.in", Repo2 + "/flat_recursive_target/c2.in", Repo2 + "/flat_recursive_target/c3.in", Repo2 + "/no_target/a/a1.in", Repo2 + "/no_target/a/a2.in", Repo2 + "/no_target/a/a3.in", Repo2 + "/no_target/a/b/b1.in", Repo2 + "/no_target/a/b/b2.in", Repo2 + "/no_target/a/b/b3.in", Repo2 + "/no_target/a/b/c/c1.in", Repo2 + "/no_target/a/b/c/c2.in", Repo2 + "/no_target/a/b/c/c3.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/a1.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/a2.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/a3.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/a1.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/a2.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/a3.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/b/b1.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/b/b2.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/b/b3.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/b/c/c1.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/b/c/c2.in", Repo2 + "/nonflat_recursive_target/nonflat_recursive_source/a/b/c/c3.in", Repo2 + "/pattern_placeholder_target/a/a1.in", Repo2 + "/pattern_placeholder_target/a/a2.in", Repo2 + "/pattern_placeholder_target/a/a3.in", Repo2 + "/pattern_placeholder_target/a/b/b1.in", Repo2 + "/pattern_placeholder_target/a/b/b2.in", Repo2 + "/pattern_placeholder_target/a/b/b3.in", Repo2 + "/pattern_placeholder_target/a/b/c/c1.in", Repo2 + "/pattern_placeholder_target/a/b/c/c2.in", Repo2 + "/pattern_placeholder_target/a/b/c/c3.in", Repo2 + "/properties_target/properties_source/a/a1.in", Repo2 + "/properties_target/properties_source/a/a2.in", Repo2 + "/properties_target/properties_source/a/a3.in", Repo2 + "/properties_target/properties_source/a/b/b1.in", Repo2 + "/properties_target/properties_source/a/b/b2.in", Repo2 + "/properties_target/properties_source/a/b/b3.in", Repo2 + "/properties_target/properties_source/a/b/c/c1.in", Repo2 + "/properties_target/properties_source/a/b/c/c2.in", Repo2 + "/properties_target/properties_source/a/b/c/c3.in", Repo2 + "/rename_target/RENAMED.in", Repo2 + "/simple_placeholder_target/a/a1.in", Repo2 + "/simple_target/a1.in", Repo2 + "/flat_nonrecursive_target/b/b1.in", Repo2 + "/flat_nonrecursive_target/b/b2.in", Repo2 + "/flat_nonrecursive_target/b/b3.in", Repo2 + "/flat_nonrecursive_target/b/c/c1.in", Repo2 + "/flat_nonrecursive_target/b/c/c2.in", Repo2 + "/flat_nonrecursive_target/b/c/c3.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/b1.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/b2.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/b3.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/c/c1.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/c/c2.in", Repo2 + "/nonflat_nonrecursive_target/nonflat_nonrecursive_source/a/b/c/c3.in", }
View Source
var MassiveUpload = []string{ Repo1 + "/spec-copy-test/3_only_flat_recursive/a3.in", Repo1 + "/spec-copy-test/3_only_flat_recursive/b3.in", Repo1 + "/spec-copy-test/3_only_flat_recursive/c3.in", Repo1 + "/spec-copy-test/copy-to-existing/a1.in", Repo1 + "/spec-copy-test/copy-to-existing/a2.in", Repo1 + "/spec-copy-test/copy-to-existing/a3.in", Repo1 + "/spec-copy-test/copy-to-existing/b1.in", Repo1 + "/spec-copy-test/copy-to-existing/b2.in", Repo1 + "/spec-copy-test/copy-to-existing/b3.in", Repo1 + "/spec-copy-test/copy-to-existing/c1.in", Repo1 + "/spec-copy-test/copy-to-existing/c2.in", Repo1 + "/spec-copy-test/copy-to-existing/c3.in", Repo1 + "/spec-copy-test/defaults_recursive_nonflat/a1.in", Repo1 + "/spec-copy-test/defaults_recursive_nonflat/a2.in", Repo1 + "/spec-copy-test/defaults_recursive_nonflat/a3.in", Repo1 + "/spec-copy-test/defaults_recursive_nonflat/b1.in", Repo1 + "/spec-copy-test/defaults_recursive_nonflat/b2.in", Repo1 + "/spec-copy-test/defaults_recursive_nonflat/b3.in", Repo1 + "/spec-copy-test/defaults_recursive_nonflat/c1.in", Repo1 + "/spec-copy-test/defaults_recursive_nonflat/c2.in", Repo1 + "/spec-copy-test/defaults_recursive_nonflat/c3.in", Repo1 + "/spec-copy-test/flat_nonrecursive/a1.in", Repo1 + "/spec-copy-test/flat_nonrecursive/a2.in", Repo1 + "/spec-copy-test/flat_nonrecursive/a3.in", Repo1 + "/spec-copy-test/flat_recursive/a1.in", Repo1 + "/spec-copy-test/flat_recursive/a2.in", Repo1 + "/spec-copy-test/flat_recursive/a3.in", Repo1 + "/spec-copy-test/flat_recursive/b1.in", Repo1 + "/spec-copy-test/flat_recursive/b2.in", Repo1 + "/spec-copy-test/flat_recursive/b3.in", Repo1 + "/spec-copy-test/flat_recursive/c1.in", Repo1 + "/spec-copy-test/flat_recursive/c2.in", Repo1 + "/spec-copy-test/flat_recursive/c3.in", Repo1 + "/spec-copy-test/nonflat_nonrecursive/testsdata/a/a1.in", Repo1 + "/spec-copy-test/nonflat_nonrecursive/testsdata/a/a2.in", Repo1 + "/spec-copy-test/nonflat_nonrecursive/testsdata/a/a3.in", Repo1 + "/spec-copy-test/nonflat_recursive/testsdata/a/a1.in", Repo1 + "/spec-copy-test/nonflat_recursive/testsdata/a/a2.in", Repo1 + "/spec-copy-test/nonflat_recursive/testsdata/a/a3.in", Repo1 + "/spec-copy-test/nonflat_recursive/testsdata/a/b/b1.in", Repo1 + "/spec-copy-test/nonflat_recursive/testsdata/a/b/b2.in", Repo1 + "/spec-copy-test/nonflat_recursive/testsdata/a/b/b3.in", Repo1 + "/spec-copy-test/nonflat_recursive/testsdata/a/b/c/c1.in", Repo1 + "/spec-copy-test/nonflat_recursive/testsdata/a/b/c/c2.in", Repo1 + "/spec-copy-test/nonflat_recursive/testsdata/a/b/c/c3.in", Repo1 + "/spec-copy-test/properties/testsdata/a/a1.in", Repo1 + "/spec-copy-test/properties/testsdata/a/a2.in", Repo1 + "/spec-copy-test/properties/testsdata/a/a3.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/b1.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/b2.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/b3.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/c/c1.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/c/c2.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/c/c3.in", Repo1 + "/spec-copy-test/properties/testsdata/a$+~&^a#/a1.in", Repo1 + "/spec-copy-test/properties/testsdata/c#/a#1.in", Repo1 + "/spec-copy-test/defaults_recursive_nonflat/a#1.in", Repo1 + "/spec-copy-test/copy-to-existing/a#1.in", Repo1 + "/spec-copy-test/simple/a1.in", }
View Source
var MavenDeployedArtifacts = []string{ Repo1 + "/org/jfrog/cli-test/1.0/cli-test-1.0.jar", Repo1 + "/org/jfrog/cli-test/1.0/cli-test-1.0.pom", }
View Source
var NpmDeployedArtifacts = []string{ NpmLocalRepo + "/jfrog-cli-tests/-/jfrog-cli-tests-1.0.0.tgz", }
View Source
var NpmDeployedScopedArtifacts = []string{ NpmLocalRepo + "/@jscope/jfrog-cli-tests/-/jfrog-cli-tests-1.0.0.tgz", }
View Source
var PropsExpected = []string{ Repo1 + "/spec-copy-test/properties/testsdata/a/a1.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/b1.in", Repo1 + "/spec-copy-test/properties/testsdata/a/a2.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/b2.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/c/c1.in", Repo1 + "/spec-copy-test/properties/testsdata/a/a3.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/b3.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/c/c2.in", Repo1 + "/spec-copy-test/properties/testsdata/a/b/c/c3.in", Repo1 + "/spec-copy-test/properties/testsdata/a$+~&^a#/a1.in", Repo1 + "/spec-copy-test/properties/testsdata/c#/a#1.in", }
View Source
var RtApiKey *string
View Source
var RtPassword *string
View Source
var RtSshKeyPath *string
View Source
var RtSshPassphrase *string
View Source
var RtUrl *string
View Source
var RtUser *string
View Source
var SimpleUploadExpectedRepo1 = []string{ Repo1 + "/flat_recursive/a3.in", Repo1 + "/flat_recursive/a1.in", Repo1 + "/flat_recursive/a2.in", Repo1 + "/flat_recursive/b2.in", Repo1 + "/flat_recursive/b3.in", Repo1 + "/flat_recursive/b1.in", Repo1 + "/flat_recursive/c2.in", Repo1 + "/flat_recursive/c1.in", Repo1 + "/flat_recursive/c3.in", }
View Source
var SimpleUploadExpectedRepo2 = []string{ Repo2 + "/flat_recursive/a3.in", Repo2 + "/flat_recursive/a1.in", Repo2 + "/flat_recursive/a2.in", Repo2 + "/flat_recursive/b2.in", Repo2 + "/flat_recursive/b3.in", Repo2 + "/flat_recursive/b1.in", Repo2 + "/flat_recursive/c2.in", Repo2 + "/flat_recursive/c1.in", Repo2 + "/flat_recursive/c3.in", }
View Source
var SimpleUploadSpecialCharNoRegexExpectedRepo1 = []string{ Repo1 + "/a1.in", }
View Source
var SingleDirectoryCopyFlat = []string{ Repo2 + "/inner/a1.in", }
View Source
var SingleFileCopy = []string{ Repo2 + "/path/a1.in", }
View Source
var SingleFileCopyFullPath = []string{ Repo2 + "/path/inner/a1.in", }
View Source
var SingleInnerFileCopyFullPath = []string{ Repo2 + "/path/path/inner/a1.in", }
View Source
var SortAndLimit = []string{ Out, filepath.Join(Out, "download"), filepath.Join(Out, "download", "sort_limit"), filepath.Join(Out, "download", "sort_limit", "data"), filepath.Join(Out, "download", "sort_limit", "data", "a1.in"), filepath.Join(Out, "download", "sort_limit", "data", "b"), filepath.Join(Out, "download", "sort_limit", "data", "b", "c"), filepath.Join(Out, "download", "sort_limit", "data", "b", "c", "c1.in"), filepath.Join(Out, "download", "sort_limit", "data", "b", "c", "c2.in"), filepath.Join(Out, "download", "sort_limit", "data", "b", "c", "c3.in"), }
View Source
var TestArtifactory *bool
View Source
var TestArtifactoryProxy *bool
View Source
var TestBintray *bool
View Source
var TestBuildTools *bool
View Source
var TestDocker *bool
View Source
var TxtUploadExpectedRepo1 = []string{ Repo1 + "/cliTestFile.txt", }
Functions ¶
func AreListsIdentical ¶
func CleanFileSystem ¶
func CleanFileSystem()
func CompareExpectedVsActuals ¶
func CompareExpectedVsActuals(expected []string, actual []commands.SearchResult, t *testing.T)
func FixWinPath ¶
func GetFilePath ¶
func GetTestResourcesPath ¶
func GetTestResourcesPath() string
func GetTestsLogsDir ¶
func GitExecutor ¶
func GitExecutor(dotGitPath string) *gitManager
func IsExistLocally ¶
Types ¶
type JfrogCli ¶
type JfrogCli struct {
// contains filtered or unexported fields
}
func NewJfrogCli ¶
func (*JfrogCli) WithSuffix ¶
Click to show internal directories.
Click to hide internal directories.