{"action":"created","comment":{"url":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/comments/213304879","pull_request_review_id":150107577,"id":213304879,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzMwNDg3OQ==","diff_hunk":"@@ -0,0 +1,250 @@\n+Param (\n+    [Parameter(Mandatory=$false)] [string] $TestenvConfFile,\n+    [Parameter(Mandatory=$false)] [string] $LogDir = \"pesterLogs\",\n+    [Parameter(ValueFromRemainingArguments=$true)] $UnusedParams\n+)\n+\n+. $PSScriptRoot\\..\\..\\..\\CIScripts\\Common\\Invoke-UntilSucceeds.ps1\n+. $PSScriptRoot\\..\\..\\..\\CIScripts\\Common\\Invoke-NativeCommand.ps1\n+. $PSScriptRoot\\..\\..\\..\\CIScripts\\Common\\Init.ps1\n+. $PSScriptRoot\\..\\..\\..\\CIScripts\\Common\\Aliases.ps1\n+. $PSScriptRoot\\..\\..\\..\\CIScripts\\Testenv\\Testenv.ps1\n+. $PSScriptRoot\\..\\..\\..\\CIScripts\\Testenv\\Testbed.ps1\n+\n+. $PSScriptRoot\\..\\..\\Utils\\CommonTestCode.ps1\n+. $PSScriptRoot\\..\\..\\Utils\\ComponentsInstallation.ps1\n+. $PSScriptRoot\\..\\..\\Utils\\ContrailNetworkManager.ps1\n+. $PSScriptRoot\\..\\..\\TestConfigurationUtils.ps1\n+. $PSScriptRoot\\..\\..\\Utils\\CommonTestCode.ps1\n+. $PSScriptRoot\\..\\..\\PesterHelpers\\PesterHelpers.ps1\n+. $PSScriptRoot\\..\\..\\PesterLogger\\PesterLogger.ps1\n+. $PSScriptRoot\\..\\..\\PesterLogger\\RemoteLogCollector.ps1\n+\n+$ConfigPath = \"C:\\ProgramData\\Contrail\\etc\\contrail\\contrail-vrouter-nodemgr.conf\"\n+$LogPath = \"C:\\ProgramData\\contrail\\var\\log\\contrail\\contrail-vrouter-nodemgr.log\"\n+\n+function New-NodeMgrConfig {\n+    Param (\n+        [Parameter(Mandatory = $true)] [PSSessionT] $Session\n+    )\n+\n+    $HostIP = Get-PSIPAddress -Session $Session\n+\n+    $Config = @\"\n+[DEFAULTS]\n+log_local = 1\n+log_level = SYS_DEBUG\n+log_file = $LogPath\n+hostip=$HostIP\n+db_port=9042\n+db_jmx_port=7200\n+\n+[COLLECTOR]\n+server_list=$($ControllerConfig.Address):8086\n+\n+[SANDESH]\n+introspect_ssl_enable=False\n+sandesh_ssl_enable=False\n+\"@\n+\n+    Invoke-Command -Session $Session -ScriptBlock {\n+        Set-Content -Path $Using:ConfigPath -Value $Using:Config\n+    }\n+}\n+\n+function Clear-NodeMgrLogs {\n+    Param (\n+        [Parameter(Mandatory = $true)] [PSSessionT] $Session\n+    )\n+\n+    Invoke-Command -Session $Session -ScriptBlock {\n+        if(Test-Path -Path $Using:LogPath) {","path":"Test/Tests/Integration/NodeManager.Tests.ps1","position":61,"original_position":61,"commit_id":"d9f5b2520116d69452f804e6d880de22ebf32f90","original_commit_id":"d9f5b2520116d69452f804e6d880de22ebf32f90","user":{"login":"sodar","id":1798621,"node_id":"MDQ6VXNlcjE3OTg2MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/1798621?v=4","gravatar_id":"","url":"https://api.github.com/users/sodar","html_url":"https://github.com/sodar","followers_url":"https://api.github.com/users/sodar/followers","following_url":"https://api.github.com/users/sodar/following{/other_user}","gists_url":"https://api.github.com/users/sodar/gists{/gist_id}","starred_url":"https://api.github.com/users/sodar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sodar/subscriptions","organizations_url":"https://api.github.com/users/sodar/orgs","repos_url":"https://api.github.com/users/sodar/repos","events_url":"https://api.github.com/users/sodar/events{/privacy}","received_events_url":"https://api.github.com/users/sodar/received_events","type":"User","site_admin":false},"body":"Please add a space between `if` and the condition","created_at":"2018-08-28T13:06:39Z","updated_at":"2018-08-28T13:15:50Z","html_url":"https://github.com/Juniper/contrail-windows-ci/pull/262#discussion_r213304879","pull_request_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/262","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/comments/213304879"},"html":{"href":"https://github.com/Juniper/contrail-windows-ci/pull/262#discussion_r213304879"},"pull_request":{"href":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/262"}}},"pull_request":{"url":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/262","id":208026709,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4MDI2NzA5","html_url":"https://github.com/Juniper/contrail-windows-ci/pull/262","diff_url":"https://github.com/Juniper/contrail-windows-ci/pull/262.diff","patch_url":"https://github.com/Juniper/contrail-windows-ci/pull/262.patch","issue_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/262","number":262,"state":"open","locked":false,"title":"NodeMgr: Install/uninstall and test","user":{"login":"m-kostrzewa","id":9220158,"node_id":"MDQ6VXNlcjkyMjAxNTg=","avatar_url":"https://avatars3.githubusercontent.com/u/9220158?v=4","gravatar_id":"","url":"https://api.github.com/users/m-kostrzewa","html_url":"https://github.com/m-kostrzewa","followers_url":"https://api.github.com/users/m-kostrzewa/followers","following_url":"https://api.github.com/users/m-kostrzewa/following{/other_user}","gists_url":"https://api.github.com/users/m-kostrzewa/gists{/gist_id}","starred_url":"https://api.github.com/users/m-kostrzewa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-kostrzewa/subscriptions","organizations_url":"https://api.github.com/users/m-kostrzewa/orgs","repos_url":"https://api.github.com/users/m-kostrzewa/repos","events_url":"https://api.github.com/users/m-kostrzewa/events{/privacy}","received_events_url":"https://api.github.com/users/m-kostrzewa/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-13T16:05:02Z","updated_at":"2018-08-28T13:15:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61ecfc8d01da65fe72ad5b7628b29e4ddd4f2910","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jablonskim","id":6965522,"node_id":"MDQ6VXNlcjY5NjU1MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/6965522?v=4","gravatar_id":"","url":"https://api.github.com/users/jablonskim","html_url":"https://github.com/jablonskim","followers_url":"https://api.github.com/users/jablonskim/followers","following_url":"https://api.github.com/users/jablonskim/following{/other_user}","gists_url":"https://api.github.com/users/jablonskim/gists{/gist_id}","starred_url":"https://api.github.com/users/jablonskim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jablonskim/subscriptions","organizations_url":"https://api.github.com/users/jablonskim/orgs","repos_url":"https://api.github.com/users/jablonskim/repos","events_url":"https://api.github.com/users/jablonskim/events{/privacy}","received_events_url":"https://api.github.com/users/jablonskim/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/262/commits","review_comments_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/262/comments","review_comment_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/262/comments","statuses_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/statuses/d9f5b2520116d69452f804e6d880de22ebf32f90","head":{"label":"Juniper:nodemgr-ci","ref":"nodemgr-ci","sha":"d9f5b2520116d69452f804e6d880de22ebf32f90","user":{"login":"Juniper","id":3935164,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzUxNjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3935164?v=4","gravatar_id":"","url":"https://api.github.com/users/Juniper","html_url":"https://github.com/Juniper","followers_url":"https://api.github.com/users/Juniper/followers","following_url":"https://api.github.com/users/Juniper/following{/other_user}","gists_url":"https://api.github.com/users/Juniper/gists{/gist_id}","starred_url":"https://api.github.com/users/Juniper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juniper/subscriptions","organizations_url":"https://api.github.com/users/Juniper/orgs","repos_url":"https://api.github.com/users/Juniper/repos","events_url":"https://api.github.com/users/Juniper/events{/privacy}","received_events_url":"https://api.github.com/users/Juniper/received_events","type":"Organization","site_admin":false},"repo":{"id":118915051,"node_id":"MDEwOlJlcG9zaXRvcnkxMTg5MTUwNTE=","name":"contrail-windows-ci","full_name":"Juniper/contrail-windows-ci","owner":{"login":"Juniper","id":3935164,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzUxNjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3935164?v=4","gravatar_id":"","url":"https://api.github.com/users/Juniper","html_url":"https://github.com/Juniper","followers_url":"https://api.github.com/users/Juniper/followers","following_url":"https://api.github.com/users/Juniper/following{/other_user}","gists_url":"https://api.github.com/users/Juniper/gists{/gist_id}","starred_url":"https://api.github.com/users/Juniper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juniper/subscriptions","organizations_url":"https://api.github.com/users/Juniper/orgs","repos_url":"https://api.github.com/users/Juniper/repos","events_url":"https://api.github.com/users/Juniper/events{/privacy}","received_events_url":"https://api.github.com/users/Juniper/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Juniper/contrail-windows-ci","description":null,"fork":false,"url":"https://api.github.com/repos/Juniper/contrail-windows-ci","forks_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/forks","keys_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/teams","hooks_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/hooks","issue_events_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/events{/number}","events_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/events","assignees_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/assignees{/user}","branches_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/branches{/branch}","tags_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/tags","blobs_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/statuses/{sha}","languages_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/languages","stargazers_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/stargazers","contributors_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/contributors","subscribers_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/subscribers","subscription_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/subscription","commits_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/contents/{+path}","compare_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/merges","archive_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/downloads","issues_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues{/number}","pulls_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls{/number}","milestones_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/milestones{/number}","notifications_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/labels{/name}","releases_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/releases{/id}","deployments_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/deployments","created_at":"2018-01-25T13:17:36Z","updated_at":"2018-08-28T12:34:28Z","pushed_at":"2018-08-28T13:03:15Z","git_url":"git://github.com/Juniper/contrail-windows-ci.git","ssh_url":"git@github.com:Juniper/contrail-windows-ci.git","clone_url":"https://github.com/Juniper/contrail-windows-ci.git","svn_url":"https://github.com/Juniper/contrail-windows-ci","homepage":null,"size":1271,"stargazers_count":1,"watchers_count":1,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":5,"open_issues":11,"watchers":1,"default_branch":"development"}},"base":{"label":"Juniper:development","ref":"development","sha":"f94e2b66c336207d56332b4b041317d727daf292","user":{"login":"Juniper","id":3935164,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzUxNjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3935164?v=4","gravatar_id":"","url":"https://api.github.com/users/Juniper","html_url":"https://github.com/Juniper","followers_url":"https://api.github.com/users/Juniper/followers","following_url":"https://api.github.com/users/Juniper/following{/other_user}","gists_url":"https://api.github.com/users/Juniper/gists{/gist_id}","starred_url":"https://api.github.com/users/Juniper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juniper/subscriptions","organizations_url":"https://api.github.com/users/Juniper/orgs","repos_url":"https://api.github.com/users/Juniper/repos","events_url":"https://api.github.com/users/Juniper/events{/privacy}","received_events_url":"https://api.github.com/users/Juniper/received_events","type":"Organization","site_admin":false},"repo":{"id":118915051,"node_id":"MDEwOlJlcG9zaXRvcnkxMTg5MTUwNTE=","name":"contrail-windows-ci","full_name":"Juniper/contrail-windows-ci","owner":{"login":"Juniper","id":3935164,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzUxNjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3935164?v=4","gravatar_id":"","url":"https://api.github.com/users/Juniper","html_url":"https://github.com/Juniper","followers_url":"https://api.github.com/users/Juniper/followers","following_url":"https://api.github.com/users/Juniper/following{/other_user}","gists_url":"https://api.github.com/users/Juniper/gists{/gist_id}","starred_url":"https://api.github.com/users/Juniper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juniper/subscriptions","organizations_url":"https://api.github.com/users/Juniper/orgs","repos_url":"https://api.github.com/users/Juniper/repos","events_url":"https://api.github.com/users/Juniper/events{/privacy}","received_events_url":"https://api.github.com/users/Juniper/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Juniper/contrail-windows-ci","description":null,"fork":false,"url":"https://api.github.com/repos/Juniper/contrail-windows-ci","forks_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/forks","keys_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/teams","hooks_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/hooks","issue_events_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/events{/number}","events_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/events","assignees_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/assignees{/user}","branches_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/branches{/branch}","tags_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/tags","blobs_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/statuses/{sha}","languages_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/languages","stargazers_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/stargazers","contributors_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/contributors","subscribers_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/subscribers","subscription_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/subscription","commits_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/contents/{+path}","compare_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/merges","archive_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/downloads","issues_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues{/number}","pulls_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls{/number}","milestones_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/milestones{/number}","notifications_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/labels{/name}","releases_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/releases{/id}","deployments_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/deployments","created_at":"2018-01-25T13:17:36Z","updated_at":"2018-08-28T12:34:28Z","pushed_at":"2018-08-28T13:03:15Z","git_url":"git://github.com/Juniper/contrail-windows-ci.git","ssh_url":"git@github.com:Juniper/contrail-windows-ci.git","clone_url":"https://github.com/Juniper/contrail-windows-ci.git","svn_url":"https://github.com/Juniper/contrail-windows-ci","homepage":null,"size":1271,"stargazers_count":1,"watchers_count":1,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":5,"open_issues":11,"watchers":1,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/262"},"html":{"href":"https://github.com/Juniper/contrail-windows-ci/pull/262"},"issue":{"href":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/262"},"comments":{"href":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/262/comments"},"review_comments":{"href":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/262/comments"},"review_comment":{"href":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/262/commits"},"statuses":{"href":"https://api.github.com/repos/Juniper/contrail-windows-ci/statuses/d9f5b2520116d69452f804e6d880de22ebf32f90"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sodar"}}