{"action":"created","comment":{"url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/comments/62087202","id":62087202,"diff_hunk":"@@ -72,10 +74,57 @@ var _ = Describe(\"BMP: tasks command\", func() {\n \t})\n \n \tDescribe(\"#Execute\", func() {\n-\t\tIt(\"executes a good TasksCommand\", func() {\n-\t\t\trc, err := cmd.Execute(args)\n-\t\t\tExpect(rc).To(Equal(0))\n-\t\t\tExpect(err).ToNot(HaveOccurred())\n+\t\tContext(\"executes a good TasksCommand\", func() {\n+\t\t\tBeforeEach(func() {\n+\t\t\t\tfakeBmpClient.TasksResponse.Status = 200\n+\t\t\t\tfakeBmpClient.TasksErr = nil\n+\t\t\t\toptions = cmds.Options{\n+\t\t\t\t\tVerbose: false,\n+\t\t\t\t\tLatest:  1,\n+\t\t\t\t}\n+\t\t\t})\n+\n+\t\t\tIt(\"executes a good TasksCommand without specifying latest\", func() {\n+\t\t\t\trc, err := cmd.Execute([]string{\"bmp\", \"tasks\"})\n+\t\t\t\tExpect(rc).To(Equal(0))\n+\t\t\t\tExpect(err).ToNot(HaveOccurred())\n+\t\t\t})\n+\n+\t\t\tIt(\"executes a good TasksCommand with specifying latest\", func() {\n+\t\t\t\tcmd = bmp.NewTasksCommand(options, fakeBmpClient)\n+\n+\t\t\t\trc, err := cmd.Execute([]string{\"bmp\", \"tasks\", \"--latest=1\"})\n+\t\t\t\tExpect(rc).To(Equal(0))","path":"cmds/bmp/tasks_command_test.go","position":53,"original_position":53,"commit_id":"f2f324b533fa99627cc3ac3893fa7ac70e9e7941","original_commit_id":"6e17ed69406936974ff55243c7fb647dfbc04615","user":{"login":"maximilien","id":39187,"avatar_url":"https://avatars.githubusercontent.com/u/39187?v=3","gravatar_id":"","url":"https://api.github.com/users/maximilien","html_url":"https://github.com/maximilien","followers_url":"https://api.github.com/users/maximilien/followers","following_url":"https://api.github.com/users/maximilien/following{/other_user}","gists_url":"https://api.github.com/users/maximilien/gists{/gist_id}","starred_url":"https://api.github.com/users/maximilien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximilien/subscriptions","organizations_url":"https://api.github.com/users/maximilien/orgs","repos_url":"https://api.github.com/users/maximilien/repos","events_url":"https://api.github.com/users/maximilien/events{/privacy}","received_events_url":"https://api.github.com/users/maximilien/received_events","type":"User","site_admin":false},"body":"Cool 👍 ","created_at":"2016-05-04T18:11:47Z","updated_at":"2016-05-04T18:11:47Z","html_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/34#discussion_r62087202","pull_request_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/comments/62087202"},"html":{"href":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/34#discussion_r62087202"},"pull_request":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/34","id":68397099,"html_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/34","diff_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/34.diff","patch_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/34.patch","issue_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/34","number":34,"state":"open","locked":false,"title":"Added tasks command and integration test","user":{"login":"zhanggbj","id":4181847,"avatar_url":"https://avatars.githubusercontent.com/u/4181847?v=3","gravatar_id":"","url":"https://api.github.com/users/zhanggbj","html_url":"https://github.com/zhanggbj","followers_url":"https://api.github.com/users/zhanggbj/followers","following_url":"https://api.github.com/users/zhanggbj/following{/other_user}","gists_url":"https://api.github.com/users/zhanggbj/gists{/gist_id}","starred_url":"https://api.github.com/users/zhanggbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhanggbj/subscriptions","organizations_url":"https://api.github.com/users/zhanggbj/orgs","repos_url":"https://api.github.com/users/zhanggbj/repos","events_url":"https://api.github.com/users/zhanggbj/events{/privacy}","received_events_url":"https://api.github.com/users/zhanggbj/received_events","type":"User","site_admin":false},"body":"Hi @maximilien,\r\nThis is bmp tasks command and its integration test. Thanks for your review.\r\n\r\n[#115478103]","created_at":"2016-04-29T16:20:38Z","updated_at":"2016-05-04T18:11:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00bbdae18df0865daffa6f65787b8e3bbe1d06fb","assignee":{"login":"maximilien","id":39187,"avatar_url":"https://avatars.githubusercontent.com/u/39187?v=3","gravatar_id":"","url":"https://api.github.com/users/maximilien","html_url":"https://github.com/maximilien","followers_url":"https://api.github.com/users/maximilien/followers","following_url":"https://api.github.com/users/maximilien/following{/other_user}","gists_url":"https://api.github.com/users/maximilien/gists{/gist_id}","starred_url":"https://api.github.com/users/maximilien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximilien/subscriptions","organizations_url":"https://api.github.com/users/maximilien/orgs","repos_url":"https://api.github.com/users/maximilien/repos","events_url":"https://api.github.com/users/maximilien/events{/privacy}","received_events_url":"https://api.github.com/users/maximilien/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/34/commits","review_comments_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/34/comments","review_comment_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/34/comments","statuses_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/statuses/f2f324b533fa99627cc3ac3893fa7ac70e9e7941","head":{"label":"zhanggbj:WIP-taskscmd","ref":"WIP-taskscmd","sha":"f2f324b533fa99627cc3ac3893fa7ac70e9e7941","user":{"login":"zhanggbj","id":4181847,"avatar_url":"https://avatars.githubusercontent.com/u/4181847?v=3","gravatar_id":"","url":"https://api.github.com/users/zhanggbj","html_url":"https://github.com/zhanggbj","followers_url":"https://api.github.com/users/zhanggbj/followers","following_url":"https://api.github.com/users/zhanggbj/following{/other_user}","gists_url":"https://api.github.com/users/zhanggbj/gists{/gist_id}","starred_url":"https://api.github.com/users/zhanggbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhanggbj/subscriptions","organizations_url":"https://api.github.com/users/zhanggbj/orgs","repos_url":"https://api.github.com/users/zhanggbj/repos","events_url":"https://api.github.com/users/zhanggbj/events{/privacy}","received_events_url":"https://api.github.com/users/zhanggbj/received_events","type":"User","site_admin":false},"repo":{"id":55568839,"name":"bosh-softlayer-tools","full_name":"zhanggbj/bosh-softlayer-tools","owner":{"login":"zhanggbj","id":4181847,"avatar_url":"https://avatars.githubusercontent.com/u/4181847?v=3","gravatar_id":"","url":"https://api.github.com/users/zhanggbj","html_url":"https://github.com/zhanggbj","followers_url":"https://api.github.com/users/zhanggbj/followers","following_url":"https://api.github.com/users/zhanggbj/following{/other_user}","gists_url":"https://api.github.com/users/zhanggbj/gists{/gist_id}","starred_url":"https://api.github.com/users/zhanggbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhanggbj/subscriptions","organizations_url":"https://api.github.com/users/zhanggbj/orgs","repos_url":"https://api.github.com/users/zhanggbj/repos","events_url":"https://api.github.com/users/zhanggbj/events{/privacy}","received_events_url":"https://api.github.com/users/zhanggbj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhanggbj/bosh-softlayer-tools","description":"Simple utility to create BOSH stemcells (light) for SoftLayer and bosh-softlayer-cpi project","fork":true,"url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools","forks_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/forks","keys_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/teams","hooks_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/hooks","issue_events_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/issues/events{/number}","events_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/events","assignees_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/assignees{/user}","branches_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/branches{/branch}","tags_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/tags","blobs_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/languages","stargazers_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/stargazers","contributors_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/contributors","subscribers_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/subscribers","subscription_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/subscription","commits_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/contents/{+path}","compare_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/merges","archive_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/downloads","issues_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/issues{/number}","pulls_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/labels{/name}","releases_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/releases{/id}","deployments_url":"https://api.github.com/repos/zhanggbj/bosh-softlayer-tools/deployments","created_at":"2016-04-06T02:07:01Z","updated_at":"2016-04-06T02:19:03Z","pushed_at":"2016-05-04T15:12:06Z","git_url":"git://github.com/zhanggbj/bosh-softlayer-tools.git","ssh_url":"git@github.com:zhanggbj/bosh-softlayer-tools.git","clone_url":"https://github.com/zhanggbj/bosh-softlayer-tools.git","svn_url":"https://github.com/zhanggbj/bosh-softlayer-tools","homepage":null,"size":1041,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"cloudfoundry-community:master","ref":"master","sha":"b8b0619bfa7de92cc960f1e1e9400ad2d401ad90","user":{"login":"cloudfoundry-community","id":4378855,"avatar_url":"https://avatars.githubusercontent.com/u/4378855?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry-community","html_url":"https://github.com/cloudfoundry-community","followers_url":"https://api.github.com/users/cloudfoundry-community/followers","following_url":"https://api.github.com/users/cloudfoundry-community/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry-community/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry-community/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry-community/orgs","repos_url":"https://api.github.com/users/cloudfoundry-community/repos","events_url":"https://api.github.com/users/cloudfoundry-community/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry-community/received_events","type":"Organization","site_admin":false},"repo":{"id":24205552,"name":"bosh-softlayer-tools","full_name":"cloudfoundry-community/bosh-softlayer-tools","owner":{"login":"cloudfoundry-community","id":4378855,"avatar_url":"https://avatars.githubusercontent.com/u/4378855?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry-community","html_url":"https://github.com/cloudfoundry-community","followers_url":"https://api.github.com/users/cloudfoundry-community/followers","following_url":"https://api.github.com/users/cloudfoundry-community/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry-community/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry-community/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry-community/orgs","repos_url":"https://api.github.com/users/cloudfoundry-community/repos","events_url":"https://api.github.com/users/cloudfoundry-community/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools","description":"Project with various small tools for SoftLayer CPI such as light stemcells creation and bare metal pooling","fork":false,"url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools","forks_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/forks","keys_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/teams","hooks_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/hooks","issue_events_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/events","assignees_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/tags","blobs_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/languages","stargazers_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/stargazers","contributors_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/contributors","subscribers_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/subscribers","subscription_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/subscription","commits_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/merges","archive_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/downloads","issues_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/labels{/name}","releases_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/releases{/id}","deployments_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/deployments","created_at":"2014-09-18T21:19:05Z","updated_at":"2016-04-27T06:21:40Z","pushed_at":"2016-05-04T15:17:38Z","git_url":"git://github.com/cloudfoundry-community/bosh-softlayer-tools.git","ssh_url":"git@github.com:cloudfoundry-community/bosh-softlayer-tools.git","clone_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools.git","svn_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools","homepage":"","size":1040,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/34"},"html":{"href":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/34"},"issue":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/34"},"comments":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/statuses/f2f324b533fa99627cc3ac3893fa7ac70e9e7941"}}}}