{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/25449050","id":25449050,"diff_hunk":"@@ -146,9 +146,21 @@ func TestEventsImageUntagDelete(t *testing.T) {\n func TestEventsImagePull(t *testing.T) {\n \tsince := time.Now().Unix()\n \n-\tdefer deleteImages(\"hello-world\")\n+\tdefer setupRegistry(t)()\n+\trepoName := fmt.Sprintf(\"%v/dockercli/hello-world\", privateRegistryURL)\n+\tdefer deleteImages(repoName)\n \n-\tpullCmd := exec.Command(dockerBinary, \"pull\", \"hello-world\")\n+\trepo := fmt.Sprintf(\"%v:%v\", repoName, \"latest\")\n+\tif out, _, err := runCommandWithOutput(exec.Command(dockerBinary, \"tag\", \"busybox\", repo)); err != nil {\n+\t\tt.Fatalf(\"Failed to tag image %v: error %v, output %q\", repo, err, out)\n+\t}\n+\tdefer deleteImages(repo)\n+\n+\tif out, err := exec.Command(dockerBinary, \"push\", repo).CombinedOutput(); err != nil {","path":"integration-cli/docker_cli_events_test.go","position":16,"original_position":16,"commit_id":"d5cfb0cd169aec5c92ad19d1217f6470f9adb51e","original_commit_id":"d5cfb0cd169aec5c92ad19d1217f6470f9adb51e","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"body":"why not `runCommandWithOutput` here?","created_at":"2015-02-26T18:04:29Z","updated_at":"2015-02-26T18:04:29Z","html_url":"https://github.com/docker/docker/pull/11045#discussion_r25449050","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/11045","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/25449050"},"html":{"href":"https://github.com/docker/docker/pull/11045#discussion_r25449050"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/11045"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/11045","id":30095537,"html_url":"https://github.com/docker/docker/pull/11045","diff_url":"https://github.com/docker/docker/pull/11045.diff","patch_url":"https://github.com/docker/docker/pull/11045.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/11045","number":11045,"state":"open","locked":false,"title":"Fix the pull events test to use v2 local server","user":{"login":"brahmaroutu","id":5403596,"avatar_url":"https://avatars.githubusercontent.com/u/5403596?v=3","gravatar_id":"","url":"https://api.github.com/users/brahmaroutu","html_url":"https://github.com/brahmaroutu","followers_url":"https://api.github.com/users/brahmaroutu/followers","following_url":"https://api.github.com/users/brahmaroutu/following{/other_user}","gists_url":"https://api.github.com/users/brahmaroutu/gists{/gist_id}","starred_url":"https://api.github.com/users/brahmaroutu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brahmaroutu/subscriptions","organizations_url":"https://api.github.com/users/brahmaroutu/orgs","repos_url":"https://api.github.com/users/brahmaroutu/repos","events_url":"https://api.github.com/users/brahmaroutu/events{/privacy}","received_events_url":"https://api.github.com/users/brahmaroutu/received_events","type":"User","site_admin":false},"body":"Closes #10964\r\nSigned-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>","created_at":"2015-02-26T17:00:47Z","updated_at":"2015-02-26T18:04:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e44e79c67da75e14809a8994d7cf687d480d89d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker/pulls/11045/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/11045/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/11045/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/d5cfb0cd169aec5c92ad19d1217f6470f9adb51e","head":{"label":"brahmaroutu:fixtest_10964","ref":"fixtest_10964","sha":"d5cfb0cd169aec5c92ad19d1217f6470f9adb51e","user":{"login":"brahmaroutu","id":5403596,"avatar_url":"https://avatars.githubusercontent.com/u/5403596?v=3","gravatar_id":"","url":"https://api.github.com/users/brahmaroutu","html_url":"https://github.com/brahmaroutu","followers_url":"https://api.github.com/users/brahmaroutu/followers","following_url":"https://api.github.com/users/brahmaroutu/following{/other_user}","gists_url":"https://api.github.com/users/brahmaroutu/gists{/gist_id}","starred_url":"https://api.github.com/users/brahmaroutu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brahmaroutu/subscriptions","organizations_url":"https://api.github.com/users/brahmaroutu/orgs","repos_url":"https://api.github.com/users/brahmaroutu/repos","events_url":"https://api.github.com/users/brahmaroutu/events{/privacy}","received_events_url":"https://api.github.com/users/brahmaroutu/received_events","type":"User","site_admin":false},"repo":{"id":23947795,"name":"docker","full_name":"brahmaroutu/docker","owner":{"login":"brahmaroutu","id":5403596,"avatar_url":"https://avatars.githubusercontent.com/u/5403596?v=3","gravatar_id":"","url":"https://api.github.com/users/brahmaroutu","html_url":"https://github.com/brahmaroutu","followers_url":"https://api.github.com/users/brahmaroutu/followers","following_url":"https://api.github.com/users/brahmaroutu/following{/other_user}","gists_url":"https://api.github.com/users/brahmaroutu/gists{/gist_id}","starred_url":"https://api.github.com/users/brahmaroutu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brahmaroutu/subscriptions","organizations_url":"https://api.github.com/users/brahmaroutu/orgs","repos_url":"https://api.github.com/users/brahmaroutu/repos","events_url":"https://api.github.com/users/brahmaroutu/events{/privacy}","received_events_url":"https://api.github.com/users/brahmaroutu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brahmaroutu/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/brahmaroutu/docker","forks_url":"https://api.github.com/repos/brahmaroutu/docker/forks","keys_url":"https://api.github.com/repos/brahmaroutu/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brahmaroutu/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brahmaroutu/docker/teams","hooks_url":"https://api.github.com/repos/brahmaroutu/docker/hooks","issue_events_url":"https://api.github.com/repos/brahmaroutu/docker/issues/events{/number}","events_url":"https://api.github.com/repos/brahmaroutu/docker/events","assignees_url":"https://api.github.com/repos/brahmaroutu/docker/assignees{/user}","branches_url":"https://api.github.com/repos/brahmaroutu/docker/branches{/branch}","tags_url":"https://api.github.com/repos/brahmaroutu/docker/tags","blobs_url":"https://api.github.com/repos/brahmaroutu/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brahmaroutu/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brahmaroutu/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/brahmaroutu/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brahmaroutu/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/brahmaroutu/docker/languages","stargazers_url":"https://api.github.com/repos/brahmaroutu/docker/stargazers","contributors_url":"https://api.github.com/repos/brahmaroutu/docker/contributors","subscribers_url":"https://api.github.com/repos/brahmaroutu/docker/subscribers","subscription_url":"https://api.github.com/repos/brahmaroutu/docker/subscription","commits_url":"https://api.github.com/repos/brahmaroutu/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/brahmaroutu/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/brahmaroutu/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/brahmaroutu/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/brahmaroutu/docker/contents/{+path}","compare_url":"https://api.github.com/repos/brahmaroutu/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brahmaroutu/docker/merges","archive_url":"https://api.github.com/repos/brahmaroutu/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brahmaroutu/docker/downloads","issues_url":"https://api.github.com/repos/brahmaroutu/docker/issues{/number}","pulls_url":"https://api.github.com/repos/brahmaroutu/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/brahmaroutu/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/brahmaroutu/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brahmaroutu/docker/labels{/name}","releases_url":"https://api.github.com/repos/brahmaroutu/docker/releases{/id}","created_at":"2014-09-12T05:17:02Z","updated_at":"2015-02-25T18:12:37Z","pushed_at":"2015-02-26T17:58:10Z","git_url":"git://github.com/brahmaroutu/docker.git","ssh_url":"git@github.com:brahmaroutu/docker.git","clone_url":"https://github.com/brahmaroutu/docker.git","svn_url":"https://github.com/brahmaroutu/docker","homepage":"http://www.docker.com","size":43357,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"9324cdac07484373c752f3368c3cb30db070b839","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-02-26T18:02:46Z","pushed_at":"2015-02-26T18:02:46Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":142332,"stargazers_count":19420,"watchers_count":19420,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4028,"mirror_url":null,"open_issues_count":927,"forks":4028,"open_issues":927,"watchers":19420,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/11045"},"html":{"href":"https://github.com/docker/docker/pull/11045"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/11045"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/11045/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/11045/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/11045/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/d5cfb0cd169aec5c92ad19d1217f6470f9adb51e"}}}}