{"action":"created","comment":{"url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/comments/223942149","pull_request_review_id":163190828,"id":223942149,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzk0MjE0OQ==","diff_hunk":"@@ -48,9 +49,18 @@ def run(test, params, env):\n     job = params.get(\"domcontrol_job\", \"yes\")\n     readonly = \"yes\" == params.get(\"readonly\", \"no\")\n     status_error = params.get(\"status_error\", \"no\")\n+    remote_uri = params.get(\"remote_uri\")\n+    remote_ip = params.get(\"remote_ip\")\n+    remote_pwd = params.get(\"remote_pwd\")\n+    remote_user = params.get(\"remote_user\", \"root\")\n     if start_vm == \"no\" and vm.is_alive():\n         vm.destroy()\n \n+    if remote_uri:\n+        if remote_ip.count(\"EXAMPLE\"):\n+            test.cancel(\"The remote ip is Sample one, pls configure it first\")\n+        ssh_key.setup_ssh_key(remote_ip, remote_user, remote_pwd)","path":"libvirt/tests/src/virsh_cmd/domain/virsh_domcontrol.py","position":22,"original_position":22,"commit_id":"205b979826e44bd77d282d73afe88f8f23d6b949","original_commit_id":"205b979826e44bd77d282d73afe88f8f23d6b949","user":{"login":"kylazhang","id":3423686,"node_id":"MDQ6VXNlcjM0MjM2ODY=","avatar_url":"https://avatars2.githubusercontent.com/u/3423686?v=4","gravatar_id":"","url":"https://api.github.com/users/kylazhang","html_url":"https://github.com/kylazhang","followers_url":"https://api.github.com/users/kylazhang/followers","following_url":"https://api.github.com/users/kylazhang/following{/other_user}","gists_url":"https://api.github.com/users/kylazhang/gists{/gist_id}","starred_url":"https://api.github.com/users/kylazhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylazhang/subscriptions","organizations_url":"https://api.github.com/users/kylazhang/orgs","repos_url":"https://api.github.com/users/kylazhang/repos","events_url":"https://api.github.com/users/kylazhang/events{/privacy}","received_events_url":"https://api.github.com/users/kylazhang/received_events","type":"User","site_admin":false},"body":"If we want test on remote, we must prepare the env on remote host, include vm. It is like we also need to prepare vm locally.","created_at":"2018-10-10T05:46:11Z","updated_at":"2018-10-10T05:46:11Z","html_url":"https://github.com/autotest/tp-libvirt/pull/1767#discussion_r223942149","pull_request_url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/1767","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/comments/223942149"},"html":{"href":"https://github.com/autotest/tp-libvirt/pull/1767#discussion_r223942149"},"pull_request":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/1767"}},"in_reply_to_id":209587576},"pull_request":{"url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/1767","id":205038956,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1MDM4OTU2","html_url":"https://github.com/autotest/tp-libvirt/pull/1767","diff_url":"https://github.com/autotest/tp-libvirt/pull/1767.diff","patch_url":"https://github.com/autotest/tp-libvirt/pull/1767.patch","issue_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/1767","number":1767,"state":"open","locked":false,"title":"virsh_domcontrol: Add 'uri' test","user":{"login":"hahakiki2010","id":16910638,"node_id":"MDQ6VXNlcjE2OTEwNjM4","avatar_url":"https://avatars0.githubusercontent.com/u/16910638?v=4","gravatar_id":"","url":"https://api.github.com/users/hahakiki2010","html_url":"https://github.com/hahakiki2010","followers_url":"https://api.github.com/users/hahakiki2010/followers","following_url":"https://api.github.com/users/hahakiki2010/following{/other_user}","gists_url":"https://api.github.com/users/hahakiki2010/gists{/gist_id}","starred_url":"https://api.github.com/users/hahakiki2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hahakiki2010/subscriptions","organizations_url":"https://api.github.com/users/hahakiki2010/orgs","repos_url":"https://api.github.com/users/hahakiki2010/repos","events_url":"https://api.github.com/users/hahakiki2010/events{/privacy}","received_events_url":"https://api.github.com/users/hahakiki2010/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Yan Li <yannli@redhat.com>","created_at":"2018-07-31T08:49:29Z","updated_at":"2018-10-10T05:46:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4efb58102c27312bf1f4a05df3bede14ddaead8e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/1767/commits","review_comments_url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/1767/comments","review_comment_url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/1767/comments","statuses_url":"https://api.github.com/repos/autotest/tp-libvirt/statuses/205b979826e44bd77d282d73afe88f8f23d6b949","head":{"label":"hahakiki2010:virsh_domcontrol","ref":"virsh_domcontrol","sha":"205b979826e44bd77d282d73afe88f8f23d6b949","user":{"login":"hahakiki2010","id":16910638,"node_id":"MDQ6VXNlcjE2OTEwNjM4","avatar_url":"https://avatars0.githubusercontent.com/u/16910638?v=4","gravatar_id":"","url":"https://api.github.com/users/hahakiki2010","html_url":"https://github.com/hahakiki2010","followers_url":"https://api.github.com/users/hahakiki2010/followers","following_url":"https://api.github.com/users/hahakiki2010/following{/other_user}","gists_url":"https://api.github.com/users/hahakiki2010/gists{/gist_id}","starred_url":"https://api.github.com/users/hahakiki2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hahakiki2010/subscriptions","organizations_url":"https://api.github.com/users/hahakiki2010/orgs","repos_url":"https://api.github.com/users/hahakiki2010/repos","events_url":"https://api.github.com/users/hahakiki2010/events{/privacy}","received_events_url":"https://api.github.com/users/hahakiki2010/received_events","type":"User","site_admin":false},"repo":{"id":97383386,"node_id":"MDEwOlJlcG9zaXRvcnk5NzM4MzM4Ng==","name":"tp-libvirt","full_name":"hahakiki2010/tp-libvirt","private":false,"owner":{"login":"hahakiki2010","id":16910638,"node_id":"MDQ6VXNlcjE2OTEwNjM4","avatar_url":"https://avatars0.githubusercontent.com/u/16910638?v=4","gravatar_id":"","url":"https://api.github.com/users/hahakiki2010","html_url":"https://github.com/hahakiki2010","followers_url":"https://api.github.com/users/hahakiki2010/followers","following_url":"https://api.github.com/users/hahakiki2010/following{/other_user}","gists_url":"https://api.github.com/users/hahakiki2010/gists{/gist_id}","starred_url":"https://api.github.com/users/hahakiki2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hahakiki2010/subscriptions","organizations_url":"https://api.github.com/users/hahakiki2010/orgs","repos_url":"https://api.github.com/users/hahakiki2010/repos","events_url":"https://api.github.com/users/hahakiki2010/events{/privacy}","received_events_url":"https://api.github.com/users/hahakiki2010/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hahakiki2010/tp-libvirt","description":"Test Provider for Libvirt and related virtualization backends","fork":true,"url":"https://api.github.com/repos/hahakiki2010/tp-libvirt","forks_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/forks","keys_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/teams","hooks_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/hooks","issue_events_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/issues/events{/number}","events_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/events","assignees_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/assignees{/user}","branches_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/branches{/branch}","tags_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/tags","blobs_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/git/refs{/sha}","trees_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/statuses/{sha}","languages_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/languages","stargazers_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/stargazers","contributors_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/contributors","subscribers_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/subscribers","subscription_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/subscription","commits_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/commits{/sha}","git_commits_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/git/commits{/sha}","comments_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/comments{/number}","issue_comment_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/issues/comments{/number}","contents_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/contents/{+path}","compare_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/merges","archive_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/downloads","issues_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/issues{/number}","pulls_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/pulls{/number}","milestones_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/milestones{/number}","notifications_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/labels{/name}","releases_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/releases{/id}","deployments_url":"https://api.github.com/repos/hahakiki2010/tp-libvirt/deployments","created_at":"2017-07-16T12:59:27Z","updated_at":"2017-07-16T12:59:31Z","pushed_at":"2018-09-21T11:23:41Z","git_url":"git://github.com/hahakiki2010/tp-libvirt.git","ssh_url":"git@github.com:hahakiki2010/tp-libvirt.git","clone_url":"https://github.com/hahakiki2010/tp-libvirt.git","svn_url":"https://github.com/hahakiki2010/tp-libvirt","homepage":null,"size":12964,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"autotest:master","ref":"master","sha":"093bc7c1b0968bb0719488dc41d4db68cff9843a","user":{"login":"autotest","id":472856,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3Mjg1Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/472856?v=4","gravatar_id":"","url":"https://api.github.com/users/autotest","html_url":"https://github.com/autotest","followers_url":"https://api.github.com/users/autotest/followers","following_url":"https://api.github.com/users/autotest/following{/other_user}","gists_url":"https://api.github.com/users/autotest/gists{/gist_id}","starred_url":"https://api.github.com/users/autotest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autotest/subscriptions","organizations_url":"https://api.github.com/users/autotest/orgs","repos_url":"https://api.github.com/users/autotest/repos","events_url":"https://api.github.com/users/autotest/events{/privacy}","received_events_url":"https://api.github.com/users/autotest/received_events","type":"Organization","site_admin":false},"repo":{"id":16180517,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE4MDUxNw==","name":"tp-libvirt","full_name":"autotest/tp-libvirt","private":false,"owner":{"login":"autotest","id":472856,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3Mjg1Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/472856?v=4","gravatar_id":"","url":"https://api.github.com/users/autotest","html_url":"https://github.com/autotest","followers_url":"https://api.github.com/users/autotest/followers","following_url":"https://api.github.com/users/autotest/following{/other_user}","gists_url":"https://api.github.com/users/autotest/gists{/gist_id}","starred_url":"https://api.github.com/users/autotest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autotest/subscriptions","organizations_url":"https://api.github.com/users/autotest/orgs","repos_url":"https://api.github.com/users/autotest/repos","events_url":"https://api.github.com/users/autotest/events{/privacy}","received_events_url":"https://api.github.com/users/autotest/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/autotest/tp-libvirt","description":"Test Provider for Libvirt and related virtualization backends","fork":false,"url":"https://api.github.com/repos/autotest/tp-libvirt","forks_url":"https://api.github.com/repos/autotest/tp-libvirt/forks","keys_url":"https://api.github.com/repos/autotest/tp-libvirt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/autotest/tp-libvirt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/autotest/tp-libvirt/teams","hooks_url":"https://api.github.com/repos/autotest/tp-libvirt/hooks","issue_events_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/events{/number}","events_url":"https://api.github.com/repos/autotest/tp-libvirt/events","assignees_url":"https://api.github.com/repos/autotest/tp-libvirt/assignees{/user}","branches_url":"https://api.github.com/repos/autotest/tp-libvirt/branches{/branch}","tags_url":"https://api.github.com/repos/autotest/tp-libvirt/tags","blobs_url":"https://api.github.com/repos/autotest/tp-libvirt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/autotest/tp-libvirt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/autotest/tp-libvirt/git/refs{/sha}","trees_url":"https://api.github.com/repos/autotest/tp-libvirt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/autotest/tp-libvirt/statuses/{sha}","languages_url":"https://api.github.com/repos/autotest/tp-libvirt/languages","stargazers_url":"https://api.github.com/repos/autotest/tp-libvirt/stargazers","contributors_url":"https://api.github.com/repos/autotest/tp-libvirt/contributors","subscribers_url":"https://api.github.com/repos/autotest/tp-libvirt/subscribers","subscription_url":"https://api.github.com/repos/autotest/tp-libvirt/subscription","commits_url":"https://api.github.com/repos/autotest/tp-libvirt/commits{/sha}","git_commits_url":"https://api.github.com/repos/autotest/tp-libvirt/git/commits{/sha}","comments_url":"https://api.github.com/repos/autotest/tp-libvirt/comments{/number}","issue_comment_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/comments{/number}","contents_url":"https://api.github.com/repos/autotest/tp-libvirt/contents/{+path}","compare_url":"https://api.github.com/repos/autotest/tp-libvirt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/autotest/tp-libvirt/merges","archive_url":"https://api.github.com/repos/autotest/tp-libvirt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/autotest/tp-libvirt/downloads","issues_url":"https://api.github.com/repos/autotest/tp-libvirt/issues{/number}","pulls_url":"https://api.github.com/repos/autotest/tp-libvirt/pulls{/number}","milestones_url":"https://api.github.com/repos/autotest/tp-libvirt/milestones{/number}","notifications_url":"https://api.github.com/repos/autotest/tp-libvirt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/autotest/tp-libvirt/labels{/name}","releases_url":"https://api.github.com/repos/autotest/tp-libvirt/releases{/id}","deployments_url":"https://api.github.com/repos/autotest/tp-libvirt/deployments","created_at":"2014-01-23T17:58:18Z","updated_at":"2018-10-08T08:21:59Z","pushed_at":"2018-10-10T05:23:01Z","git_url":"git://github.com/autotest/tp-libvirt.git","ssh_url":"git@github.com:autotest/tp-libvirt.git","clone_url":"https://github.com/autotest/tp-libvirt.git","svn_url":"https://github.com/autotest/tp-libvirt","homepage":null,"size":12947,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":109,"mirror_url":null,"archived":false,"open_issues_count":149,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":109,"open_issues":149,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/1767"},"html":{"href":"https://github.com/autotest/tp-libvirt/pull/1767"},"issue":{"href":"https://api.github.com/repos/autotest/tp-libvirt/issues/1767"},"comments":{"href":"https://api.github.com/repos/autotest/tp-libvirt/issues/1767/comments"},"review_comments":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/1767/comments"},"review_comment":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/1767/commits"},"statuses":{"href":"https://api.github.com/repos/autotest/tp-libvirt/statuses/205b979826e44bd77d282d73afe88f8f23d6b949"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kylazhang"}}