{"action":"created","comment":{"url":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/comments/233159102","pull_request_review_id":174508161,"id":233159102,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzE1OTEwMg==","diff_hunk":"@@ -2536,23 +2883,41 @@ func execCreateRepoRest(repoConfig, repoName string) {\n }\n \n func createReposIfNeeded() {\n-\trepos := map[string]string{\n-\t\ttests.Repo1:             tests.SpecsTestRepositoryConfig,\n-\t\ttests.Repo2:             tests.MoveRepositoryConfig,\n-\t\ttests.VirtualRepo:       tests.VirtualRepositoryConfig,\n-\t\ttests.LfsRepo:           tests.GitLfsTestRepositoryConfig,\n-\t\ttests.JcenterRemoteRepo: tests.JcenterRemoteRepositoryConfig,\n-\t\ttests.NpmLocalRepo:      tests.NpmLocalRepositoryConfig,\n-\t\ttests.NpmRemoteRepo:     tests.NpmRemoteRepositoryConfig,\n-\t}\n+\tcreateRandomReposName()\n+\tnonVirtualRepos := tests.GetNonVirtualRepositories()\n+\tcreateRepos(nonVirtualRepos)\n+\tvirtualRepos := tests.GetVirtualRepositories()\n+\tcreateRepos(virtualRepos)\n+}\n+\n+func createRepos(repos map[string]string) {\n \tfor repoName, configFile := range repos {\n \t\tif !isRepoExist(repoName) {\n \t\t\trepoConfig := tests.GetTestResourcesPath() + configFile\n+\t\t\trepoConfig, err := tests.ReplaceTemplateVariables(repoConfig, \"\", false)\n+\t\t\tif err != nil {\n+\t\t\t\tlog.Error(err)\n+\t\t\t\tos.Exit(1)\n+\t\t\t}\n \t\t\texecCreateRepoRest(repoConfig, repoName)\n \t\t}\n \t}\n }\n \n+func createRandomReposName() {\n+\ttimestamp := strconv.FormatInt(time.Now().Unix(), 10)\n+\ttests.Repo1 += \"-\" + timestamp\n+\ttests.Repo2 += \"-\" + timestamp\n+\ttests.VirtualRepo += \"-\" + timestamp\n+\ttests.LfsRepo += \"-\" + timestamp\n+\ttests.JcenterRemoteRepo += \"-\" + timestamp\n+\ttests.NpmLocalRepo += \"-\" + timestamp\n+\ttests.NpmRemoteRepo += \"-\" + timestamp","path":"jfrog-cli/jfrog/artifactory_test.go","position":1591,"original_position":1591,"commit_id":"5500de9c1cfe1abe06fa122c184d092fa1c96aec","original_commit_id":"5500de9c1cfe1abe06fa122c184d092fa1c96aec","user":{"login":"AlexeiVainshtein","id":13715319,"node_id":"MDQ6VXNlcjEzNzE1MzE5","avatar_url":"https://avatars1.githubusercontent.com/u/13715319?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexeiVainshtein","html_url":"https://github.com/AlexeiVainshtein","followers_url":"https://api.github.com/users/AlexeiVainshtein/followers","following_url":"https://api.github.com/users/AlexeiVainshtein/following{/other_user}","gists_url":"https://api.github.com/users/AlexeiVainshtein/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexeiVainshtein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexeiVainshtein/subscriptions","organizations_url":"https://api.github.com/users/AlexeiVainshtein/orgs","repos_url":"https://api.github.com/users/AlexeiVainshtein/repos","events_url":"https://api.github.com/users/AlexeiVainshtein/events{/privacy}","received_events_url":"https://api.github.com/users/AlexeiVainshtein/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2018-11-13T18:02:41Z","updated_at":"2018-11-13T18:02:41Z","html_url":"https://github.com/jfrog/jfrog-cli-go/pull/271#discussion_r233159102","pull_request_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/271","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/comments/233159102"},"html":{"href":"https://github.com/jfrog/jfrog-cli-go/pull/271#discussion_r233159102"},"pull_request":{"href":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/271"}},"in_reply_to_id":233149015},"pull_request":{"url":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/271","id":230548412,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNTQ4NDEy","html_url":"https://github.com/jfrog/jfrog-cli-go/pull/271","diff_url":"https://github.com/jfrog/jfrog-cli-go/pull/271.diff","patch_url":"https://github.com/jfrog/jfrog-cli-go/pull/271.patch","issue_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/issues/271","number":271,"state":"open","locked":false,"title":"Create dynamic repositories name for testing","user":{"login":"AlexeiVainshtein","id":13715319,"node_id":"MDQ6VXNlcjEzNzE1MzE5","avatar_url":"https://avatars1.githubusercontent.com/u/13715319?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexeiVainshtein","html_url":"https://github.com/AlexeiVainshtein","followers_url":"https://api.github.com/users/AlexeiVainshtein/followers","following_url":"https://api.github.com/users/AlexeiVainshtein/following{/other_user}","gists_url":"https://api.github.com/users/AlexeiVainshtein/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexeiVainshtein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexeiVainshtein/subscriptions","organizations_url":"https://api.github.com/users/AlexeiVainshtein/orgs","repos_url":"https://api.github.com/users/AlexeiVainshtein/repos","events_url":"https://api.github.com/users/AlexeiVainshtein/events{/privacy}","received_events_url":"https://api.github.com/users/AlexeiVainshtein/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-13T16:47:58Z","updated_at":"2018-11-13T18:02:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47cc5efa007b9593c73ba2af33cbc27af4ad6fe5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/271/commits","review_comments_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/271/comments","review_comment_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/issues/271/comments","statuses_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/statuses/5500de9c1cfe1abe06fa122c184d092fa1c96aec","head":{"label":"AlexeiVainshtein:dynamicReposName","ref":"dynamicReposName","sha":"5500de9c1cfe1abe06fa122c184d092fa1c96aec","user":{"login":"AlexeiVainshtein","id":13715319,"node_id":"MDQ6VXNlcjEzNzE1MzE5","avatar_url":"https://avatars1.githubusercontent.com/u/13715319?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexeiVainshtein","html_url":"https://github.com/AlexeiVainshtein","followers_url":"https://api.github.com/users/AlexeiVainshtein/followers","following_url":"https://api.github.com/users/AlexeiVainshtein/following{/other_user}","gists_url":"https://api.github.com/users/AlexeiVainshtein/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexeiVainshtein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexeiVainshtein/subscriptions","organizations_url":"https://api.github.com/users/AlexeiVainshtein/orgs","repos_url":"https://api.github.com/users/AlexeiVainshtein/repos","events_url":"https://api.github.com/users/AlexeiVainshtein/events{/privacy}","received_events_url":"https://api.github.com/users/AlexeiVainshtein/received_events","type":"User","site_admin":false},"repo":{"id":156522319,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY1MjIzMTk=","name":"jfrog-cli-go","full_name":"AlexeiVainshtein/jfrog-cli-go","private":false,"owner":{"login":"AlexeiVainshtein","id":13715319,"node_id":"MDQ6VXNlcjEzNzE1MzE5","avatar_url":"https://avatars1.githubusercontent.com/u/13715319?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexeiVainshtein","html_url":"https://github.com/AlexeiVainshtein","followers_url":"https://api.github.com/users/AlexeiVainshtein/followers","following_url":"https://api.github.com/users/AlexeiVainshtein/following{/other_user}","gists_url":"https://api.github.com/users/AlexeiVainshtein/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexeiVainshtein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexeiVainshtein/subscriptions","organizations_url":"https://api.github.com/users/AlexeiVainshtein/orgs","repos_url":"https://api.github.com/users/AlexeiVainshtein/repos","events_url":"https://api.github.com/users/AlexeiVainshtein/events{/privacy}","received_events_url":"https://api.github.com/users/AlexeiVainshtein/received_events","type":"User","site_admin":false},"html_url":"https://github.com/AlexeiVainshtein/jfrog-cli-go","description":null,"fork":true,"url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go","forks_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/forks","keys_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/teams","hooks_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/hooks","issue_events_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/issues/events{/number}","events_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/events","assignees_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/assignees{/user}","branches_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/branches{/branch}","tags_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/tags","blobs_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/languages","stargazers_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/stargazers","contributors_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/contributors","subscribers_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/subscribers","subscription_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/subscription","commits_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/contents/{+path}","compare_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/merges","archive_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/downloads","issues_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/issues{/number}","pulls_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/labels{/name}","releases_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/releases{/id}","deployments_url":"https://api.github.com/repos/AlexeiVainshtein/jfrog-cli-go/deployments","created_at":"2018-11-07T09:31:05Z","updated_at":"2018-11-07T09:31:07Z","pushed_at":"2018-11-13T16:46:45Z","git_url":"git://github.com/AlexeiVainshtein/jfrog-cli-go.git","ssh_url":"git@github.com:AlexeiVainshtein/jfrog-cli-go.git","clone_url":"https://github.com/AlexeiVainshtein/jfrog-cli-go.git","svn_url":"https://github.com/AlexeiVainshtein/jfrog-cli-go","homepage":null,"size":32072,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jfrog:dev","ref":"dev","sha":"71e68d043f3193b3a73a6bb6202f289f7758df37","user":{"login":"jfrog","id":499942,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5OTk0Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/499942?v=4","gravatar_id":"","url":"https://api.github.com/users/jfrog","html_url":"https://github.com/jfrog","followers_url":"https://api.github.com/users/jfrog/followers","following_url":"https://api.github.com/users/jfrog/following{/other_user}","gists_url":"https://api.github.com/users/jfrog/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrog/subscriptions","organizations_url":"https://api.github.com/users/jfrog/orgs","repos_url":"https://api.github.com/users/jfrog/repos","events_url":"https://api.github.com/users/jfrog/events{/privacy}","received_events_url":"https://api.github.com/users/jfrog/received_events","type":"Organization","site_admin":false},"repo":{"id":40996832,"node_id":"MDEwOlJlcG9zaXRvcnk0MDk5NjgzMg==","name":"jfrog-cli-go","full_name":"jfrog/jfrog-cli-go","private":false,"owner":{"login":"jfrog","id":499942,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5OTk0Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/499942?v=4","gravatar_id":"","url":"https://api.github.com/users/jfrog","html_url":"https://github.com/jfrog","followers_url":"https://api.github.com/users/jfrog/followers","following_url":"https://api.github.com/users/jfrog/following{/other_user}","gists_url":"https://api.github.com/users/jfrog/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrog/subscriptions","organizations_url":"https://api.github.com/users/jfrog/orgs","repos_url":"https://api.github.com/users/jfrog/repos","events_url":"https://api.github.com/users/jfrog/events{/privacy}","received_events_url":"https://api.github.com/users/jfrog/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/jfrog/jfrog-cli-go","description":null,"fork":false,"url":"https://api.github.com/repos/jfrog/jfrog-cli-go","forks_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/forks","keys_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/teams","hooks_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/hooks","issue_events_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/issues/events{/number}","events_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/events","assignees_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/assignees{/user}","branches_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/branches{/branch}","tags_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/tags","blobs_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/statuses/{sha}","languages_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/languages","stargazers_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/stargazers","contributors_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/contributors","subscribers_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/subscribers","subscription_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/subscription","commits_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/contents/{+path}","compare_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/merges","archive_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/downloads","issues_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/issues{/number}","pulls_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls{/number}","milestones_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/milestones{/number}","notifications_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/labels{/name}","releases_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/releases{/id}","deployments_url":"https://api.github.com/repos/jfrog/jfrog-cli-go/deployments","created_at":"2015-08-18T20:49:18Z","updated_at":"2018-11-11T16:56:50Z","pushed_at":"2018-11-13T17:26:54Z","git_url":"git://github.com/jfrog/jfrog-cli-go.git","ssh_url":"git@github.com:jfrog/jfrog-cli-go.git","clone_url":"https://github.com/jfrog/jfrog-cli-go.git","svn_url":"https://github.com/jfrog/jfrog-cli-go","homepage":null,"size":32023,"stargazers_count":119,"watchers_count":119,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"archived":false,"open_issues_count":72,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":63,"open_issues":72,"watchers":119,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/271"},"html":{"href":"https://github.com/jfrog/jfrog-cli-go/pull/271"},"issue":{"href":"https://api.github.com/repos/jfrog/jfrog-cli-go/issues/271"},"comments":{"href":"https://api.github.com/repos/jfrog/jfrog-cli-go/issues/271/comments"},"review_comments":{"href":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/271/comments"},"review_comment":{"href":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jfrog/jfrog-cli-go/pulls/271/commits"},"statuses":{"href":"https://api.github.com/repos/jfrog/jfrog-cli-go/statuses/5500de9c1cfe1abe06fa122c184d092fa1c96aec"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"AlexeiVainshtein"}}