{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/70969760","id":70969760,"diff_hunk":"@@ -0,0 +1,62 @@\n+describe ManageIQ::Providers::Vmware::CloudManager do\n+  before do\n+    @host = Rails.application.secrets.vmware_cloud.try(:[], 'host') || 'vmwarecloudhost'\n+    host_uri = URI.parse(\"https://#{@host}\")\n+\n+    @hostname = host_uri.host\n+    @port = host_uri.port == 443 ? nil : host_uri.port\n+\n+    @userid = Rails.application.secrets.vmware_cloud.try(:[], 'userid') || 'VMWARE_CLOUD_USERID'\n+    @password = Rails.application.secrets.vmware_cloud.try(:[], 'password') || 'VMWARE_CLOUD_PASSWORD'\n+\n+    VCR.configure do |c|\n+      # workaround for escaping host in spec/spec_helper.rb\n+      c.before_playback do |interaction|\n+        interaction.filter!(CGI.escape(@host), @host)\n+        interaction.filter!(CGI.escape('VMWARE_CLOUD_HOST'), 'vmwarecloudhost')\n+      end\n+\n+      c.filter_sensitive_data('VMWARE_CLOUD_AUTHORIZATION') { Base64.encode64(\"#{@userid}:#{@password}\").chomp }\n+      c.filter_sensitive_data('VMWARE_CLOUD_INVALIDAUTHORIZATION') { Base64.encode64(\"#{@userid}:invalid\").chomp }\n+    end\n+  end\n+\n+  it \".ems_type\" do\n+    expect(described_class.ems_type).to eq('vmware_cloud')\n+  end\n+\n+  it \".description\" do\n+    expect(described_class.description).to eq('VMware vCloud')\n+  end\n+\n+  it \"will verify credentials\" do\n+    VCR.use_cassette(\"#{described_class.name.underscore}_valid_credentials\") do\n+      _guid, _server, zone = EvmSpecHelper.create_guid_miq_server_zone\n+      ems = FactoryGirl.create(\n+        :ems_vmware_cloud,\n+        :zone     => zone,\n+        :hostname => @hostname,\n+        :port     => @port\n+      )","path":"spec/models/manageiq/providers/vmware/cloud_manager_spec.rb","position":40,"original_position":40,"commit_id":"5c6e58a467b090996701390942d6f2cf5116e11a","original_commit_id":"5c6e58a467b090996701390942d6f2cf5116e11a","user":{"login":"bancek","id":367440,"avatar_url":"https://avatars.githubusercontent.com/u/367440?v=3","gravatar_id":"","url":"https://api.github.com/users/bancek","html_url":"https://github.com/bancek","followers_url":"https://api.github.com/users/bancek/followers","following_url":"https://api.github.com/users/bancek/following{/other_user}","gists_url":"https://api.github.com/users/bancek/gists{/gist_id}","starred_url":"https://api.github.com/users/bancek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bancek/subscriptions","organizations_url":"https://api.github.com/users/bancek/orgs","repos_url":"https://api.github.com/users/bancek/repos","events_url":"https://api.github.com/users/bancek/events{/privacy}","received_events_url":"https://api.github.com/users/bancek/received_events","type":"User","site_admin":false},"body":"I cannot put it directly because they use different VCR cassettes. I could create helper function that returns ems.","created_at":"2016-07-15T13:10:30Z","updated_at":"2016-07-15T13:10:30Z","html_url":"https://github.com/ManageIQ/manageiq/pull/9810#discussion_r70969760","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9810","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/70969760"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/9810#discussion_r70969760"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9810"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9810","id":77461401,"html_url":"https://github.com/ManageIQ/manageiq/pull/9810","diff_url":"https://github.com/ManageIQ/manageiq/pull/9810.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/9810.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9810","number":9810,"state":"open","locked":false,"title":"Add CRUD support for VMware vCloud","user":{"login":"bancek","id":367440,"avatar_url":"https://avatars.githubusercontent.com/u/367440?v=3","gravatar_id":"","url":"https://api.github.com/users/bancek","html_url":"https://github.com/bancek","followers_url":"https://api.github.com/users/bancek/followers","following_url":"https://api.github.com/users/bancek/following{/other_user}","gists_url":"https://api.github.com/users/bancek/gists{/gist_id}","starred_url":"https://api.github.com/users/bancek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bancek/subscriptions","organizations_url":"https://api.github.com/users/bancek/orgs","repos_url":"https://api.github.com/users/bancek/repos","events_url":"https://api.github.com/users/bancek/events{/privacy}","received_events_url":"https://api.github.com/users/bancek/received_events","type":"User","site_admin":false},"body":"Purpose or Intent\r\n-----------------\r\nAdd CRUD support for VMware vCloud cloud provider as discussed with @sergio-ocon and @agrare. This is the first pull request in the series.\r\n\r\n* forked `fog` and created `fog-vcloud-director` gem (could not add fog as a dependency)\r\n* basic cloud provider structure\r\n\r\nLinks\r\n-----\r\n* https://github.com/xlab-si/fog-vcloud-director\r\n\r\nSteps for Testing/QA\r\n--------------------\r\n/","created_at":"2016-07-14T14:03:39Z","updated_at":"2016-07-15T13:10:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4795fac1573b7d05588b89ded5575bcfb989c99","assignee":{"login":"agrare","id":12851112,"avatar_url":"https://avatars.githubusercontent.com/u/12851112?v=3","gravatar_id":"","url":"https://api.github.com/users/agrare","html_url":"https://github.com/agrare","followers_url":"https://api.github.com/users/agrare/followers","following_url":"https://api.github.com/users/agrare/following{/other_user}","gists_url":"https://api.github.com/users/agrare/gists{/gist_id}","starred_url":"https://api.github.com/users/agrare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrare/subscriptions","organizations_url":"https://api.github.com/users/agrare/orgs","repos_url":"https://api.github.com/users/agrare/repos","events_url":"https://api.github.com/users/agrare/events{/privacy}","received_events_url":"https://api.github.com/users/agrare/received_events","type":"User","site_admin":false},"assignees":[{"login":"agrare","id":12851112,"avatar_url":"https://avatars.githubusercontent.com/u/12851112?v=3","gravatar_id":"","url":"https://api.github.com/users/agrare","html_url":"https://github.com/agrare","followers_url":"https://api.github.com/users/agrare/followers","following_url":"https://api.github.com/users/agrare/following{/other_user}","gists_url":"https://api.github.com/users/agrare/gists{/gist_id}","starred_url":"https://api.github.com/users/agrare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrare/subscriptions","organizations_url":"https://api.github.com/users/agrare/orgs","repos_url":"https://api.github.com/users/agrare/repos","events_url":"https://api.github.com/users/agrare/events{/privacy}","received_events_url":"https://api.github.com/users/agrare/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9810/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9810/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9810/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/5c6e58a467b090996701390942d6f2cf5116e11a","head":{"label":"xlab-si:add_vmware_vcloud_structure","ref":"add_vmware_vcloud_structure","sha":"5c6e58a467b090996701390942d6f2cf5116e11a","user":{"login":"xlab-si","id":17640165,"avatar_url":"https://avatars.githubusercontent.com/u/17640165?v=3","gravatar_id":"","url":"https://api.github.com/users/xlab-si","html_url":"https://github.com/xlab-si","followers_url":"https://api.github.com/users/xlab-si/followers","following_url":"https://api.github.com/users/xlab-si/following{/other_user}","gists_url":"https://api.github.com/users/xlab-si/gists{/gist_id}","starred_url":"https://api.github.com/users/xlab-si/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlab-si/subscriptions","organizations_url":"https://api.github.com/users/xlab-si/orgs","repos_url":"https://api.github.com/users/xlab-si/repos","events_url":"https://api.github.com/users/xlab-si/events{/privacy}","received_events_url":"https://api.github.com/users/xlab-si/received_events","type":"Organization","site_admin":false},"repo":{"id":53126087,"name":"manageiq","full_name":"xlab-si/manageiq","owner":{"login":"xlab-si","id":17640165,"avatar_url":"https://avatars.githubusercontent.com/u/17640165?v=3","gravatar_id":"","url":"https://api.github.com/users/xlab-si","html_url":"https://github.com/xlab-si","followers_url":"https://api.github.com/users/xlab-si/followers","following_url":"https://api.github.com/users/xlab-si/following{/other_user}","gists_url":"https://api.github.com/users/xlab-si/gists{/gist_id}","starred_url":"https://api.github.com/users/xlab-si/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlab-si/subscriptions","organizations_url":"https://api.github.com/users/xlab-si/orgs","repos_url":"https://api.github.com/users/xlab-si/repos","events_url":"https://api.github.com/users/xlab-si/events{/privacy}","received_events_url":"https://api.github.com/users/xlab-si/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xlab-si/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/xlab-si/manageiq","forks_url":"https://api.github.com/repos/xlab-si/manageiq/forks","keys_url":"https://api.github.com/repos/xlab-si/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xlab-si/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xlab-si/manageiq/teams","hooks_url":"https://api.github.com/repos/xlab-si/manageiq/hooks","issue_events_url":"https://api.github.com/repos/xlab-si/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/xlab-si/manageiq/events","assignees_url":"https://api.github.com/repos/xlab-si/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/xlab-si/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/xlab-si/manageiq/tags","blobs_url":"https://api.github.com/repos/xlab-si/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xlab-si/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xlab-si/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/xlab-si/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xlab-si/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/xlab-si/manageiq/languages","stargazers_url":"https://api.github.com/repos/xlab-si/manageiq/stargazers","contributors_url":"https://api.github.com/repos/xlab-si/manageiq/contributors","subscribers_url":"https://api.github.com/repos/xlab-si/manageiq/subscribers","subscription_url":"https://api.github.com/repos/xlab-si/manageiq/subscription","commits_url":"https://api.github.com/repos/xlab-si/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/xlab-si/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/xlab-si/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/xlab-si/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/xlab-si/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/xlab-si/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xlab-si/manageiq/merges","archive_url":"https://api.github.com/repos/xlab-si/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xlab-si/manageiq/downloads","issues_url":"https://api.github.com/repos/xlab-si/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/xlab-si/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/xlab-si/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/xlab-si/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xlab-si/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/xlab-si/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/xlab-si/manageiq/deployments","created_at":"2016-03-04T10:03:29Z","updated_at":"2016-03-04T10:03:47Z","pushed_at":"2016-07-15T12:42:00Z","git_url":"git://github.com/xlab-si/manageiq.git","ssh_url":"git@github.com:xlab-si/manageiq.git","clone_url":"https://github.com/xlab-si/manageiq.git","svn_url":"https://github.com/xlab-si/manageiq","homepage":"manageiq.org","size":134058,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ManageIQ:master","ref":"master","sha":"9d685b1f4e330f779b6a1c85cd29e884a1301666","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Open-Source Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq/deployments","created_at":"2014-06-13T02:31:26Z","updated_at":"2016-07-13T16:26:10Z","pushed_at":"2016-07-15T13:07:53Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":177094,"stargazers_count":299,"watchers_count":299,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":323,"mirror_url":null,"open_issues_count":741,"forks":323,"open_issues":741,"watchers":299,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9810"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/9810"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/9810"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/9810/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9810/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9810/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/5c6e58a467b090996701390942d6f2cf5116e11a"}}}}
{"actor":{"display_login":"bancek"}}