{"action":"created","comment":{"url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/comments/42116398","id":42116398,"diff_hunk":"@@ -457,4 +457,34 @@\n       end\n     end\n   end\n+\n+  describe '#upload_vm' do\n+    context 'when not all required arguments given' do\n+      it 'raises an exception' do\n+        expect { provider.upload_file_vm }.to raise_exception(ArgumentError)\n+      end\n+    end\n+\n+    context 'when all required arguments given' do\n+      it 'calls implementation method' do\n+        args = {\n+          user: 'a',\n+          password: 'b',\n+          guest_file_path: 'c',\n+          host_file: File.new('Gemfile')\n+        }\n+\n+        expect(provider).to receive(:upload_file_impl) do |param|\n+          expect(param['user']).to eq args[:user]\n+          expect(param['password']).to eq args[:password]\n+          expect(param['guest_file_path']).to eq args[:guest_file_path]\n+          expect(param['host_file']).to eq args[:host_file]\n+          111_222","path":"spec/unit/lab_manager/provider/vsphere_spec.rb","position":26,"original_position":26,"commit_id":"92507f04fb21bb8c181989fcaf034f297d535b8b","original_commit_id":"92507f04fb21bb8c181989fcaf034f297d535b8b","user":{"login":"lksv","id":1152494,"avatar_url":"https://avatars.githubusercontent.com/u/1152494?v=3","gravatar_id":"","url":"https://api.github.com/users/lksv","html_url":"https://github.com/lksv","followers_url":"https://api.github.com/users/lksv/followers","following_url":"https://api.github.com/users/lksv/following{/other_user}","gists_url":"https://api.github.com/users/lksv/gists{/gist_id}","starred_url":"https://api.github.com/users/lksv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lksv/subscriptions","organizations_url":"https://api.github.com/users/lksv/orgs","repos_url":"https://api.github.com/users/lksv/repos","events_url":"https://api.github.com/users/lksv/events{/privacy}","received_events_url":"https://api.github.com/users/lksv/received_events","type":"User","site_admin":false},"body":"does 'vm_upload` or `upload_file_imple` return something useful?","created_at":"2015-10-15T12:17:42Z","updated_at":"2015-10-15T12:17:42Z","html_url":"https://github.com/AVGTechnologies/lab_manager/pull/19#discussion_r42116398","pull_request_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/comments/42116398"},"html":{"href":"https://github.com/AVGTechnologies/lab_manager/pull/19#discussion_r42116398"},"pull_request":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/19","id":47658583,"html_url":"https://github.com/AVGTechnologies/lab_manager/pull/19","diff_url":"https://github.com/AVGTechnologies/lab_manager/pull/19.diff","patch_url":"https://github.com/AVGTechnologies/lab_manager/pull/19.patch","issue_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/19","number":19,"state":"open","locked":false,"title":"feature(vsphere): upload_file_vm","user":{"login":"ireznice","id":8779206,"avatar_url":"https://avatars.githubusercontent.com/u/8779206?v=3","gravatar_id":"","url":"https://api.github.com/users/ireznice","html_url":"https://github.com/ireznice","followers_url":"https://api.github.com/users/ireznice/followers","following_url":"https://api.github.com/users/ireznice/following{/other_user}","gists_url":"https://api.github.com/users/ireznice/gists{/gist_id}","starred_url":"https://api.github.com/users/ireznice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ireznice/subscriptions","organizations_url":"https://api.github.com/users/ireznice/orgs","repos_url":"https://api.github.com/users/ireznice/repos","events_url":"https://api.github.com/users/ireznice/events{/privacy}","received_events_url":"https://api.github.com/users/ireznice/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-14T13:27:49Z","updated_at":"2015-10-15T12:17:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f247ff88dc62372d974ddcec0bdcbe708cdcfb2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/19/commits","review_comments_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/19/comments","review_comment_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/19/comments","statuses_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/statuses/92507f04fb21bb8c181989fcaf034f297d535b8b","head":{"label":"ireznice:ir_upload_file","ref":"ir_upload_file","sha":"92507f04fb21bb8c181989fcaf034f297d535b8b","user":{"login":"ireznice","id":8779206,"avatar_url":"https://avatars.githubusercontent.com/u/8779206?v=3","gravatar_id":"","url":"https://api.github.com/users/ireznice","html_url":"https://github.com/ireznice","followers_url":"https://api.github.com/users/ireznice/followers","following_url":"https://api.github.com/users/ireznice/following{/other_user}","gists_url":"https://api.github.com/users/ireznice/gists{/gist_id}","starred_url":"https://api.github.com/users/ireznice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ireznice/subscriptions","organizations_url":"https://api.github.com/users/ireznice/orgs","repos_url":"https://api.github.com/users/ireznice/repos","events_url":"https://api.github.com/users/ireznice/events{/privacy}","received_events_url":"https://api.github.com/users/ireznice/received_events","type":"User","site_admin":false},"repo":{"id":42052522,"name":"lab_manager","full_name":"ireznice/lab_manager","owner":{"login":"ireznice","id":8779206,"avatar_url":"https://avatars.githubusercontent.com/u/8779206?v=3","gravatar_id":"","url":"https://api.github.com/users/ireznice","html_url":"https://github.com/ireznice","followers_url":"https://api.github.com/users/ireznice/followers","following_url":"https://api.github.com/users/ireznice/following{/other_user}","gists_url":"https://api.github.com/users/ireznice/gists{/gist_id}","starred_url":"https://api.github.com/users/ireznice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ireznice/subscriptions","organizations_url":"https://api.github.com/users/ireznice/orgs","repos_url":"https://api.github.com/users/ireznice/repos","events_url":"https://api.github.com/users/ireznice/events{/privacy}","received_events_url":"https://api.github.com/users/ireznice/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ireznice/lab_manager","description":"","fork":true,"url":"https://api.github.com/repos/ireznice/lab_manager","forks_url":"https://api.github.com/repos/ireznice/lab_manager/forks","keys_url":"https://api.github.com/repos/ireznice/lab_manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ireznice/lab_manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ireznice/lab_manager/teams","hooks_url":"https://api.github.com/repos/ireznice/lab_manager/hooks","issue_events_url":"https://api.github.com/repos/ireznice/lab_manager/issues/events{/number}","events_url":"https://api.github.com/repos/ireznice/lab_manager/events","assignees_url":"https://api.github.com/repos/ireznice/lab_manager/assignees{/user}","branches_url":"https://api.github.com/repos/ireznice/lab_manager/branches{/branch}","tags_url":"https://api.github.com/repos/ireznice/lab_manager/tags","blobs_url":"https://api.github.com/repos/ireznice/lab_manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ireznice/lab_manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ireznice/lab_manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/ireznice/lab_manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ireznice/lab_manager/statuses/{sha}","languages_url":"https://api.github.com/repos/ireznice/lab_manager/languages","stargazers_url":"https://api.github.com/repos/ireznice/lab_manager/stargazers","contributors_url":"https://api.github.com/repos/ireznice/lab_manager/contributors","subscribers_url":"https://api.github.com/repos/ireznice/lab_manager/subscribers","subscription_url":"https://api.github.com/repos/ireznice/lab_manager/subscription","commits_url":"https://api.github.com/repos/ireznice/lab_manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/ireznice/lab_manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/ireznice/lab_manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/ireznice/lab_manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/ireznice/lab_manager/contents/{+path}","compare_url":"https://api.github.com/repos/ireznice/lab_manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ireznice/lab_manager/merges","archive_url":"https://api.github.com/repos/ireznice/lab_manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ireznice/lab_manager/downloads","issues_url":"https://api.github.com/repos/ireznice/lab_manager/issues{/number}","pulls_url":"https://api.github.com/repos/ireznice/lab_manager/pulls{/number}","milestones_url":"https://api.github.com/repos/ireznice/lab_manager/milestones{/number}","notifications_url":"https://api.github.com/repos/ireznice/lab_manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ireznice/lab_manager/labels{/name}","releases_url":"https://api.github.com/repos/ireznice/lab_manager/releases{/id}","created_at":"2015-09-07T12:45:43Z","updated_at":"2015-09-07T12:45:43Z","pushed_at":"2015-10-15T11:52:56Z","git_url":"git://github.com/ireznice/lab_manager.git","ssh_url":"git@github.com:ireznice/lab_manager.git","clone_url":"https://github.com/ireznice/lab_manager.git","svn_url":"https://github.com/ireznice/lab_manager","homepage":null,"size":306,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"AVGTechnologies:master","ref":"master","sha":"37b0cfc3b357374b28fe9cb3d7555ff05653e992","user":{"login":"AVGTechnologies","id":13526630,"avatar_url":"https://avatars.githubusercontent.com/u/13526630?v=3","gravatar_id":"","url":"https://api.github.com/users/AVGTechnologies","html_url":"https://github.com/AVGTechnologies","followers_url":"https://api.github.com/users/AVGTechnologies/followers","following_url":"https://api.github.com/users/AVGTechnologies/following{/other_user}","gists_url":"https://api.github.com/users/AVGTechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/AVGTechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AVGTechnologies/subscriptions","organizations_url":"https://api.github.com/users/AVGTechnologies/orgs","repos_url":"https://api.github.com/users/AVGTechnologies/repos","events_url":"https://api.github.com/users/AVGTechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/AVGTechnologies/received_events","type":"Organization","site_admin":false},"repo":{"id":41104766,"name":"lab_manager","full_name":"AVGTechnologies/lab_manager","owner":{"login":"AVGTechnologies","id":13526630,"avatar_url":"https://avatars.githubusercontent.com/u/13526630?v=3","gravatar_id":"","url":"https://api.github.com/users/AVGTechnologies","html_url":"https://github.com/AVGTechnologies","followers_url":"https://api.github.com/users/AVGTechnologies/followers","following_url":"https://api.github.com/users/AVGTechnologies/following{/other_user}","gists_url":"https://api.github.com/users/AVGTechnologies/gists{/gist_id}","starred_url":"https://api.github.com/users/AVGTechnologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AVGTechnologies/subscriptions","organizations_url":"https://api.github.com/users/AVGTechnologies/orgs","repos_url":"https://api.github.com/users/AVGTechnologies/repos","events_url":"https://api.github.com/users/AVGTechnologies/events{/privacy}","received_events_url":"https://api.github.com/users/AVGTechnologies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AVGTechnologies/lab_manager","description":"","fork":false,"url":"https://api.github.com/repos/AVGTechnologies/lab_manager","forks_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/forks","keys_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/teams","hooks_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/hooks","issue_events_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/events{/number}","events_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/events","assignees_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/assignees{/user}","branches_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/branches{/branch}","tags_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/tags","blobs_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/statuses/{sha}","languages_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/languages","stargazers_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/stargazers","contributors_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/contributors","subscribers_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/subscribers","subscription_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/subscription","commits_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/contents/{+path}","compare_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/merges","archive_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/downloads","issues_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues{/number}","pulls_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls{/number}","milestones_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/milestones{/number}","notifications_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/labels{/name}","releases_url":"https://api.github.com/repos/AVGTechnologies/lab_manager/releases{/id}","created_at":"2015-08-20T15:51:20Z","updated_at":"2015-10-01T10:11:42Z","pushed_at":"2015-10-15T11:52:58Z","git_url":"git://github.com/AVGTechnologies/lab_manager.git","ssh_url":"git@github.com:AVGTechnologies/lab_manager.git","clone_url":"https://github.com/AVGTechnologies/lab_manager.git","svn_url":"https://github.com/AVGTechnologies/lab_manager","homepage":null,"size":416,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/19"},"html":{"href":"https://github.com/AVGTechnologies/lab_manager/pull/19"},"issue":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/19"},"comments":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/AVGTechnologies/lab_manager/statuses/92507f04fb21bb8c181989fcaf034f297d535b8b"}}}}