{"action":"created","comment":{"url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/comments/124395266","pull_request_review_id":46678079,"id":124395266,"diff_hunk":"@@ -38,6 +45,63 @@ func TestShuffleFlags(t *testing.T) {\n \t}\n }\n \n+func TestDebugFlag(t *testing.T) {\n+\n+\ttestCases := []struct {\n+\t\tmappings map[string]interface{}\n+\t\targs     []string\n+\t\trunID    int\n+\t\tdebug    bool\n+\t\ttag      string\n+\t\ttoken    string\n+\t\tmethod   string\n+\t}{\n+\t\t{\n+\t\t\tmappings: map[string]interface{}{\n+\t\t\t\t\"token\":  \"testToken123\",\n+\t\t\t\t\"debug\":  true,\n+\t\t\t\t\"run-id\": 564,\n+\t\t\t\t\"tag\":    \"star\",\n+\t\t\t},\n+\t\t\targs:   []string{\"rainforest\", \"--token\", \"testToken123\", \"--debug\", \"run\", \"--tag\", \"star\"},\n+\t\t\trunID:  564,\n+\t\t\tdebug:  true,\n+\t\t\ttag:    \"star\",\n+\t\t\ttoken:  \"testToken123\",\n+\t\t\tmethod: \"GET\",\n+\t\t},\n+\t\t{\n+\t\t\tmappings: map[string]interface{}{\n+\t\t\t\t\"token\":  \"testToken123\",\n+\t\t\t\t\"debug\":  false,\n+\t\t\t\t\"run-id\": 4335,\n+\t\t\t\t\"tag\":    \"star\",\n+\t\t\t},\n+\t\t\targs:   []string{\"rainforest\", \"--token\", \"testToken123\", \"run\", \"--tag\", \"star\"},\n+\t\t\trunID:  4335,\n+\t\t\tdebug:  false,\n+\t\t\ttag:    \"star\",\n+\t\t\ttoken:  \"testToken123\",\n+\t\t\tmethod: \"POST\",\n+\t\t},\n+\t}\n+\n+\tfor _, testCase := range testCases {\n+\t\tc := newFakeContext(testCase.mappings, testCase.args)\n+\t\tclient := rainforest.NewClient(testCase.token, c.Bool(\"debug\"))\n+\t\tclient.BaseURL, _ = url.Parse(\"https://example.org\")","path":"rainforest-cli_test.go","position":72,"original_position":72,"commit_id":"12712e1457a67d157e8a56b6f76b75e1e4f45508","original_commit_id":"12712e1457a67d157e8a56b6f76b75e1e4f45508","user":{"login":"epaulet","id":9178278,"avatar_url":"https://avatars3.githubusercontent.com/u/9178278?v=3","gravatar_id":"","url":"https://api.github.com/users/epaulet","html_url":"https://github.com/epaulet","followers_url":"https://api.github.com/users/epaulet/followers","following_url":"https://api.github.com/users/epaulet/following{/other_user}","gists_url":"https://api.github.com/users/epaulet/gists{/gist_id}","starred_url":"https://api.github.com/users/epaulet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epaulet/subscriptions","organizations_url":"https://api.github.com/users/epaulet/orgs","repos_url":"https://api.github.com/users/epaulet/repos","events_url":"https://api.github.com/users/epaulet/events{/privacy}","received_events_url":"https://api.github.com/users/epaulet/received_events","type":"User","site_admin":false},"body":"Test should fail if an error is returned here.","created_at":"2017-06-27T21:04:06Z","updated_at":"2017-06-27T21:06:54Z","html_url":"https://github.com/rainforestapp/rainforest-cli/pull/282#discussion_r124395266","pull_request_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/282","_links":{"self":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/comments/124395266"},"html":{"href":"https://github.com/rainforestapp/rainforest-cli/pull/282#discussion_r124395266"},"pull_request":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/282"}}},"pull_request":{"url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/282","id":127581578,"html_url":"https://github.com/rainforestapp/rainforest-cli/pull/282","diff_url":"https://github.com/rainforestapp/rainforest-cli/pull/282.diff","patch_url":"https://github.com/rainforestapp/rainforest-cli/pull/282.patch","issue_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/282","number":282,"state":"open","locked":false,"title":"add a debug flag for command line to print http headers","user":{"login":"sondhayni-rfqa","id":29105176,"avatar_url":"https://avatars3.githubusercontent.com/u/29105176?v=3","gravatar_id":"","url":"https://api.github.com/users/sondhayni-rfqa","html_url":"https://github.com/sondhayni-rfqa","followers_url":"https://api.github.com/users/sondhayni-rfqa/followers","following_url":"https://api.github.com/users/sondhayni-rfqa/following{/other_user}","gists_url":"https://api.github.com/users/sondhayni-rfqa/gists{/gist_id}","starred_url":"https://api.github.com/users/sondhayni-rfqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondhayni-rfqa/subscriptions","organizations_url":"https://api.github.com/users/sondhayni-rfqa/orgs","repos_url":"https://api.github.com/users/sondhayni-rfqa/repos","events_url":"https://api.github.com/users/sondhayni-rfqa/events{/privacy}","received_events_url":"https://api.github.com/users/sondhayni-rfqa/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-26T23:03:34Z","updated_at":"2017-06-27T21:06:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/282/commits","review_comments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/282/comments","review_comment_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/282/comments","statuses_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/statuses/12712e1457a67d157e8a56b6f76b75e1e4f45508","head":{"label":"rainforestapp:add-debug-flag","ref":"add-debug-flag","sha":"12712e1457a67d157e8a56b6f76b75e1e4f45508","user":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars1.githubusercontent.com/u/1892571?v=3","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"repo":{"id":11987995,"name":"rainforest-cli","full_name":"rainforestapp/rainforest-cli","owner":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars1.githubusercontent.com/u/1892571?v=3","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rainforestapp/rainforest-cli","description":"Command line interface to Rainforest","fork":false,"url":"https://api.github.com/repos/rainforestapp/rainforest-cli","forks_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/forks","keys_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/teams","hooks_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/hooks","issue_events_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/events{/number}","events_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/events","assignees_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/assignees{/user}","branches_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/branches{/branch}","tags_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/tags","blobs_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/languages","stargazers_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/stargazers","contributors_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/contributors","subscribers_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/subscribers","subscription_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/subscription","commits_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/contents/{+path}","compare_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/merges","archive_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/downloads","issues_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues{/number}","pulls_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/labels{/name}","releases_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/releases{/id}","deployments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/deployments","created_at":"2013-08-08T22:23:18Z","updated_at":"2017-05-10T21:48:04Z","pushed_at":"2017-06-26T23:03:34Z","git_url":"git://github.com/rainforestapp/rainforest-cli.git","ssh_url":"git@github.com:rainforestapp/rainforest-cli.git","clone_url":"https://github.com/rainforestapp/rainforest-cli.git","svn_url":"https://github.com/rainforestapp/rainforest-cli","homepage":"https://www.rainforestqa.com/","size":920,"stargazers_count":22,"watchers_count":22,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":9,"forks":14,"open_issues":9,"watchers":22,"default_branch":"master"}},"base":{"label":"rainforestapp:master","ref":"master","sha":"22a58ff81bd7eab532cab329cfccfc375c00dfd4","user":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars1.githubusercontent.com/u/1892571?v=3","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"repo":{"id":11987995,"name":"rainforest-cli","full_name":"rainforestapp/rainforest-cli","owner":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars1.githubusercontent.com/u/1892571?v=3","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rainforestapp/rainforest-cli","description":"Command line interface to Rainforest","fork":false,"url":"https://api.github.com/repos/rainforestapp/rainforest-cli","forks_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/forks","keys_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/teams","hooks_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/hooks","issue_events_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/events{/number}","events_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/events","assignees_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/assignees{/user}","branches_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/branches{/branch}","tags_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/tags","blobs_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/languages","stargazers_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/stargazers","contributors_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/contributors","subscribers_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/subscribers","subscription_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/subscription","commits_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/contents/{+path}","compare_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/merges","archive_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/downloads","issues_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues{/number}","pulls_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/labels{/name}","releases_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/releases{/id}","deployments_url":"https://api.github.com/repos/rainforestapp/rainforest-cli/deployments","created_at":"2013-08-08T22:23:18Z","updated_at":"2017-05-10T21:48:04Z","pushed_at":"2017-06-26T23:03:34Z","git_url":"git://github.com/rainforestapp/rainforest-cli.git","ssh_url":"git@github.com:rainforestapp/rainforest-cli.git","clone_url":"https://github.com/rainforestapp/rainforest-cli.git","svn_url":"https://github.com/rainforestapp/rainforest-cli","homepage":"https://www.rainforestqa.com/","size":920,"stargazers_count":22,"watchers_count":22,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":9,"forks":14,"open_issues":9,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/282"},"html":{"href":"https://github.com/rainforestapp/rainforest-cli/pull/282"},"issue":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/282"},"comments":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/issues/282/comments"},"review_comments":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/282/comments"},"review_comment":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/pulls/282/commits"},"statuses":{"href":"https://api.github.com/repos/rainforestapp/rainforest-cli/statuses/12712e1457a67d157e8a56b6f76b75e1e4f45508"}}}}
{"actor":{"display_login":"epaulet"}}