ruby_vcloud_sdk 0.4.8 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +296 -0
- data/lib/ruby_vcloud_sdk.rb +0 -4
- data/lib/ruby_vcloud_sdk/catalog.rb +377 -0
- data/lib/ruby_vcloud_sdk/catalog_item.rb +26 -0
- data/lib/ruby_vcloud_sdk/client.rb +25 -882
- data/lib/ruby_vcloud_sdk/config.rb +1 -7
- data/lib/ruby_vcloud_sdk/connection/connection.rb +114 -54
- data/lib/ruby_vcloud_sdk/cpu.rb +11 -0
- data/lib/ruby_vcloud_sdk/disk.rb +55 -0
- data/lib/ruby_vcloud_sdk/edge_gateway.rb +32 -0
- data/lib/ruby_vcloud_sdk/infrastructure.rb +135 -0
- data/lib/ruby_vcloud_sdk/ip_ranges.rb +95 -0
- data/lib/ruby_vcloud_sdk/memory.rb +11 -0
- data/lib/ruby_vcloud_sdk/network.rb +32 -0
- data/lib/ruby_vcloud_sdk/powerable.rb +78 -0
- data/lib/ruby_vcloud_sdk/resources.rb +13 -0
- data/lib/ruby_vcloud_sdk/session.rb +46 -0
- data/lib/ruby_vcloud_sdk/vapp.rb +122 -0
- data/lib/ruby_vcloud_sdk/vdc.rb +210 -0
- data/lib/ruby_vcloud_sdk/vdc_storage_profile.rb +23 -0
- data/lib/ruby_vcloud_sdk/version.rb +1 -1
- data/lib/ruby_vcloud_sdk/vm.rb +132 -0
- data/lib/ruby_vcloud_sdk/xml/constants.rb +6 -4
- data/lib/ruby_vcloud_sdk/xml/wrapper.rb +109 -30
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes.rb +45 -2
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_catalog.rb +13 -4
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/allocated_ip_addresses.rb +9 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/catalog_item.rb +6 -14
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk.rb +24 -14
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk_attach_or_detach_params.rb +0 -2
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk_create_params.rb +1 -3
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/edge_gateway.rb +13 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/gateway_interface.rb +22 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb +4 -4
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_address.rb +10 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_range.rb +13 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_ranges.rb +9 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_scope.rb +6 -32
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/item.rb +1 -7
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/link.rb +14 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb +4 -20
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/media_insert_or_eject_params.rb +1 -3
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/network_connection_section.rb +0 -4
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/nic_item_wrapper.rb +0 -2
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/org.rb +44 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/org_vdc_network.rb +11 -3
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/query_result_records.rb +14 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/recompose_vapp_params.rb +42 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/session.rb +5 -5
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/supported_versions.rb +19 -0
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/task.rb +1 -1
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/upload_vapp_template_params.rb +2 -4
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb +13 -22
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp_template.rb +0 -2
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vcloud.rb +5 -3
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vdc.rb +72 -15
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/virtual_hardware_section.rb +8 -6
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vm.rb +29 -25
- data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vms.rb +12 -0
- data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminCatalog.xml +6 -1
- data/lib/ruby_vcloud_sdk/xml/xml_templates/RecomposeVAppParams.xml +16 -1
- metadata +116 -233
- data/README +0 -1
- data/Rakefile +0 -50
- data/lib/ruby_vcloud_sdk/util.rb +0 -21
- data/spec/assets/admin_org_response.xml +0 -75
- data/spec/assets/catalog_add_item_response.xml +0 -8
- data/spec/assets/catalog_add_vapp_request.xml +0 -5
- data/spec/assets/catalog_item_added_response.xml +0 -19
- data/spec/assets/catalog_response.xml +0 -19
- data/spec/assets/existing_media_busy_response.xml +0 -19
- data/spec/assets/existing_media_catalog_item.xml +0 -8
- data/spec/assets/existing_media_delete_task_done.xml +0 -6
- data/spec/assets/existing_media_done_response.xml +0 -11
- data/spec/assets/existing_vapp_resolver_response.xml +0 -3
- data/spec/assets/existing_vapp_template_catalog_resolver_response.xml +0 -3
- data/spec/assets/existing_vapp_template_instantiate_response.xml +0 -20
- data/spec/assets/existing_vapp_template_instantiate_task_error_response.xml +0 -7
- data/spec/assets/existing_vapp_template_instantiate_task_start_response.xml +0 -7
- data/spec/assets/existing_vapp_template_instantiate_task_success_response.xml +0 -7
- data/spec/assets/existing_vapp_template_item_response.xml +0 -8
- data/spec/assets/existing_vapp_template_ready_response.xml +0 -79
- data/spec/assets/finalize_upload_task_done_response.xml +0 -7
- data/spec/assets/finalize_upload_task_response.xml +0 -7
- data/spec/assets/indy_disk_attach_request.xml +0 -3
- data/spec/assets/indy_disk_attach_task.xml +0 -6
- data/spec/assets/indy_disk_attach_task_error.xml +0 -6
- data/spec/assets/indy_disk_create_error.xml +0 -1
- data/spec/assets/indy_disk_create_request.xml +0 -4
- data/spec/assets/indy_disk_create_response.xml +0 -19
- data/spec/assets/indy_disk_delete_task.xml +0 -6
- data/spec/assets/indy_disk_detach_request.xml +0 -3
- data/spec/assets/indy_disk_detach_task.xml +0 -6
- data/spec/assets/indy_disk_response.xml +0 -11
- data/spec/assets/instantiated_suspended_vapp_response.xml +0 -209
- data/spec/assets/instantiated_vapp_delelete_done_task.xml +0 -5
- data/spec/assets/instantiated_vapp_delelete_running_task.xml +0 -6
- data/spec/assets/instantiated_vapp_network_config_add_network_request.xml +0 -36
- data/spec/assets/instantiated_vapp_network_config_modify_network_task_success.xml +0 -6
- data/spec/assets/instantiated_vapp_network_config_remove_network_request.xml +0 -6
- data/spec/assets/instantiated_vapp_network_config_section_response.xml +0 -17
- data/spec/assets/instantiated_vapp_off_response.xml +0 -206
- data/spec/assets/instantiated_vapp_on_response.xml +0 -205
- data/spec/assets/instantiated_vapp_power_task_running.xml +0 -6
- data/spec/assets/instantiated_vapp_power_task_success.xml +0 -6
- data/spec/assets/instantiated_vapp_response.xml +0 -205
- data/spec/assets/instantiated_vm_change_task_running.xml +0 -6
- data/spec/assets/instantiated_vm_change_task_success.xml +0 -6
- data/spec/assets/instantiated_vm_cpu_response.xml +0 -11
- data/spec/assets/instantiated_vm_insert_media_task_done.xml +0 -6
- data/spec/assets/instantiated_vm_memory_response.xml +0 -11
- data/spec/assets/instantiated_vm_modify_task_running.xml +0 -6
- data/spec/assets/instantiated_vm_modify_task_success.xml +0 -5
- data/spec/assets/instantiated_vm_network_section_response.xml +0 -11
- data/spec/assets/instantiated_vm_response.xml +0 -149
- data/spec/assets/media_add_to_catalog_request.xml +0 -5
- data/spec/assets/media_add_to_catalog_response.xml +0 -8
- data/spec/assets/media_delete_task_done.xml +0 -6
- data/spec/assets/media_upload_pending_response.xml +0 -13
- data/spec/assets/media_upload_request.xml +0 -2
- data/spec/assets/metadata_set_request.xml +0 -3
- data/spec/assets/metadata_set_task_done.xml +0 -6
- data/spec/assets/org_network_response.xml +0 -22
- data/spec/assets/reconfigure_vm_request.xml +0 -133
- data/spec/assets/reconfigure_vm_task.xml +0 -8
- data/spec/assets/session.xml +0 -7
- data/spec/assets/test-config.yml +0 -38
- data/spec/assets/undeploy_params.xml +0 -1
- data/spec/assets/vapp_template_catalog_resolver_response.xml +0 -3
- data/spec/assets/vapp_template_delelete_done_task.xml +0 -5
- data/spec/assets/vapp_template_delelete_running_task.xml +0 -6
- data/spec/assets/vapp_template_instantiate_request.xml +0 -8
- data/spec/assets/vapp_template_instantiate_with_locality_request.xml +0 -14
- data/spec/assets/vapp_template_no_disk_response.xml +0 -27
- data/spec/assets/vapp_template_ready_response.xml +0 -79
- data/spec/assets/vapp_template_upload_complete.xml +0 -28
- data/spec/assets/vapp_template_upload_failed.xml +0 -28
- data/spec/assets/vapp_template_upload_request.xml +0 -4
- data/spec/assets/vapp_template_upload_response.xml +0 -25
- data/spec/assets/vcloud_response.xml +0 -56
- data/spec/assets/vdc_response.xml +0 -57
- data/spec/spec_helper.rb +0 -107
- data/spec/unit/client_response.rb +0 -700
- data/spec/unit/client_spec.rb +0 -1152
@@ -1,700 +0,0 @@
|
|
1
|
-
module VCloudSdk
|
2
|
-
module Test
|
3
|
-
module Response
|
4
|
-
vcd = VCloudSdk::Test::vcd_settings
|
5
|
-
|
6
|
-
USERNAME = vcd["user"]
|
7
|
-
ORGANIZATION = vcd["entities"]["organization"]
|
8
|
-
OVDC = vcd["entities"]["virtual_datacenter"]
|
9
|
-
VAPP_CATALOG_NAME = vcd["entities"]["vapp_catalog"]
|
10
|
-
CATALOG_ID = "cfab326c-ab71-445c-bc0b-abf15239de8b"
|
11
|
-
VDC_ID = "a974dae0-d10c-4f7c-9f4f-4bdaf7826a3a"
|
12
|
-
URL = vcd["url"]
|
13
|
-
URLN = URI.parse(vcd["url"]).normalize.to_s
|
14
|
-
VAPP_TEMPLATE_NAME = "test_vapp_template"
|
15
|
-
EXISTING_VAPP_TEMPLATE_NAME = "existing_template"
|
16
|
-
EXISTING_VAPP_TEMPLATE_ID = "085f0844-9feb-43bd-b1df-3260218f5cb6"
|
17
|
-
EXISTING_VAPP_NAME = "existing_vapp"
|
18
|
-
EXISTING_VAPP_ID = "085f0844-9feb-43bd-b1df-3260218f5cb2"
|
19
|
-
EXISTING_VAPP_URN = "urn:vcloud:vapp:085f0844-9feb-43bd-b1df-3260218f5cb2"
|
20
|
-
EXISTING_VAPP_RESOLVER_URL = "#{URL}/api/entity/#{EXISTING_VAPP_URN}"
|
21
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_ID = "521f9fc3-410f-433c-b877-1d072478c3c5"
|
22
|
-
INSTANTIATED_VM_ID = "048e8cd8-adc8-49c6-80ee-a430ecf8f246"
|
23
|
-
CPU = "2"
|
24
|
-
MEMORY = "128"
|
25
|
-
VM_NAME = "vm1"
|
26
|
-
VAPP_TEMPLATE_VM_URL = "#{URL}/api/vAppTemplate/vm-49acc996-0ee4-4b36-a5b5-822f3042e26c"
|
27
|
-
CHANGED_VM_NAME = "changed_vm1"
|
28
|
-
CHANGED_VM_DESCRIPTION = "changed_description"
|
29
|
-
CHANGED_VM_CPU = "3"
|
30
|
-
CHANGED_VM_MEMORY = "712"
|
31
|
-
CHANGED_VM_DISK = "3072"
|
32
|
-
MEDIA_NAME = "test_media"
|
33
|
-
|
34
|
-
EXISTING_MEDIA_NAME = "existing_test_media"
|
35
|
-
EXISTING_MEDIA_ID = "abcf0844-9feb-43bd-b1df-3262218f5cb2"
|
36
|
-
EXISTING_MEDIA_CATALOG_ID = "cacef844-9feb-43bd-b1df-3262218f5cb2"
|
37
|
-
|
38
|
-
VAPP_ID = "c032c1a3-21a2-4ac2-8e98-0cc29229e10c"
|
39
|
-
VM1_ID = "49acc996-0ee4-4b36-a5b5-822f3042e26c"
|
40
|
-
LOGIN_LINK = "#{URL}/api/sessions"
|
41
|
-
VAPP_NAME = "test_vapp"
|
42
|
-
|
43
|
-
ORG_NETWORK_NAME = "vcap_net"
|
44
|
-
ORG_NETWORK_ID = "0ae50dfd-a5eb-44e9-9c26-5c1a00a3e1a4"
|
45
|
-
VAPP_NETWORK_NAME = "vcap_net"
|
46
|
-
|
47
|
-
INDY_DISK_NAME = "indy_disk_1"
|
48
|
-
INDY_DISK_ID = "447e14ee-52a7-45ef-93ba-666f7879490d"
|
49
|
-
INDY_DISK_URL = "#{URL}/api/disk/#{INDY_DISK_ID}"
|
50
|
-
INDY_DISK_SIZE = 200
|
51
|
-
SCSI_CONTROLLER_ID = "2"
|
52
|
-
|
53
|
-
|
54
|
-
SESSION = (File.read(Test.spec_asset("session.xml")) %
|
55
|
-
[USERNAME, ORGANIZATION, URL, URL, URL, URL, URL]).strip
|
56
|
-
|
57
|
-
ADMIN_VCLOUD_LINK = "#{URL}/api/admin/"
|
58
|
-
|
59
|
-
VCLOUD_RESPONSE = (File.read(Test.spec_asset("vcloud_response.xml")) %
|
60
|
-
[URL, URL, ORGANIZATION, URL, URL, URL, URL, URL, URL, URL,
|
61
|
-
URL, URL, URL, URL, URL, URL, URL, URL, URL, URL,
|
62
|
-
URL, URL, URL, URL, URL, URL, URL, URL, URL, URL,
|
63
|
-
URL, URL, URL, URL, URL, URL, URL, URL, URL, URL,
|
64
|
-
URL, URL, URL, URL, URL, URL, URL, URL, URL, URL]).strip
|
65
|
-
|
66
|
-
ADMIN_ORG_LINK = "#{URL}/api/admin/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"
|
67
|
-
|
68
|
-
ADMIN_ORG_RESPONSE = (File.read(Test.spec_asset("admin_org_response.xml")) %
|
69
|
-
[ORGANIZATION, URL, URL, URL, URL, URL, URL, URL, URL, URL, URL, URL,
|
70
|
-
ORGANIZATION, URL, URL, URL, URL, URL, URL, URL, URL, URL, URL, URL,
|
71
|
-
URL, URL, URL, URL, URL, URL, URL, URL, URL, VAPP_CATALOG_NAME, URL,
|
72
|
-
CATALOG_ID, OVDC, URL, VDC_ID]).strip
|
73
|
-
|
74
|
-
ORG_NETWORK_LINK = "#{URL}/api/network/#{ORG_NETWORK_ID}"
|
75
|
-
|
76
|
-
VDC_LINK = "#{URL}/api/vdc/#{VDC_ID}"
|
77
|
-
|
78
|
-
MEDIA_UPLOAD_LINK = "#{URL}/api/vdc/#{VDC_ID}/media"
|
79
|
-
|
80
|
-
VDC_INDY_DISKS_LINK = "#{URL}/api/vdc/#{VDC_ID}/disk"
|
81
|
-
|
82
|
-
VDC_RESPONSE = (File.read(Test.spec_asset("vdc_response.xml")) %
|
83
|
-
[OVDC, VDC_ID, URL, VDC_ID, URL, URL, URL, VDC_ID, URL, VDC_ID,
|
84
|
-
MEDIA_UPLOAD_LINK, URL, VDC_ID, URL, VDC_ID, URL, VDC_ID, URL, VDC_ID,
|
85
|
-
URL, VDC_ID, URL, VDC_ID, VDC_INDY_DISKS_LINK, EXISTING_VAPP_NAME,
|
86
|
-
URL, EXISTING_VAPP_ID, EXISTING_VAPP_TEMPLATE_NAME, URL,
|
87
|
-
EXISTING_VAPP_TEMPLATE_ID, EXISTING_MEDIA_NAME, URL, EXISTING_MEDIA_ID,
|
88
|
-
INDY_DISK_NAME, INDY_DISK_URL, ORG_NETWORK_NAME, ORG_NETWORK_LINK]).strip
|
89
|
-
|
90
|
-
VDC_VAPP_UPLOAD_LINK = "#{URL}/api/vdc/#{VDC_ID}/action/uploadVAppTemplate"
|
91
|
-
|
92
|
-
|
93
|
-
VAPP_TEMPLATE_UPLOAD_REQUEST = (File.read(Test.spec_asset(
|
94
|
-
"vapp_template_upload_request.xml")) % [VAPP_TEMPLATE_NAME]).strip
|
95
|
-
|
96
|
-
VAPP_TEMPLATE_UPLOAD_OVF_WAITING_RESPONSE = (File.read(Test.spec_asset(
|
97
|
-
"vapp_template_upload_response.xml")) % [VAPP_TEMPLATE_NAME, URL,
|
98
|
-
URL, URL, VDC_ID, URL, URL, USERNAME, URL, URL, URL, URL]).strip
|
99
|
-
|
100
|
-
VAPP_TEMPLATE_LINK = "#{URL}/api/vAppTemplate/vappTemplate-c032c1a3-21a2-4ac2-8e98-0cc29229e10c"
|
101
|
-
|
102
|
-
VAPP_TEMPLATE_UPLOAD_OVF_LINK = "#{URL}/transfer/22467867-7ada-4a55-a9cb-e05aa30a4f96/descriptor.ovf"
|
103
|
-
|
104
|
-
VAPP_TEMPLATE_NO_DISKS_RESPONSE = (File.read(Test.spec_asset(
|
105
|
-
"vapp_template_no_disk_response.xml")) % [VAPP_TEMPLATE_NAME, URL,
|
106
|
-
URL, URL, VDC_ID, URL, URL, URL, USERNAME, URL, URL, URL, URL]).strip
|
107
|
-
|
108
|
-
VAPP_TEMPLATE_DISK_UPLOAD_1 = "#{URL}/transfer/62137697-8d51-4df6-9689-0b7f84ccc096/haoUnOS2VMs-disk1.vmdk"
|
109
|
-
|
110
|
-
VAPP_TEMPLATE_UPLOAD_COMPLETE = (File.read(Test.spec_asset(
|
111
|
-
"vapp_template_upload_complete.xml")) % [VAPP_TEMPLATE_NAME, VAPP_ID,
|
112
|
-
URL, VAPP_ID, URL, URL, VDC_ID, URL, VAPP_ID, VAPP_TEMPLATE_NAME,
|
113
|
-
VAPP_ID, URL, URL, VAPP_TEMPLATE_NAME, URL, VAPP_ID, USERNAME, URL,
|
114
|
-
USERNAME, URL, VAPP_TEMPLATE_NAME, URL, URL, VAPP_ID, URL, VAPP_ID,
|
115
|
-
URL, VAPP_ID]).strip
|
116
|
-
|
117
|
-
VAPP_TEMPLATE_UPLOAD_FAILED = (File.read(Test.spec_asset(
|
118
|
-
"vapp_template_upload_failed.xml")) % [VAPP_TEMPLATE_NAME, VAPP_ID,
|
119
|
-
URL, VAPP_ID, URL, URL, VDC_ID, URL, VAPP_ID, VAPP_TEMPLATE_NAME,
|
120
|
-
VAPP_ID, URL, URL, VAPP_TEMPLATE_NAME, URL, VAPP_ID, USERNAME, URL,
|
121
|
-
USERNAME, URL, VAPP_TEMPLATE_NAME, URL, URL, VAPP_ID, URL, VAPP_ID,
|
122
|
-
URL, VAPP_ID]).strip
|
123
|
-
|
124
|
-
CATALOG_LINK = "#{URL}/api/admin/catalog/#{CATALOG_ID}"
|
125
|
-
|
126
|
-
CATALOG_ADD_ITEM_LINK = "#{URL}/api/catalog/#{CATALOG_ID}/catalogItems"
|
127
|
-
|
128
|
-
EXISTING_MEDIA_LINK = "#{URL}/api/media/#{EXISTING_MEDIA_ID}"
|
129
|
-
|
130
|
-
EXISTING_MEDIA_BUSY_RESPONSE = (File.read(Test.spec_asset(
|
131
|
-
"existing_media_busy_response.xml")) % [EXISTING_MEDIA_NAME,
|
132
|
-
EXISTING_MEDIA_ID, EXISTING_MEDIA_LINK, URL, EXISTING_MEDIA_NAME,
|
133
|
-
EXISTING_MEDIA_ID, URL, URL, EXISTING_MEDIA_NAME, URL,
|
134
|
-
EXISTING_MEDIA_ID, URL, URL, URL, USERNAME, URL]).strip
|
135
|
-
|
136
|
-
EXISTING_MEDIA_DONE_RESPONSE = (File.read(Test.spec_asset(
|
137
|
-
"existing_media_done_response.xml")) % [EXISTING_MEDIA_NAME,
|
138
|
-
EXISTING_MEDIA_ID, EXISTING_MEDIA_LINK, URL, URL, EXISTING_MEDIA_LINK,
|
139
|
-
URL, EXISTING_MEDIA_ID, URL, EXISTING_MEDIA_ID, URL,
|
140
|
-
EXISTING_MEDIA_ID, USERNAME, URL]).strip
|
141
|
-
|
142
|
-
EXISTING_MEDIA_CATALOG_ITEM_LINK = "#{URL}/api/catalogItem/#{EXISTING_MEDIA_CATALOG_ID}"
|
143
|
-
|
144
|
-
EXISTING_MEDIA_CATALOG_ITEM = (File.read(Test.spec_asset(
|
145
|
-
"existing_media_catalog_item.xml")) % [EXISTING_MEDIA_NAME,
|
146
|
-
EXISTING_MEDIA_CATALOG_ID, EXISTING_MEDIA_CATALOG_ITEM_LINK, URL, URL,
|
147
|
-
EXISTING_MEDIA_CATALOG_ID, URL, EXISTING_MEDIA_CATALOG_ID, URL,
|
148
|
-
EXISTING_MEDIA_CATALOG_ID, EXISTING_MEDIA_NAME,
|
149
|
-
EXISTING_MEDIA_LINK]).strip
|
150
|
-
|
151
|
-
EXISTING_MEDIA_DELETE_TASK_ID = "e0491c4a-d9e9-4b86-8c46-2d7736b8f82a"
|
152
|
-
|
153
|
-
EXISTING_MEDIA_DELETE_TASK_LINK = "#{URL}/api/task/#{EXISTING_MEDIA_DELETE_TASK_ID}"
|
154
|
-
|
155
|
-
EXISTING_MEDIA_DELETE_TASK_DONE = (File.read(Test.spec_asset(
|
156
|
-
"existing_media_delete_task_done.xml")) %
|
157
|
-
[EXISTING_MEDIA_DELETE_TASK_ID, EXISTING_MEDIA_DELETE_TASK_LINK, URL,
|
158
|
-
EXISTING_MEDIA_DELETE_TASK_ID, EXISTING_MEDIA_LINK, USERNAME, URL,
|
159
|
-
URL]).strip
|
160
|
-
|
161
|
-
CATALOG_RESPONSE = (File.read(Test.spec_asset("catalog_response.xml")) %
|
162
|
-
[VAPP_CATALOG_NAME, CATALOG_ID, URL, CATALOG_ID, URL, URL, URL,
|
163
|
-
CATALOG_ID, URL, CATALOG_ID, CATALOG_ADD_ITEM_LINK, URL, CATALOG_ID,
|
164
|
-
URL, CATALOG_ID, URL, CATALOG_ID, URL, EXISTING_VAPP_TEMPLATE_NAME,
|
165
|
-
URL, EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_ID, EXISTING_MEDIA_NAME,
|
166
|
-
EXISTING_MEDIA_CATALOG_ITEM_LINK]).strip
|
167
|
-
|
168
|
-
CATALOG_ADD_VAPP_REQUEST = (File.read(Test.spec_asset(
|
169
|
-
"catalog_add_vapp_request.xml")) % [VAPP_TEMPLATE_NAME,
|
170
|
-
VAPP_TEMPLATE_NAME, VAPP_ID, URL, VAPP_ID]).strip
|
171
|
-
|
172
|
-
CATALOG_ADD_ITEM_RESPONSE = (File.read(Test.spec_asset(
|
173
|
-
"catalog_add_item_response.xml")) % [VAPP_TEMPLATE_NAME, URL, URL, URL,
|
174
|
-
CATALOG_ID, URL, URL, URL, VAPP_TEMPLATE_NAME, URL, VAPP_ID]).strip
|
175
|
-
|
176
|
-
CATALOG_ITEM_ADDED_RESPONSE = (File.read(Test.spec_asset(
|
177
|
-
"catalog_item_added_response.xml")) % [VAPP_CATALOG_NAME, CATALOG_ID,
|
178
|
-
URL, CATALOG_ID, URL, URL, URL, CATALOG_ID, URL, CATALOG_ID, URL,
|
179
|
-
CATALOG_ID, URL, CATALOG_ID, URL, CATALOG_ID, URL, CATALOG_ID, URL,
|
180
|
-
EXISTING_VAPP_TEMPLATE_NAME, URL, EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_ID,
|
181
|
-
VAPP_TEMPLATE_NAME, URL]).strip
|
182
|
-
|
183
|
-
CATALOG_ITEM_VAPP_LINK = "#{URL}/api/catalogItem/39a8f899-0f8e-40c4-ac68-66b2688833bc"
|
184
|
-
|
185
|
-
FINALIZE_UPLOAD_TASK_ID = "91bd4b57-598e-4753-8274-1172c7195468"
|
186
|
-
|
187
|
-
FINALIZE_UPLOAD_TASK_LINK = "#{URL}/api/task/#{FINALIZE_UPLOAD_TASK_ID}"
|
188
|
-
|
189
|
-
FINALIZE_UPLOAD_TASK_RESPONSE = (File.read(Test.spec_asset(
|
190
|
-
"finalize_upload_task_response.xml")) % [VAPP_TEMPLATE_NAME, VAPP_ID,
|
191
|
-
FINALIZE_UPLOAD_TASK_ID, URL, FINALIZE_UPLOAD_TASK_ID, URL, URL,
|
192
|
-
FINALIZE_UPLOAD_TASK_ID, VAPP_TEMPLATE_NAME, URL, VAPP_ID, URL,
|
193
|
-
URL]).strip()
|
194
|
-
|
195
|
-
FINALIZE_UPLOAD_TASK_DONE_RESPONSE = (File.read(Test.spec_asset(
|
196
|
-
"finalize_upload_task_done_response.xml")) % [VAPP_TEMPLATE_NAME,
|
197
|
-
VAPP_ID, FINALIZE_UPLOAD_TASK_ID, URL, FINALIZE_UPLOAD_TASK_ID, URL,
|
198
|
-
URL, FINALIZE_UPLOAD_TASK_ID, VAPP_TEMPLATE_NAME, URL, VAPP_ID, URL,
|
199
|
-
URL]).strip
|
200
|
-
|
201
|
-
VAPP_TEMPLATE_READY_RESPONSE = (File.read(Test.spec_asset(
|
202
|
-
"vapp_template_ready_response.xml")) % [VAPP_TEMPLATE_NAME, VAPP_ID,
|
203
|
-
URL, VAPP_ID, URL, URL, VDC_ID, URL, VAPP_ID, URL, VAPP_ID, URL,
|
204
|
-
VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, URL, URL, VAPP_ID, URL, URL,
|
205
|
-
URL, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL,
|
206
|
-
VAPP_ID, URL, VAPP_ID]).strip
|
207
|
-
|
208
|
-
VAPP_TEMPLATE_DELETE_TASK_ID = "909835c2-b4c4-4bce-b3da-d33650e25de2"
|
209
|
-
|
210
|
-
VAPP_TEMPLATE_DELETE_TASK_LINK = "#{URL}/api/task/#{VAPP_TEMPLATE_DELETE_TASK_ID}"
|
211
|
-
|
212
|
-
VAPP_TEMPLATE_DELETE_RUNNING_TASK = (File.read(Test.spec_asset(
|
213
|
-
"vapp_template_delelete_running_task.xml")) % [VAPP_ID,
|
214
|
-
VAPP_TEMPLATE_DELETE_TASK_ID, URL, VAPP_TEMPLATE_DELETE_TASK_ID, URL,
|
215
|
-
URL, VAPP_TEMPLATE_DELETE_TASK_ID, URL, URL, URL]).strip
|
216
|
-
|
217
|
-
VAPP_TEMPLATE_DELETE_DONE_TASK = (File.read(Test.spec_asset(
|
218
|
-
"vapp_template_delelete_done_task.xml")) % [VAPP_ID,
|
219
|
-
VAPP_TEMPLATE_DELETE_TASK_ID, URL, VAPP_TEMPLATE_DELETE_TASK_ID, URL,
|
220
|
-
URL, URL, URL]).strip
|
221
|
-
|
222
|
-
DELETED_VAPP_NAME = "already_deleted"
|
223
|
-
|
224
|
-
EXISTING_VAPP_LINK = "#{URL}/api/vApp/vapp-#{EXISTING_VAPP_ID}"
|
225
|
-
|
226
|
-
VAPP_TEMPLATE_INSTANTIATE_LINK = "#{URL}/api/vdc/#{VDC_ID}/action/instantiateVAppTemplate"
|
227
|
-
|
228
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_REQUEST = (File.read(Test.spec_asset(
|
229
|
-
"vapp_template_instantiate_request.xml")) % [VAPP_NAME, URL,
|
230
|
-
EXISTING_VAPP_TEMPLATE_ID, EXISTING_VAPP_TEMPLATE_ID]).strip
|
231
|
-
|
232
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_WITH_LOCALITY_REQUEST = (File.read(
|
233
|
-
Test.spec_asset("vapp_template_instantiate_with_locality_request.xml")) %
|
234
|
-
[VAPP_NAME, URL, EXISTING_VAPP_TEMPLATE_ID, EXISTING_VAPP_TEMPLATE_ID,
|
235
|
-
VM_NAME, VAPP_TEMPLATE_VM_URL, INDY_DISK_NAME, INDY_DISK_URL]).strip
|
236
|
-
|
237
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID = "37be6f4c-69a8-4f80-ba94-271175967a68"
|
238
|
-
|
239
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_LINK = "#{URL}/api/task/#{EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID}"
|
240
|
-
|
241
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_START_RESPONSE = (File.read(Test.spec_asset(
|
242
|
-
"existing_vapp_template_instantiate_task_start_response.xml")) % [
|
243
|
-
VAPP_NAME, VAPP_ID, EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, URL,
|
244
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, URL,
|
245
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, VAPP_NAME, URL, VAPP_ID,
|
246
|
-
USERNAME, URL, ORGANIZATION, URL]).strip
|
247
|
-
|
248
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_SUCCESS_RESPONSE = (File.read(
|
249
|
-
Test.spec_asset("existing_vapp_template_instantiate_task_success_response.xml")) %
|
250
|
-
[VAPP_NAME, VAPP_ID, EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, URL,
|
251
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, URL,
|
252
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, VAPP_NAME, URL, VAPP_ID,
|
253
|
-
USERNAME, URL, ORGANIZATION, URL]).strip
|
254
|
-
|
255
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ERROR_RESPONSE = (File.read(Test.spec_asset(
|
256
|
-
"existing_vapp_template_instantiate_task_error_response.xml")) %
|
257
|
-
[VAPP_NAME, VAPP_ID, EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, URL,
|
258
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, URL,
|
259
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, VAPP_NAME, URL, VAPP_ID,
|
260
|
-
USERNAME, URL, ORGANIZATION, URL]).strip
|
261
|
-
|
262
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_RESPONSE = (File.read(Test.spec_asset(
|
263
|
-
"existing_vapp_template_instantiate_response.xml")) % [VAPP_NAME,
|
264
|
-
VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VDC_ID, URL, VAPP_ID, URL,
|
265
|
-
VAPP_ID, VAPP_NAME, VAPP_ID, EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID,
|
266
|
-
URL, EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, URL,
|
267
|
-
EXISTING_VAPP_TEMPLATE_INSTANTIATE_TASK_ID, VAPP_NAME, URL, VAPP_ID,
|
268
|
-
URL, ORGANIZATION, URL, URL]).strip
|
269
|
-
|
270
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_URN = "urn:vcloud:catalogitem:#{EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_ID}"
|
271
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_RESOLVER_URL = "#{URL}/api/entity/#{EXISTING_VAPP_TEMPLATE_CATALOG_URN}"
|
272
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_LINK = "#{URL}/api/catalogItem/#{EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_ID}"
|
273
|
-
|
274
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_RESPONSE = (File.read(Test.spec_asset(
|
275
|
-
"existing_vapp_template_item_response.xml")) %
|
276
|
-
[EXISTING_VAPP_TEMPLATE_NAME, URL, URL, URL, CATALOG_ID, URL,
|
277
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_ID, URL,
|
278
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_ID, URL,
|
279
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_ID, EXISTING_VAPP_TEMPLATE_NAME,
|
280
|
-
URL, EXISTING_VAPP_TEMPLATE_ID]).strip
|
281
|
-
|
282
|
-
VAPP_TEMPLATE_CATALOG_URN = "urn:vcloud:catalogitem:39a8f899-0f8e-40c4-ac68-66b2688833bc"
|
283
|
-
VAPP_TEMPLATE_CATALOG_RESOLVER_URL = "#{URL}/api/entity/#{VAPP_TEMPLATE_CATALOG_URN}"
|
284
|
-
VAPP_TEMPLATE_CATALOG_ITEM_LINK = "#{URL}/api/catalogItem/39a8f899-0f8e-40c4-ac68-66b2688833bc"
|
285
|
-
|
286
|
-
EXISTING_VAPP_TEMPLATE_LINK = "#{URL}/api/vAppTemplate/vappTemplate-#{EXISTING_VAPP_TEMPLATE_ID}"
|
287
|
-
|
288
|
-
EXISTING_VAPP_TEMPLATE_READY_RESPONSE = (File.read(Test.spec_asset(
|
289
|
-
"existing_vapp_template_ready_response.xml")) % [VAPP_TEMPLATE_NAME,
|
290
|
-
EXISTING_VAPP_TEMPLATE_ID, URL, EXISTING_VAPP_TEMPLATE_ID, URL, URL,
|
291
|
-
VDC_ID, URL, EXISTING_VAPP_TEMPLATE_ID, URL, EXISTING_VAPP_TEMPLATE_ID,
|
292
|
-
URL, EXISTING_VAPP_TEMPLATE_ID, URL, EXISTING_VAPP_TEMPLATE_ID, URL,
|
293
|
-
EXISTING_VAPP_TEMPLATE_ID, URL, VM1_ID, URL, VM1_ID, URL,
|
294
|
-
EXISTING_VAPP_TEMPLATE_ID, URL, VM1_ID, URL, VM1_ID, URL, VM1_ID,
|
295
|
-
VM1_ID, URL, EXISTING_VAPP_TEMPLATE_ID, URL, EXISTING_VAPP_TEMPLATE_ID,
|
296
|
-
URL, EXISTING_VAPP_TEMPLATE_ID, URL, EXISTING_VAPP_TEMPLATE_ID, URL,
|
297
|
-
EXISTING_VAPP_TEMPLATE_ID, URL, EXISTING_VAPP_TEMPLATE_ID]).strip
|
298
|
-
|
299
|
-
INSTANTIATED_VAPP_LINK = "#{URL}/api/vApp/vapp-#{VAPP_ID}"
|
300
|
-
|
301
|
-
INSTANTIATED_VM_LINK = "#{URL}/api/vApp/vm-#{INSTANTIATED_VM_ID}"
|
302
|
-
|
303
|
-
INSTANTIATED_VM_NETWORK_SECTION_LINK = "#{URL}/api/vApp/vm-#{INSTANTIATED_VM_ID}/networkConnectionSection/"
|
304
|
-
|
305
|
-
INSTANTIATED_VAPP_POWER_ON_LINK = "#{URL}/api/vApp/vapp-#{VAPP_ID}/power/action/powerOn"
|
306
|
-
|
307
|
-
INSTANTIATED_VAPP_POWER_OFF_LINK = "#{URL}/api/vApp/vapp-#{VAPP_ID}/power/action/powerOff"
|
308
|
-
|
309
|
-
INSTANTIATED_VAPP_POWER_REBOOT_LINK = "#{URL}/api/vApp/vapp-#{VAPP_ID}/power/action/reboot"
|
310
|
-
|
311
|
-
INSTANTIATED_VAPP_UNDEPLOY_LINK = "#{URL}/api/vApp/vapp-#{VAPP_ID}/action/undeploy"
|
312
|
-
|
313
|
-
INSTANTIATED_VAPP_DISCARD_STATE_LINK = "#{URL}/api/vApp/vapp-#{VAPP_ID}/action/discardSuspendedState"
|
314
|
-
|
315
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK = "#{URL}/api/vApp/vapp-#{VAPP_ID}/networkConfigSection/"
|
316
|
-
|
317
|
-
INSTANTIATED_VM_INSERT_MEDIA_LINK = "#{URL}/api/vApp/vm-#{INSTANTIATED_VM_ID}/media/action/insertMedia"
|
318
|
-
|
319
|
-
INSTANTIATED_VM_INSERT_MEDIA_TASK_ID = "dd3a1c3c-6e4a-4783-9e18-d95e65dd260c"
|
320
|
-
|
321
|
-
INSTANTIATED_VM_INSERT_MEDIA_TASK_LINK = "#{URL}/api/task/#{INSTANTIATED_VM_INSERT_MEDIA_TASK_ID}"
|
322
|
-
|
323
|
-
INSTANTIATED_VM_INSERT_MEDIA_TASK_DONE = (File.read(Test.spec_asset(
|
324
|
-
"instantiated_vm_insert_media_task_done.xml")) %
|
325
|
-
[INSTANTIATED_VM_INSERT_MEDIA_TASK_ID,
|
326
|
-
INSTANTIATED_VM_INSERT_MEDIA_TASK_LINK, URL,
|
327
|
-
INSTANTIATED_VM_INSERT_MEDIA_TASK_ID, URL, URL, URL]).strip
|
328
|
-
|
329
|
-
INSTANTIATED_VM_ATTACH_DISK_LINK = "#{URL}/api/vApp/vm-#{INSTANTIATED_VM_ID}/disk/action/attach"
|
330
|
-
|
331
|
-
INSTANTIATED_VM_DETACH_DISK_LINK = "#{URL}/api/vApp/vm-#{INSTANTIATED_VM_ID}/disk/action/detach"
|
332
|
-
|
333
|
-
INSTANTIAED_VAPP_RESPONSE = (File.read(Test.spec_asset(
|
334
|
-
"instantiated_vapp_response.xml")) % [VAPP_ID, URL, VAPP_ID,
|
335
|
-
INSTANTIATED_VAPP_POWER_ON_LINK, URL, VAPP_ID, URL, VAPP_ID, URL,
|
336
|
-
VAPP_ID, URL, VAPP_ID, URL, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID,
|
337
|
-
URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID,
|
338
|
-
URL, VAPP_ID, INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK,
|
339
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK, URL, INSTANTIATED_VM_ID,
|
340
|
-
INSTANTIATED_VM_LINK, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
341
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
342
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
343
|
-
INSTANTIATED_VM_INSERT_MEDIA_LINK, URL, INSTANTIATED_VM_ID,
|
344
|
-
INSTANTIATED_VM_ATTACH_DISK_LINK, INSTANTIATED_VM_DETACH_DISK_LINK, URL,
|
345
|
-
INSTANTIATED_VM_ID, URL, VAPP_ID, URL, INSTANTIATED_VM_ID,
|
346
|
-
SCSI_CONTROLLER_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
347
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
348
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
349
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
350
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
351
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
352
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
353
|
-
URL, INSTANTIATED_VM_ID, INSTANTIATED_VM_NETWORK_SECTION_LINK,
|
354
|
-
INSTANTIATED_VM_NETWORK_SECTION_LINK, URL, INSTANTIATED_VM_ID,
|
355
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID]).strip
|
356
|
-
|
357
|
-
INSTANTIAED_VAPP_ON_RESPONSE = (File.read(Test.spec_asset(
|
358
|
-
"instantiated_vapp_on_response.xml")) % [VAPP_ID, URL, VAPP_ID,
|
359
|
-
INSTANTIATED_VAPP_POWER_OFF_LINK, INSTANTIATED_VAPP_POWER_REBOOT_LINK,
|
360
|
-
INSTANTIATED_VAPP_UNDEPLOY_LINK, URL, VAPP_ID, URL, VAPP_ID, URL,
|
361
|
-
VAPP_ID, URL, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID,
|
362
|
-
URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID,
|
363
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK,
|
364
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK, URL, INSTANTIATED_VM_ID,
|
365
|
-
INSTANTIATED_VM_LINK, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
366
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
367
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
368
|
-
INSTANTIATED_VM_INSERT_MEDIA_LINK, URL, INSTANTIATED_VM_ID,
|
369
|
-
INSTANTIATED_VM_ATTACH_DISK_LINK, INSTANTIATED_VM_DETACH_DISK_LINK,
|
370
|
-
URL, INSTANTIATED_VM_ID, URL, VAPP_ID, URL, INSTANTIATED_VM_ID,
|
371
|
-
SCSI_CONTROLLER_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
372
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
373
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
374
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
375
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
376
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
377
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
378
|
-
URL, INSTANTIATED_VM_ID, INSTANTIATED_VM_NETWORK_SECTION_LINK,
|
379
|
-
INSTANTIATED_VM_NETWORK_SECTION_LINK, URL, INSTANTIATED_VM_ID,
|
380
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID]).strip
|
381
|
-
|
382
|
-
|
383
|
-
INSTANTIAED_VAPP_POWERED_OFF_RESPONSE = (File.read(Test.spec_asset(
|
384
|
-
"instantiated_vapp_off_response.xml")) % [VAPP_NAME, VAPP_ID, URL,
|
385
|
-
VAPP_ID, INSTANTIATED_VAPP_POWER_ON_LINK, INSTANTIATED_VAPP_POWER_OFF_LINK,
|
386
|
-
INSTANTIATED_VAPP_UNDEPLOY_LINK, URL, VAPP_ID, URL, VAPP_ID, URL,
|
387
|
-
VAPP_ID, URL, VAPP_ID, URL, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID,
|
388
|
-
URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID,
|
389
|
-
URL, VAPP_ID, INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK,
|
390
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK, URL, INSTANTIATED_VM_ID,
|
391
|
-
INSTANTIATED_VM_LINK, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
392
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
393
|
-
URL, INSTANTIATED_VM_ID, INSTANTIATED_VM_INSERT_MEDIA_LINK, URL,
|
394
|
-
INSTANTIATED_VM_ID, INSTANTIATED_VM_ATTACH_DISK_LINK,
|
395
|
-
INSTANTIATED_VM_DETACH_DISK_LINK, URL, INSTANTIATED_VM_ID, URL, VAPP_ID,
|
396
|
-
URL, INSTANTIATED_VM_ID, SCSI_CONTROLLER_ID, URL, INSTANTIATED_VM_ID,
|
397
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
398
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
399
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
400
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
401
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
402
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, INSTANTIATED_VM_NETWORK_SECTION_LINK,
|
403
|
-
INSTANTIATED_VM_NETWORK_SECTION_LINK, URL, INSTANTIATED_VM_ID,
|
404
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID]).strip
|
405
|
-
|
406
|
-
|
407
|
-
INSTANTIATED_SUSPENDED_VAPP_RESPONSE = (File.read(Test.spec_asset(
|
408
|
-
"instantiated_suspended_vapp_response.xml")) % [VAPP_ID, URL, VAPP_ID,
|
409
|
-
INSTANTIATED_VAPP_POWER_ON_LINK, URL, VAPP_ID, URL, VAPP_ID, URL,
|
410
|
-
VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL,
|
411
|
-
URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID,
|
412
|
-
URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID, URL, VAPP_ID,
|
413
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK,
|
414
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK, URL, INSTANTIATED_VM_ID,
|
415
|
-
INSTANTIATED_VM_LINK, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
416
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
417
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
418
|
-
URL, INSTANTIATED_VM_ID, INSTANTIATED_VM_INSERT_MEDIA_LINK, URL,
|
419
|
-
INSTANTIATED_VM_ID, INSTANTIATED_VM_ATTACH_DISK_LINK,
|
420
|
-
INSTANTIATED_VM_DETACH_DISK_LINK, URL, INSTANTIATED_VM_ID, URL, VAPP_ID,
|
421
|
-
URL, INSTANTIATED_VM_ID, SCSI_CONTROLLER_ID, URL, INSTANTIATED_VM_ID,
|
422
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
423
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
424
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
425
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
426
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
427
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
428
|
-
URL, INSTANTIATED_VM_ID, INSTANTIATED_VM_NETWORK_SECTION_LINK,
|
429
|
-
INSTANTIATED_VM_NETWORK_SECTION_LINK, URL, INSTANTIATED_VM_ID,
|
430
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID]).strip
|
431
|
-
|
432
|
-
INSTANTIATED_VAPP_DELETE_TASK_ID = "2637f9de-4a68-4829-9515-469788a4e36a"
|
433
|
-
|
434
|
-
INSTANTIATED_VAPP_DELETE_TASK_LINK = "#{URL}/api/task/#{INSTANTIATED_VAPP_DELETE_TASK_ID}"
|
435
|
-
|
436
|
-
INSTANTIATED_VAPP_DELETE_RUNNING_TASK = (File.read(Test.spec_asset(
|
437
|
-
"instantiated_vapp_delelete_running_task.xml")) %
|
438
|
-
[VAPP_ID, INSTANTIATED_VAPP_DELETE_TASK_ID, URL,
|
439
|
-
INSTANTIATED_VAPP_DELETE_TASK_ID, URL, URL,
|
440
|
-
INSTANTIATED_VAPP_DELETE_TASK_ID, URL, URL, URL]).strip
|
441
|
-
|
442
|
-
INSTANTIATED_VAPP_DELETE_DONE_TASK = (File.read(Test.spec_asset(
|
443
|
-
"instantiated_vapp_delelete_done_task.xml")) % [VAPP_ID,
|
444
|
-
INSTANTIATED_VAPP_DELETE_TASK_ID, URL,
|
445
|
-
INSTANTIATED_VAPP_DELETE_TASK_ID, URL, URL, URL, URL]).strip
|
446
|
-
|
447
|
-
INSTANTIATED_VAPP_POWER_ON_TASK_ID = "d202bc01-3a7e-4683-adac-bfc76fdf1293"
|
448
|
-
|
449
|
-
INSTANTIATED_VAPP_POWER_ON_TASK_LINK = "#{URL}/api/task/#{INSTANTIATED_VAPP_POWER_ON_TASK_ID}"
|
450
|
-
|
451
|
-
INSTANTED_VAPP_POWER_TASK_RUNNING = (File.read(Test.spec_asset(
|
452
|
-
"instantiated_vapp_power_task_running.xml")) %
|
453
|
-
[INSTANTIATED_VAPP_POWER_ON_TASK_ID,
|
454
|
-
INSTANTIATED_VAPP_POWER_ON_TASK_LINK, URL,
|
455
|
-
INSTANTIATED_VAPP_POWER_ON_TASK_ID, VAPP_NAME, URL, USERNAME, URL,
|
456
|
-
ORGANIZATION, URL]).strip
|
457
|
-
|
458
|
-
INSTANTED_VAPP_POWER_TASK_SUCCESS = (File.read(Test.spec_asset(
|
459
|
-
"instantiated_vapp_power_task_success.xml")) %
|
460
|
-
[INSTANTIATED_VAPP_POWER_ON_TASK_ID, INSTANTIATED_VAPP_POWER_ON_TASK_LINK,
|
461
|
-
URL, INSTANTIATED_VAPP_POWER_ON_TASK_ID, VAPP_NAME, URL, USERNAME,
|
462
|
-
URL, ORGANIZATION, URL]).strip
|
463
|
-
|
464
|
-
INSTANTIATED_VM_CPU_LINK = "#{URL}/api/vApp/vm-#{INSTANTIATED_VM_ID}/virtualHardwareSection/cpu"
|
465
|
-
|
466
|
-
INSTANTIATED_VM_CPU_RESPONSE = (File.read(Test.spec_asset(
|
467
|
-
"instantiated_vm_cpu_response.xml")) % [URL, INSTANTIATED_VM_ID, URL,
|
468
|
-
INSTANTIATED_VM_ID]).strip
|
469
|
-
|
470
|
-
INSTANTIATED_VM_MEMORY_LINK = "#{URL}/api/vApp/vm-#{INSTANTIATED_VM_ID}/virtualHardwareSection/memory"
|
471
|
-
|
472
|
-
INSTANTIATED_VM_MEMORY_RESPONSE = (File.read(Test.spec_asset(
|
473
|
-
"instantiated_vm_memory_response.xml")) % [URL, INSTANTIATED_VM_ID,
|
474
|
-
URL, INSTANTIATED_VM_ID]).strip
|
475
|
-
|
476
|
-
INSTANTIATED_VM_RESPONSE = (File.read(Test.spec_asset(
|
477
|
-
"instantiated_vm_response.xml")) % [INSTANTIATED_VM_ID, URL,
|
478
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
479
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
480
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
481
|
-
INSTANTIATED_VM_INSERT_MEDIA_LINK, URL, INSTANTIATED_VM_ID,
|
482
|
-
INSTANTIATED_VM_ATTACH_DISK_LINK, INSTANTIATED_VM_DETACH_DISK_LINK,
|
483
|
-
URL, INSTANTIATED_VM_ID, URL, URL, INSTANTIATED_VM_ID,
|
484
|
-
SCSI_CONTROLLER_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
485
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
486
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
487
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
488
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
489
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
490
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
491
|
-
URL, INSTANTIATED_VM_ID, INSTANTIATED_VM_NETWORK_SECTION_LINK,
|
492
|
-
INSTANTIATED_VM_NETWORK_SECTION_LINK, URL, INSTANTIATED_VM_ID,
|
493
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID]).strip
|
494
|
-
|
495
|
-
INSTANTIATED_VM_MODIFY_TASK_LINK = "#{URL}/api/task/16edd9b8-ae1f-4d2f-b3a3-cc27348b37f7"
|
496
|
-
|
497
|
-
INSTANTIATED_VM_MODIFY_TASK_RUNNING = (File.read(Test.spec_asset(
|
498
|
-
"instantiated_vm_modify_task_running.xml")) % [VM_NAME,
|
499
|
-
INSTANTIATED_VM_ID, URL, URL, VM_NAME, URL, INSTANTIATED_VM_ID, URL,
|
500
|
-
URL]).strip
|
501
|
-
|
502
|
-
INSTANTIATED_VM_MODIFY_TASK_SUCCESS = (File.read(Test.spec_asset(
|
503
|
-
"instantiated_vm_modify_task_success.xml")) % [VM_NAME,
|
504
|
-
INSTANTIATED_VM_ID, URL, VM_NAME, URL, INSTANTIATED_VM_ID, URL,
|
505
|
-
URL]).strip
|
506
|
-
|
507
|
-
INSTANTED_VM_CHANGE_TASK_LINK = "#{URL}/api/task/2eea2897-d189-4cf7-9739-758dbfd225d6"
|
508
|
-
|
509
|
-
INSTANTED_VM_CHANGE_TASK_RUNNING = (File.read(Test.spec_asset(
|
510
|
-
"instantiated_vm_change_task_running.xml")) % [VM1_ID,
|
511
|
-
INSTANTED_VM_CHANGE_TASK_LINK, URL, URL, URL, URL]).strip
|
512
|
-
|
513
|
-
INSTANTED_VM_CHANGE_TASK_SUCCESS = (File.read(Test.spec_asset(
|
514
|
-
"instantiated_vm_change_task_success.xml")) % [VM1_ID,
|
515
|
-
INSTANTED_VM_CHANGE_TASK_LINK, URL, URL, URL, URL]).strip
|
516
|
-
|
517
|
-
INSTANTIATED_VM_HARDWARE_SECTION_LINK = "#{URL}/api/vApp/vm-#{INSTANTIATED_VM_ID}/virtualHardwareSection/"
|
518
|
-
|
519
|
-
CHANGED_VM_NEW_DISK_SIZE = 350
|
520
|
-
|
521
|
-
RECONFIGURE_VM_LINK = "#{URL}/api/vApp/vm-#{INSTANTIATED_VM_ID}/reconfigureVm"
|
522
|
-
|
523
|
-
RECONFIGURE_VM_REQUEST = (File.read(Test.spec_asset(
|
524
|
-
"reconfigure_vm_request.xml")) % [CHANGED_VM_NAME, INSTANTIATED_VM_ID,
|
525
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
526
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
527
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
528
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
529
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
530
|
-
INSTANTIATED_VM_ID, URL, CHANGED_VM_DESCRIPTION, URL,
|
531
|
-
INSTANTIATED_VM_ID, CHANGED_VM_DISK, URL, INSTANTIATED_VM_ID,
|
532
|
-
CHANGED_VM_CPU, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
533
|
-
CHANGED_VM_MEMORY, URL, INSTANTIATED_VM_ID, URL,
|
534
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
535
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
536
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
537
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
538
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL,
|
539
|
-
INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID,
|
540
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID, INSTANTIATED_VM_ID,
|
541
|
-
URL, INSTANTIATED_VM_ID, URL, INSTANTIATED_VM_ID]).strip
|
542
|
-
|
543
|
-
RECONFIGURE_VM_TASK = (File.read(Test.spec_asset(
|
544
|
-
"reconfigure_vm_task.xml")) % [INSTANTIATED_VM_ID, URL, URL, VM1_ID,
|
545
|
-
URL, URL]).strip
|
546
|
-
|
547
|
-
UNDEPLOY_PARAMS = File.read(Test.spec_asset( "undeploy_params.xml")).strip
|
548
|
-
|
549
|
-
ORG_NETWORK_RESPONSE = (File.read(Test.spec_asset(
|
550
|
-
"org_network_response.xml")) % [ORG_NETWORK_NAME, ORG_NETWORK_ID,
|
551
|
-
ORG_NETWORK_LINK, ORG_NETWORK_ID]).strip
|
552
|
-
|
553
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_RESPONSE = (File.read(Test.spec_asset(
|
554
|
-
"instantiated_vapp_network_config_section_response.xml")) %
|
555
|
-
[INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK,
|
556
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK]).strip
|
557
|
-
|
558
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_ADD_NETWORK_REQUEST = (File.read(
|
559
|
-
Test.spec_asset("instantiated_vapp_network_config_add_network_request.xml")) %
|
560
|
-
[INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK,
|
561
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK, VAPP_NETWORK_NAME,
|
562
|
-
ORG_NETWORK_NAME, ORG_NETWORK_LINK]).strip
|
563
|
-
|
564
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_REMOVE_NETWORK_REQUEST = (File.read(Test.spec_asset(
|
565
|
-
"instantiated_vapp_network_config_remove_network_request.xml")) %
|
566
|
-
[INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK,
|
567
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_SECTION_LINK]).strip
|
568
|
-
|
569
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_ADD_NETWORK_TASK_LINK = "#{URL}/api/task/23e5280c-2a91-4a8c-a136-9822ba33f34f"
|
570
|
-
|
571
|
-
INSTANTIATED_VAPP_NETWORK_CONFIG_MODIFY_NETWORK_TASK_SUCCESS = (File.read(Test.spec_asset(
|
572
|
-
"instantiated_vapp_network_config_modify_network_task_success.xml")) %
|
573
|
-
[VAPP_NAME, VAPP_ID, INSTANTIATED_VAPP_NETWORK_CONFIG_ADD_NETWORK_TASK_LINK,
|
574
|
-
URL, URL, URL, ORGANIZATION, URL]).strip
|
575
|
-
|
576
|
-
NEW_NIC_INDEX = "1"
|
577
|
-
|
578
|
-
NEW_NIC_ADDRESSING_MODE = "POOL"
|
579
|
-
|
580
|
-
INSTANTIATED_VM_NETWORK_SECTION_RESPONSE = (File.read(Test.spec_asset(
|
581
|
-
"instantiated_vm_network_section_response.xml")) %
|
582
|
-
[INSTANTIATED_VM_NETWORK_SECTION_LINK,
|
583
|
-
INSTANTIATED_VM_NETWORK_SECTION_LINK]).strip
|
584
|
-
|
585
|
-
MEDIA_ID = "35aa7d6c-0794-456b-bbd1-021bb75e2af7"
|
586
|
-
|
587
|
-
# bogus content
|
588
|
-
MEDIA_CONTENT = "35aa7d6c-0794-456b-bbd1-021bb75e2af7"
|
589
|
-
|
590
|
-
MEDIA_LINK = "#{URL}/api/media/#{MEDIA_ID}"
|
591
|
-
|
592
|
-
MEDIA_DELETE_TASK_ID = "ddaa7d6c-0794-456b-bbd1-021bb75e2abc"
|
593
|
-
|
594
|
-
MEDIA_DELETE_TASK_LINK = "#{URL}/api/task/#{EXISTING_MEDIA_DELETE_TASK_ID}"
|
595
|
-
|
596
|
-
MEDIA_DELETE_TASK_DONE = (File.read(Test.spec_asset(
|
597
|
-
"media_delete_task_done.xml")) % [MEDIA_DELETE_TASK_ID,
|
598
|
-
MEDIA_DELETE_TASK_LINK, URL, MEDIA_DELETE_TASK_ID, MEDIA_LINK,
|
599
|
-
USERNAME, URL, ORGANIZATION, URL]).strip
|
600
|
-
|
601
|
-
MEDIA_ISO_LINK = "#{URL}/transfer/1ff5509a-4cd8-4005-aa14-f009578651e9/file"
|
602
|
-
|
603
|
-
MEDIA_UPLOAD_REQUEST = (File.read(Test.spec_asset(
|
604
|
-
"media_upload_request.xml")) % [MEDIA_NAME]).strip
|
605
|
-
|
606
|
-
MEDIA_UPLOAD_PENDING_RESPONSE = (File.read(Test.spec_asset(
|
607
|
-
"media_upload_pending_response.xml")) % [MEDIA_NAME, MEDIA_ID,
|
608
|
-
MEDIA_LINK, VDC_LINK, URL, MEDIA_ID, MEDIA_ISO_LINK, USERNAME,
|
609
|
-
URL]).strip
|
610
|
-
|
611
|
-
MEDIA_ADD_TO_CATALOG_REQUEST = (File.read(Test.spec_asset(
|
612
|
-
"media_add_to_catalog_request.xml")) % [MEDIA_NAME, MEDIA_NAME,
|
613
|
-
MEDIA_ID, URL, MEDIA_ID]).strip
|
614
|
-
|
615
|
-
MEDIA_CATALOG_ITEM_ID = "a0185003-1a65-4fe4-9fe1-08e81ce26ef6"
|
616
|
-
|
617
|
-
MEDIA_CATALOG_ITEM_DELETE_LINK = "#{URL}/api/catalogItem/#{MEDIA_CATALOG_ITEM_ID}"
|
618
|
-
|
619
|
-
MEDIA_ADD_TO_CATALOG_RESPONSE = (File.read(Test.spec_asset(
|
620
|
-
"media_add_to_catalog_response.xml")) % [MEDIA_NAME,
|
621
|
-
MEDIA_CATALOG_ITEM_ID, URL, MEDIA_CATALOG_ITEM_ID, URL, URL,
|
622
|
-
MEDIA_CATALOG_ITEM_ID, URL, MEDIA_CATALOG_ITEM_ID,
|
623
|
-
MEDIA_CATALOG_ITEM_DELETE_LINK, MEDIA_NAME, MEDIA_LINK]).strip
|
624
|
-
|
625
|
-
METADATA_VALUE = "test123"
|
626
|
-
|
627
|
-
METADATA_KEY = "test_key"
|
628
|
-
|
629
|
-
METADATA_SET_LINK = "#{URL}/api/vApp/vm-#{INSTANTIATED_VM_ID}/metadata/#{METADATA_KEY}"
|
630
|
-
|
631
|
-
METADATA_SET_REQUEST = (File.read(Test.spec_asset(
|
632
|
-
"metadata_set_request.xml")) % [METADATA_VALUE]).strip
|
633
|
-
|
634
|
-
METADATA_SET_TASK_DONE = (File.read(Test.spec_asset(
|
635
|
-
"metadata_set_task_done.xml")) % [INSTANTIATED_VM_ID, URL, URL, URL,
|
636
|
-
USERNAME, URL, ORGANIZATION, URL]).strip
|
637
|
-
|
638
|
-
INDY_DISK_CREATE_REQUEST = (File.read(Test.spec_asset(
|
639
|
-
"indy_disk_create_request.xml")) %
|
640
|
-
[INDY_DISK_NAME, INDY_DISK_SIZE * 1024 * 1024]).strip
|
641
|
-
|
642
|
-
INDY_DISK_CREATE_RESPONSE = (File.read(Test.spec_asset(
|
643
|
-
"indy_disk_create_response.xml")) % [INDY_DISK_ID, URL, INDY_DISK_ID,
|
644
|
-
URL, INDY_DISK_URL, URL, INDY_DISK_ID, URL, INDY_DISK_ID, URL,
|
645
|
-
INDY_DISK_ID, INDY_DISK_ID, URL, URL, URL, INDY_DISK_ID, URL, URL,
|
646
|
-
URL, URL]).strip
|
647
|
-
|
648
|
-
INDY_DISK_CREATE_ERROR = File.read(Test.spec_asset(
|
649
|
-
"indy_disk_create_error.xml")).strip
|
650
|
-
|
651
|
-
INDY_DISK_RESPONSE = (File.read(Test.spec_asset(
|
652
|
-
"indy_disk_response.xml")) % [INDY_DISK_NAME, INDY_DISK_ID,
|
653
|
-
INDY_DISK_URL, URL, URL, INDY_DISK_ID, URL, INDY_DISK_ID, URL,
|
654
|
-
INDY_DISK_ID, URL, INDY_DISK_ID, URL, URL]).strip
|
655
|
-
|
656
|
-
INDY_DISK_ADDRESS_ON_PARENT = "1"
|
657
|
-
|
658
|
-
INDY_DISK_ATTACH_REQUEST = (File.read(Test.spec_asset(
|
659
|
-
"indy_disk_attach_request.xml")) % [INDY_DISK_URL]).strip
|
660
|
-
|
661
|
-
INDY_DISK_ATTACH_TASK = (File.read(Test.spec_asset(
|
662
|
-
"indy_disk_attach_task.xml")) % [URL, URL, VM_NAME, URL, VM1_ID,
|
663
|
-
USERNAME, URL, ORGANIZATION, URL]).strip
|
664
|
-
|
665
|
-
INDY_DISK_ATTACH_TASK_ERROR = (File.read(Test.spec_asset(
|
666
|
-
"indy_disk_attach_task_error.xml")) % [URL, URL, VM_NAME, URL, VM1_ID,
|
667
|
-
USERNAME, URL, ORGANIZATION, URL]).strip
|
668
|
-
|
669
|
-
INDY_DISK_DETACH_REQUEST = (File.read(Test.spec_asset(
|
670
|
-
"indy_disk_detach_request.xml")) % [INDY_DISK_URL]).strip
|
671
|
-
|
672
|
-
INDY_DISK_DETACH_TASK = (File.read(Test.spec_asset(
|
673
|
-
"indy_disk_detach_task.xml")) % [URL, URL, VM_NAME, URL, USERNAME,
|
674
|
-
URL, ORGANIZATION, URL]).strip
|
675
|
-
|
676
|
-
INDY_DISK_DELETE_TASK = (File.read(Test.spec_asset(
|
677
|
-
"indy_disk_delete_task.xml")) % [INDY_DISK_ID, URL, URL,
|
678
|
-
INDY_DISK_URL, USERNAME, URL, ORGANIZATION, URL]).strip
|
679
|
-
|
680
|
-
EXISTING_VAPP_RESOLVER_RESPONSE = (File.read(Test.spec_asset(
|
681
|
-
"existing_vapp_resolver_response.xml")) % [EXISTING_VAPP_URN,
|
682
|
-
EXISTING_VAPP_URN, EXISTING_VAPP_RESOLVER_URL,
|
683
|
-
EXISTING_VAPP_LINK]).strip
|
684
|
-
|
685
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_RESOLVER_RESPONSE = (File.read(Test.spec_asset(
|
686
|
-
"existing_vapp_template_catalog_resolver_response.xml")) %
|
687
|
-
[EXISTING_VAPP_TEMPLATE_CATALOG_URN,
|
688
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_URN,
|
689
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_RESOLVER_URL,
|
690
|
-
EXISTING_VAPP_TEMPLATE_CATALOG_ITEM_LINK]).strip
|
691
|
-
|
692
|
-
VAPP_TEMPLATE_CATALOG_RESOLVER_RESPONSE = (File.read(Test.spec_asset(
|
693
|
-
"vapp_template_catalog_resolver_response.xml")) %
|
694
|
-
[VAPP_TEMPLATE_CATALOG_URN, VAPP_TEMPLATE_CATALOG_URN,
|
695
|
-
VAPP_TEMPLATE_CATALOG_RESOLVER_URL,
|
696
|
-
VAPP_TEMPLATE_CATALOG_ITEM_LINK]).strip
|
697
|
-
|
698
|
-
end
|
699
|
-
end
|
700
|
-
end
|