From 3d407fe6679aec8cd6939e6f25046daa1178d0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ezr?= Date: Wed, 17 Apr 2019 02:36:24 +0200 Subject: [PATCH] Refs #208 - add vcr webmock testing --- fog-vsphere.gemspec | 4 +- .../vsphere/requests/compute/get_network.rb | 9 + .../vcr_cassettes/6_7/create_folder.yml | 609 +++++ .../vcr_cassettes/6_7/folder_destroy.yml | 823 +++++++ .../vcr_cassettes/6_7/get_cluster.yml | 663 ++++++ .../6_7/get_compute_resource.yml | 1046 +++++++++ .../vcr_cassettes/6_7/get_datacenter.yml | 498 ++++ .../fixtures/vcr_cassettes/6_7/get_folder.yml | 2038 +++++++++++++++++ tests/fixtures/vcr_cassettes/6_7/get_host.yml | 386 ++++ .../vcr_cassettes/6_7/get_network.yml | 932 ++++++++ .../vcr_cassettes/6_7/get_storage_pod.yml | 225 ++ .../vcr_cassettes/6_7/get_template.yml | 333 +++ .../vcr_cassettes/6_7/get_virtual_machine.yml | 333 +++ tests/fixtures/vcr_cassettes/6_7/shared.yml | 164 ++ tests/requests/compute/create_folder_tests.rb | 19 + .../requests/compute/folder_destroy_tests.rb | 20 + tests/requests/compute/get_cluster_tests.rb | 19 + .../compute/get_compute_resource_tests.rb | 19 + .../requests/compute/get_datacenter_tests.rb | 19 + tests/requests/compute/get_folder_tests.rb | 28 + tests/requests/compute/get_host_tests.rb | 19 + tests/requests/compute/get_network_tests.rb | 23 + .../requests/compute/get_storage_pod_tests.rb | 19 + tests/requests/compute/get_template_tests.rb | 19 + .../compute/get_virtual_machine_tests.rb | 19 + tests/test_helper.rb | 55 + 26 files changed, 8340 insertions(+), 1 deletion(-) create mode 100644 tests/fixtures/vcr_cassettes/6_7/create_folder.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/folder_destroy.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/get_cluster.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/get_compute_resource.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/get_datacenter.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/get_folder.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/get_host.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/get_network.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/get_storage_pod.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/get_template.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml create mode 100644 tests/fixtures/vcr_cassettes/6_7/shared.yml create mode 100644 tests/requests/compute/create_folder_tests.rb create mode 100644 tests/requests/compute/get_cluster_tests.rb create mode 100644 tests/requests/compute/get_compute_resource_tests.rb create mode 100644 tests/requests/compute/get_datacenter_tests.rb create mode 100644 tests/requests/compute/get_folder_tests.rb create mode 100644 tests/requests/compute/get_host_tests.rb create mode 100644 tests/requests/compute/get_storage_pod_tests.rb create mode 100644 tests/requests/compute/get_template_tests.rb create mode 100644 tests/requests/compute/get_virtual_machine_tests.rb create mode 100644 tests/test_helper.rb diff --git a/fog-vsphere.gemspec b/fog-vsphere.gemspec index 5ff2ed2f..432347a6 100644 --- a/fog-vsphere.gemspec +++ b/fog-vsphere.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |spec| spec.homepage = 'https://github.com/fog/fog-vsphere' spec.license = 'MIT' - spec.files = `git ls-files -z`.split("\x0") + spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(tests?|spec|features)/}) } spec.test_files = spec.files.grep(%r{^tests\/}) spec.require_paths = ['lib'] @@ -31,4 +31,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rubocop', '~> 0.50.0' spec.add_development_dependency 'mocha', '~> 1.8' spec.add_development_dependency 'shindo', '~> 0.3' + spec.add_development_dependency 'webmock', '~> 3.5' + spec.add_development_dependency 'vcr', '~> 4.0' end diff --git a/lib/fog/vsphere/requests/compute/get_network.rb b/lib/fog/vsphere/requests/compute/get_network.rb index 0d464776..2e8f088e 100644 --- a/lib/fog/vsphere/requests/compute/get_network.rb +++ b/lib/fog/vsphere/requests/compute/get_network.rb @@ -14,6 +14,15 @@ def get_raw_network(ref_or_name, datacenter_name, distributedswitch = nil) finder = choose_finder(ref_or_name, distributedswitch) get_all_raw_networks(datacenter_name).find { |n| finder.call(n) } end + + def network_attributes(network, datacenter_name) + { + id: managed_obj_id(network), + name: network.name, + datacenter: datacenter_name, + vlanid: nil + } + end end module Shared diff --git a/tests/fixtures/vcr_cassettes/6_7/create_folder.yml b/tests/fixtures/vcr_cassettes/6_7/create_folder.yml new file mode 100644 index 00000000..d4df75bf --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/create_folder.yml @@ -0,0 +1,609 @@ +--- +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:09 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:09 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacentervmFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '573' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2vmFoldergroup-v3 + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:09 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-v3tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1019' + body: + encoding: UTF-8 + string: |- + + + + group-v3namevmparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:09 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-v3tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1019' + body: + encoding: UTF-8 + string: |- + + + + group-v3namevmparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:09 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="Folder">group-v3TestFolder + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '436' + body: + encoding: UTF-8 + string: |- + + + + group-v48 + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:09 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-v48tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1260' + body: + encoding: UTF-8 + string: |- + + + + group-v48nameTestFolderparentgroup-v3group-v3namevmparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:09 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-v3 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '529' + body: + encoding: UTF-8 + string: |- + + + + group-v3namevm + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-v48 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:09:09 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + group-v48nameTestFolder + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:09:10 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/folder_destroy.yml b/tests/fixtures/vcr_cassettes/6_7/folder_destroy.yml new file mode 100644 index 00000000..edf5f82d --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/folder_destroy.yml @@ -0,0 +1,823 @@ +--- +<% user_name = vsphere_username.split('@').reverse.join('\\') %> +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacentervmFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '573' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2vmFoldergroup-v3 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-v3tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1019' + body: + encoding: UTF-8 + string: |- + + + + group-v3namevmparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-v3tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1019' + body: + encoding: UTF-8 + string: |- + + + + group-v3namevmparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="SearchIndex">SearchIndexgroup-v3TestFolder + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '430' + body: + encoding: UTF-8 + string: |- + + + + group-v48 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-v48 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '554' + body: + encoding: UTF-8 + string: |- + + + + group-v48childEntity + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="Folder">group-v48 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '433' + body: + encoding: UTF-8 + string: |- + + + + task-469 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorTask0info.statetask-4690 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '516' + body: + encoding: UTF-8 + string: |- + + + + session[52b40801-6eb4-bcdc-a1f0-196a22da8ed3]52db6e92-e4b2-0046-49ac-90f1b2175d9e + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollector + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '756' + body: + encoding: UTF-8 + string: |- + + + + 1session[52b40801-6eb4-bcdc-a1f0-196a22da8ed3]52db6e92-e4b2-0046-49ac-90f1b2175d9eentertask-469info.stateassignsuccess + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorTaskinfotask-469 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1082' + body: + encoding: UTF-8 + string: |- + + + + task-469infotask-469task-469Destroy_TaskFolder.destroygroup-v48TestFoldersuccessfalsefalse<%= user_name %>2019-04-16T13:50:43.404775Z2019-04-16T13:50:43.409684Z2019-04-16T13:50:43.436639Z2858 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:43 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyFilter">session[52b40801-6eb4-bcdc-a1f0-196a22da8ed3]52db6e92-e4b2-0046-49ac-90f1b2175d9e + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:43 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '408' + body: + encoding: UTF-8 + string: |- + + + + + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:44 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorTaskinfotask-469 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:44 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1082' + body: + encoding: UTF-8 + string: |- + + + + task-469infotask-469task-469Destroy_TaskFolder.destroygroup-v48TestFoldersuccessfalsefalse<%= user_name %>2019-04-16T13:50:43.404775Z2019-04-16T13:50:43.409684Z2019-04-16T13:50:43.436639Z2858 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:44 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorTaskinfotask-469 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:44 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1082' + body: + encoding: UTF-8 + string: |- + + + + task-469infotask-469task-469Destroy_TaskFolder.destroygroup-v48TestFoldersuccessfalsefalse<%= user_name %>2019-04-16T13:50:43.404775Z2019-04-16T13:50:43.409684Z2019-04-16T13:50:43.436639Z2858 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:44 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorTaskinfotask-469 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="60f0d066da76a20900e6fd3cd99b2d8a0c7135ab"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:50:44 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1082' + body: + encoding: UTF-8 + string: |- + + + + task-469infotask-469task-469Destroy_TaskFolder.destroygroup-v48TestFoldersuccessfalsefalse<%= user_name %>2019-04-16T13:50:43.404775Z2019-04-16T13:50:43.409684Z2019-04-16T13:50:43.436639Z2858 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:50:44 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/get_cluster.yml b/tests/fixtures/vcr_cassettes/6_7/get_cluster.yml new file mode 100644 index 00000000..23f11b3b --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/get_cluster.yml @@ -0,0 +1,663 @@ +--- +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenterhostFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '575' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2hostFoldergroup-h4 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="SearchIndex">SearchIndexgroup-h4esxi.example.com + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '439' + body: + encoding: UTF-8 + string: |- + + + + domain-s7 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcenamedomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '576' + body: + encoding: UTF-8 + string: |- + + + + domain-s7nameesxi.example.com + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentdomain-s7tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1300' + body: + encoding: UTF-8 + string: |- + + + + domain-s7nameesxi.example.comparentgroup-h4group-h4namehostparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenterhostFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '575' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2hostFoldergroup-h4 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:10 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-h4 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '531' + body: + encoding: UTF-8 + string: |- + + + + group-h4namehost + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:11 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311411gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:11 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311411gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:11 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="5b61bd32bac7d25284b667f6f2a0a8c814ac9cf9"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:41:10 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311411gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:41:11 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/get_compute_resource.yml b/tests/fixtures/vcr_cassettes/6_7/get_compute_resource.yml new file mode 100644 index 00000000..042b9289 --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/get_compute_resource.yml @@ -0,0 +1,1046 @@ +--- +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenterhostFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '575' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2hostFoldergroup-h4 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="SearchIndex">SearchIndexgroup-h4esxi.example.com + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '439' + body: + encoding: UTF-8 + string: |- + + + + domain-s7 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcehostdomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '663' + body: + encoding: UTF-8 + string: |- + + + + domain-s7hosthost-9 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorHostSystemsummaryhost-9 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '4167' + body: + encoding: UTF-8 + string: |- + + + + host-9summaryhost-9Hewlett-PackardHP Z420 Workstationc369ff00-0fe4-11e2-9ef4-b4b52fc3b9b4CZC24222JPAsset tag of the systemAssetTagCZC24222JPService tag of the systemServiceTagABS 70/71 60 61 62 63OEM specific stringOemSpecificStringFBYTE#3Q3X3Z3m47676J6Q6b7N7Q7U7W7a8J8h9Y.DR;OEM specific stringOemSpecificStringBUILDID#11WWVACW601#SABD#DABD;OEM specific stringOemSpecificString17105813504Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz359114822connectedpoweredOnnonefalsefalse2019-04-09T11:42:27.654069Z0defaultTcpipStackactivevmk011000true68169720922112incapableesxi.example.com443B3:11:B1:4F:61:3A:EE:67:AC:77:46:5F:7C:F9:AE:BB:B5:3F:C3:9FVMware ESXiVMware ESXi 6.7.0 build-8169922VMware, Inc.6.7.08169922INTL000vmnix-x86embeddedEsxHostAgent6.7VMware ESX Server6.0falsefalse35313903-1-10613233greenfalse10.43.134.89intel-sandybridge + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorHostSystemsummaryhost-9 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '4167' + body: + encoding: UTF-8 + string: |- + + + + host-9summaryhost-9Hewlett-PackardHP Z420 Workstationc369ff00-0fe4-11e2-9ef4-b4b52fc3b9b4CZC24222JPAsset tag of the systemAssetTagCZC24222JPService tag of the systemServiceTagABS 70/71 60 61 62 63OEM specific stringOemSpecificStringFBYTE#3Q3X3Z3m47676J6Q6b7N7Q7U7W7a8J8h9Y.DR;OEM specific stringOemSpecificStringBUILDID#11WWVACW601#SABD#DABD;OEM specific stringOemSpecificString17105813504Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz359114822connectedpoweredOnnonefalsefalse2019-04-09T11:42:27.654069Z0defaultTcpipStackactivevmk011000true68169720922112incapableesxi.example.com443B3:11:B1:4F:61:3A:EE:67:AC:77:46:5F:7C:F9:AE:BB:B5:3F:C3:9FVMware ESXiVMware ESXi 6.7.0 build-8169922VMware, Inc.6.7.08169922INTL000vmnix-x86embeddedEsxHostAgent6.7VMware ESX Server6.0falsefalse35313903-1-10613233greenfalse10.43.134.89intel-sandybridge + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcenamedomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '576' + body: + encoding: UTF-8 + string: |- + + + + domain-s7nameesxi.example.com + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcesummarydomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="aa2262351ec6a2f6bd2f6b65ebfa48d0de3dcb3f"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:03:52 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '847' + body: + encoding: UTF-8 + string: |- + + + + domain-s7summary143641710581350448104141311311gray + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:03:52 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/get_datacenter.yml b/tests/fixtures/vcr_cassettes/6_7/get_datacenter.yml new file mode 100644 index 00000000..67be2abe --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/get_datacenter.yml @@ -0,0 +1,498 @@ +--- +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="abc1d5132f9e906b015d27321c7be479b4241303"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:59:14 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:59:14 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="abc1d5132f9e906b015d27321c7be479b4241303"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:59:14 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:59:16 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="abc1d5132f9e906b015d27321c7be479b4241303"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:59:16 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:59:17 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenteroverallStatusdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="abc1d5132f9e906b015d27321c7be479b4241303"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:59:17 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '557' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2overallStatusgray + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:59:17 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenterparentdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="abc1d5132f9e906b015d27321c7be479b4241303"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:59:17 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '571' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2parentgroup-d1 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:59:19 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenterparentdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="abc1d5132f9e906b015d27321c7be479b4241303"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:59:18 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '571' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2parentgroup-d1 + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:59:21 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="abc1d5132f9e906b015d27321c7be479b4241303"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:59:20 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:59:23 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="abc1d5132f9e906b015d27321c7be479b4241303"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:59:23 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:59:24 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="abc1d5132f9e906b015d27321c7be479b4241303"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 13:59:24 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 13:59:26 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/get_folder.yml b/tests/fixtures/vcr_cassettes/6_7/get_folder.yml new file mode 100644 index 00000000..984f10c5 --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/get_folder.yml @@ -0,0 +1,2038 @@ +--- +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacentervmFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '573' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2vmFoldergroup-v3 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-v3tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1019' + body: + encoding: UTF-8 + string: |- + + + + group-v3namevmparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="SearchIndex">SearchIndexgroup-v3TestFolder + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '430' + body: + encoding: UTF-8 + string: |- + + + + group-v45 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-v45 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '534' + body: + encoding: UTF-8 + string: |- + + + + group-v45nameTestFolder + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderparentgroup-v45 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '564' + body: + encoding: UTF-8 + string: |- + + + + group-v45parentgroup-v3 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-v3 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '529' + body: + encoding: UTF-8 + string: |- + + + + group-v3namevm + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildTypegroup-v45 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '683' + body: + encoding: UTF-8 + string: |- + + + + group-v45childTypeFolderVirtualMachineVirtualApp + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-v45tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1256' + body: + encoding: UTF-8 + string: |- + + + + group-v45nameTestFolderparentgroup-v3group-v3namevmparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternetworkFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '578' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2networkFoldergroup-n6 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-n6tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1024' + body: + encoding: UTF-8 + string: |- + + + + group-n6namenetworkparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="SearchIndex">SearchIndexgroup-n6TestNwFolder + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '430' + body: + encoding: UTF-8 + string: |- + + + + group-n49 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:01 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-n49 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '540' + body: + encoding: UTF-8 + string: |- + + + + group-n49nameTestNwFolder + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderparentgroup-n49 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '564' + body: + encoding: UTF-8 + string: |- + + + + group-n49parentgroup-n6 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-n6 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '534' + body: + encoding: UTF-8 + string: |- + + + + group-n6namenetwork + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildTypegroup-n49 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '690' + body: + encoding: UTF-8 + string: |- + + + + group-n49childTypeFolderNetworkDistributedVirtualSwitch + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-n49tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1267' + body: + encoding: UTF-8 + string: |- + + + + group-n49nameTestNwFolderparentgroup-n6group-n6namenetworkparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenterhostFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '575' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2hostFoldergroup-h4 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-h4tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1021' + body: + encoding: UTF-8 + string: |- + + + + group-h4namehostparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="SearchIndex">SearchIndexgroup-h4TestHostFolder + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '430' + body: + encoding: UTF-8 + string: |- + + + + group-h50 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-h50 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '542' + body: + encoding: UTF-8 + string: |- + + + + group-h50nameTestHostFolder + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderparentgroup-h50 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '564' + body: + encoding: UTF-8 + string: |- + + + + group-h50parentgroup-h4 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-h4 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '531' + body: + encoding: UTF-8 + string: |- + + + + group-h4namehost + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildTypegroup-h50 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '635' + body: + encoding: UTF-8 + string: |- + + + + group-h50childTypeFolderComputeResource + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-h50tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1266' + body: + encoding: UTF-8 + string: |- + + + + group-h50nameTestHostFolderparentgroup-h4group-h4namehostparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:01 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenterdatastoreFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:02 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '580' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2datastoreFoldergroup-s5 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-s5tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:02 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1026' + body: + encoding: UTF-8 + string: |- + + + + group-s5namedatastoreparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="SearchIndex">SearchIndexgroup-s5TestDsFolder + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:02 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '430' + body: + encoding: UTF-8 + string: |- + + + + group-s51 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-s51 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:02 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '540' + body: + encoding: UTF-8 + string: |- + + + + group-s51nameTestDsFolder + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderparentgroup-s51 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:02 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '564' + body: + encoding: UTF-8 + string: |- + + + + group-s51parentgroup-s5 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFoldernamegroup-s5 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:02 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '536' + body: + encoding: UTF-8 + string: |- + + + + group-s5namedatastore + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildTypegroup-s51 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:02 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '678' + body: + encoding: UTF-8 + string: |- + + + + group-s51childTypeFolderDatastoreStoragePod + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-s51tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="af357b44a0386daa008c292cbb9d325644ff0fcb"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:14:02 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1269' + body: + encoding: UTF-8 + string: |- + + + + group-s51nameTestDsFolderparentgroup-s5group-s5namedatastoreparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:14:02 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/get_host.yml b/tests/fixtures/vcr_cassettes/6_7/get_host.yml new file mode 100644 index 00000000..420fae57 --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/get_host.yml @@ -0,0 +1,386 @@ +--- +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="4555248453d2c288d85b6d2112ab0060cc13775b"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:20:47 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:20:48 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="4555248453d2c288d85b6d2112ab0060cc13775b"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:20:47 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:20:48 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenterhostFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="4555248453d2c288d85b6d2112ab0060cc13775b"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:20:47 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '575' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2hostFoldergroup-h4 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:20:48 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="SearchIndex">SearchIndexgroup-h4esxi.example.com + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="4555248453d2c288d85b6d2112ab0060cc13775b"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:20:47 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '439' + body: + encoding: UTF-8 + string: |- + + + + domain-s7 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:20:48 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorComputeResourcehostdomain-s7 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="4555248453d2c288d85b6d2112ab0060cc13775b"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:20:48 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '663' + body: + encoding: UTF-8 + string: |- + + + + domain-s7hosthost-9 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:20:48 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorHostSystemnamehost-9 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="4555248453d2c288d85b6d2112ab0060cc13775b"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:20:48 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '568' + body: + encoding: UTF-8 + string: |- + + + + host-9nameesxi.example.com + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:20:48 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorHostSystemnamehost-9 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="4555248453d2c288d85b6d2112ab0060cc13775b"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:20:48 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '568' + body: + encoding: UTF-8 + string: |- + + + + host-9nameesxi.example.com + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:20:48 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/get_network.yml b/tests/fixtures/vcr_cassettes/6_7/get_network.yml new file mode 100644 index 00000000..40aab511 --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/get_network.yml @@ -0,0 +1,932 @@ +--- +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternetworkFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '578' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2networkFoldergroup-n6 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="ViewManager">ViewManagerdatacenter-2Network1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '529' + body: + encoding: UTF-8 + string: |- + + + + session[52bc6de0-f2a1-d07d-c0ca-d3d4d9b0a764]52b93852-8a65-2dc4-4871-17b757a0cb46 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorContainerViewviewsession[52bc6de0-f2a1-d07d-c0ca-d3d4d9b0a764]52b93852-8a65-2dc4-4871-17b757a0cb46 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1058' + body: + encoding: UTF-8 + string: |- + + + + session[52bc6de0-f2a1-d07d-c0ca-d3d4d9b0a764]52b93852-8a65-2dc4-4871-17b757a0cb46viewnetwork-12network-13network-14network-15 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="ContainerView">session[52bc6de0-f2a1-d07d-c0ca-d3d4d9b0a764]52b93852-8a65-2dc4-4871-17b757a0cb46 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '388' + body: + encoding: UTF-8 + string: |- + + + + + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorNetworknamenetwork-12 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '536' + body: + encoding: UTF-8 + string: |- + + + + network-12nameVLAN-5 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorNetworknamenetwork-13 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '540' + body: + encoding: UTF-8 + string: |- + + + + network-13nameVM Network + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorNetworknamenetwork-14 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '537' + body: + encoding: UTF-8 + string: |- + + + + network-14nameVLAN-55 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorNetworknamenetwork-15 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '545' + body: + encoding: UTF-8 + string: |- + + + + network-15nameInternalNetwork + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorNetworknamenetwork-15 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '545' + body: + encoding: UTF-8 + string: |- + + + + network-15nameInternalNetwork + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:31 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:32 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternetworkFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '578' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2networkFoldergroup-n6 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:32 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="ViewManager">ViewManagerdatacenter-2Network1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '529' + body: + encoding: UTF-8 + string: |- + + + + session[52bc6de0-f2a1-d07d-c0ca-d3d4d9b0a764]5250a891-c747-2b42-fe19-2ea5945c675e + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:32 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorContainerViewviewsession[52bc6de0-f2a1-d07d-c0ca-d3d4d9b0a764]5250a891-c747-2b42-fe19-2ea5945c675e + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1058' + body: + encoding: UTF-8 + string: |- + + + + session[52bc6de0-f2a1-d07d-c0ca-d3d4d9b0a764]5250a891-c747-2b42-fe19-2ea5945c675eviewnetwork-12network-13network-14network-15 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:32 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="ContainerView">session[52bc6de0-f2a1-d07d-c0ca-d3d4d9b0a764]5250a891-c747-2b42-fe19-2ea5945c675e + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:31 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '388' + body: + encoding: UTF-8 + string: |- + + + + + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:32 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorNetworknamenetwork-12 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="9c9ff34d8382d639b888d4bd25203dc7e9440583"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 14:36:32 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '536' + body: + encoding: UTF-8 + string: |- + + + + network-12nameVLAN-5 + + + http_version: + recorded_at: Tue, 16 Apr 2019 14:36:32 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/get_storage_pod.yml b/tests/fixtures/vcr_cassettes/6_7/get_storage_pod.yml new file mode 100644 index 00000000..d4ddf964 --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/get_storage_pod.yml @@ -0,0 +1,225 @@ +--- +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="b69228e738041f3cd2ec0333a935c055f82314d6"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 23:35:07 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Tue, 16 Apr 2019 23:35:07 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="b69228e738041f3cd2ec0333a935c055f82314d6"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 23:35:07 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 23:35:07 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenterdatastoreFolderdatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="b69228e738041f3cd2ec0333a935c055f82314d6"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 23:35:07 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '580' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2datastoreFoldergroup-s5 + + + http_version: + recorded_at: Tue, 16 Apr 2019 23:35:08 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorStoragePodnamesummary.freeSpacesummary.capacitygroup-s51FolderTraversalSpecFolderchildEntity0FolderTraversalSpec + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="b69228e738041f3cd2ec0333a935c055f82314d6"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 23:35:07 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1051' + body: + encoding: UTF-8 + string: |- + + + + group-p26namestoragePod1summary.capacity992137445376summary.freeSpace570560610304group-p27namedevNullNoDRSsummary.capacity499826819072summary.freeSpace491827232768 + + + http_version: + recorded_at: Tue, 16 Apr 2019 23:35:08 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/get_template.yml b/tests/fixtures/vcr_cassettes/6_7/get_template.yml new file mode 100644 index 00000000..ce698c5e --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/get_template.yml @@ -0,0 +1,333 @@ +--- +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 17 Apr 2019 00:25:32 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Wed, 17 Apr 2019 00:25:33 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 17 Apr 2019 00:25:32 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Wed, 17 Apr 2019 00:25:33 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="SearchIndex">SearchIndexdatacenter-2500e2be9-4762-1f52-5e7c-f37444be5f6e11 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 17 Apr 2019 00:25:32 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '436' + body: + encoding: UTF-8 + string: |- + + + + vm-52 + + + http_version: + recorded_at: Wed, 17 Apr 2019 00:25:33 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorVirtualMachineconfig.instanceUuidnameconfig.uuidconfig.templateparentsummary.guest.hostNamesummary.guest.guestFullNameguest.ipAddressruntime.powerStateruntime.connectionStateruntime.hostguest.toolsStatusguest.toolsVersionStatusconfig.hardware.memoryMBconfig.hardware.numCPUconfig.hardware.numCoresPerSocketoverallStatusconfig.guestIdconfig.versionconfig.cpuHotAddEnabledconfig.memoryHotAddEnabledconfig.firmwareconfig.bootOptions.bootOrderconfig.annotationvm-52 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 17 Apr 2019 00:25:33 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '2876' + body: + encoding: UTF-8 + string: |- + + + + vm-52config.annotationconfig.bootOptions.bootOrder40002000config.cpuHotAddEnabledtrueconfig.firmwarebiosconfig.guestIdfedora64Guestconfig.hardware.memoryMB2048config.hardware.numCPU1config.hardware.numCoresPerSocket1config.instanceUuid500e2be9-4762-1f52-5e7c-f37444be5f6econfig.memoryHotAddEnabledtrueconfig.templatetrueconfig.uuid420e0a6b-03a8-9901-aa8d-0413295de262config.versionvmx-13guest.toolsStatustoolsNotRunningguest.toolsVersionStatusguestToolsUnmanagednamefedora29overallStatusgreenparentgroup-v3runtime.connectionStateconnectedruntime.hosthost-9runtime.powerStatepoweredOff + + + http_version: + recorded_at: Wed, 17 Apr 2019 00:25:33 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorHostSystemnamehost-9 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 17 Apr 2019 00:25:33 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '568' + body: + encoding: UTF-8 + string: |- + + + + host-9nameesxi.example.com + + + http_version: + recorded_at: Wed, 17 Apr 2019 00:25:33 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-v3tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="10a04d729f95767ee586aceb5072b3d8c1f0ef6c"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Wed, 17 Apr 2019 00:25:33 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1019' + body: + encoding: UTF-8 + string: |- + + + + group-v3namevmparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Wed, 17 Apr 2019 00:25:33 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml b/tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml new file mode 100644 index 00000000..ce545a9d --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml @@ -0,0 +1,333 @@ +--- +http_interactions: +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorFolderchildEntitygroup-d1 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="6e48b88ae9980b685080edda807256dac6f3d849"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 23:44:58 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '666' + body: + encoding: UTF-8 + string: |- + + + + group-d1childEntitydatacenter-2 + + + http_version: + recorded_at: Tue, 16 Apr 2019 23:44:58 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorDatacenternamedatacenter-2 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="6e48b88ae9980b685080edda807256dac6f3d849"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 23:44:58 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '538' + body: + encoding: UTF-8 + string: |- + + + + datacenter-2nameBRQ + + + http_version: + recorded_at: Tue, 16 Apr 2019 23:44:58 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="SearchIndex">SearchIndexdatacenter-252d810bd-077b-368d-a86f-0b2ad84269f811 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="6e48b88ae9980b685080edda807256dac6f3d849"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 23:44:58 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '436' + body: + encoding: UTF-8 + string: |- + + + + vm-22 + + + http_version: + recorded_at: Tue, 16 Apr 2019 23:44:58 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorVirtualMachineconfig.instanceUuidnameconfig.uuidconfig.templateparentsummary.guest.hostNamesummary.guest.guestFullNameguest.ipAddressruntime.powerStateruntime.connectionStateruntime.hostguest.toolsStatusguest.toolsVersionStatusconfig.hardware.memoryMBconfig.hardware.numCPUconfig.hardware.numCoresPerSocketoverallStatusconfig.guestIdconfig.versionconfig.cpuHotAddEnabledconfig.memoryHotAddEnabledconfig.firmwareconfig.bootOptions.bootOrderconfig.annotationvm-22 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="6e48b88ae9980b685080edda807256dac6f3d849"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 23:44:58 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '2859' + body: + encoding: UTF-8 + string: |- + + + + vm-22config.annotationconfig.bootOptions.bootOrderconfig.cpuHotAddEnabledfalseconfig.firmwarebiosconfig.guestIdwindows9Server64Guestconfig.hardware.memoryMB4096config.hardware.numCPU2config.hardware.numCoresPerSocket1config.instanceUuid52d810bd-077b-368d-a86f-0b2ad84269f8config.memoryHotAddEnabledfalseconfig.templatefalseconfig.uuid564d88d6-2aea-1c8e-826e-1f0dbc536ae6config.versionvmx-11guest.ipAddress10.43.135.241guest.toolsStatustoolsOkguest.toolsVersionStatusguestToolsCurrentnameDC1overallStatusgreenparentgroup-v3runtime.connectionStateconnectedruntime.hosthost-9runtime.powerStatepoweredOnsummary.guest.guestFullNameMicrosoft Windows Server 2016 (64-bit)summary.guest.hostNamedc01.tfm.brq + + + http_version: + recorded_at: Tue, 16 Apr 2019 23:44:58 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorHostSystemnamehost-9 + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="6e48b88ae9980b685080edda807256dac6f3d849"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 23:44:58 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '568' + body: + encoding: UTF-8 + string: |- + + + + host-9nameesxi.example.com + + + http_version: + recorded_at: Tue, 16 Apr 2019 23:44:59 GMT +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorManagedEntitynameparentgroup-v3tsMEManagedEntityparent0tsME + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="6e48b88ae9980b685080edda807256dac6f3d849"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 23:44:58 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '1019' + body: + encoding: UTF-8 + string: |- + + + + group-v3namevmparentdatacenter-2datacenter-2nameBRQparentgroup-d1group-d1nameDatacenters + + + http_version: + recorded_at: Tue, 16 Apr 2019 23:44:59 GMT +recorded_with: VCR 4.0.0 diff --git a/tests/fixtures/vcr_cassettes/6_7/shared.yml b/tests/fixtures/vcr_cassettes/6_7/shared.yml new file mode 100644 index 00000000..8ed847f6 --- /dev/null +++ b/tests/fixtures/vcr_cassettes/6_7/shared.yml @@ -0,0 +1,164 @@ +--- +http_interactions: +# Get service context +<% user_name = vsphere_username.split('@').reverse.join('\\'); full_name = vsphere_username.split('@').join(' ') %> +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="ServiceInstance">ServiceInstance + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:10:51 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '4429' + body: + encoding: UTF-8 + string: |- + + + + group-d1propertyCollectorViewManagerVMware vCenter ServerVMware vCenter Server 6.7.0 build-8170161VMware, Inc.6.7.08170161INTL000linux-x64vpxVirtualCenter6.7881e901f-7c49-44ba-a6f4-af760093bb37VMware VirtualCenter Server6.0VpxSettingsUserDirectorySessionManagerAuthorizationManagerServiceMgrPerfMgrScheduledTaskManagerAlarmManagerEventManagerTaskManagerExtensionManagerCustomizationSpecManagerCustomFieldsManagerDiagMgrLicenseManagerSearchIndexFileManagerDatastoreNamespaceManagervirtualDiskManagerSnmpSystemProvCheckerCompatCheckerOvfManagerIpPoolManagerDVSManagerHostProfileManagerClusterProfileManagerMoComplianceManagerLocalizationManagerStorageResourceManagerguestOperationsManagerOverheadMemoryManagercertificateManagerIoFilterManagerVStorageObjectManagerHostSpecificationManagerCryptoManagerHealthUpdateManagerFailoverClusterConfiguratorFailoverClusterManager + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:10:52 GMT +# login +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this + type="SessionManager">SessionManager<%= vsphere_username %><%= vsphere_password %> + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:10:51 GMT + Set-Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '836' + body: + encoding: UTF-8 + string: |- + + + + 5207b512-8abd-2dbc-5154-994b3838139a<%= user_name %><%= full_name %>2019-04-16T11:10:51.713677Z2019-04-16T11:10:51.713677Zenenfalse127.0.0.1Ruby0 + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:10:52 GMT +# Retrieve session +- request: + method: post + uri: https://<%= vsphere_server %>/sdk + body: + encoding: UTF-8 + string: <_this type="PropertyCollector">propertyCollectorSessionManagercurrentSessionSessionManager + headers: + Content-Type: + - text/xml; charset=utf-8 + Soapaction: + - urn:vim25/6.7 + Cookie: + - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly; + Secure; + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 16 Apr 2019 11:10:51 GMT + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Type: + - text/xml; charset=utf-8 + X-Frame-Options: + - DENY + Content-Length: + - '989' + body: + encoding: UTF-8 + string: |- + + + + SessionManagercurrentSession5207b512-8abd-2dbc-5154-994b3838139a<%= user_name %><%= full_name %>2019-04-16T11:10:51.713677Z2019-04-16T11:10:51.713677Zenenfalse10.40.204.30Ruby0 + + + http_version: + recorded_at: Tue, 16 Apr 2019 11:10:52 GMT diff --git a/tests/requests/compute/create_folder_tests.rb b/tests/requests/compute/create_folder_tests.rb new file mode 100644 index 00000000..af8edf66 --- /dev/null +++ b/tests/requests/compute/create_folder_tests.rb @@ -0,0 +1,19 @@ +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#create_folder' do + it 'creates folder' do + with_webmock_cassette('create_folder') do + folder = compute.create_folder('BRQ', '/', 'TestFolder') + assert_equal(folder, 'TestFolder') + end + end + end +end diff --git a/tests/requests/compute/folder_destroy_tests.rb b/tests/requests/compute/folder_destroy_tests.rb index 360f1ca3..901c0a20 100644 --- a/tests/requests/compute/folder_destroy_tests.rb +++ b/tests/requests/compute/folder_destroy_tests.rb @@ -17,3 +17,23 @@ end end end + +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#folder_destroy' do + it 'destroys folder' do + with_webmock_cassette('folder_destroy') do + result = compute.folder_destroy('TestFolder', 'BRQ') + assert_equal result['task_state'], 'success' + end + end + end +end diff --git a/tests/requests/compute/get_cluster_tests.rb b/tests/requests/compute/get_cluster_tests.rb new file mode 100644 index 00000000..7ec6995e --- /dev/null +++ b/tests/requests/compute/get_cluster_tests.rb @@ -0,0 +1,19 @@ +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#get_cluster' do + it 'gets cluster' do + with_webmock_cassette('get_cluster') do + cluster = compute.get_cluster('esxi.example.com', 'BRQ') + assert_equal(cluster[:name], 'esxi.example.com') + end + end + end +end diff --git a/tests/requests/compute/get_compute_resource_tests.rb b/tests/requests/compute/get_compute_resource_tests.rb new file mode 100644 index 00000000..4bcc149a --- /dev/null +++ b/tests/requests/compute/get_compute_resource_tests.rb @@ -0,0 +1,19 @@ +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#get_compute_resource' do + it 'gets ComputeResource' do + with_webmock_cassette('get_compute_resource') do + cr = compute.get_compute_resource('esxi.example.com', 'BRQ') + assert_equal(cr[:name], 'esxi.example.com') + end + end + end +end diff --git a/tests/requests/compute/get_datacenter_tests.rb b/tests/requests/compute/get_datacenter_tests.rb new file mode 100644 index 00000000..8e5f544a --- /dev/null +++ b/tests/requests/compute/get_datacenter_tests.rb @@ -0,0 +1,19 @@ +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#get_datacenter' do + it 'gets datacenter' do + with_webmock_cassette('get_datacenter') do + dc = compute.get_datacenter('BRQ') + assert_equal(dc[:name], 'BRQ') + end + end + end +end diff --git a/tests/requests/compute/get_folder_tests.rb b/tests/requests/compute/get_folder_tests.rb new file mode 100644 index 00000000..5afa1b8b --- /dev/null +++ b/tests/requests/compute/get_folder_tests.rb @@ -0,0 +1,28 @@ +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#get_folder' do + it 'gets any type of folder' do + with_webmock_cassette('get_folder') do + folder = compute.get_folder('TestFolder', 'BRQ', 'vm') + assert_equal(folder[:name], 'TestFolder') + + folder = compute.get_folder('TestNwFolder', 'BRQ', 'network') + assert_equal(folder[:name], 'TestNwFolder') + + folder = compute.get_folder('TestHostFolder', 'BRQ', 'host') + assert_equal(folder[:name], 'TestHostFolder') + + folder = compute.get_folder('TestDsFolder', 'BRQ', 'datastore') + assert_equal(folder[:name], 'TestDsFolder') + end + end + end +end diff --git a/tests/requests/compute/get_host_tests.rb b/tests/requests/compute/get_host_tests.rb new file mode 100644 index 00000000..b77f16d5 --- /dev/null +++ b/tests/requests/compute/get_host_tests.rb @@ -0,0 +1,19 @@ +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#get_host' do + it 'gets host' do + with_webmock_cassette('get_host') do + host = compute.get_host('esxi.example.com', 'esxi.example.com', 'BRQ') + assert_equal(host[:name], 'esxi.example.com') + end + end + end +end diff --git a/tests/requests/compute/get_network_tests.rb b/tests/requests/compute/get_network_tests.rb index 093680c5..e32a0375 100644 --- a/tests/requests/compute/get_network_tests.rb +++ b/tests/requests/compute/get_network_tests.rb @@ -53,3 +53,26 @@ def fake_networks end end end + +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#get_network' do + it 'gets network by name or ref' do + with_webmock_cassette('get_network') do + network = compute.get_network('InternalNetwork', 'BRQ') + assert_equal(network[:name], 'InternalNetwork') + + network = compute.get_network('network-12', 'BRQ') + assert_equal(network[:id], 'network-12') + end + end + end +end diff --git a/tests/requests/compute/get_storage_pod_tests.rb b/tests/requests/compute/get_storage_pod_tests.rb new file mode 100644 index 00000000..d4b61494 --- /dev/null +++ b/tests/requests/compute/get_storage_pod_tests.rb @@ -0,0 +1,19 @@ +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#get_storage_pod' do + it 'gets storage pod' do + with_webmock_cassette('get_storage_pod') do + pod = compute.get_storage_pod('devNullNoDRS', 'BRQ') + assert_equal(pod[:name], 'devNullNoDRS') + end + end + end +end diff --git a/tests/requests/compute/get_template_tests.rb b/tests/requests/compute/get_template_tests.rb new file mode 100644 index 00000000..3f0fef09 --- /dev/null +++ b/tests/requests/compute/get_template_tests.rb @@ -0,0 +1,19 @@ +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#get_template' do + it 'gets template by uuid' do + with_webmock_cassette('get_template') do + vm = compute.get_template('500e2be9-4762-1f52-5e7c-f37444be5f6e', 'BRQ') + assert_equal(vm['name'], 'fedora29') + end + end + end +end diff --git a/tests/requests/compute/get_virtual_machine_tests.rb b/tests/requests/compute/get_virtual_machine_tests.rb new file mode 100644 index 00000000..48e6ed92 --- /dev/null +++ b/tests/requests/compute/get_virtual_machine_tests.rb @@ -0,0 +1,19 @@ +require_relative '../../test_helper' + +describe Fog::Vsphere::Compute::Real do + include Fog::Vsphere::TestHelper + + before { Fog.unmock! } + after { Fog.mock! } + + let(:compute) { prepare_compute } + + describe '#get_virtual_machine' do + it 'gets virtual machine by uuid' do + with_webmock_cassette('get_virtual_machine') do + vm = compute.get_virtual_machine('52d810bd-077b-368d-a86f-0b2ad84269f8', 'BRQ') + assert_equal(vm['name'], 'DC1') + end + end + end +end diff --git a/tests/test_helper.rb b/tests/test_helper.rb new file mode 100644 index 00000000..f5e9876c --- /dev/null +++ b/tests/test_helper.rb @@ -0,0 +1,55 @@ +require 'mocha/minitest' +require 'vcr' +require 'webmock/minitest' + +# WebMock::Config.instance.net_http_connect_on_start = true + +VCR.configure do |config| + config.cassette_library_dir = "tests/fixtures/vcr_cassettes/6_7" + config.hook_into :webmock + config.default_cassette_options = { match_requests_on: [:body] } +end + +# Makes these parameters available to the cassettes for easier recording +SHARED_VSPHERE_PARAMS = { + vsphere_server: '127.0.0.1', + vsphere_username: 'Administrator@example.com', + vsphere_password: 'StrongAdminPassword' +}.freeze + +# Allows to skip writing of shared examples. +module VCRCasseteFilterShared + def record_http_interaction(interaction) + @shared_cassette ||= VCR::Cassette.new('shared', erb: SHARED_VSPHERE_PARAMS) + return if @shared_cassette.http_interactions.has_interaction_matching?(interaction.request) + interaction.request.uri = "https://<%= vsphere_server %>/sdk" + super(interaction) + end +end +VCR::Cassette.send(:prepend, VCRCasseteFilterShared) + +module Fog + module Vsphere + module TestHelper + def prepare_compute + Fog::Compute.new( + SHARED_VSPHERE_PARAMS.merge( + provider: 'vsphere', + vsphere_rev: '6.7' + ) + ) + end + + # Records new cassette, but before writing removes the examples already in *shared* cassette. + def recording_webmock_cassette(name, options = {}, &block) + VCR.use_cassette(name, options, &block) + end + + def with_webmock_cassette(name, options = {}, &block) + VCR.use_cassette('shared', erb: SHARED_VSPHERE_PARAMS, allow_playback_repeats: true) do + VCR.use_cassette(name, options.merge(erb: SHARED_VSPHERE_PARAMS), &block) + end + end + end + end +end