fog-vsphere 3.6.5 → 3.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fog/vsphere/compute.rb +12 -0
  3. data/lib/fog/vsphere/models/compute/nvmecontroller.rb +24 -0
  4. data/lib/fog/vsphere/models/compute/scsicontroller.rb +5 -1
  5. data/lib/fog/vsphere/models/compute/server.rb +33 -18
  6. data/lib/fog/vsphere/models/compute/volume.rb +1 -2
  7. data/lib/fog/vsphere/requests/compute/create_vm.rb +11 -4
  8. data/lib/fog/vsphere/requests/compute/get_vm_first_nvme_controller.rb +21 -0
  9. data/lib/fog/vsphere/requests/compute/list_vm_nvme_controllers.rb +29 -0
  10. data/lib/fog/vsphere/requests/compute/vm_clone.rb +1 -1
  11. data/lib/fog/vsphere/version.rb +1 -1
  12. data/tests/class_from_string_tests.rb +33 -0
  13. data/tests/compute_tests.rb +53 -0
  14. data/tests/fixtures/vcr_cassettes/6_7/create_folder.yml +609 -0
  15. data/tests/fixtures/vcr_cassettes/6_7/folder_destroy.yml +823 -0
  16. data/tests/fixtures/vcr_cassettes/6_7/get_cluster.yml +663 -0
  17. data/tests/fixtures/vcr_cassettes/6_7/get_compute_resource.yml +1046 -0
  18. data/tests/fixtures/vcr_cassettes/6_7/get_datacenter.yml +498 -0
  19. data/tests/fixtures/vcr_cassettes/6_7/get_folder.yml +2038 -0
  20. data/tests/fixtures/vcr_cassettes/6_7/get_host.yml +386 -0
  21. data/tests/fixtures/vcr_cassettes/6_7/get_network.yml +932 -0
  22. data/tests/fixtures/vcr_cassettes/6_7/get_storage_pod.yml +225 -0
  23. data/tests/fixtures/vcr_cassettes/6_7/get_template.yml +329 -0
  24. data/tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml +329 -0
  25. data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_nvme_controller.yml +105 -0
  26. data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_sata_controller.yml +209 -0
  27. data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_scsi_controller.yml +111 -0
  28. data/tests/fixtures/vcr_cassettes/6_7/shared.yml +164 -0
  29. data/tests/helper.rb +6 -0
  30. data/tests/helpers/mock_helper.rb +9 -0
  31. data/tests/models/compute/cluster_tests.rb +18 -0
  32. data/tests/models/compute/hosts_tests.rb +11 -0
  33. data/tests/models/compute/rules_tests.rb +28 -0
  34. data/tests/models/compute/server_tests.rb +74 -0
  35. data/tests/models/compute/server_unit_tests.rb +13 -0
  36. data/tests/models/compute/servers_tests.rb +14 -0
  37. data/tests/models/compute/ticket_tests.rb +12 -0
  38. data/tests/models/compute/tickets_tests.rb +8 -0
  39. data/tests/requests/compute/create_folder_tests.rb +19 -0
  40. data/tests/requests/compute/current_time_tests.rb +10 -0
  41. data/tests/requests/compute/folder_destroy_tests.rb +39 -0
  42. data/tests/requests/compute/get_cluster_tests.rb +19 -0
  43. data/tests/requests/compute/get_compute_resource_tests.rb +19 -0
  44. data/tests/requests/compute/get_datacenter_tests.rb +19 -0
  45. data/tests/requests/compute/get_folder_tests.rb +28 -0
  46. data/tests/requests/compute/get_host_tests.rb +19 -0
  47. data/tests/requests/compute/get_network_tests.rb +78 -0
  48. data/tests/requests/compute/get_storage_pod_tests.rb +19 -0
  49. data/tests/requests/compute/get_template_tests.rb +19 -0
  50. data/tests/requests/compute/get_virtual_machine_tests.rb +19 -0
  51. data/tests/requests/compute/get_vm_first_nvme_controller_tests.rb +19 -0
  52. data/tests/requests/compute/get_vm_first_sata_controller_tests.rb +19 -0
  53. data/tests/requests/compute/get_vm_first_scsi_controller_tests.rb +19 -0
  54. data/tests/requests/compute/list_child_snapshots_tests.rb +9 -0
  55. data/tests/requests/compute/list_clusters_tests.rb +10 -0
  56. data/tests/requests/compute/list_datastores_tests.rb +17 -0
  57. data/tests/requests/compute/list_hosts_tests.rb +10 -0
  58. data/tests/requests/compute/list_networks_tests.rb +17 -0
  59. data/tests/requests/compute/list_storage_pods_test.rb +9 -0
  60. data/tests/requests/compute/list_virtual_machines_tests.rb +34 -0
  61. data/tests/requests/compute/list_vm_cdroms_tests.rb +9 -0
  62. data/tests/requests/compute/list_vm_snapshots_tests.rb +9 -0
  63. data/tests/requests/compute/modify_vm_cdrom_tests.rb +20 -0
  64. data/tests/requests/compute/revert_to_snapshot_tests.rb +13 -0
  65. data/tests/requests/compute/set_vm_customvalue_tests.rb +18 -0
  66. data/tests/requests/compute/update_vm_tests.rb +13 -0
  67. data/tests/requests/compute/vm_clone_tests.rb +55 -0
  68. data/tests/requests/compute/vm_config_vnc_tests.rb +18 -0
  69. data/tests/requests/compute/vm_destroy_tests.rb +14 -0
  70. data/tests/requests/compute/vm_migrate_tests.rb +15 -0
  71. data/tests/requests/compute/vm_power_off_tests.rb +24 -0
  72. data/tests/requests/compute/vm_power_on_tests.rb +15 -0
  73. data/tests/requests/compute/vm_reboot_tests.rb +24 -0
  74. data/tests/requests/compute/vm_reconfig_cdrom_tests.rb +14 -0
  75. data/tests/requests/compute/vm_reconfig_cpus_tests.rb +17 -0
  76. data/tests/requests/compute/vm_reconfig_hardware_tests.rb +17 -0
  77. data/tests/requests/compute/vm_reconfig_memory_tests.rb +17 -0
  78. data/tests/requests/compute/vm_suspend_tests.rb +23 -0
  79. data/tests/requests/compute/vm_take_snapshot_tests.rb +17 -0
  80. data/tests/test_helper.rb +74 -0
  81. metadata +152 -19
  82. data/.github/workflows/ruby.yml +0 -42
  83. data/.gitignore +0 -25
  84. data/.rubocop.yml +0 -44
  85. data/.rubocop_todo.yml +0 -614
  86. data/CONTRIBUTING.md +0 -55
  87. data/Gemfile +0 -5
  88. data/Jenkinsfile +0 -10
  89. data/fog-vsphere.gemspec +0 -39
@@ -0,0 +1,209 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<%= vsphere_server %>/sdk
6
+ body:
7
+ encoding: UTF-8
8
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><Login xmlns="urn:vim25"><_this
10
+ type="SessionManager">ha-sessionmgr</_this><userName>root</userName><password>Rhino2000!</password></Login></env:Body></env:Envelope>
11
+ headers:
12
+ Content-Type:
13
+ - text/xml; charset=utf-8
14
+ Soapaction:
15
+ - urn:vim25/8.0.2.0
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Mon, 19 Feb 2024 09:11:49 GMT
29
+ Set-Cookie:
30
+ - vmware_soap_session="8252b98ecf5ad3f2fbb322482dabc4c8b62eccb2"; Path=/; HttpOnly;
31
+ Secure;
32
+ Cache-Control:
33
+ - no-cache
34
+ Content-Type:
35
+ - text/xml; charset=utf-8
36
+ X-Frame-Options:
37
+ - DENY
38
+ Content-Length:
39
+ - '794'
40
+ X-Envoy-Upstream-Service-Time:
41
+ - '51'
42
+ body:
43
+ encoding: UTF-8
44
+ string: |-
45
+ <?xml version="1.0" encoding="UTF-8"?>
46
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
47
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
48
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
49
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
50
+ <soapenv:Body>
51
+ <LoginResponse xmlns="urn:vim25"><returnval><key>52ad783c-f3ef-286d-d457-763a4c54b859</key><userName>root</userName><fullName>Administrator</fullName><loginTime>2024-02-19T09:11:49.080853Z</loginTime><lastActiveTime>2024-02-19T09:11:49.080875Z</lastActiveTime><locale>en</locale><messageLocale>en</messageLocale><extensionSession>false</extensionSession><ipAddress>172.16.1.24</ipAddress><userAgent>Ruby</userAgent><callCount>0</callCount></returnval></LoginResponse>
52
+ </soapenv:Body>
53
+ </soapenv:Envelope>
54
+ recorded_at: Mon, 19 Feb 2024 09:32:15 GMT
55
+ - request:
56
+ method: post
57
+ uri: https://<%= vsphere_server %>/sdk
58
+ body:
59
+ encoding: UTF-8
60
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
61
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
62
+ xmlns="urn:vim25"><_this type="PropertyCollector">ha-property-collector</_this><specSet
63
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>SessionManager</type><pathSet>currentSession</pathSet></propSet><objectSet
64
+ xsi:type="ObjectSpec"><obj type="SessionManager">ha-sessionmgr</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
65
+ headers:
66
+ Content-Type:
67
+ - text/xml; charset=utf-8
68
+ Soapaction:
69
+ - urn:vim25/8.0.2.0
70
+ Cookie:
71
+ - vmware_soap_session="8252b98ecf5ad3f2fbb322482dabc4c8b62eccb2"; Path=/; HttpOnly;
72
+ Secure;
73
+ Accept-Encoding:
74
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
75
+ Accept:
76
+ - "*/*"
77
+ User-Agent:
78
+ - Ruby
79
+ response:
80
+ status:
81
+ code: 200
82
+ message: OK
83
+ headers:
84
+ Date:
85
+ - Mon, 19 Feb 2024 09:11:49 GMT
86
+ Cache-Control:
87
+ - no-cache
88
+ Content-Type:
89
+ - text/xml; charset=utf-8
90
+ X-Frame-Options:
91
+ - DENY
92
+ Content-Length:
93
+ - '946'
94
+ X-Envoy-Upstream-Service-Time:
95
+ - '2'
96
+ body:
97
+ encoding: UTF-8
98
+ string: |-
99
+ <?xml version="1.0" encoding="UTF-8"?>
100
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
101
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
102
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
103
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
104
+ <soapenv:Body>
105
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="SessionManager">ha-sessionmgr</obj><propSet><name>currentSession</name><val xsi:type="UserSession"><key>52ad783c-f3ef-286d-d457-763a4c54b859</key><userName>root</userName><fullName>Administrator</fullName><loginTime>2024-02-19T09:11:49.080853Z</loginTime><lastActiveTime>2024-02-19T09:11:49.399912Z</lastActiveTime><locale>en</locale><messageLocale>en</messageLocale><extensionSession>false</extensionSession><ipAddress>172.16.1.24</ipAddress><userAgent>Ruby</userAgent><callCount>0</callCount></val></propSet></returnval></RetrievePropertiesResponse>
106
+ </soapenv:Body>
107
+ </soapenv:Envelope>
108
+ recorded_at: Mon, 19 Feb 2024 09:32:16 GMT
109
+ - request:
110
+ method: post
111
+ uri: https://<%= vsphere_server %>/sdk
112
+ body:
113
+ encoding: UTF-8
114
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><FindByUuid xmlns="urn:vim25"><_this type="SearchIndex">SearchIndex</_this><uuid>5030c6ce-c0b1-59d9-34ff-d8438e2f0339</uuid><vmSearch>1</vmSearch><instanceUuid>1</instanceUuid></FindByUuid></env:Body></env:Envelope>
115
+ headers:
116
+ Content-Type:
117
+ - text/xml; charset=utf-8
118
+ Soapaction:
119
+ - urn:vim25/8.0.2.0
120
+ Cookie:
121
+ - vmware_soap_session="8252b98ecf5ad3f2fbb322482dabc4c8b62eccb2"; Path=/; HttpOnly;
122
+ Secure;
123
+ Accept-Encoding:
124
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
125
+ Accept:
126
+ - "*/*"
127
+ User-Agent:
128
+ - Ruby
129
+ response:
130
+ status:
131
+ code: 200
132
+ message: OK
133
+ headers:
134
+ Date:
135
+ - Mon, 19 Feb 2024 09:11:49 GMT
136
+ Cache-Control:
137
+ - no-cache
138
+ Content-Type:
139
+ - text/xml; charset=utf-8
140
+ X-Frame-Options:
141
+ - DENY
142
+ Content-Length:
143
+ - '433'
144
+ X-Envoy-Upstream-Service-Time:
145
+ - '6'
146
+ body:
147
+ encoding: UTF-8
148
+ string: |-
149
+ <?xml version="1.0" encoding="UTF-8"?>
150
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
151
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
152
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
153
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
154
+ <soapenv:Body>
155
+ <FindByUuidResponse xmlns="urn:vim25"><returnval type="VirtualMachine">86</returnval></FindByUuidResponse>
156
+ </soapenv:Body>
157
+ </soapenv:Envelope>
158
+ recorded_at: Mon, 19 Feb 2024 09:32:16 GMT
159
+ - request:
160
+ method: post
161
+ uri: https://<%= vsphere_server %>/sdk
162
+ body:
163
+ encoding: UTF-8
164
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>VirtualMachine</type><pathSet>config</pathSet></propSet><objectSet xsi:type="ObjectSpec"><obj type="VirtualMachine">86</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
165
+ headers:
166
+ Content-Type:
167
+ - text/xml; charset=utf-8
168
+ Soapaction:
169
+ - urn:vim25/8.0.2.0
170
+ Cookie:
171
+ - vmware_soap_session="8252b98ecf5ad3f2fbb322482dabc4c8b62eccb2"; Path=/; HttpOnly;
172
+ Secure;
173
+ Accept-Encoding:
174
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
175
+ Accept:
176
+ - "*/*"
177
+ User-Agent:
178
+ - Ruby
179
+ response:
180
+ status:
181
+ code: 200
182
+ message: OK
183
+ headers:
184
+ Date:
185
+ - Mon, 19 Feb 2024 09:11:49 GMT
186
+ Cache-Control:
187
+ - no-cache
188
+ Content-Type:
189
+ - text/xml; charset=utf-8
190
+ X-Frame-Options:
191
+ - DENY
192
+ Content-Length:
193
+ - '17230'
194
+ X-Envoy-Upstream-Service-Time:
195
+ - '3'
196
+ body:
197
+ encoding: UTF-8
198
+ string: |-
199
+ <?xml version="1.0" encoding="UTF-8"?>
200
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
201
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
202
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
203
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
204
+ <soapenv:Body>
205
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="VirtualMachine">86</obj><propSet><name>config</name><val xsi:type="VirtualMachineConfigInfo"><changeVersion>2024-02-19T08:47:47.637624Z</changeVersion><modified>1970-01-01T00:00:00Z</modified><name>doyle-buseman.yesil.yt</name><guestFullName>Other (64-bit)</guestFullName><version>vmx-21</version><uuid>423035fa-8eed-a0b3-bc40-cae453cd678d</uuid><createDate>2024-02-19T08:36:46.200608Z</createDate><instanceUuid>5030c6ce-c0b1-59d9-34ff-d8438e2f0339</instanceUuid><npivTemporaryDisabled>true</npivTemporaryDisabled><locationId>564dd5b8-bd9e-5686-7ed7-77463770098c</locationId><template>false</template><guestId>otherGuest64</guestId><alternateGuestName></alternateGuestName><annotation></annotation><files><vmPathName>[datastore1] doyle-buseman.yesil.yt/doyle-buseman.yesil.yt.vmx</vmPathName><snapshotDirectory>[datastore1] doyle-buseman.yesil.yt</snapshotDirectory><suspendDirectory>[datastore1] doyle-buseman.yesil.yt</suspendDirectory><logDirectory>[datastore1] doyle-buseman.yesil.yt</logDirectory></files><tools><toolsVersion>0</toolsVersion><toolsInstallType>guestToolsTypeUnknown</toolsInstallType><afterPowerOn>true</afterPowerOn><afterResume>true</afterResume><beforeGuestStandby>true</beforeGuestStandby><beforeGuestShutdown>true</beforeGuestShutdown><toolsUpgradePolicy>manual</toolsUpgradePolicy><syncTimeWithHostAllowed>true</syncTimeWithHostAllowed><syncTimeWithHost>false</syncTimeWithHost><lastInstallInfo><counter>0</counter></lastInstallInfo></tools><flags><enableLogging>true</enableLogging><useToe>false</useToe><runWithDebugInfo>false</runWithDebugInfo><monitorType>release</monitorType><htSharing>any</htSharing><snapshotDisabled>false</snapshotDisabled><snapshotLocked>false</snapshotLocked><diskUuidEnabled>false</diskUuidEnabled><snapshotPowerOffBehavior>powerOff</snapshotPowerOffBehavior><recordReplayEnabled>false</recordReplayEnabled><faultToleranceType>unset</faultToleranceType><cbrcCacheEnabled>false</cbrcCacheEnabled><vvtdEnabled>false</vvtdEnabled><vbsEnabled>false</vbsEnabled></flags><defaultPowerOps><powerOffType>soft</powerOffType><suspendType>hard</suspendType><resetType>soft</resetType><defaultPowerOffType>soft</defaultPowerOffType><defaultSuspendType>hard</defaultSuspendType><defaultResetType>soft</defaultResetType><standbyAction>checkpoint</standbyAction></defaultPowerOps><rebootPowerOff>false</rebootPowerOff><hardware><numCPU>2</numCPU><numCoresPerSocket>2</numCoresPerSocket><autoCoresPerSocket>false</autoCoresPerSocket><memoryMB>2048</memoryMB><virtualICH7MPresent>false</virtualICH7MPresent><virtualSMCPresent>false</virtualSMCPresent><device xsi:type="VirtualIDEController"><key>200</key><deviceInfo><label>IDE 0</label><summary>IDE 0</summary></deviceInfo><busNumber>0</busNumber></device><device xsi:type="VirtualIDEController"><key>201</key><deviceInfo><label>IDE 1</label><summary>IDE 1</summary></deviceInfo><busNumber>1</busNumber></device><device xsi:type="VirtualPS2Controller"><key>300</key><deviceInfo><label>PS2 controller 0</label><summary>PS2 controller 0</summary></deviceInfo><busNumber>0</busNumber><device>600</device><device>700</device></device><device xsi:type="VirtualPCIController"><key>100</key><deviceInfo><label>PCI controller 0</label><summary>PCI controller 0</summary></deviceInfo><busNumber>0</busNumber><device>500</device><device>12000</device><device>1000</device><device>15000</device><device>4000</device></device><device xsi:type="VirtualSIOController"><key>400</key><deviceInfo><label>SIO controller 0</label><summary>SIO controller 0</summary></deviceInfo><busNumber>0</busNumber></device><device xsi:type="VirtualKeyboard"><key>600</key><deviceInfo><label>Keyboard </label><summary>Keyboard</summary></deviceInfo><controllerKey>300</controllerKey><unitNumber>0</unitNumber></device><device xsi:type="VirtualPointingDevice"><key>700</key><deviceInfo><label>Pointing device</label><summary>Pointing device; Device</summary></deviceInfo><backing xsi:type="VirtualPointingDeviceDeviceBackingInfo"><deviceName></deviceName><useAutoDetect>false</useAutoDetect><hostPointingDevice>autodetect</hostPointingDevice></backing><controllerKey>300</controllerKey><unitNumber>1</unitNumber></device><device xsi:type="VirtualMachineVideoCard"><key>500</key><deviceInfo><label>Video card </label><summary>Video card</summary></deviceInfo><controllerKey>100</controllerKey><unitNumber>0</unitNumber><videoRamSizeInKB>4096</videoRamSizeInKB><numDisplays>1</numDisplays><useAutoDetect>false</useAutoDetect><enable3DSupport>false</enable3DSupport><use3dRenderer>automatic</use3dRenderer><graphicsMemorySizeInKB>262144</graphicsMemorySizeInKB></device><device xsi:type="VirtualMachineVMCIDevice"><key>12000</key><deviceInfo><label>VMCI device</label><summary>Device on the virtual machine PCI bus that provides support for the virtual machine communication interface</summary></deviceInfo><controllerKey>100</controllerKey><unitNumber>17</unitNumber><id>1405970317</id><allowUnrestrictedCommunication>false</allowUnrestrictedCommunication><filterEnable>true</filterEnable></device><device xsi:type="VirtualLsiLogicController"><key>1000</key><deviceInfo><label>SCSI controller 0</label><summary>LSI Logic</summary></deviceInfo><slotInfo xsi:type="VirtualDevicePciBusSlotInfo"><pciSlotNumber>16</pciSlotNumber></slotInfo><controllerKey>100</controllerKey><unitNumber>3</unitNumber><busNumber>0</busNumber><device>2000</device><hotAddRemove>true</hotAddRemove><sharedBus>noSharing</sharedBus><scsiCtlrUnitNumber>7</scsiCtlrUnitNumber></device><device xsi:type="VirtualAHCIController"><key>15000</key><deviceInfo><label>SATA controller 0</label><summary>AHCI</summary></deviceInfo><slotInfo xsi:type="VirtualDevicePciBusSlotInfo"><pciSlotNumber>32</pciSlotNumber></slotInfo><controllerKey>100</controllerKey><unitNumber>24</unitNumber><busNumber>0</busNumber><device>16000</device></device><device xsi:type="VirtualCdrom"><key>16000</key><deviceInfo><label>CD/DVD drive 1</label><summary>Remote ATAPI</summary></deviceInfo><backing xsi:type="VirtualCdromRemoteAtapiBackingInfo"><deviceName></deviceName><useAutoDetect>false</useAutoDetect></backing><connectable><startConnected>false</startConnected><allowGuestControl>true</allowGuestControl><connected>false</connected><status>untried</status></connectable><controllerKey>15000</controllerKey><unitNumber>0</unitNumber></device><device xsi:type="VirtualDisk"><key>2000</key><deviceInfo><label>Hard disk 1</label><summary>15,728,640 KB</summary></deviceInfo><backing xsi:type="VirtualDiskFlatVer2BackingInfo"><fileName>[datastore1] doyle-buseman.yesil.yt/doyle-buseman.yesil.yt.vmdk</fileName><datastore type="Datastore">653fb736-5bb30961-2421-0050568cba3a</datastore><backingObjectId></backingObjectId><diskMode>persistent</diskMode><split>false</split><writeThrough>false</writeThrough><thinProvisioned>true</thinProvisioned><eagerlyScrub>false</eagerlyScrub><uuid>6000C290-1a08-53b6-7d7a-adb7426a0dbb</uuid><contentId>026ddf83fbb945a11eb393aafffffffe</contentId><digestEnabled>false</digestEnabled><sharing>sharingNone</sharing></backing><controllerKey>1000</controllerKey><unitNumber>0</unitNumber><capacityInKB>15728640</capacityInKB><capacityInBytes>16106127360</capacityInBytes><shares><shares>1000</shares><level>normal</level></shares><storageIOAllocation><limit>-1</limit><shares><shares>1000</shares><level>normal</level></shares><reservation>0</reservation></storageIOAllocation><diskObjectId>86-2000</diskObjectId><vDiskVersion>1</vDiskVersion><nativeUnmanagedLinkedClone>false</nativeUnmanagedLinkedClone><guestReadOnly>false</guestReadOnly></device><device xsi:type="VirtualVmxnet3"><key>4000</key><deviceInfo><label>Network adapter 1</label><summary>VM Network</summary></deviceInfo><backing xsi:type="VirtualEthernetCardNetworkBackingInfo"><deviceName>VM Network</deviceName><useAutoDetect>false</useAutoDetect><network type="Network">HaNetwork-VM Network</network></backing><connectable><migrateConnect>unset</migrateConnect><startConnected>true</startConnected><allowGuestControl>true</allowGuestControl><connected>true</connected><status>ok</status></connectable><slotInfo xsi:type="VirtualDevicePciBusSlotInfo"><pciSlotNumber>160</pciSlotNumber></slotInfo><controllerKey>100</controllerKey><unitNumber>7</unitNumber><addressType>assigned</addressType><macAddress>00:50:56:b0:0a:4f</macAddress><wakeOnLanEnabled>true</wakeOnLanEnabled><resourceAllocation><reservation>0</reservation><share><shares>50</shares><level>normal</level></share><limit>-1</limit></resourceAllocation><uptCompatibilityEnabled>true</uptCompatibilityEnabled><uptv2Enabled>false</uptv2Enabled></device><motherboardLayout>i440bxHostBridge</motherboardLayout><simultaneousThreads>1</simultaneousThreads></hardware><cpuAllocation><reservation>0</reservation><limit>-1</limit><shares><shares>2000</shares><level>normal</level></shares></cpuAllocation><memoryAllocation><reservation>0</reservation><limit>-1</limit><shares><shares>20480</shares><level>normal</level></shares></memoryAllocation><latencySensitivity><level>normal</level></latencySensitivity><memoryHotAddEnabled>false</memoryHotAddEnabled><cpuHotAddEnabled>false</cpuHotAddEnabled><cpuHotRemoveEnabled>false</cpuHotRemoveEnabled><hotPlugMemoryLimit>2048</hotPlugMemoryLimit><hotPlugMemoryIncrementSize>0</hotPlugMemoryIncrementSize><extraConfig><key>nvram</key><value xsi:type="xsd:string">doyle-buseman.yesil.yt.nvram</value></extraConfig><extraConfig><key>svga.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge0.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge4.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge4.virtualDev</key><value xsi:type="xsd:string">pcieRootPort</value></extraConfig><extraConfig><key>pciBridge4.functions</key><value xsi:type="xsd:string">8</value></extraConfig><extraConfig><key>pciBridge5.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge5.virtualDev</key><value xsi:type="xsd:string">pcieRootPort</value></extraConfig><extraConfig><key>pciBridge5.functions</key><value xsi:type="xsd:string">8</value></extraConfig><extraConfig><key>pciBridge6.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge6.virtualDev</key><value xsi:type="xsd:string">pcieRootPort</value></extraConfig><extraConfig><key>pciBridge6.functions</key><value xsi:type="xsd:string">8</value></extraConfig><extraConfig><key>pciBridge7.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge7.virtualDev</key><value xsi:type="xsd:string">pcieRootPort</value></extraConfig><extraConfig><key>pciBridge7.functions</key><value xsi:type="xsd:string">8</value></extraConfig><extraConfig><key>hpet0.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>cpuid.coresPerSocket</key><value xsi:type="xsd:string">2</value></extraConfig><extraConfig><key>viv.moid</key><value xsi:type="xsd:string">4afc8e75-6359-4486-b3f9-873d25e096cd:vm-75:r0XnyAnBnOtSXhFJvRjUk1x9owPxsNPtYOmrnc9BTRc=</value></extraConfig><extraConfig><key>vmxstats.filename</key><value xsi:type="xsd:string">doyle-buseman.yesil.yt.scoreboard</value></extraConfig><extraConfig><key>numa.autosize.cookie</key><value xsi:type="xsd:string">20022</value></extraConfig><extraConfig><key>numa.autosize.vcpu.maxPerVirtualNode</key><value xsi:type="xsd:string">2</value></extraConfig><extraConfig><key>sched.swap.derivedName</key><value xsi:type="xsd:string">/vmfs/volumes/653fb736-5bb30961-2421-0050568cba3a/doyle-buseman.yesil.yt/doyle-buseman.yesil.yt-5f3f6e60.vswp</value></extraConfig><extraConfig><key>pciBridge0.pciSlotNumber</key><value xsi:type="xsd:string">17</value></extraConfig><extraConfig><key>pciBridge4.pciSlotNumber</key><value xsi:type="xsd:string">21</value></extraConfig><extraConfig><key>pciBridge5.pciSlotNumber</key><value xsi:type="xsd:string">22</value></extraConfig><extraConfig><key>pciBridge6.pciSlotNumber</key><value xsi:type="xsd:string">23</value></extraConfig><extraConfig><key>pciBridge7.pciSlotNumber</key><value xsi:type="xsd:string">24</value></extraConfig><extraConfig><key>scsi0.pciSlotNumber</key><value xsi:type="xsd:string">16</value></extraConfig><extraConfig><key>ethernet0.pciSlotNumber</key><value xsi:type="xsd:string">160</value></extraConfig><extraConfig><key>scsi0:0.redo</key><value xsi:type="xsd:string"></value></extraConfig><extraConfig><key>vmotion.checkpointFBSize</key><value xsi:type="xsd:string">4194304</value></extraConfig><extraConfig><key>vmotion.checkpointSVGAPrimarySize</key><value xsi:type="xsd:string">4194304</value></extraConfig><extraConfig><key>vmotion.svga.mobMaxSize</key><value xsi:type="xsd:string">4194304</value></extraConfig><extraConfig><key>vmotion.svga.graphicsMemoryKB</key><value xsi:type="xsd:string">4096</value></extraConfig><extraConfig><key>monitor.phys_bits_used</key><value xsi:type="xsd:string">45</value></extraConfig><extraConfig><key>softPowerOff</key><value xsi:type="xsd:string">FALSE</value></extraConfig><extraConfig><key>sata0.pciSlotNumber</key><value xsi:type="xsd:string">32</value></extraConfig><extraConfig><key>vmware.tools.internalversion</key><value xsi:type="xsd:string">0</value></extraConfig><extraConfig><key>vmware.tools.requiredversion</key><value xsi:type="xsd:string">12384</value></extraConfig><extraConfig><key>migrate.hostLogState</key><value xsi:type="xsd:string">none</value></extraConfig><extraConfig><key>migrate.migrationId</key><value xsi:type="xsd:string">0</value></extraConfig><extraConfig><key>migrate.hostLog</key><value xsi:type="xsd:string">doyle-buseman.yesil.yt-33b77d7e.hlog</value></extraConfig><cpuFeatureMask><level>0</level></cpuFeatureMask><cpuFeatureMask><level>0</level><vendor>amd</vendor></cpuFeatureMask><cpuFeatureMask><level>1</level></cpuFeatureMask><cpuFeatureMask><level>1</level><vendor>amd</vendor></cpuFeatureMask><cpuFeatureMask><level>-2147483648</level></cpuFeatureMask><cpuFeatureMask><level>-2147483648</level><vendor>amd</vendor></cpuFeatureMask><cpuFeatureMask><level>-2147483647</level></cpuFeatureMask><cpuFeatureMask><level>-2147483647</level><vendor>amd</vendor></cpuFeatureMask><cpuFeatureMask><level>-2147483640</level></cpuFeatureMask><cpuFeatureMask><level>-2147483640</level><vendor>amd</vendor></cpuFeatureMask><datastoreUrl><name>datastore1</name><url>/vmfs/volumes/653fb736-5bb30961-2421-0050568cba3a/</url></datastoreUrl><swapPlacement>inherit</swapPlacement><bootOptions><bootDelay>0</bootDelay><enterBIOSSetup>false</enterBIOSSetup><efiSecureBootEnabled>false</efiSecureBootEnabled><bootRetryEnabled>true</bootRetryEnabled><bootRetryDelay>10</bootRetryDelay><bootOrder xsi:type="VirtualMachineBootOptionsBootableCdromDevice"></bootOrder><bootOrder xsi:type="VirtualMachineBootOptionsBootableDiskDevice"><deviceKey>2000</deviceKey></bootOrder><networkBootProtocol>ipv4</networkBootProtocol></bootOptions><vAssertsEnabled>false</vAssertsEnabled><changeTrackingEnabled>false</changeTrackingEnabled><firmware>bios</firmware><maxMksConnections>40</maxMksConnections><guestAutoLockEnabled>true</guestAutoLockEnabled><memoryReservationLockedToMax>false</memoryReservationLockedToMax><initialOverhead><initialMemoryReservation>62484480</initialMemoryReservation><initialSwapReservation>252579840</initialSwapReservation></initialOverhead><nestedHVEnabled>false</nestedHVEnabled><vPMCEnabled>false</vPMCEnabled><scheduledHardwareUpgradeInfo><upgradePolicy>never</upgradePolicy><scheduledHardwareUpgradeStatus>none</scheduledHardwareUpgradeStatus></scheduledHardwareUpgradeInfo><vmxConfigChecksum>r67gdvB8s3pcnDQWGqTtGSsCqOsniOT3b221qn2ZGug=</vmxConfigChecksum><messageBusTunnelEnabled>false</messageBusTunnelEnabled><guestIntegrityInfo><enabled>false</enabled></guestIntegrityInfo><migrateEncryption>opportunistic</migrateEncryption><sgxInfo><epcSize>0</epcSize><flcMode>unlocked</flcMode><requireAttestation>false</requireAttestation></sgxInfo><ftEncryptionMode>ftEncryptionOpportunistic</ftEncryptionMode><guestMonitoringModeInfo></guestMonitoringModeInfo><sevEnabled>false</sevEnabled><numaInfo><coresPerNumaNode>2</coresPerNumaNode><autoCoresPerNumaNode>true</autoCoresPerNumaNode><vnumaOnCpuHotaddExposed>false</vnumaOnCpuHotaddExposed></numaInfo><pmemFailoverEnabled>false</pmemFailoverEnabled><vmxStatsCollectionEnabled>true</vmxStatsCollectionEnabled><vmOpNotificationToAppEnabled>false</vmOpNotificationToAppEnabled><vmOpNotificationTimeout>-1</vmOpNotificationTimeout><deviceSwap><lsiToPvscsi><enabled>true</enabled><applicable>false</applicable><status>none</status></lsiToPvscsi></deviceSwap><deviceGroups></deviceGroups><fixedPassthruHotPlugEnabled>false</fixedPassthruHotPlugEnabled></val></propSet></returnval></RetrievePropertiesResponse>
206
+ </soapenv:Body>
207
+ </soapenv:Envelope>
208
+ recorded_at: Mon, 19 Feb 2024 09:32:17 GMT
209
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,111 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<%= vsphere_server %>/sdk
6
+ body:
7
+ encoding: UTF-8
8
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
9
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><FindByUuid
10
+ xmlns="urn:vim25"><_this type="SearchIndex">SearchIndex</_this><uuid>52d810bd-077b-368d-a86f-0b2ad84269f8</uuid><vmSearch>1</vmSearch><instanceUuid>1</instanceUuid></FindByUuid></env:Body></env:Envelope>
11
+ headers:
12
+ Content-Type:
13
+ - text/xml; charset=utf-8
14
+ Soapaction:
15
+ - urn:vim25/6.7
16
+ Cookie:
17
+ - vmware_soap_session="2da975e61be85346b62d8f5d4814878b7216244f"; Path=/; HttpOnly;
18
+ Secure;
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ Accept:
22
+ - "*/*"
23
+ User-Agent:
24
+ - Ruby
25
+ response:
26
+ status:
27
+ code: 200
28
+ message: OK
29
+ headers:
30
+ Date:
31
+ - Thu, 18 Apr 2019 17:23:34 GMT
32
+ Cache-Control:
33
+ - no-cache
34
+ Connection:
35
+ - Keep-Alive
36
+ Content-Type:
37
+ - text/xml; charset=utf-8
38
+ X-Frame-Options:
39
+ - DENY
40
+ Content-Length:
41
+ - '436'
42
+ body:
43
+ encoding: UTF-8
44
+ string: |-
45
+ <?xml version="1.0" encoding="UTF-8"?>
46
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
47
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
48
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
49
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
50
+ <soapenv:Body>
51
+ <FindByUuidResponse xmlns="urn:vim25"><returnval type="VirtualMachine">vm-22</returnval></FindByUuidResponse>
52
+ </soapenv:Body>
53
+ </soapenv:Envelope>
54
+ http_version:
55
+ recorded_at: Thu, 18 Apr 2019 17:23:35 GMT
56
+ - request:
57
+ method: post
58
+ uri: https://<%= vsphere_server %>/sdk
59
+ body:
60
+ encoding: UTF-8
61
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
62
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
63
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
64
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>VirtualMachine</type><pathSet>config</pathSet></propSet><objectSet
65
+ xsi:type="ObjectSpec"><obj type="VirtualMachine">vm-22</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
66
+ headers:
67
+ Content-Type:
68
+ - text/xml; charset=utf-8
69
+ Soapaction:
70
+ - urn:vim25/6.7
71
+ Cookie:
72
+ - vmware_soap_session="2da975e61be85346b62d8f5d4814878b7216244f"; Path=/; HttpOnly;
73
+ Secure;
74
+ Accept-Encoding:
75
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
76
+ Accept:
77
+ - "*/*"
78
+ User-Agent:
79
+ - Ruby
80
+ response:
81
+ status:
82
+ code: 200
83
+ message: OK
84
+ headers:
85
+ Date:
86
+ - Thu, 18 Apr 2019 17:23:34 GMT
87
+ Cache-Control:
88
+ - no-cache
89
+ Connection:
90
+ - Keep-Alive
91
+ Content-Type:
92
+ - text/xml; charset=utf-8
93
+ Transfer-Encoding:
94
+ - chunked
95
+ X-Frame-Options:
96
+ - DENY
97
+ body:
98
+ encoding: UTF-8
99
+ string: |-
100
+ <?xml version="1.0" encoding="UTF-8"?>
101
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
102
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
103
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
104
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
105
+ <soapenv:Body>
106
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="VirtualMachine">vm-22</obj><propSet><name>config</name><val xsi:type="VirtualMachineConfigInfo"><changeVersion>2019-04-09T11:43:16.576892Z</changeVersion><modified>1970-01-01T00:00:00Z</modified><name>DC1</name><guestFullName>Microsoft Windows Server 2016 (64-bit)</guestFullName><version>vmx-11</version><uuid>564d88d6-2aea-1c8e-826e-1f0dbc536ae6</uuid><createDate>2019-01-24T14:32:57.981331Z</createDate><instanceUuid>52d810bd-077b-368d-a86f-0b2ad84269f8</instanceUuid><npivTemporaryDisabled>true</npivTemporaryDisabled><locationId>564d88d6-2aea-1c8e-826e-1f0dbc536ae6</locationId><template>false</template><guestId>windows9Server64Guest</guestId><alternateGuestName></alternateGuestName><annotation></annotation><files><vmPathName>[storage1] DC1/DC1.vmx</vmPathName><snapshotDirectory>[storage1] DC1/</snapshotDirectory><suspendDirectory>[storage1] DC1/</suspendDirectory><logDirectory>[storage1] DC1/</logDirectory></files><tools><toolsVersion>10304</toolsVersion><toolsInstallType>guestToolsTypeMSI</toolsInstallType><afterPowerOn>true</afterPowerOn><afterResume>true</afterResume><beforeGuestStandby>true</beforeGuestStandby><beforeGuestShutdown>true</beforeGuestShutdown><toolsUpgradePolicy>manual</toolsUpgradePolicy><syncTimeWithHost>false</syncTimeWithHost><lastInstallInfo><counter>1</counter></lastInstallInfo></tools><flags><disableAcceleration>false</disableAcceleration><enableLogging>true</enableLogging><useToe>false</useToe><runWithDebugInfo>false</runWithDebugInfo><monitorType>release</monitorType><htSharing>any</htSharing><snapshotDisabled>false</snapshotDisabled><snapshotLocked>false</snapshotLocked><diskUuidEnabled>true</diskUuidEnabled><virtualMmuUsage>automatic</virtualMmuUsage><virtualExecUsage>hvAuto</virtualExecUsage><snapshotPowerOffBehavior>powerOff</snapshotPowerOffBehavior><recordReplayEnabled>false</recordReplayEnabled><faultToleranceType>unset</faultToleranceType><cbrcCacheEnabled>false</cbrcCacheEnabled><vvtdEnabled>false</vvtdEnabled><vbsEnabled>false</vbsEnabled></flags><defaultPowerOps><powerOffType>soft</powerOffType><suspendType>soft</suspendType><resetType>soft</resetType><defaultPowerOffType>soft</defaultPowerOffType><defaultSuspendType>hard</defaultSuspendType><defaultResetType>soft</defaultResetType><standbyAction>checkpoint</standbyAction></defaultPowerOps><hardware><numCPU>2</numCPU><numCoresPerSocket>1</numCoresPerSocket><memoryMB>4096</memoryMB><virtualICH7MPresent>false</virtualICH7MPresent><virtualSMCPresent>false</virtualSMCPresent><device xsi:type="VirtualIDEController"><key>200</key><deviceInfo><label>IDE 0</label><summary>IDE 0</summary></deviceInfo><busNumber>0</busNumber></device><device xsi:type="VirtualIDEController"><key>201</key><deviceInfo><label>IDE 1</label><summary>IDE 1</summary></deviceInfo><busNumber>1</busNumber></device><device xsi:type="VirtualPS2Controller"><key>300</key><deviceInfo><label>PS2 controller 0</label><summary>PS2 controller 0</summary></deviceInfo><busNumber>0</busNumber><device>600</device><device>700</device></device><device xsi:type="VirtualPCIController"><key>100</key><deviceInfo><label>PCI controller 0</label><summary>PCI controller 0</summary></deviceInfo><busNumber>0</busNumber><device>500</device><device>12000</device><device>14000</device><device>1000</device><device>15000</device><device>4000</device><device>4001</device></device><device xsi:type="VirtualSIOController"><key>400</key><deviceInfo><label>SIO controller 0</label><summary>SIO controller 0</summary></deviceInfo><busNumber>0</busNumber></device><device xsi:type="VirtualKeyboard"><key>600</key><deviceInfo><label>Keyboard </label><summary>Keyboard</summary></deviceInfo><controllerKey>300</controllerKey><unitNumber>0</unitNumber></device><device xsi:type="VirtualPointingDevice"><key>700</key><deviceInfo><label>Pointing device</label><summary>Pointing device; Device</summary></deviceInfo><backing xsi:type="VirtualPointingDeviceDeviceBackingInfo"><deviceName></deviceName><useAutoDetect>false</useAutoDetect><hostPointingDevice>autodetect</hostPointingDevice></backing><controllerKey>300</controllerKey><unitNumber>1</unitNumber></device><device xsi:type="VirtualMachineVideoCard"><key>500</key><deviceInfo><label>Video card </label><summary>Video card</summary></deviceInfo><controllerKey>100</controllerKey><unitNumber>0</unitNumber><videoRamSizeInKB>4096</videoRamSizeInKB><numDisplays>1</numDisplays><useAutoDetect>false</useAutoDetect><enable3DSupport>false</enable3DSupport><use3dRenderer>automatic</use3dRenderer><graphicsMemorySizeInKB>262144</graphicsMemorySizeInKB></device><device xsi:type="VirtualMachineVMCIDevice"><key>12000</key><deviceInfo><label>VMCI device</label><summary>Device on the virtual machine PCI bus that provides support for the virtual machine communication interface</summary></deviceInfo><slotInfo xsi:type="VirtualDevicePciBusSlotInfo"><pciSlotNumber>32</pciSlotNumber></slotInfo><controllerKey>100</controllerKey><unitNumber>17</unitNumber><id>-1135383834</id><allowUnrestrictedCommunication>false</allowUnrestrictedCommunication><filterEnable>true</filterEnable></device><device xsi:type="VirtualUSBXHCIController"><key>14000</key><deviceInfo><label>USB xHCI controller </label><summary>USB xHCI controller</summary></deviceInfo><slotInfo xsi:type="VirtualDevicePciBusSlotInfo"><pciSlotNumber>224</pciSlotNumber></slotInfo><controllerKey>100</controllerKey><unitNumber>23</unitNumber><busNumber>0</busNumber><autoConnectDevices>false</autoConnectDevices></device><device xsi:type="VirtualLsiLogicSASController"><key>1000</key><deviceInfo><label>SCSI controller 0</label><summary>LSI Logic SAS</summary></deviceInfo><slotInfo xsi:type="VirtualDevicePciBusSlotInfo"><pciSlotNumber>160</pciSlotNumber></slotInfo><controllerKey>100</controllerKey><unitNumber>3</unitNumber><busNumber>0</busNumber><device>2000</device><hotAddRemove>true</hotAddRemove><sharedBus>noSharing</sharedBus><scsiCtlrUnitNumber>7</scsiCtlrUnitNumber></device><device xsi:type="VirtualAHCIController"><key>15000</key><deviceInfo><label>SATA controller 0</label><summary>AHCI</summary></deviceInfo><slotInfo xsi:type="VirtualDevicePciBusSlotInfo"><pciSlotNumber>33</pciSlotNumber></slotInfo><controllerKey>100</controllerKey><unitNumber>24</unitNumber><busNumber>0</busNumber><device>16000</device></device><device xsi:type="VirtualCdrom"><key>16000</key><deviceInfo><label>CD/DVD drive 1</label><summary>ISO [storage1] Installations/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO</summary></deviceInfo><backing xsi:type="VirtualCdromIsoBackingInfo"><fileName>[storage1] Installations/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO</fileName><datastore type="Datastore">datastore-10</datastore></backing><connectable><startConnected>true</startConnected><allowGuestControl>true</allowGuestControl><connected>true</connected><status>ok</status></connectable><controllerKey>15000</controllerKey><unitNumber>0</unitNumber></device><device xsi:type="VirtualDisk"><key>2000</key><deviceInfo><label>Hard disk 1</label><summary>62,914,560 KB</summary></deviceInfo><backing xsi:type="VirtualDiskFlatVer2BackingInfo"><fileName>[storage1] DC1/DC1.vmdk</fileName><datastore type="Datastore">datastore-10</datastore><backingObjectId></backingObjectId><diskMode>persistent</diskMode><split>false</split><writeThrough>false</writeThrough><thinProvisioned>false</thinProvisioned><uuid>6000C295-8cfd-1ccc-e886-475a84e1f37d</uuid><contentId>73427c5fcbe18b98431ee5fe63097b0c</contentId><digestEnabled>false</digestEnabled><sharing>sharingNone</sharing></backing><controllerKey>1000</controllerKey><unitNumber>0</unitNumber><capacityInKB>62914560</capacityInKB><capacityInBytes>64424509440</capacityInBytes><shares><shares>1000</shares><level>normal</level></shares><storageIOAllocation><limit>-1</limit><shares><shares>1000</shares><level>normal</level></shares><reservation>0</reservation></storageIOAllocation><diskObjectId>3-2000</diskObjectId><nativeUnmanagedLinkedClone>false</nativeUnmanagedLinkedClone></device><device xsi:type="VirtualE1000e"><key>4000</key><deviceInfo><label>Network adapter 1</label><summary>VM Network</summary></deviceInfo><backing xsi:type="VirtualEthernetCardNetworkBackingInfo"><deviceName>VM Network</deviceName><useAutoDetect>false</useAutoDetect><network type="Network">network-13</network></backing><connectable><migrateConnect>unset</migrateConnect><startConnected>true</startConnected><allowGuestControl>true</allowGuestControl><connected>true</connected><status>ok</status></connectable><slotInfo xsi:type="VirtualDevicePciBusSlotInfo"><pciSlotNumber>192</pciSlotNumber></slotInfo><controllerKey>100</controllerKey><unitNumber>7</unitNumber><addressType>generated</addressType><macAddress>00:0c:29:53:6a:e6</macAddress><wakeOnLanEnabled>false</wakeOnLanEnabled><resourceAllocation><reservation>0</reservation><share><shares>50</shares><level>normal</level></share><limit>-1</limit></resourceAllocation><uptCompatibilityEnabled>false</uptCompatibilityEnabled></device><device xsi:type="VirtualE1000e"><key>4001</key><deviceInfo><label>Network adapter 2</label><summary>InternalNetwork</summary></deviceInfo><backing xsi:type="VirtualEthernetCardNetworkBackingInfo"><deviceName>InternalNetwork</deviceName><useAutoDetect>false</useAutoDetect><network type="Network">network-15</network></backing><connectable><migrateConnect>unset</migrateConnect><startConnected>true</startConnected><allowGuestControl>true</allowGuestControl><connected>true</connected><status>ok</status></connectable><slotInfo xsi:type="VirtualDevicePciBusSlotInfo"><pciSlotNumber>256</pciSlotNumber></slotInfo><controllerKey>100</controllerKey><unitNumber>8</unitNumber><addressType>assigned</addressType><macAddress>00:50:56:90:6d:7a</macAddress><wakeOnLanEnabled>true</wakeOnLanEnabled><resourceAllocation><reservation>0</reservation><share><shares>50</shares><level>normal</level></share><limit>-1</limit></resourceAllocation><uptCompatibilityEnabled>false</uptCompatibilityEnabled></device></hardware><cpuAllocation><reservation>0</reservation><limit>-1</limit><shares><shares>2000</shares><level>normal</level></shares></cpuAllocation><memoryAllocation><reservation>0</reservation><limit>-1</limit><shares><shares>40960</shares><level>normal</level></shares></memoryAllocation><latencySensitivity><level>normal</level></latencySensitivity><memoryHotAddEnabled>false</memoryHotAddEnabled><cpuHotAddEnabled>false</cpuHotAddEnabled><cpuHotRemoveEnabled>false</cpuHotRemoveEnabled><hotPlugMemoryLimit>4096</hotPlugMemoryLimit><hotPlugMemoryIncrementSize>0</hotPlugMemoryIncrementSize><extraConfig><key>nvram</key><value xsi:type="xsd:string">DC1.nvram</value></extraConfig><extraConfig><key>pciBridge0.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>svga.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge4.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge4.virtualDev</key><value xsi:type="xsd:string">pcieRootPort</value></extraConfig><extraConfig><key>pciBridge4.functions</key><value xsi:type="xsd:string">8</value></extraConfig><extraConfig><key>pciBridge5.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge5.virtualDev</key><value xsi:type="xsd:string">pcieRootPort</value></extraConfig><extraConfig><key>pciBridge5.functions</key><value xsi:type="xsd:string">8</value></extraConfig><extraConfig><key>pciBridge6.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge6.virtualDev</key><value xsi:type="xsd:string">pcieRootPort</value></extraConfig><extraConfig><key>pciBridge6.functions</key><value xsi:type="xsd:string">8</value></extraConfig><extraConfig><key>pciBridge7.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>pciBridge7.virtualDev</key><value xsi:type="xsd:string">pcieRootPort</value></extraConfig><extraConfig><key>pciBridge7.functions</key><value xsi:type="xsd:string">8</value></extraConfig><extraConfig><key>hpet0.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>sched.cpu.latencySensitivity</key><value xsi:type="xsd:string">normal</value></extraConfig><extraConfig><key>disk.EnableUUID</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>numa.autosize.cookie</key><value xsi:type="xsd:string">20001</value></extraConfig><extraConfig><key>numa.autosize.vcpu.maxPerVirtualNode</key><value xsi:type="xsd:string">2</value></extraConfig><extraConfig><key>sched.swap.derivedName</key><value xsi:type="xsd:string">/vmfs/volumes/5c49ca9b-a707a914-97d0-6805ca0c6705/DC1/DC1-750e2789.vswp</value></extraConfig><extraConfig><key>scsi0:0.redo</key><value xsi:type="xsd:string"></value></extraConfig><extraConfig><key>pciBridge0.pciSlotNumber</key><value xsi:type="xsd:string">17</value></extraConfig><extraConfig><key>pciBridge4.pciSlotNumber</key><value xsi:type="xsd:string">21</value></extraConfig><extraConfig><key>pciBridge5.pciSlotNumber</key><value xsi:type="xsd:string">22</value></extraConfig><extraConfig><key>pciBridge6.pciSlotNumber</key><value xsi:type="xsd:string">23</value></extraConfig><extraConfig><key>pciBridge7.pciSlotNumber</key><value xsi:type="xsd:string">24</value></extraConfig><extraConfig><key>scsi0.pciSlotNumber</key><value xsi:type="xsd:string">160</value></extraConfig><extraConfig><key>ethernet0.pciSlotNumber</key><value xsi:type="xsd:string">192</value></extraConfig><extraConfig><key>usb_xhci.pciSlotNumber</key><value xsi:type="xsd:string">224</value></extraConfig><extraConfig><key>vmci0.pciSlotNumber</key><value xsi:type="xsd:string">32</value></extraConfig><extraConfig><key>sata0.pciSlotNumber</key><value xsi:type="xsd:string">33</value></extraConfig><extraConfig><key>scsi0.sasWWID</key><value xsi:type="xsd:string">50 05 05 66 2a ea 1c 80</value></extraConfig><extraConfig><key>ethernet0.generatedAddressOffset</key><value xsi:type="xsd:string">0</value></extraConfig><extraConfig><key>vm.genid</key><value xsi:type="xsd:string">305336515256366739</value></extraConfig><extraConfig><key>vm.genidX</key><value xsi:type="xsd:string">6674865700987541297</value></extraConfig><extraConfig><key>monitor.phys_bits_used</key><value xsi:type="xsd:string">42</value></extraConfig><extraConfig><key>vmotion.checkpointFBSize</key><value xsi:type="xsd:string">4194304</value></extraConfig><extraConfig><key>vmotion.checkpointSVGAPrimarySize</key><value xsi:type="xsd:string">4194304</value></extraConfig><extraConfig><key>softPowerOff</key><value xsi:type="xsd:string">FALSE</value></extraConfig><extraConfig><key>tools.remindInstall</key><value xsi:type="xsd:string">FALSE</value></extraConfig><extraConfig><key>toolsInstallManager.lastInstallError</key><value xsi:type="xsd:string">0</value></extraConfig><extraConfig><key>svga.guestBackedPrimaryAware</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>toolsInstallManager.updateCounter</key><value xsi:type="xsd:string">1</value></extraConfig><extraConfig><key>ethernet1.pciSlotNumber</key><value xsi:type="xsd:string">256</value></extraConfig><extraConfig><key>usb_xhci:4.present</key><value xsi:type="xsd:string">TRUE</value></extraConfig><extraConfig><key>usb_xhci:4.deviceType</key><value xsi:type="xsd:string">hid</value></extraConfig><extraConfig><key>usb_xhci:4.port</key><value xsi:type="xsd:string">4</value></extraConfig><extraConfig><key>usb_xhci:4.parent</key><value xsi:type="xsd:string">-1</value></extraConfig><extraConfig><key>vmware.tools.internalversion</key><value xsi:type="xsd:string">10304</value></extraConfig><extraConfig><key>vmware.tools.requiredversion</key><value xsi:type="xsd:string">10304</value></extraConfig><extraConfig><key>migrate.hostLogState</key><value xsi:type="xsd:string">none</value></extraConfig><extraConfig><key>migrate.migrationId</key><value xsi:type="xsd:string">0</value></extraConfig><extraConfig><key>migrate.hostLog</key><value xsi:type="xsd:string">./DC1-750e2789.hlog</value></extraConfig><extraConfig><key>guestinfo.vmtools.buildNumber</key><value xsi:type="xsd:string">7253323</value></extraConfig><extraConfig><key>guestinfo.vmtools.description</key><value xsi:type="xsd:string">VMware Tools 10.2.0 build 7253323</value></extraConfig><extraConfig><key>guestinfo.vmtools.versionNumber</key><value xsi:type="xsd:string">10304</value></extraConfig><extraConfig><key>guestinfo.vmtools.versionString</key><value xsi:type="xsd:string">10.2.0</value></extraConfig><datastoreUrl><name>storage1</name><url>/vmfs/volumes/5c49ca9b-a707a914-97d0-6805ca0c6705</url></datastoreUrl><swapPlacement>inherit</swapPlacement><bootOptions><bootDelay>0</bootDelay><enterBIOSSetup>false</enterBIOSSetup><efiSecureBootEnabled>false</efiSecureBootEnabled><bootRetryEnabled>false</bootRetryEnabled><bootRetryDelay>10</bootRetryDelay><networkBootProtocol>ipv4</networkBootProtocol></bootOptions><vAssertsEnabled>false</vAssertsEnabled><changeTrackingEnabled>false</changeTrackingEnabled><firmware>bios</firmware><maxMksConnections>40</maxMksConnections><guestAutoLockEnabled>false</guestAutoLockEnabled><memoryReservationLockedToMax>false</memoryReservationLockedToMax><initialOverhead><initialMemoryReservation>61550592</initialMemoryReservation><initialSwapReservation>205807616</initialSwapReservation></initialOverhead><nestedHVEnabled>false</nestedHVEnabled><vPMCEnabled>false</vPMCEnabled><scheduledHardwareUpgradeInfo><upgradePolicy>never</upgradePolicy><scheduledHardwareUpgradeStatus>none</scheduledHardwareUpgradeStatus></scheduledHardwareUpgradeInfo><vFlashCacheReservation>0</vFlashCacheReservation><vmxConfigChecksum>Kb5if01Xz293NlhNv4J4+4x6Zng=</vmxConfigChecksum><messageBusTunnelEnabled>false</messageBusTunnelEnabled><guestIntegrityInfo><enabled>false</enabled></guestIntegrityInfo><migrateEncryption>opportunistic</migrateEncryption></val></propSet></returnval></RetrievePropertiesResponse>
107
+ </soapenv:Body>
108
+ </soapenv:Envelope>
109
+ http_version:
110
+ recorded_at: Thu, 18 Apr 2019 17:23:35 GMT
111
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,164 @@
1
+ ---
2
+ http_interactions:
3
+ # Get service context
4
+ <% user_name = vsphere_username.split('@').reverse.join('\\'); full_name = vsphere_username.split('@').join(' ') %>
5
+ - request:
6
+ method: post
7
+ uri: https://<%= vsphere_server %>/sdk
8
+ body:
9
+ encoding: UTF-8
10
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
11
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveServiceContent
12
+ xmlns="urn:vim25"><_this type="ServiceInstance">ServiceInstance</_this></RetrieveServiceContent></env:Body></env:Envelope>
13
+ headers:
14
+ Content-Type:
15
+ - text/xml; charset=utf-8
16
+ Soapaction:
17
+ - urn:vim25/6.7
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Accept:
21
+ - "*/*"
22
+ User-Agent:
23
+ - Ruby
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 16 Apr 2019 11:10:51 GMT
31
+ Cache-Control:
32
+ - no-cache
33
+ Connection:
34
+ - Keep-Alive
35
+ Content-Type:
36
+ - text/xml; charset=utf-8
37
+ X-Frame-Options:
38
+ - DENY
39
+ Content-Length:
40
+ - '4429'
41
+ body:
42
+ encoding: UTF-8
43
+ string: |-
44
+ <?xml version="1.0" encoding="UTF-8"?>
45
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
46
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
47
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
48
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
49
+ <soapenv:Body>
50
+ <RetrieveServiceContentResponse xmlns="urn:vim25"><returnval><rootFolder type="Folder">group-d1</rootFolder><propertyCollector type="PropertyCollector">propertyCollector</propertyCollector><viewManager type="ViewManager">ViewManager</viewManager><about><name>VMware vCenter Server</name><fullName>VMware vCenter Server 6.7.0 build-8170161</fullName><vendor>VMware, Inc.</vendor><version>6.7.0</version><build>8170161</build><localeVersion>INTL</localeVersion><localeBuild>000</localeBuild><osType>linux-x64</osType><productLineId>vpx</productLineId><apiType>VirtualCenter</apiType><apiVersion>6.7</apiVersion><instanceUuid>881e901f-7c49-44ba-a6f4-af760093bb37</instanceUuid><licenseProductName>VMware VirtualCenter Server</licenseProductName><licenseProductVersion>6.0</licenseProductVersion></about><setting type="OptionManager">VpxSettings</setting><userDirectory type="UserDirectory">UserDirectory</userDirectory><sessionManager type="SessionManager">SessionManager</sessionManager><authorizationManager type="AuthorizationManager">AuthorizationManager</authorizationManager><serviceManager type="ServiceManager">ServiceMgr</serviceManager><perfManager type="PerformanceManager">PerfMgr</perfManager><scheduledTaskManager type="ScheduledTaskManager">ScheduledTaskManager</scheduledTaskManager><alarmManager type="AlarmManager">AlarmManager</alarmManager><eventManager type="EventManager">EventManager</eventManager><taskManager type="TaskManager">TaskManager</taskManager><extensionManager type="ExtensionManager">ExtensionManager</extensionManager><customizationSpecManager type="CustomizationSpecManager">CustomizationSpecManager</customizationSpecManager><customFieldsManager type="CustomFieldsManager">CustomFieldsManager</customFieldsManager><diagnosticManager type="DiagnosticManager">DiagMgr</diagnosticManager><licenseManager type="LicenseManager">LicenseManager</licenseManager><searchIndex type="SearchIndex">SearchIndex</searchIndex><fileManager type="FileManager">FileManager</fileManager><datastoreNamespaceManager type="DatastoreNamespaceManager">DatastoreNamespaceManager</datastoreNamespaceManager><virtualDiskManager type="VirtualDiskManager">virtualDiskManager</virtualDiskManager><snmpSystem type="HostSnmpSystem">SnmpSystem</snmpSystem><vmProvisioningChecker type="VirtualMachineProvisioningChecker">ProvChecker</vmProvisioningChecker><vmCompatibilityChecker type="VirtualMachineCompatibilityChecker">CompatChecker</vmCompatibilityChecker><ovfManager type="OvfManager">OvfManager</ovfManager><ipPoolManager type="IpPoolManager">IpPoolManager</ipPoolManager><dvSwitchManager type="DistributedVirtualSwitchManager">DVSManager</dvSwitchManager><hostProfileManager type="HostProfileManager">HostProfileManager</hostProfileManager><clusterProfileManager type="ClusterProfileManager">ClusterProfileManager</clusterProfileManager><complianceManager type="ProfileComplianceManager">MoComplianceManager</complianceManager><localizationManager type="LocalizationManager">LocalizationManager</localizationManager><storageResourceManager type="StorageResourceManager">StorageResourceManager</storageResourceManager><guestOperationsManager type="GuestOperationsManager">guestOperationsManager</guestOperationsManager><overheadMemoryManager type="OverheadMemoryManager">OverheadMemoryManager</overheadMemoryManager><certificateManager type="CertificateManager">certificateManager</certificateManager><ioFilterManager type="IoFilterManager">IoFilterManager</ioFilterManager><vStorageObjectManager type="VcenterVStorageObjectManager">VStorageObjectManager</vStorageObjectManager><hostSpecManager type="HostSpecificationManager">HostSpecificationManager</hostSpecManager><cryptoManager type="CryptoManagerKmip">CryptoManager</cryptoManager><healthUpdateManager type="HealthUpdateManager">HealthUpdateManager</healthUpdateManager><failoverClusterConfigurator type="FailoverClusterConfigurator">FailoverClusterConfigurator</failoverClusterConfigurator><failoverClusterManager type="FailoverClusterManager">FailoverClusterManager</failoverClusterManager></returnval></RetrieveServiceContentResponse>
51
+ </soapenv:Body>
52
+ </soapenv:Envelope>
53
+ http_version:
54
+ recorded_at: Tue, 16 Apr 2019 11:10:52 GMT
55
+ # login
56
+ - request:
57
+ method: post
58
+ uri: https://<%= vsphere_server %>/sdk
59
+ body:
60
+ encoding: UTF-8
61
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
62
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><Login xmlns="urn:vim25"><_this
63
+ type="SessionManager">SessionManager</_this><userName><%= vsphere_username %></userName><password><%= vsphere_password %></password></Login></env:Body></env:Envelope>
64
+ headers:
65
+ Content-Type:
66
+ - text/xml; charset=utf-8
67
+ Soapaction:
68
+ - urn:vim25/6.7
69
+ Accept-Encoding:
70
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
+ Accept:
72
+ - "*/*"
73
+ User-Agent:
74
+ - Ruby
75
+ response:
76
+ status:
77
+ code: 200
78
+ message: OK
79
+ headers:
80
+ Date:
81
+ - Tue, 16 Apr 2019 11:10:51 GMT
82
+ Set-Cookie:
83
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
84
+ Secure;
85
+ Cache-Control:
86
+ - no-cache
87
+ Connection:
88
+ - Keep-Alive
89
+ Content-Type:
90
+ - text/xml; charset=utf-8
91
+ X-Frame-Options:
92
+ - DENY
93
+ Content-Length:
94
+ - '836'
95
+ body:
96
+ encoding: UTF-8
97
+ string: |-
98
+ <?xml version="1.0" encoding="UTF-8"?>
99
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
100
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
101
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
102
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
103
+ <soapenv:Body>
104
+ <LoginResponse xmlns="urn:vim25"><returnval><key>5207b512-8abd-2dbc-5154-994b3838139a</key><userName><%= user_name %></userName><fullName><%= full_name %></fullName><loginTime>2019-04-16T11:10:51.713677Z</loginTime><lastActiveTime>2019-04-16T11:10:51.713677Z</lastActiveTime><locale>en</locale><messageLocale>en</messageLocale><extensionSession>false</extensionSession><ipAddress>127.0.0.1</ipAddress><userAgent>Ruby</userAgent><callCount>0</callCount></returnval></LoginResponse>
105
+ </soapenv:Body>
106
+ </soapenv:Envelope>
107
+ http_version:
108
+ recorded_at: Tue, 16 Apr 2019 11:10:52 GMT
109
+ # Retrieve session
110
+ - request:
111
+ method: post
112
+ uri: https://<%= vsphere_server %>/sdk
113
+ body:
114
+ encoding: UTF-8
115
+ string: <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
116
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties
117
+ xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet
118
+ xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>SessionManager</type><pathSet>currentSession</pathSet></propSet><objectSet
119
+ xsi:type="ObjectSpec"><obj type="SessionManager">SessionManager</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
120
+ headers:
121
+ Content-Type:
122
+ - text/xml; charset=utf-8
123
+ Soapaction:
124
+ - urn:vim25/6.7
125
+ Cookie:
126
+ - vmware_soap_session="0f1d530a6c49a96a4e0a69811581f6f016de5136"; Path=/; HttpOnly;
127
+ Secure;
128
+ Accept-Encoding:
129
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
130
+ Accept:
131
+ - "*/*"
132
+ User-Agent:
133
+ - Ruby
134
+ response:
135
+ status:
136
+ code: 200
137
+ message: OK
138
+ headers:
139
+ Date:
140
+ - Tue, 16 Apr 2019 11:10:51 GMT
141
+ Cache-Control:
142
+ - no-cache
143
+ Connection:
144
+ - Keep-Alive
145
+ Content-Type:
146
+ - text/xml; charset=utf-8
147
+ X-Frame-Options:
148
+ - DENY
149
+ Content-Length:
150
+ - '989'
151
+ body:
152
+ encoding: UTF-8
153
+ string: |-
154
+ <?xml version="1.0" encoding="UTF-8"?>
155
+ <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
156
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
157
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
158
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
159
+ <soapenv:Body>
160
+ <RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="SessionManager">SessionManager</obj><propSet><name>currentSession</name><val xsi:type="UserSession"><key>5207b512-8abd-2dbc-5154-994b3838139a</key><userName><%= user_name %></userName><fullName><%= full_name %></fullName><loginTime>2019-04-16T11:10:51.713677Z</loginTime><lastActiveTime>2019-04-16T11:10:51.713677Z</lastActiveTime><locale>en</locale><messageLocale>en</messageLocale><extensionSession>false</extensionSession><ipAddress>10.40.204.30</ipAddress><userAgent>Ruby</userAgent><callCount>0</callCount></val></propSet></returnval></RetrievePropertiesResponse>
161
+ </soapenv:Body>
162
+ </soapenv:Envelope>
163
+ http_version:
164
+ recorded_at: Tue, 16 Apr 2019 11:10:52 GMT
data/tests/helper.rb ADDED
@@ -0,0 +1,6 @@
1
+ require 'mocha/api'
2
+ Shindo::Tests.send(:include, Mocha::API)
3
+
4
+ require 'minitest/autorun'
5
+
6
+ require File.expand_path('../../lib/fog/vsphere', __FILE__)
@@ -0,0 +1,9 @@
1
+ Fog.mock! if ENV['FOG_MOCK'] == 'true'
2
+
3
+ if Fog.mock?
4
+ Fog.credentials = {
5
+ vsphere_server: 'fake_vsphere_server',
6
+ vsphere_username: 'fake_vsphere_username',
7
+ vsphere_password: 'fake_vsphere_password'
8
+ }.merge(Fog.credentials)
9
+ end
@@ -0,0 +1,18 @@
1
+ Shindo.tests('Fog::Compute[:vsphere] | cluster collection', ['vsphere']) do
2
+ compute = Fog::Compute[:vsphere]
3
+
4
+ tests('Cluster collection') do
5
+ clusters = compute.datacenters.first.clusters
6
+
7
+ test('should not be empty') { !clusters.empty? }
8
+ test('should be a kind of Fog::Vsphere::Compute::Clusters') { clusters.is_a? Fog::Vsphere::Compute::Clusters }
9
+ test('should get a cluster') { clusters.get('Solutionscluster').id == '1d4d9a3f-e4e8-4c40-b7fc-263850068fa4' }
10
+ end
11
+
12
+ tests('A cluster should') do
13
+ cluster = compute.datacenters.first.clusters.get('Solutionscluster')
14
+
15
+ test('have datastores') { cluster.datastores.first.is_a? Fog::Vsphere::Compute::Datastore }
16
+ test('have networks') { cluster.networks.first.is_a? Fog::Vsphere::Compute::Network }
17
+ end
18
+ end