{"action":"created","comment":{"url":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/comments/52273290","id":52273290,"diff_hunk":"@@ -0,0 +1,76 @@\n+package io.cloudsoft.winrm4j.winrm;\n+\n+import org.apache.http.client.config.AuthSchemes;\n+import org.testng.annotations.Test;\n+\n+import java.util.ArrayList;\n+import java.util.HashMap;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.concurrent.Callable;\n+\n+import static org.testng.Assert.assertEquals;\n+import static org.testng.Assert.assertTrue;\n+\n+public class CustomizedWinRmToolTest extends AbstractWinRmToolLiveTest {\n+    protected final Callable<WinRmTool.Builder> INIT_CUSTOMIZED_WINRM_TOOL = new Callable<WinRmTool.Builder>() {\n+        @Override\n+        public WinRmTool.Builder call() throws Exception {\n+            final WinRmTool.Builder winRmToolBuilder = WinRmTool.Builder.builder(VM_HOST, VM_USER, VM_PASSWORD);\n+            winRmToolBuilder.setAuthenticationScheme(AuthSchemes.NTLM);\n+            winRmToolBuilder.port(VM_PORT);\n+            winRmToolBuilder.useHttps(false);\n+            winRmToolBuilder.disableCertificateChecks(true);\n+            return winRmToolBuilder;\n+        }\n+    };\n+\n+    @Test(groups = \"Live\")\n+    public void testAssigningEnvironmentVariables() {\n+        final Map<String, String> environment = new HashMap<>();\n+        environment.put(\"TEST1\", \"Hello Test 1\");\n+        environment.put(\"TEST2\", \"Hello Test 2\");\n+\n+        WinRmToolResponse cmdResponse = callWithRetries(new Callable<WinRmToolResponse>() {","path":"winrm4j/src/test/java/io/cloudsoft/winrm4j/winrm/CustomizedWinRmToolTest.java","position":34,"original_position":34,"commit_id":"e6d43111d71551a61e1d1e9cf57345c12d2bc88d","original_commit_id":"e6d43111d71551a61e1d1e9cf57345c12d2bc88d","user":{"login":"neykov","id":3612111,"avatar_url":"https://avatars.githubusercontent.com/u/3612111?v=3","gravatar_id":"","url":"https://api.github.com/users/neykov","html_url":"https://github.com/neykov","followers_url":"https://api.github.com/users/neykov/followers","following_url":"https://api.github.com/users/neykov/following{/other_user}","gists_url":"https://api.github.com/users/neykov/gists{/gist_id}","starred_url":"https://api.github.com/users/neykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neykov/subscriptions","organizations_url":"https://api.github.com/users/neykov/orgs","repos_url":"https://api.github.com/users/neykov/repos","events_url":"https://api.github.com/users/neykov/events{/privacy}","received_events_url":"https://api.github.com/users/neykov/received_events","type":"User","site_admin":false},"body":"I'd say it's time to remove the retries.","created_at":"2016-02-09T07:07:27Z","updated_at":"2016-02-09T07:07:27Z","html_url":"https://github.com/cloudsoft/winrm4j/pull/19#discussion_r52273290","pull_request_url":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/comments/52273290"},"html":{"href":"https://github.com/cloudsoft/winrm4j/pull/19#discussion_r52273290"},"pull_request":{"href":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/19","id":58642516,"html_url":"https://github.com/cloudsoft/winrm4j/pull/19","diff_url":"https://github.com/cloudsoft/winrm4j/pull/19.diff","patch_url":"https://github.com/cloudsoft/winrm4j/pull/19.patch","issue_url":"https://api.github.com/repos/cloudsoft/winrm4j/issues/19","number":19,"state":"open","locked":false,"title":"Exposed working dir and env variables option","user":{"login":"bostko","id":1595054,"avatar_url":"https://avatars.githubusercontent.com/u/1595054?v=3","gravatar_id":"","url":"https://api.github.com/users/bostko","html_url":"https://github.com/bostko","followers_url":"https://api.github.com/users/bostko/followers","following_url":"https://api.github.com/users/bostko/following{/other_user}","gists_url":"https://api.github.com/users/bostko/gists{/gist_id}","starred_url":"https://api.github.com/users/bostko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bostko/subscriptions","organizations_url":"https://api.github.com/users/bostko/orgs","repos_url":"https://api.github.com/users/bostko/repos","events_url":"https://api.github.com/users/bostko/events{/privacy}","received_events_url":"https://api.github.com/users/bostko/received_events","type":"User","site_admin":false},"body":" - Tests for working dir and env variables","created_at":"2016-02-08T17:44:32Z","updated_at":"2016-02-09T07:07:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92f00e12110d6be6c65df42e1b06aa7b382307c2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/19/commits","review_comments_url":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/19/comments","review_comment_url":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudsoft/winrm4j/issues/19/comments","statuses_url":"https://api.github.com/repos/cloudsoft/winrm4j/statuses/e6d43111d71551a61e1d1e9cf57345c12d2bc88d","head":{"label":"bostko:expose_work_dir_env","ref":"expose_work_dir_env","sha":"e6d43111d71551a61e1d1e9cf57345c12d2bc88d","user":{"login":"bostko","id":1595054,"avatar_url":"https://avatars.githubusercontent.com/u/1595054?v=3","gravatar_id":"","url":"https://api.github.com/users/bostko","html_url":"https://github.com/bostko","followers_url":"https://api.github.com/users/bostko/followers","following_url":"https://api.github.com/users/bostko/following{/other_user}","gists_url":"https://api.github.com/users/bostko/gists{/gist_id}","starred_url":"https://api.github.com/users/bostko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bostko/subscriptions","organizations_url":"https://api.github.com/users/bostko/orgs","repos_url":"https://api.github.com/users/bostko/repos","events_url":"https://api.github.com/users/bostko/events{/privacy}","received_events_url":"https://api.github.com/users/bostko/received_events","type":"User","site_admin":false},"repo":{"id":43962157,"name":"winrm4j","full_name":"bostko/winrm4j","owner":{"login":"bostko","id":1595054,"avatar_url":"https://avatars.githubusercontent.com/u/1595054?v=3","gravatar_id":"","url":"https://api.github.com/users/bostko","html_url":"https://github.com/bostko","followers_url":"https://api.github.com/users/bostko/followers","following_url":"https://api.github.com/users/bostko/following{/other_user}","gists_url":"https://api.github.com/users/bostko/gists{/gist_id}","starred_url":"https://api.github.com/users/bostko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bostko/subscriptions","organizations_url":"https://api.github.com/users/bostko/orgs","repos_url":"https://api.github.com/users/bostko/repos","events_url":"https://api.github.com/users/bostko/events{/privacy}","received_events_url":"https://api.github.com/users/bostko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bostko/winrm4j","description":"","fork":true,"url":"https://api.github.com/repos/bostko/winrm4j","forks_url":"https://api.github.com/repos/bostko/winrm4j/forks","keys_url":"https://api.github.com/repos/bostko/winrm4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bostko/winrm4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bostko/winrm4j/teams","hooks_url":"https://api.github.com/repos/bostko/winrm4j/hooks","issue_events_url":"https://api.github.com/repos/bostko/winrm4j/issues/events{/number}","events_url":"https://api.github.com/repos/bostko/winrm4j/events","assignees_url":"https://api.github.com/repos/bostko/winrm4j/assignees{/user}","branches_url":"https://api.github.com/repos/bostko/winrm4j/branches{/branch}","tags_url":"https://api.github.com/repos/bostko/winrm4j/tags","blobs_url":"https://api.github.com/repos/bostko/winrm4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bostko/winrm4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bostko/winrm4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/bostko/winrm4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bostko/winrm4j/statuses/{sha}","languages_url":"https://api.github.com/repos/bostko/winrm4j/languages","stargazers_url":"https://api.github.com/repos/bostko/winrm4j/stargazers","contributors_url":"https://api.github.com/repos/bostko/winrm4j/contributors","subscribers_url":"https://api.github.com/repos/bostko/winrm4j/subscribers","subscription_url":"https://api.github.com/repos/bostko/winrm4j/subscription","commits_url":"https://api.github.com/repos/bostko/winrm4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/bostko/winrm4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/bostko/winrm4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/bostko/winrm4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/bostko/winrm4j/contents/{+path}","compare_url":"https://api.github.com/repos/bostko/winrm4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bostko/winrm4j/merges","archive_url":"https://api.github.com/repos/bostko/winrm4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bostko/winrm4j/downloads","issues_url":"https://api.github.com/repos/bostko/winrm4j/issues{/number}","pulls_url":"https://api.github.com/repos/bostko/winrm4j/pulls{/number}","milestones_url":"https://api.github.com/repos/bostko/winrm4j/milestones{/number}","notifications_url":"https://api.github.com/repos/bostko/winrm4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bostko/winrm4j/labels{/name}","releases_url":"https://api.github.com/repos/bostko/winrm4j/releases{/id}","deployments_url":"https://api.github.com/repos/bostko/winrm4j/deployments","created_at":"2015-10-09T14:54:42Z","updated_at":"2015-10-09T14:54:43Z","pushed_at":"2016-02-08T17:44:00Z","git_url":"git://github.com/bostko/winrm4j.git","ssh_url":"git@github.com:bostko/winrm4j.git","clone_url":"https://github.com/bostko/winrm4j.git","svn_url":"https://github.com/bostko/winrm4j","homepage":null,"size":203,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"cloudsoft:master","ref":"master","sha":"db84aca0a4ab98ebb7ab222b0d3044d0a60bfcc8","user":{"login":"cloudsoft","id":831459,"avatar_url":"https://avatars.githubusercontent.com/u/831459?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudsoft","html_url":"https://github.com/cloudsoft","followers_url":"https://api.github.com/users/cloudsoft/followers","following_url":"https://api.github.com/users/cloudsoft/following{/other_user}","gists_url":"https://api.github.com/users/cloudsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudsoft/subscriptions","organizations_url":"https://api.github.com/users/cloudsoft/orgs","repos_url":"https://api.github.com/users/cloudsoft/repos","events_url":"https://api.github.com/users/cloudsoft/events{/privacy}","received_events_url":"https://api.github.com/users/cloudsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":32739623,"name":"winrm4j","full_name":"cloudsoft/winrm4j","owner":{"login":"cloudsoft","id":831459,"avatar_url":"https://avatars.githubusercontent.com/u/831459?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudsoft","html_url":"https://github.com/cloudsoft","followers_url":"https://api.github.com/users/cloudsoft/followers","following_url":"https://api.github.com/users/cloudsoft/following{/other_user}","gists_url":"https://api.github.com/users/cloudsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudsoft/subscriptions","organizations_url":"https://api.github.com/users/cloudsoft/orgs","repos_url":"https://api.github.com/users/cloudsoft/repos","events_url":"https://api.github.com/users/cloudsoft/events{/privacy}","received_events_url":"https://api.github.com/users/cloudsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudsoft/winrm4j","description":"","fork":false,"url":"https://api.github.com/repos/cloudsoft/winrm4j","forks_url":"https://api.github.com/repos/cloudsoft/winrm4j/forks","keys_url":"https://api.github.com/repos/cloudsoft/winrm4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudsoft/winrm4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudsoft/winrm4j/teams","hooks_url":"https://api.github.com/repos/cloudsoft/winrm4j/hooks","issue_events_url":"https://api.github.com/repos/cloudsoft/winrm4j/issues/events{/number}","events_url":"https://api.github.com/repos/cloudsoft/winrm4j/events","assignees_url":"https://api.github.com/repos/cloudsoft/winrm4j/assignees{/user}","branches_url":"https://api.github.com/repos/cloudsoft/winrm4j/branches{/branch}","tags_url":"https://api.github.com/repos/cloudsoft/winrm4j/tags","blobs_url":"https://api.github.com/repos/cloudsoft/winrm4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudsoft/winrm4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudsoft/winrm4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudsoft/winrm4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudsoft/winrm4j/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudsoft/winrm4j/languages","stargazers_url":"https://api.github.com/repos/cloudsoft/winrm4j/stargazers","contributors_url":"https://api.github.com/repos/cloudsoft/winrm4j/contributors","subscribers_url":"https://api.github.com/repos/cloudsoft/winrm4j/subscribers","subscription_url":"https://api.github.com/repos/cloudsoft/winrm4j/subscription","commits_url":"https://api.github.com/repos/cloudsoft/winrm4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudsoft/winrm4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudsoft/winrm4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudsoft/winrm4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudsoft/winrm4j/contents/{+path}","compare_url":"https://api.github.com/repos/cloudsoft/winrm4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudsoft/winrm4j/merges","archive_url":"https://api.github.com/repos/cloudsoft/winrm4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudsoft/winrm4j/downloads","issues_url":"https://api.github.com/repos/cloudsoft/winrm4j/issues{/number}","pulls_url":"https://api.github.com/repos/cloudsoft/winrm4j/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudsoft/winrm4j/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudsoft/winrm4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudsoft/winrm4j/labels{/name}","releases_url":"https://api.github.com/repos/cloudsoft/winrm4j/releases{/id}","deployments_url":"https://api.github.com/repos/cloudsoft/winrm4j/deployments","created_at":"2015-03-23T15:08:35Z","updated_at":"2016-01-11T09:04:02Z","pushed_at":"2016-02-08T17:44:32Z","git_url":"git://github.com/cloudsoft/winrm4j.git","ssh_url":"git@github.com:cloudsoft/winrm4j.git","clone_url":"https://github.com/cloudsoft/winrm4j.git","svn_url":"https://github.com/cloudsoft/winrm4j","homepage":null,"size":196,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/19"},"html":{"href":"https://github.com/cloudsoft/winrm4j/pull/19"},"issue":{"href":"https://api.github.com/repos/cloudsoft/winrm4j/issues/19"},"comments":{"href":"https://api.github.com/repos/cloudsoft/winrm4j/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudsoft/winrm4j/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/cloudsoft/winrm4j/statuses/e6d43111d71551a61e1d1e9cf57345c12d2bc88d"}}}}