{"action":"created","comment":{"url":"https://api.github.com/repos/spinnaker/igor/pulls/comments/203767678","pull_request_review_id":138359513,"id":203767678,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzc2NzY3OA==","diff_hunk":"@@ -0,0 +1,111 @@\n+\n+/*\n+ * Copyright (c) 2017, 2018, Oracle Corporation and/or its affiliates. All rights reserved.\n+ *\n+ * The contents of this file are subject to the Apache License Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * If a copy of the Apache License Version 2.0 was not distributed with this file,\n+ * You can obtain one at https://www.apache.org/licenses/LICENSE-2.0.html\n+ */\n+package com.netflix.spinnaker.igor.wercker\n+\n+import com.netflix.spinnaker.igor.config.*\n+import com.netflix.spinnaker.igor.config.WerckerProperties.WerckerHost\n+import com.netflix.spinnaker.igor.wercker.model.*\n+import com.squareup.okhttp.mockwebserver.MockResponse\n+import com.squareup.okhttp.mockwebserver.MockWebServer\n+import spock.lang.Shared\n+import spock.lang.Specification\n+import java.util.List\n+\n+import com.netflix.spinnaker.igor.wercker.model.Application\n+\n+import retrofit.http.Header\n+\n+class WerckerClientSpec extends Specification {\n+\n+    @Shared\n+    WerckerClient client\n+\n+    @Shared\n+    MockWebServer server\n+\n+    void setup() {\n+        server = new MockWebServer()\n+    }\n+\n+    void cleanup() {\n+        server.shutdown()\n+    }\n+\n+    void 'get all applications'() {\n+        setup:\n+\t\tdef authHeader = \"my_authHeader\"","path":"igor-web/src/test/groovy/com/netflix/spinnaker/igor/wercker/WerckerClientSpec.groovy","position":43,"original_position":43,"commit_id":"27fc575805e2c9bd8425fc6e643c760cbf6f24a0","original_commit_id":"27fc575805e2c9bd8425fc6e643c760cbf6f24a0","user":{"login":"sbwsg","id":34253460,"node_id":"MDQ6VXNlcjM0MjUzNDYw","avatar_url":"https://avatars1.githubusercontent.com/u/34253460?v=4","gravatar_id":"","url":"https://api.github.com/users/sbwsg","html_url":"https://github.com/sbwsg","followers_url":"https://api.github.com/users/sbwsg/followers","following_url":"https://api.github.com/users/sbwsg/following{/other_user}","gists_url":"https://api.github.com/users/sbwsg/gists{/gist_id}","starred_url":"https://api.github.com/users/sbwsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbwsg/subscriptions","organizations_url":"https://api.github.com/users/sbwsg/orgs","repos_url":"https://api.github.com/users/sbwsg/repos","events_url":"https://api.github.com/users/sbwsg/events{/privacy}","received_events_url":"https://api.github.com/users/sbwsg/received_events","type":"User","site_admin":false},"body":"Check leading whitespace throughout.","created_at":"2018-07-19T15:17:46Z","updated_at":"2018-07-19T15:21:48Z","html_url":"https://github.com/spinnaker/igor/pull/297#discussion_r203767678","pull_request_url":"https://api.github.com/repos/spinnaker/igor/pulls/297","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/spinnaker/igor/pulls/comments/203767678"},"html":{"href":"https://github.com/spinnaker/igor/pull/297#discussion_r203767678"},"pull_request":{"href":"https://api.github.com/repos/spinnaker/igor/pulls/297"}}},"pull_request":{"url":"https://api.github.com/repos/spinnaker/igor/pulls/297","id":200422546,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNDIyNTQ2","html_url":"https://github.com/spinnaker/igor/pull/297","diff_url":"https://github.com/spinnaker/igor/pull/297.diff","patch_url":"https://github.com/spinnaker/igor/pull/297.patch","issue_url":"https://api.github.com/repos/spinnaker/igor/issues/297","number":297,"state":"open","locked":false,"title":"feat(wercker): add wercker CI","user":{"login":"shihchang","id":36014346,"node_id":"MDQ6VXNlcjM2MDE0MzQ2","avatar_url":"https://avatars1.githubusercontent.com/u/36014346?v=4","gravatar_id":"","url":"https://api.github.com/users/shihchang","html_url":"https://github.com/shihchang","followers_url":"https://api.github.com/users/shihchang/followers","following_url":"https://api.github.com/users/shihchang/following{/other_user}","gists_url":"https://api.github.com/users/shihchang/gists{/gist_id}","starred_url":"https://api.github.com/users/shihchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shihchang/subscriptions","organizations_url":"https://api.github.com/users/shihchang/orgs","repos_url":"https://api.github.com/users/shihchang/repos","events_url":"https://api.github.com/users/shihchang/events{/privacy}","received_events_url":"https://api.github.com/users/shihchang/received_events","type":"User","site_admin":false},"body":"Add Wercker as a  CI provider.\r\n- WerckerBuildMonitor polls Wercker runs for each wercker master\r\n- WerckerCache caches last polling time and generates buildNumber for each runId as wercker does not have a buildNumber for each run.\r\n- InfoController added an 'type' parameter for getting the build masters.\r\n\r\nRelated PRs:\r\nhttps://github.com/spinnaker/halyard/pull/960\r\n","created_at":"2018-07-10T14:47:35Z","updated_at":"2018-07-19T15:21:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"375b8eaf7b91c1546afa4dfea66674eee8d941ae","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/spinnaker/igor/pulls/297/commits","review_comments_url":"https://api.github.com/repos/spinnaker/igor/pulls/297/comments","review_comment_url":"https://api.github.com/repos/spinnaker/igor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spinnaker/igor/issues/297/comments","statuses_url":"https://api.github.com/repos/spinnaker/igor/statuses/27fc575805e2c9bd8425fc6e643c760cbf6f24a0","head":{"label":"markxnelson:add_wercker","ref":"add_wercker","sha":"27fc575805e2c9bd8425fc6e643c760cbf6f24a0","user":{"login":"markxnelson","id":6345393,"node_id":"MDQ6VXNlcjYzNDUzOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/6345393?v=4","gravatar_id":"","url":"https://api.github.com/users/markxnelson","html_url":"https://github.com/markxnelson","followers_url":"https://api.github.com/users/markxnelson/followers","following_url":"https://api.github.com/users/markxnelson/following{/other_user}","gists_url":"https://api.github.com/users/markxnelson/gists{/gist_id}","starred_url":"https://api.github.com/users/markxnelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markxnelson/subscriptions","organizations_url":"https://api.github.com/users/markxnelson/orgs","repos_url":"https://api.github.com/users/markxnelson/repos","events_url":"https://api.github.com/users/markxnelson/events{/privacy}","received_events_url":"https://api.github.com/users/markxnelson/received_events","type":"User","site_admin":false},"repo":{"id":132202232,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIyMDIyMzI=","name":"igor","full_name":"markxnelson/igor","owner":{"login":"markxnelson","id":6345393,"node_id":"MDQ6VXNlcjYzNDUzOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/6345393?v=4","gravatar_id":"","url":"https://api.github.com/users/markxnelson","html_url":"https://github.com/markxnelson","followers_url":"https://api.github.com/users/markxnelson/followers","following_url":"https://api.github.com/users/markxnelson/following{/other_user}","gists_url":"https://api.github.com/users/markxnelson/gists{/gist_id}","starred_url":"https://api.github.com/users/markxnelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markxnelson/subscriptions","organizations_url":"https://api.github.com/users/markxnelson/orgs","repos_url":"https://api.github.com/users/markxnelson/repos","events_url":"https://api.github.com/users/markxnelson/events{/privacy}","received_events_url":"https://api.github.com/users/markxnelson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markxnelson/igor","description":"Integration with Jenkins and Git for Spinnaker","fork":true,"url":"https://api.github.com/repos/markxnelson/igor","forks_url":"https://api.github.com/repos/markxnelson/igor/forks","keys_url":"https://api.github.com/repos/markxnelson/igor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markxnelson/igor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markxnelson/igor/teams","hooks_url":"https://api.github.com/repos/markxnelson/igor/hooks","issue_events_url":"https://api.github.com/repos/markxnelson/igor/issues/events{/number}","events_url":"https://api.github.com/repos/markxnelson/igor/events","assignees_url":"https://api.github.com/repos/markxnelson/igor/assignees{/user}","branches_url":"https://api.github.com/repos/markxnelson/igor/branches{/branch}","tags_url":"https://api.github.com/repos/markxnelson/igor/tags","blobs_url":"https://api.github.com/repos/markxnelson/igor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markxnelson/igor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markxnelson/igor/git/refs{/sha}","trees_url":"https://api.github.com/repos/markxnelson/igor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markxnelson/igor/statuses/{sha}","languages_url":"https://api.github.com/repos/markxnelson/igor/languages","stargazers_url":"https://api.github.com/repos/markxnelson/igor/stargazers","contributors_url":"https://api.github.com/repos/markxnelson/igor/contributors","subscribers_url":"https://api.github.com/repos/markxnelson/igor/subscribers","subscription_url":"https://api.github.com/repos/markxnelson/igor/subscription","commits_url":"https://api.github.com/repos/markxnelson/igor/commits{/sha}","git_commits_url":"https://api.github.com/repos/markxnelson/igor/git/commits{/sha}","comments_url":"https://api.github.com/repos/markxnelson/igor/comments{/number}","issue_comment_url":"https://api.github.com/repos/markxnelson/igor/issues/comments{/number}","contents_url":"https://api.github.com/repos/markxnelson/igor/contents/{+path}","compare_url":"https://api.github.com/repos/markxnelson/igor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markxnelson/igor/merges","archive_url":"https://api.github.com/repos/markxnelson/igor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markxnelson/igor/downloads","issues_url":"https://api.github.com/repos/markxnelson/igor/issues{/number}","pulls_url":"https://api.github.com/repos/markxnelson/igor/pulls{/number}","milestones_url":"https://api.github.com/repos/markxnelson/igor/milestones{/number}","notifications_url":"https://api.github.com/repos/markxnelson/igor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markxnelson/igor/labels{/name}","releases_url":"https://api.github.com/repos/markxnelson/igor/releases{/id}","deployments_url":"https://api.github.com/repos/markxnelson/igor/deployments","created_at":"2018-05-05T00:50:54Z","updated_at":"2018-07-10T13:50:03Z","pushed_at":"2018-07-17T22:31:44Z","git_url":"git://github.com/markxnelson/igor.git","ssh_url":"git@github.com:markxnelson/igor.git","clone_url":"https://github.com/markxnelson/igor.git","svn_url":"https://github.com/markxnelson/igor","homepage":"","size":1173,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"spinnaker:master","ref":"master","sha":"7dbdaaf384805bdb1b10ab907c7178edd94b678d","user":{"login":"spinnaker","id":7634182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MzQxODI=","avatar_url":"https://avatars1.githubusercontent.com/u/7634182?v=4","gravatar_id":"","url":"https://api.github.com/users/spinnaker","html_url":"https://github.com/spinnaker","followers_url":"https://api.github.com/users/spinnaker/followers","following_url":"https://api.github.com/users/spinnaker/following{/other_user}","gists_url":"https://api.github.com/users/spinnaker/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnaker/subscriptions","organizations_url":"https://api.github.com/users/spinnaker/orgs","repos_url":"https://api.github.com/users/spinnaker/repos","events_url":"https://api.github.com/users/spinnaker/events{/privacy}","received_events_url":"https://api.github.com/users/spinnaker/received_events","type":"Organization","site_admin":false},"repo":{"id":24856964,"node_id":"MDEwOlJlcG9zaXRvcnkyNDg1Njk2NA==","name":"igor","full_name":"spinnaker/igor","owner":{"login":"spinnaker","id":7634182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MzQxODI=","avatar_url":"https://avatars1.githubusercontent.com/u/7634182?v=4","gravatar_id":"","url":"https://api.github.com/users/spinnaker","html_url":"https://github.com/spinnaker","followers_url":"https://api.github.com/users/spinnaker/followers","following_url":"https://api.github.com/users/spinnaker/following{/other_user}","gists_url":"https://api.github.com/users/spinnaker/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnaker/subscriptions","organizations_url":"https://api.github.com/users/spinnaker/orgs","repos_url":"https://api.github.com/users/spinnaker/repos","events_url":"https://api.github.com/users/spinnaker/events{/privacy}","received_events_url":"https://api.github.com/users/spinnaker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spinnaker/igor","description":"Integration with Jenkins and Git for Spinnaker","fork":false,"url":"https://api.github.com/repos/spinnaker/igor","forks_url":"https://api.github.com/repos/spinnaker/igor/forks","keys_url":"https://api.github.com/repos/spinnaker/igor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spinnaker/igor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spinnaker/igor/teams","hooks_url":"https://api.github.com/repos/spinnaker/igor/hooks","issue_events_url":"https://api.github.com/repos/spinnaker/igor/issues/events{/number}","events_url":"https://api.github.com/repos/spinnaker/igor/events","assignees_url":"https://api.github.com/repos/spinnaker/igor/assignees{/user}","branches_url":"https://api.github.com/repos/spinnaker/igor/branches{/branch}","tags_url":"https://api.github.com/repos/spinnaker/igor/tags","blobs_url":"https://api.github.com/repos/spinnaker/igor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spinnaker/igor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spinnaker/igor/git/refs{/sha}","trees_url":"https://api.github.com/repos/spinnaker/igor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spinnaker/igor/statuses/{sha}","languages_url":"https://api.github.com/repos/spinnaker/igor/languages","stargazers_url":"https://api.github.com/repos/spinnaker/igor/stargazers","contributors_url":"https://api.github.com/repos/spinnaker/igor/contributors","subscribers_url":"https://api.github.com/repos/spinnaker/igor/subscribers","subscription_url":"https://api.github.com/repos/spinnaker/igor/subscription","commits_url":"https://api.github.com/repos/spinnaker/igor/commits{/sha}","git_commits_url":"https://api.github.com/repos/spinnaker/igor/git/commits{/sha}","comments_url":"https://api.github.com/repos/spinnaker/igor/comments{/number}","issue_comment_url":"https://api.github.com/repos/spinnaker/igor/issues/comments{/number}","contents_url":"https://api.github.com/repos/spinnaker/igor/contents/{+path}","compare_url":"https://api.github.com/repos/spinnaker/igor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spinnaker/igor/merges","archive_url":"https://api.github.com/repos/spinnaker/igor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spinnaker/igor/downloads","issues_url":"https://api.github.com/repos/spinnaker/igor/issues{/number}","pulls_url":"https://api.github.com/repos/spinnaker/igor/pulls{/number}","milestones_url":"https://api.github.com/repos/spinnaker/igor/milestones{/number}","notifications_url":"https://api.github.com/repos/spinnaker/igor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spinnaker/igor/labels{/name}","releases_url":"https://api.github.com/repos/spinnaker/igor/releases{/id}","deployments_url":"https://api.github.com/repos/spinnaker/igor/deployments","created_at":"2014-10-06T17:49:51Z","updated_at":"2018-07-16T07:26:48Z","pushed_at":"2018-07-17T22:31:46Z","git_url":"git://github.com/spinnaker/igor.git","ssh_url":"git@github.com:spinnaker/igor.git","clone_url":"https://github.com/spinnaker/igor.git","svn_url":"https://github.com/spinnaker/igor","homepage":"","size":1040,"stargazers_count":63,"watchers_count":63,"language":"Groovy","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":231,"mirror_url":null,"archived":false,"open_issues_count":10,"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":231,"open_issues":10,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spinnaker/igor/pulls/297"},"html":{"href":"https://github.com/spinnaker/igor/pull/297"},"issue":{"href":"https://api.github.com/repos/spinnaker/igor/issues/297"},"comments":{"href":"https://api.github.com/repos/spinnaker/igor/issues/297/comments"},"review_comments":{"href":"https://api.github.com/repos/spinnaker/igor/pulls/297/comments"},"review_comment":{"href":"https://api.github.com/repos/spinnaker/igor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spinnaker/igor/pulls/297/commits"},"statuses":{"href":"https://api.github.com/repos/spinnaker/igor/statuses/27fc575805e2c9bd8425fc6e643c760cbf6f24a0"}},"author_association":"NONE"}}
{"actor":{"display_login":"sbwsg"}}