{"action":"created","comment":{"url":"https://api.github.com/repos/SAP/jenkins-library/pulls/comments/198484743","pull_request_review_id":132421693,"id":198484743,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODQ4NDc0Mw==","diff_hunk":"@@ -0,0 +1,87 @@\n+import org.junit.Before\n+import org.junit.Rule\n+import org.junit.Test\n+import org.junit.rules.ExpectedException\n+import org.junit.rules.RuleChain\n+\n+import util.BasePiperTest\n+import util.JenkinsStepRule\n+import util.JenkinsLoggingRule\n+import util.Rules\n+\n+import hudson.AbortException\n+\n+\n+public class TransportRequestGetTransportsTest extends BasePiperTest {\n+\n+    private ExpectedException thrown = new ExpectedException()\n+    private JenkinsStepRule jsr = new JenkinsStepRule(this)\n+    private JenkinsLoggingRule jlr = new JenkinsLoggingRule(this)\n+\n+    @Rule\n+    public RuleChain ruleChain = Rules.getCommonRules(this)\n+        .around(thrown)\n+        .around(jsr)\n+        .around(jlr)\n+\n+    @Before\n+    public void setup() {\n+\n+        helper.registerAllowedMethod('usernamePassword', [Map.class], {m -> return m})\n+\n+        helper.registerAllowedMethod('withCredentials', [List, Closure], { l, c ->\n+\n+            credentialsId = l[0].credentialsId\n+            binding.setProperty('username', 'anonymous')\n+            binding.setProperty('password', '********')\n+            try {\n+                c()\n+            } finally {\n+                binding.setProperty('username', null)\n+                binding.setProperty('password', null)\n+            }\n+         })\n+\n+        helper.registerAllowedMethod('sh', [Map], { Map m -> return 0 })","path":"test/groovy/TransportRequestGetTransportsTest.groovy","position":45,"original_position":45,"commit_id":"d110222534ff01f533ebd751ffba7136f1d27680","original_commit_id":"933d8c0019d2672990024fdaefd5d68a003c4092","user":{"login":"alejandraferreirovidal","id":25053039,"node_id":"MDQ6VXNlcjI1MDUzMDM5","avatar_url":"https://avatars2.githubusercontent.com/u/25053039?v=4","gravatar_id":"","url":"https://api.github.com/users/alejandraferreirovidal","html_url":"https://github.com/alejandraferreirovidal","followers_url":"https://api.github.com/users/alejandraferreirovidal/followers","following_url":"https://api.github.com/users/alejandraferreirovidal/following{/other_user}","gists_url":"https://api.github.com/users/alejandraferreirovidal/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandraferreirovidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandraferreirovidal/subscriptions","organizations_url":"https://api.github.com/users/alejandraferreirovidal/orgs","repos_url":"https://api.github.com/users/alejandraferreirovidal/repos","events_url":"https://api.github.com/users/alejandraferreirovidal/events{/privacy}","received_events_url":"https://api.github.com/users/alejandraferreirovidal/received_events","type":"User","site_admin":false},"body":"So far I did it like this. I can change it in another PR for all the steps later on.","created_at":"2018-06-27T13:00:04Z","updated_at":"2018-06-27T13:04:37Z","html_url":"https://github.com/SAP/jenkins-library/pull/170#discussion_r198484743","pull_request_url":"https://api.github.com/repos/SAP/jenkins-library/pulls/170","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SAP/jenkins-library/pulls/comments/198484743"},"html":{"href":"https://github.com/SAP/jenkins-library/pull/170#discussion_r198484743"},"pull_request":{"href":"https://api.github.com/repos/SAP/jenkins-library/pulls/170"}},"in_reply_to_id":198160611},"pull_request":{"url":"https://api.github.com/repos/SAP/jenkins-library/pulls/170","id":197432915,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3NDMyOTE1","html_url":"https://github.com/SAP/jenkins-library/pull/170","diff_url":"https://github.com/SAP/jenkins-library/pull/170.diff","patch_url":"https://github.com/SAP/jenkins-library/pull/170.patch","issue_url":"https://api.github.com/repos/SAP/jenkins-library/issues/170","number":170,"state":"open","locked":false,"title":"add step transportRequestGetTransports","user":{"login":"alejandraferreirovidal","id":25053039,"node_id":"MDQ6VXNlcjI1MDUzMDM5","avatar_url":"https://avatars2.githubusercontent.com/u/25053039?v=4","gravatar_id":"","url":"https://api.github.com/users/alejandraferreirovidal","html_url":"https://github.com/alejandraferreirovidal","followers_url":"https://api.github.com/users/alejandraferreirovidal/followers","following_url":"https://api.github.com/users/alejandraferreirovidal/following{/other_user}","gists_url":"https://api.github.com/users/alejandraferreirovidal/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandraferreirovidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandraferreirovidal/subscriptions","organizations_url":"https://api.github.com/users/alejandraferreirovidal/orgs","repos_url":"https://api.github.com/users/alejandraferreirovidal/repos","events_url":"https://api.github.com/users/alejandraferreirovidal/events{/privacy}","received_events_url":"https://api.github.com/users/alejandraferreirovidal/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-26T13:58:52Z","updated_at":"2018-06-27T13:04:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec6ee33b32d355d33e10f7d2eaad374abaeaa848","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":750277627,"node_id":"MDU6TGFiZWw3NTAyNzc2Mjc=","url":"https://api.github.com/repos/SAP/jenkins-library/labels/work%20in%20progress","name":"work in progress","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SAP/jenkins-library/pulls/170/commits","review_comments_url":"https://api.github.com/repos/SAP/jenkins-library/pulls/170/comments","review_comment_url":"https://api.github.com/repos/SAP/jenkins-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SAP/jenkins-library/issues/170/comments","statuses_url":"https://api.github.com/repos/SAP/jenkins-library/statuses/d110222534ff01f533ebd751ffba7136f1d27680","head":{"label":"alejandraferreirovidal:addGetTransports","ref":"addGetTransports","sha":"d110222534ff01f533ebd751ffba7136f1d27680","user":{"login":"alejandraferreirovidal","id":25053039,"node_id":"MDQ6VXNlcjI1MDUzMDM5","avatar_url":"https://avatars2.githubusercontent.com/u/25053039?v=4","gravatar_id":"","url":"https://api.github.com/users/alejandraferreirovidal","html_url":"https://github.com/alejandraferreirovidal","followers_url":"https://api.github.com/users/alejandraferreirovidal/followers","following_url":"https://api.github.com/users/alejandraferreirovidal/following{/other_user}","gists_url":"https://api.github.com/users/alejandraferreirovidal/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandraferreirovidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandraferreirovidal/subscriptions","organizations_url":"https://api.github.com/users/alejandraferreirovidal/orgs","repos_url":"https://api.github.com/users/alejandraferreirovidal/repos","events_url":"https://api.github.com/users/alejandraferreirovidal/events{/privacy}","received_events_url":"https://api.github.com/users/alejandraferreirovidal/received_events","type":"User","site_admin":false},"repo":{"id":110864541,"node_id":"MDEwOlJlcG9zaXRvcnkxMTA4NjQ1NDE=","name":"jenkins-library","full_name":"alejandraferreirovidal/jenkins-library","owner":{"login":"alejandraferreirovidal","id":25053039,"node_id":"MDQ6VXNlcjI1MDUzMDM5","avatar_url":"https://avatars2.githubusercontent.com/u/25053039?v=4","gravatar_id":"","url":"https://api.github.com/users/alejandraferreirovidal","html_url":"https://github.com/alejandraferreirovidal","followers_url":"https://api.github.com/users/alejandraferreirovidal/followers","following_url":"https://api.github.com/users/alejandraferreirovidal/following{/other_user}","gists_url":"https://api.github.com/users/alejandraferreirovidal/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandraferreirovidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandraferreirovidal/subscriptions","organizations_url":"https://api.github.com/users/alejandraferreirovidal/orgs","repos_url":"https://api.github.com/users/alejandraferreirovidal/repos","events_url":"https://api.github.com/users/alejandraferreirovidal/events{/privacy}","received_events_url":"https://api.github.com/users/alejandraferreirovidal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alejandraferreirovidal/jenkins-library","description":"Jenkins shared library for Continuous Delivery pipelines.","fork":true,"url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library","forks_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/forks","keys_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/teams","hooks_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/hooks","issue_events_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/issues/events{/number}","events_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/events","assignees_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/assignees{/user}","branches_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/branches{/branch}","tags_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/tags","blobs_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/statuses/{sha}","languages_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/languages","stargazers_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/stargazers","contributors_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/contributors","subscribers_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/subscribers","subscription_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/subscription","commits_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/contents/{+path}","compare_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/merges","archive_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/downloads","issues_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/issues{/number}","pulls_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/pulls{/number}","milestones_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/milestones{/number}","notifications_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/labels{/name}","releases_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/releases{/id}","deployments_url":"https://api.github.com/repos/alejandraferreirovidal/jenkins-library/deployments","created_at":"2017-11-15T17:25:55Z","updated_at":"2018-06-27T12:35:15Z","pushed_at":"2018-06-27T12:42:59Z","git_url":"git://github.com/alejandraferreirovidal/jenkins-library.git","ssh_url":"git@github.com:alejandraferreirovidal/jenkins-library.git","clone_url":"https://github.com/alejandraferreirovidal/jenkins-library.git","svn_url":"https://github.com/alejandraferreirovidal/jenkins-library","homepage":null,"size":1116,"stargazers_count":0,"watchers_count":0,"language":"Groovy","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":"SAP:master","ref":"master","sha":"44ff690a779e47feafd0fe54d2217a939f643ddb","user":{"login":"SAP","id":2531208,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzEyMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/2531208?v=4","gravatar_id":"","url":"https://api.github.com/users/SAP","html_url":"https://github.com/SAP","followers_url":"https://api.github.com/users/SAP/followers","following_url":"https://api.github.com/users/SAP/following{/other_user}","gists_url":"https://api.github.com/users/SAP/gists{/gist_id}","starred_url":"https://api.github.com/users/SAP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SAP/subscriptions","organizations_url":"https://api.github.com/users/SAP/orgs","repos_url":"https://api.github.com/users/SAP/repos","events_url":"https://api.github.com/users/SAP/events{/privacy}","received_events_url":"https://api.github.com/users/SAP/received_events","type":"Organization","site_admin":false},"repo":{"id":107318996,"node_id":"MDEwOlJlcG9zaXRvcnkxMDczMTg5OTY=","name":"jenkins-library","full_name":"SAP/jenkins-library","owner":{"login":"SAP","id":2531208,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzEyMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/2531208?v=4","gravatar_id":"","url":"https://api.github.com/users/SAP","html_url":"https://github.com/SAP","followers_url":"https://api.github.com/users/SAP/followers","following_url":"https://api.github.com/users/SAP/following{/other_user}","gists_url":"https://api.github.com/users/SAP/gists{/gist_id}","starred_url":"https://api.github.com/users/SAP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SAP/subscriptions","organizations_url":"https://api.github.com/users/SAP/orgs","repos_url":"https://api.github.com/users/SAP/repos","events_url":"https://api.github.com/users/SAP/events{/privacy}","received_events_url":"https://api.github.com/users/SAP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SAP/jenkins-library","description":"Jenkins shared library for Continuous Delivery pipelines.","fork":false,"url":"https://api.github.com/repos/SAP/jenkins-library","forks_url":"https://api.github.com/repos/SAP/jenkins-library/forks","keys_url":"https://api.github.com/repos/SAP/jenkins-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SAP/jenkins-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SAP/jenkins-library/teams","hooks_url":"https://api.github.com/repos/SAP/jenkins-library/hooks","issue_events_url":"https://api.github.com/repos/SAP/jenkins-library/issues/events{/number}","events_url":"https://api.github.com/repos/SAP/jenkins-library/events","assignees_url":"https://api.github.com/repos/SAP/jenkins-library/assignees{/user}","branches_url":"https://api.github.com/repos/SAP/jenkins-library/branches{/branch}","tags_url":"https://api.github.com/repos/SAP/jenkins-library/tags","blobs_url":"https://api.github.com/repos/SAP/jenkins-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SAP/jenkins-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SAP/jenkins-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/SAP/jenkins-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SAP/jenkins-library/statuses/{sha}","languages_url":"https://api.github.com/repos/SAP/jenkins-library/languages","stargazers_url":"https://api.github.com/repos/SAP/jenkins-library/stargazers","contributors_url":"https://api.github.com/repos/SAP/jenkins-library/contributors","subscribers_url":"https://api.github.com/repos/SAP/jenkins-library/subscribers","subscription_url":"https://api.github.com/repos/SAP/jenkins-library/subscription","commits_url":"https://api.github.com/repos/SAP/jenkins-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/SAP/jenkins-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/SAP/jenkins-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/SAP/jenkins-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/SAP/jenkins-library/contents/{+path}","compare_url":"https://api.github.com/repos/SAP/jenkins-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SAP/jenkins-library/merges","archive_url":"https://api.github.com/repos/SAP/jenkins-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SAP/jenkins-library/downloads","issues_url":"https://api.github.com/repos/SAP/jenkins-library/issues{/number}","pulls_url":"https://api.github.com/repos/SAP/jenkins-library/pulls{/number}","milestones_url":"https://api.github.com/repos/SAP/jenkins-library/milestones{/number}","notifications_url":"https://api.github.com/repos/SAP/jenkins-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SAP/jenkins-library/labels{/name}","releases_url":"https://api.github.com/repos/SAP/jenkins-library/releases{/id}","deployments_url":"https://api.github.com/repos/SAP/jenkins-library/deployments","created_at":"2017-10-17T20:14:48Z","updated_at":"2018-06-27T12:56:59Z","pushed_at":"2018-06-27T13:00:17Z","git_url":"git://github.com/SAP/jenkins-library.git","ssh_url":"git@github.com:SAP/jenkins-library.git","clone_url":"https://github.com/SAP/jenkins-library.git","svn_url":"https://github.com/SAP/jenkins-library","homepage":null,"size":1929,"stargazers_count":67,"watchers_count":67,"language":"Groovy","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":46,"mirror_url":null,"archived":false,"open_issues_count":16,"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":46,"open_issues":16,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SAP/jenkins-library/pulls/170"},"html":{"href":"https://github.com/SAP/jenkins-library/pull/170"},"issue":{"href":"https://api.github.com/repos/SAP/jenkins-library/issues/170"},"comments":{"href":"https://api.github.com/repos/SAP/jenkins-library/issues/170/comments"},"review_comments":{"href":"https://api.github.com/repos/SAP/jenkins-library/pulls/170/comments"},"review_comment":{"href":"https://api.github.com/repos/SAP/jenkins-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SAP/jenkins-library/pulls/170/commits"},"statuses":{"href":"https://api.github.com/repos/SAP/jenkins-library/statuses/d110222534ff01f533ebd751ffba7136f1d27680"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"alejandraferreirovidal"}}