fog 1.38.0 → 1.39.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (323) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +13 -3
  3. data/CHANGELOG.md +66 -0
  4. data/Gemfile +1 -1
  5. data/LICENSE.md +1 -1
  6. data/README.md +13 -0
  7. data/fog.gemspec +27 -6
  8. data/gemfiles/Gemfile-1.9 +16 -0
  9. data/gemfiles/Gemfile-2.0 +11 -0
  10. data/gemfiles/Gemfile-edge +1 -1
  11. data/gemfiles/Gemfile-edge-1.9 +20 -0
  12. data/gemfiles/Gemfile-edge-2.0 +16 -0
  13. data/lib/fog.rb +0 -1
  14. data/lib/fog/bin.rb +0 -1
  15. data/lib/fog/cloudsigma/compute.rb +9 -0
  16. data/lib/fog/cloudsigma/models/server.rb +5 -0
  17. data/lib/fog/cloudsigma/models/snapshot.rb +77 -0
  18. data/lib/fog/cloudsigma/models/snapshots.rb +26 -0
  19. data/lib/fog/cloudsigma/models/volume.rb +15 -0
  20. data/lib/fog/cloudsigma/requests/clone_snapshot.rb +31 -0
  21. data/lib/fog/cloudsigma/requests/create_snapshot.rb +27 -0
  22. data/lib/fog/cloudsigma/requests/delete_snapshot.rb +17 -0
  23. data/lib/fog/cloudsigma/requests/get_snapshot.rb +17 -0
  24. data/lib/fog/cloudsigma/requests/list_snapshots.rb +17 -0
  25. data/lib/fog/cloudsigma/requests/stop_server.rb +5 -4
  26. data/lib/fog/cloudsigma/requests/update_snapshot.rb +17 -0
  27. data/lib/fog/cloudstack/core.rb +2 -0
  28. data/lib/fog/joyent/compute.rb +4 -16
  29. data/lib/fog/opennebula/README.md +0 -0
  30. data/lib/fog/opennebula/compute.rb +90 -19
  31. data/lib/fog/opennebula/models/compute/server.rb +9 -1
  32. data/lib/fog/opennebula/requests/compute/image_pool.rb +0 -1
  33. data/lib/fog/opennebula/requests/compute/list_vms.rb +8 -26
  34. data/lib/fog/opennebula/requests/compute/template_pool.rb +8 -29
  35. data/lib/fog/opennebula/requests/compute/vm_allocate.rb +24 -15
  36. data/lib/fog/opennebula/requests/compute/vm_destroy.rb +13 -4
  37. data/lib/fog/opennebula/requests/compute/vm_disk_snapshot.rb +8 -2
  38. data/lib/fog/opennebula/requests/compute/vm_resume.rb +13 -23
  39. data/lib/fog/opennebula/requests/compute/vm_shutdown.rb +1 -1
  40. data/lib/fog/opennebula/requests/compute/vm_stop.rb +3 -10
  41. data/lib/fog/opennebula/requests/compute/vm_suspend.rb +31 -0
  42. data/lib/fog/ovirt/compute.rb +4 -0
  43. data/lib/fog/ovirt/models/compute/instance_type.rb +39 -0
  44. data/lib/fog/ovirt/models/compute/instance_types.rb +20 -0
  45. data/lib/fog/ovirt/models/compute/server.rb +1 -0
  46. data/lib/fog/ovirt/requests/compute/get_instance_type.rb +17 -0
  47. data/lib/fog/ovirt/requests/compute/list_instance_types.rb +19 -0
  48. data/lib/fog/ovirt/requests/compute/mock_files/instance_type.xml +42 -0
  49. data/lib/fog/ovirt/requests/compute/mock_files/instance_types.xml +197 -0
  50. data/lib/fog/rage4/dns.rb +1 -0
  51. data/lib/fog/rage4/requests/dns/bulk_update_records.rb +38 -0
  52. data/lib/fog/vcloud_director/compute.rb +1 -0
  53. data/lib/fog/vcloud_director/generators/compute/compose_common.rb +17 -16
  54. data/lib/fog/vcloud_director/generators/compute/create_snapshot.rb +25 -0
  55. data/lib/fog/vcloud_director/requests/compute/post_create_snapshot.rb +21 -0
  56. data/lib/fog/version.rb +1 -1
  57. data/lib/tasks/changelog_task.rb +4 -4
  58. data/spec/fog/bin/dnsimple_spec.rb +2 -2
  59. data/spec/fog/bin_spec.rb +3 -6
  60. data/tests/cloudsigma/models/snapshot_tests.rb +23 -0
  61. data/tests/cloudsigma/models/snapshots_tests.rb +15 -0
  62. data/tests/cloudsigma/models/volume_tests.rb +3 -3
  63. data/tests/cloudsigma/requests/server_tests.rb +10 -10
  64. data/tests/cloudsigma/requests/snapshots_tests.rb +83 -0
  65. data/tests/cloudsigma/requests/volumes_tests.rb +12 -11
  66. data/tests/compute/helper.rb +0 -19
  67. data/tests/helpers/mock_helper.rb +0 -4
  68. data/tests/opennebula/models/compute/flavor_tests.rb +2 -2
  69. data/tests/opennebula/models/compute/network_tests.rb +1 -2
  70. data/tests/opennebula/requests/compute/vm_allocate_tests.rb +20 -3
  71. data/tests/opennebula/requests/compute/vm_suspend_resume_tests.rb +52 -0
  72. data/tests/rage4/requests/dns/dns_tests.rb +12 -0
  73. data/tests/storage/helper.rb +0 -6
  74. metadata +101 -389
  75. data/lib/fog/bin/digitalocean.rb +0 -29
  76. data/lib/fog/bin/dnsimple.rb +0 -29
  77. data/lib/fog/bin/ninefold.rb +0 -34
  78. data/lib/fog/digitalocean.rb +0 -1
  79. data/lib/fog/digitalocean/CHANGELOG.md +0 -6
  80. data/lib/fog/digitalocean/compute_v2.rb +0 -109
  81. data/lib/fog/digitalocean/core.rb +0 -9
  82. data/lib/fog/digitalocean/examples/getting_started.md +0 -124
  83. data/lib/fog/digitalocean/models/compute_v2/flavor.rb +0 -17
  84. data/lib/fog/digitalocean/models/compute_v2/flavors.rb +0 -21
  85. data/lib/fog/digitalocean/models/compute_v2/image.rb +0 -25
  86. data/lib/fog/digitalocean/models/compute_v2/images.rb +0 -42
  87. data/lib/fog/digitalocean/models/compute_v2/region.rb +0 -13
  88. data/lib/fog/digitalocean/models/compute_v2/regions.rb +0 -21
  89. data/lib/fog/digitalocean/models/compute_v2/server.rb +0 -170
  90. data/lib/fog/digitalocean/models/compute_v2/servers.rb +0 -43
  91. data/lib/fog/digitalocean/models/compute_v2/ssh_key.rb +0 -31
  92. data/lib/fog/digitalocean/models/compute_v2/ssh_keys.rb +0 -40
  93. data/lib/fog/digitalocean/models/paging_collection.rb +0 -41
  94. data/lib/fog/digitalocean/requests/compute_v2/change_kernel.rb +0 -44
  95. data/lib/fog/digitalocean/requests/compute_v2/convert_to_snapshot.rb +0 -44
  96. data/lib/fog/digitalocean/requests/compute_v2/create_server.rb +0 -93
  97. data/lib/fog/digitalocean/requests/compute_v2/create_ssh_key.rb +0 -49
  98. data/lib/fog/digitalocean/requests/compute_v2/delete_ssh_key.rb +0 -32
  99. data/lib/fog/digitalocean/requests/compute_v2/destroy_server.rb +0 -35
  100. data/lib/fog/digitalocean/requests/compute_v2/disable_backups.rb +0 -45
  101. data/lib/fog/digitalocean/requests/compute_v2/enable_ipv6.rb +0 -44
  102. data/lib/fog/digitalocean/requests/compute_v2/enable_private_networking.rb +0 -44
  103. data/lib/fog/digitalocean/requests/compute_v2/get_droplet_action.rb +0 -36
  104. data/lib/fog/digitalocean/requests/compute_v2/get_image_details.rb +0 -42
  105. data/lib/fog/digitalocean/requests/compute_v2/get_server_details.rb +0 -84
  106. data/lib/fog/digitalocean/requests/compute_v2/get_ssh_key.rb +0 -34
  107. data/lib/fog/digitalocean/requests/compute_v2/list_droplet_actions.rb +0 -38
  108. data/lib/fog/digitalocean/requests/compute_v2/list_flavors.rb +0 -131
  109. data/lib/fog/digitalocean/requests/compute_v2/list_images.rb +0 -50
  110. data/lib/fog/digitalocean/requests/compute_v2/list_regions.rb +0 -94
  111. data/lib/fog/digitalocean/requests/compute_v2/list_servers.rb +0 -28
  112. data/lib/fog/digitalocean/requests/compute_v2/list_ssh_keys.rb +0 -31
  113. data/lib/fog/digitalocean/requests/compute_v2/password_reset.rb +0 -44
  114. data/lib/fog/digitalocean/requests/compute_v2/power_cycle.rb +0 -44
  115. data/lib/fog/digitalocean/requests/compute_v2/power_off.rb +0 -44
  116. data/lib/fog/digitalocean/requests/compute_v2/power_on.rb +0 -44
  117. data/lib/fog/digitalocean/requests/compute_v2/reboot_server.rb +0 -44
  118. data/lib/fog/digitalocean/requests/compute_v2/rebuild.rb +0 -44
  119. data/lib/fog/digitalocean/requests/compute_v2/rename.rb +0 -44
  120. data/lib/fog/digitalocean/requests/compute_v2/resize.rb +0 -48
  121. data/lib/fog/digitalocean/requests/compute_v2/restore.rb +0 -44
  122. data/lib/fog/digitalocean/requests/compute_v2/shutdown.rb +0 -44
  123. data/lib/fog/digitalocean/requests/compute_v2/snapshot.rb +0 -44
  124. data/lib/fog/digitalocean/requests/compute_v2/transfer_image.rb +0 -44
  125. data/lib/fog/digitalocean/requests/compute_v2/update_ssh_key.rb +0 -46
  126. data/lib/fog/digitalocean/requests/compute_v2/upgrade.rb +0 -44
  127. data/lib/fog/digitalocean/service.rb +0 -51
  128. data/lib/fog/dnsimple.rb +0 -1
  129. data/lib/fog/dnsimple/core.rb +0 -10
  130. data/lib/fog/dnsimple/dns.rb +0 -112
  131. data/lib/fog/dnsimple/models/dns/record.rb +0 -63
  132. data/lib/fog/dnsimple/models/dns/records.rb +0 -34
  133. data/lib/fog/dnsimple/models/dns/zone.rb +0 -46
  134. data/lib/fog/dnsimple/models/dns/zones.rb +0 -25
  135. data/lib/fog/dnsimple/requests/dns/create_domain.rb +0 -62
  136. data/lib/fog/dnsimple/requests/dns/create_record.rb +0 -67
  137. data/lib/fog/dnsimple/requests/dns/delete_domain.rb +0 -35
  138. data/lib/fog/dnsimple/requests/dns/delete_record.rb +0 -30
  139. data/lib/fog/dnsimple/requests/dns/get_domain.rb +0 -39
  140. data/lib/fog/dnsimple/requests/dns/get_record.rb +0 -49
  141. data/lib/fog/dnsimple/requests/dns/list_domains.rb +0 -34
  142. data/lib/fog/dnsimple/requests/dns/list_records.rb +0 -34
  143. data/lib/fog/dnsimple/requests/dns/update_record.rb +0 -53
  144. data/lib/fog/ninefold.rb +0 -1
  145. data/lib/fog/ninefold/compute.rb +0 -144
  146. data/lib/fog/ninefold/core.rb +0 -11
  147. data/lib/fog/ninefold/models/compute/address.rb +0 -100
  148. data/lib/fog/ninefold/models/compute/addresses.rb +0 -27
  149. data/lib/fog/ninefold/models/compute/flavor.rb +0 -24
  150. data/lib/fog/ninefold/models/compute/flavors.rb +0 -26
  151. data/lib/fog/ninefold/models/compute/image.rb +0 -38
  152. data/lib/fog/ninefold/models/compute/images.rb +0 -26
  153. data/lib/fog/ninefold/models/compute/ip_forwarding_rule.rb +0 -76
  154. data/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb +0 -27
  155. data/lib/fog/ninefold/models/compute/server.rb +0 -182
  156. data/lib/fog/ninefold/models/compute/servers.rb +0 -27
  157. data/lib/fog/ninefold/requests/compute/assign_to_load_balancer_rule.rb +0 -11
  158. data/lib/fog/ninefold/requests/compute/associate_ip_address.rb +0 -12
  159. data/lib/fog/ninefold/requests/compute/change_service_for_virtual_machine.rb +0 -12
  160. data/lib/fog/ninefold/requests/compute/create_ip_forwarding_rule.rb +0 -12
  161. data/lib/fog/ninefold/requests/compute/create_load_balancer_rule.rb +0 -11
  162. data/lib/fog/ninefold/requests/compute/delete_ip_forwarding_rule.rb +0 -12
  163. data/lib/fog/ninefold/requests/compute/delete_load_balancer_rule.rb +0 -11
  164. data/lib/fog/ninefold/requests/compute/deploy_virtual_machine.rb +0 -12
  165. data/lib/fog/ninefold/requests/compute/destroy_virtual_machine.rb +0 -12
  166. data/lib/fog/ninefold/requests/compute/disable_static_nat.rb +0 -12
  167. data/lib/fog/ninefold/requests/compute/disassociate_ip_address.rb +0 -12
  168. data/lib/fog/ninefold/requests/compute/enable_static_nat.rb +0 -12
  169. data/lib/fog/ninefold/requests/compute/list_accounts.rb +0 -12
  170. data/lib/fog/ninefold/requests/compute/list_async_jobs.rb +0 -12
  171. data/lib/fog/ninefold/requests/compute/list_capabilities.rb +0 -12
  172. data/lib/fog/ninefold/requests/compute/list_disk_offerings.rb +0 -12
  173. data/lib/fog/ninefold/requests/compute/list_events.rb +0 -12
  174. data/lib/fog/ninefold/requests/compute/list_hypervisors.rb +0 -12
  175. data/lib/fog/ninefold/requests/compute/list_ip_forwarding_rules.rb +0 -12
  176. data/lib/fog/ninefold/requests/compute/list_load_balancer_rule_instances.rb +0 -11
  177. data/lib/fog/ninefold/requests/compute/list_load_balancer_rules.rb +0 -11
  178. data/lib/fog/ninefold/requests/compute/list_network_offerings.rb +0 -12
  179. data/lib/fog/ninefold/requests/compute/list_networks.rb +0 -12
  180. data/lib/fog/ninefold/requests/compute/list_public_ip_addresses.rb +0 -12
  181. data/lib/fog/ninefold/requests/compute/list_resource_limits.rb +0 -12
  182. data/lib/fog/ninefold/requests/compute/list_service_offerings.rb +0 -12
  183. data/lib/fog/ninefold/requests/compute/list_templates.rb +0 -12
  184. data/lib/fog/ninefold/requests/compute/list_virtual_machines.rb +0 -12
  185. data/lib/fog/ninefold/requests/compute/list_zones.rb +0 -12
  186. data/lib/fog/ninefold/requests/compute/query_async_job_result.rb +0 -12
  187. data/lib/fog/ninefold/requests/compute/reboot_virtual_machine.rb +0 -12
  188. data/lib/fog/ninefold/requests/compute/remove_from_load_balancer_rule.rb +0 -11
  189. data/lib/fog/ninefold/requests/compute/reset_password_for_virtual_machine.rb +0 -12
  190. data/lib/fog/ninefold/requests/compute/start_virtual_machine.rb +0 -12
  191. data/lib/fog/ninefold/requests/compute/stop_virtual_machine.rb +0 -12
  192. data/lib/fog/ninefold/requests/compute/update_load_balancer_rule.rb +0 -11
  193. data/lib/fog/ninefold/requests/compute/update_virtual_machine.rb +0 -12
  194. data/lib/fog/ninefold/storage.rb +0 -53
  195. data/spec/fog/bin/digitalocean_spec.rb +0 -9
  196. data/spec/fog/bin/ninefold_spec.rb +0 -10
  197. data/tests/digitalocean/helper.rb +0 -56
  198. data/tests/digitalocean/requests/compute_v2/list_flavors_tests.rb +0 -25
  199. data/tests/digitalocean/requests/compute_v2/list_images_tests.rb +0 -25
  200. data/tests/digitalocean/requests/compute_v2/list_regions_tests.rb +0 -21
  201. data/tests/digitalocean/requests/compute_v2/server_tests.rb +0 -77
  202. data/tests/dnsimple/requests/dns/dns_tests.rb +0 -122
  203. data/tests/hp/block_storage_tests.rb +0 -47
  204. data/tests/hp/cdn_tests.rb +0 -23
  205. data/tests/hp/compute_tests.rb +0 -22
  206. data/tests/hp/models/block_storage/bootable_volume_tests.rb +0 -23
  207. data/tests/hp/models/block_storage/snapshot_tests.rb +0 -23
  208. data/tests/hp/models/block_storage/volume_tests.rb +0 -21
  209. data/tests/hp/models/block_storage_v2/snapshot_tests.rb +0 -22
  210. data/tests/hp/models/block_storage_v2/snapshots_tests.rb +0 -10
  211. data/tests/hp/models/block_storage_v2/volume_backup_tests.rb +0 -22
  212. data/tests/hp/models/block_storage_v2/volume_backups_tests.rb +0 -9
  213. data/tests/hp/models/block_storage_v2/volume_tests.rb +0 -22
  214. data/tests/hp/models/block_storage_v2/volumes_tests.rb +0 -5
  215. data/tests/hp/models/compute/address_tests.rb +0 -18
  216. data/tests/hp/models/compute/addresses_tests.rb +0 -5
  217. data/tests/hp/models/compute/key_pair_tests.rb +0 -26
  218. data/tests/hp/models/compute/key_pairs_tests.rb +0 -5
  219. data/tests/hp/models/compute/metadata_image_tests.rb +0 -60
  220. data/tests/hp/models/compute/metadata_server_tests.rb +0 -54
  221. data/tests/hp/models/compute/security_group_tests.rb +0 -38
  222. data/tests/hp/models/compute/security_groups_tests.rb +0 -5
  223. data/tests/hp/models/compute_v2/address_tests.rb +0 -23
  224. data/tests/hp/models/compute_v2/addresses_tests.rb +0 -7
  225. data/tests/hp/models/compute_v2/availability_zone_tests.rb +0 -11
  226. data/tests/hp/models/compute_v2/availability_zones_tests.rb +0 -13
  227. data/tests/hp/models/compute_v2/key_pair_tests.rb +0 -28
  228. data/tests/hp/models/compute_v2/key_pairs_tests.rb +0 -7
  229. data/tests/hp/models/compute_v2/metadata_image_tests.rb +0 -60
  230. data/tests/hp/models/compute_v2/metadata_server_tests.rb +0 -56
  231. data/tests/hp/models/compute_v2/server_tests.rb +0 -45
  232. data/tests/hp/models/compute_v2/servers_tests.rb +0 -9
  233. data/tests/hp/models/compute_v2/volume_attachment_tests.rb +0 -40
  234. data/tests/hp/models/compute_v2/volume_attachments_tests.rb +0 -17
  235. data/tests/hp/models/dns/domain_tests.rb +0 -25
  236. data/tests/hp/models/dns/domains_tests.rb +0 -14
  237. data/tests/hp/models/dns/record_tests.rb +0 -29
  238. data/tests/hp/models/dns/records_tests.rb +0 -9
  239. data/tests/hp/models/lb/algorithms_tests.rb +0 -15
  240. data/tests/hp/models/lb/load_balancer_node_tests.rb +0 -9
  241. data/tests/hp/models/lb/load_balancer_nodes_tests.rb +0 -27
  242. data/tests/hp/models/lb/load_balancer_tests.rb +0 -6
  243. data/tests/hp/models/lb/load_balancer_virtual_ips_tests.rb +0 -22
  244. data/tests/hp/models/lb/load_balancers_tests.rb +0 -22
  245. data/tests/hp/models/lb/protocols_tests.rb +0 -15
  246. data/tests/hp/models/network/floating_ip_tests.rb +0 -37
  247. data/tests/hp/models/network/floating_ips_tests.rb +0 -8
  248. data/tests/hp/models/network/network_tests.rb +0 -25
  249. data/tests/hp/models/network/networks_tests.rb +0 -15
  250. data/tests/hp/models/network/port_tests.rb +0 -30
  251. data/tests/hp/models/network/ports_tests.rb +0 -21
  252. data/tests/hp/models/network/router_tests.rb +0 -55
  253. data/tests/hp/models/network/routers_tests.rb +0 -19
  254. data/tests/hp/models/network/security_group_rule_tests.rb +0 -25
  255. data/tests/hp/models/network/security_group_rules_tests.rb +0 -23
  256. data/tests/hp/models/network/security_group_tests.rb +0 -20
  257. data/tests/hp/models/network/security_groups_tests.rb +0 -20
  258. data/tests/hp/models/network/subnet_tests.rb +0 -30
  259. data/tests/hp/models/network/subnets_tests.rb +0 -22
  260. data/tests/hp/models/storage/directories_tests.rb +0 -23
  261. data/tests/hp/models/storage/directory_tests.rb +0 -131
  262. data/tests/hp/models/storage/file_tests.rb +0 -44
  263. data/tests/hp/models/storage/files_tests.rb +0 -38
  264. data/tests/hp/requests/block_storage/bootable_volume_tests.rb +0 -78
  265. data/tests/hp/requests/block_storage/snapshot_tests.rb +0 -56
  266. data/tests/hp/requests/block_storage/volume_tests.rb +0 -94
  267. data/tests/hp/requests/block_storage_v2/snapshot_tests.rb +0 -69
  268. data/tests/hp/requests/block_storage_v2/volume_backup_tests.rb +0 -117
  269. data/tests/hp/requests/block_storage_v2/volume_tests.rb +0 -106
  270. data/tests/hp/requests/cdn/container_tests.rb +0 -56
  271. data/tests/hp/requests/compute/address_tests.rb +0 -72
  272. data/tests/hp/requests/compute/flavor_tests.rb +0 -45
  273. data/tests/hp/requests/compute/image_tests.rb +0 -79
  274. data/tests/hp/requests/compute/key_pair_tests.rb +0 -65
  275. data/tests/hp/requests/compute/metadata_tests.rb +0 -70
  276. data/tests/hp/requests/compute/persistent_server_tests.rb +0 -66
  277. data/tests/hp/requests/compute/security_group_rule_tests.rb +0 -54
  278. data/tests/hp/requests/compute/security_group_tests.rb +0 -63
  279. data/tests/hp/requests/compute/server_address_tests.rb +0 -45
  280. data/tests/hp/requests/compute/server_tests.rb +0 -126
  281. data/tests/hp/requests/compute/server_volume_tests.rb +0 -75
  282. data/tests/hp/requests/compute_v2/address_tests.rb +0 -80
  283. data/tests/hp/requests/compute_v2/availability_zone_tests.rb +0 -19
  284. data/tests/hp/requests/compute_v2/flavor_tests.rb +0 -45
  285. data/tests/hp/requests/compute_v2/image_tests.rb +0 -86
  286. data/tests/hp/requests/compute_v2/key_pair_tests.rb +0 -66
  287. data/tests/hp/requests/compute_v2/metadata_tests.rb +0 -101
  288. data/tests/hp/requests/compute_v2/persistent_server_tests.rb +0 -67
  289. data/tests/hp/requests/compute_v2/server_address_tests.rb +0 -46
  290. data/tests/hp/requests/compute_v2/server_security_group_tests.rb +0 -42
  291. data/tests/hp/requests/compute_v2/server_tests.rb +0 -113
  292. data/tests/hp/requests/compute_v2/server_volume_tests.rb +0 -84
  293. data/tests/hp/requests/dns/domain_tests.rb +0 -72
  294. data/tests/hp/requests/dns/records_tests.rb +0 -64
  295. data/tests/hp/requests/lb/algorithms_tests.rb +0 -14
  296. data/tests/hp/requests/lb/limits_tests.rb +0 -16
  297. data/tests/hp/requests/lb/load_balancer_nodes_tests.rb +0 -46
  298. data/tests/hp/requests/lb/load_balancer_tests.rb +0 -56
  299. data/tests/hp/requests/lb/protocols_tests.rb +0 -14
  300. data/tests/hp/requests/lb/versions_tests.rb +0 -16
  301. data/tests/hp/requests/lb/virtual_ips_tests.rb +0 -34
  302. data/tests/hp/requests/network/floating_ip_tests.rb +0 -70
  303. data/tests/hp/requests/network/network_tests.rb +0 -57
  304. data/tests/hp/requests/network/port_tests.rb +0 -71
  305. data/tests/hp/requests/network/router_tests.rb +0 -108
  306. data/tests/hp/requests/network/security_group_rule_tests.rb +0 -58
  307. data/tests/hp/requests/network/security_group_tests.rb +0 -48
  308. data/tests/hp/requests/network/subnet_tests.rb +0 -71
  309. data/tests/hp/requests/storage/container_tests.rb +0 -86
  310. data/tests/hp/requests/storage/object_tests.rb +0 -121
  311. data/tests/hp/storage_tests.rb +0 -28
  312. data/tests/hp/user_agent_tests.rb +0 -13
  313. data/tests/ninefold/models/storage/file_update_tests.rb +0 -19
  314. data/tests/ninefold/models/storage/nested_directories_tests.rb +0 -23
  315. data/tests/ninefold/requests/compute/address_tests.rb +0 -42
  316. data/tests/ninefold/requests/compute/async_job_tests.rb +0 -33
  317. data/tests/ninefold/requests/compute/helper.rb +0 -369
  318. data/tests/ninefold/requests/compute/list_tests.rb +0 -56
  319. data/tests/ninefold/requests/compute/load_balancer_tests.rb +0 -66
  320. data/tests/ninefold/requests/compute/nat_tests.rb +0 -91
  321. data/tests/ninefold/requests/compute/network_tests.rb +0 -21
  322. data/tests/ninefold/requests/compute/template_tests.rb +0 -21
  323. data/tests/ninefold/requests/compute/virtual_machine_tests.rb +0 -68
@@ -1,69 +0,0 @@
1
- Shindo.tests('HP::BlockStorageV2 | snapshot requests', ['hp', 'v2', 'block_storage', 'snapshots']) do
2
-
3
- @snapshot_format = {
4
- 'status' => String,
5
- 'display_description' => Fog::Nullable::String,
6
- 'display_name' => Fog::Nullable::String,
7
- 'volume_id' => String,
8
- 'size' => Integer,
9
- 'id' => String,
10
- 'created_at' => String,
11
- 'metadata' => Fog::Nullable::Hash
12
- }
13
-
14
- tests('success') do
15
-
16
- @snapshot_id = nil
17
- @snapshot_name = 'fogsnapshot2tests'
18
- @snapshot_desc = @snapshot_name + ' desc'
19
-
20
- @volume = HP[:block_storage_v2].volumes.create(:name => 'fogvol2forsnap', :size => 1)
21
- @volume.wait_for { ready? }
22
-
23
- tests("#create_snapshot(#{@volume.id}, {'display_name' => #{@snapshot_name}, 'display_description' => #{@snapshot_desc} })").formats(@snapshot_format) do
24
- data = HP[:block_storage_v2].create_snapshot(@volume.id, {'display_name' => @snapshot_name, 'display_description' => @snapshot_desc} ).body['snapshot']
25
- @snapshot_id = data['id']
26
- data
27
- end
28
-
29
- tests("#get_snapshot_details(#{@snapshot_id})").formats(@snapshot_format) do
30
- HP[:block_storage_v2].get_snapshot_details(@snapshot_id).body['snapshot']
31
- end
32
-
33
- tests("#update_snapshot(#{@snapshot_id}, 'display_name' => '#{@snapshot_name} Updated')").formats(@snapshot_format) do
34
- HP[:block_storage_v2].update_snapshot(@snapshot_id, 'display_name' => "#{@snapshot_name} Updated").body['snapshot']
35
- end
36
-
37
- tests('#list_snapshots').formats({'snapshots' => [@snapshot_format]}) do
38
- HP[:block_storage_v2].list_snapshots.body
39
- end
40
-
41
- tests('#list_snapshots_detail').formats({'snapshots' => [@snapshot_format]}) do
42
- HP[:block_storage_v2].list_snapshots_detail.body
43
- end
44
-
45
- tests("#delete_snapshot(#{@snapshot_id})").succeeds do
46
- HP[:block_storage_v2].delete_snapshot(@snapshot_id)
47
- end
48
-
49
- end
50
-
51
- tests('failure') do
52
-
53
- tests('#get_snapshot_details(0)').raises(Fog::HP::BlockStorageV2::NotFound) do
54
- HP[:block_storage_v2].get_snapshot_details(0)
55
- end
56
-
57
- tests('#update_snapshot(0)').raises(Fog::HP::BlockStorageV2::NotFound) do
58
- HP[:block_storage_v2].update_snapshot(0)
59
- end
60
-
61
- tests('#delete_snapshot(0)').raises(Fog::HP::BlockStorageV2::NotFound) do
62
- HP[:block_storage_v2].delete_snapshot(0)
63
- end
64
-
65
- end
66
-
67
- @volume.destroy
68
-
69
- end
@@ -1,117 +0,0 @@
1
- Shindo.tests("Fog::HP::BlockStorageV2 | volume backup requests", ['hp', 'v2', 'block_storage', 'volume_backup']) do
2
-
3
- @backup_details_format = {
4
- 'id' => String,
5
- 'status' => String,
6
- 'name' => Fog::Nullable::String,
7
- 'description' => Fog::Nullable::String,
8
- 'container' => String,
9
- 'availability_zone' => String,
10
- 'created_at' => String,
11
- 'volume_id' => String,
12
- 'size' => Integer,
13
- 'links' => [Fog::Nullable::Hash],
14
- 'fail_reason' => Fog::Nullable::String,
15
- 'object_count' => Integer
16
- }
17
-
18
- @backup_format = {
19
- 'id' => String,
20
- 'name' => Fog::Nullable::String,
21
- 'links' => [Fog::Nullable::Hash]
22
- }
23
-
24
- @restore_format = {
25
- 'backup_id' => String,
26
- 'volume_id' => String
27
- }
28
-
29
- tests('success') do
30
-
31
- @backup_id = nil
32
- @backup_name = 'fogvolbackup2tests'
33
- @backup_desc = @backup_name + ' desc'
34
-
35
- @volume = HP[:block_storage_v2].volumes.create(:name => 'fogvol2forbackup', :size => 1)
36
- @volume.wait_for { ready? }
37
-
38
- @target_volume = HP[:block_storage_v2].volumes.create(:name => 'fogtargetvolume', :size => 2)
39
- @target_volume.wait_for { ready? }
40
-
41
- tests("#create_volume_backup(#{@volume.id}, {'name' => #{@backup_name}, 'description' => #{@backup_desc}, 'container' => 'my_backups')").formats(@backup_format) do
42
- data = HP[:block_storage_v2].create_volume_backup(@volume.id, {'name' => @backup_name, 'description' => @backup_desc, 'container' => 'my_backups'}).body['backup']
43
- @backup_id = data['id']
44
- data
45
- end
46
-
47
- tests("#get_volume_backup_details(#{@backup_id})").formats(@backup_details_format) do
48
- HP[:block_storage_v2].get_volume_backup_details(@backup_id).body['backup']
49
- end
50
-
51
- tests('#list_volume_backups').formats({'backups' => [@backup_format]}) do
52
- HP[:block_storage_v2].list_volume_backups.body
53
- end
54
-
55
- tests('#list_volume_backups_detail').formats({'backups' => [@backup_details_format]}) do
56
- HP[:block_storage_v2].list_volume_backups_detail.body
57
- end
58
-
59
- # restore into new volume
60
- tests("#restore_volume_backup(#{@backup_id}").formats(@restore_format) do
61
- data = HP[:block_storage_v2].restore_volume_backup(@backup_id).body['restore']
62
- restored_volume_id = data['volume_id']
63
- restored_volume = HP[:block_storage_v2].get_volume_details(restored_volume_id).body['volume']
64
- test ('should create a new volume with backup restored') do
65
- restored_volume['display_name'] == @volume.name
66
- restored_volume['display_description'] == @volume.description
67
- restored_volume['availability_zone'] == @volume.availability_zone
68
- restored_volume['size'] == @volume.size
69
- end
70
- data
71
- end
72
-
73
- ## restore into existing volume
74
- tests("#restore_volume_backup(#{@backup_id}, {'volume_id' => #{@target_volume.id}}").formats(@restore_format) do
75
- data = HP[:block_storage_v2].restore_volume_backup(@backup_id, {'volume_id' => @target_volume.id}).body['restore']
76
- restored_volume_id = data['volume_id']
77
- restored_volume = HP[:block_storage_v2].get_volume_details(restored_volume_id).body['volume']
78
- test ('should overwrite the existing volume with backup restored') do
79
- restored_volume['id'] == @target_volume.id
80
- restored_volume['display_name'] == @volume.name
81
- restored_volume['display_description'] == @volume.description
82
- restored_volume['availability_zone'] == @volume.availability_zone
83
- restored_volume['size'] == @volume.size
84
- end
85
- data
86
- end
87
- #
88
- tests("#delete_volume_backup(#{@backup_id})").succeeds do
89
- HP[:block_storage_v2].delete_volume_backup(@backup_id)
90
- end
91
-
92
- end
93
-
94
- tests('failure') do
95
-
96
- tests('#get_volume_backup_details("0")').raises(Fog::HP::BlockStorageV2::NotFound) do
97
- HP[:block_storage_v2].get_volume_backup_details('0')
98
- end
99
-
100
- tests('#restore_volume_backup("0")').raises(Fog::HP::BlockStorageV2::NotFound) do
101
- HP[:block_storage_v2].restore_volume_backup('0')
102
- end
103
-
104
- tests("#restore_volume_backup(#{@backup_id}, '0')").raises(Fog::HP::BlockStorageV2::NotFound) do
105
- HP[:block_storage_v2].restore_volume_backup(@backup_id, '0')
106
- end
107
-
108
- tests('#delete_volume_backup("0")').raises(Fog::HP::BlockStorageV2::NotFound) do
109
- HP[:block_storage_v2].delete_volume_backup('0')
110
- end
111
-
112
- end
113
-
114
- @target_volume.destroy
115
- @volume.destroy
116
-
117
- end
@@ -1,106 +0,0 @@
1
- Shindo.tests("Fog::HP::BlockStorageV2 | volume requests", ['hp', 'v2', 'block_storage', 'volumes']) do
2
-
3
- compute_service = Fog::Compute.new(:provider => 'HP', :version => :v2)
4
-
5
- @volume_format = {
6
- 'id' => String,
7
- 'display_name' => Fog::Nullable::String,
8
- 'display_description' => Fog::Nullable::String,
9
- 'size' => Integer,
10
- 'status' => String,
11
- 'volume_type' => Fog::Nullable::String,
12
- 'snapshot_id' => Fog::Nullable::String,
13
- 'source_volid' => Fog::Nullable::String,
14
- 'bootable' => Fog::Boolean,
15
- 'created_at' => String,
16
- 'availability_zone' => String,
17
- 'attachments' => [Fog::Nullable::Hash],
18
- 'metadata' => Fog::Nullable::Hash
19
- }
20
-
21
- @volume_attach_format = {
22
- 'device' => String,
23
- 'serverId' => String,
24
- 'volumeId' => String,
25
- 'id' => String
26
- }
27
-
28
- tests('success') do
29
-
30
- @volume_id = nil
31
- @volume_name = 'fogvolume2tests'
32
- @volume_desc = @volume_name + ' desc'
33
- @base_image_id = ENV['BASE_IMAGE_ID'] || '7f60b54c-cd15-433f-8bed-00acbcd25a17'
34
-
35
- @server = compute_service.servers.create(:name => 'fogvoltests', :flavor_id => 100, :image_id => @base_image_id)
36
- @server.wait_for { ready? }
37
-
38
- tests("#create_volume('display_name' => #{@volume_name}, 'display_description' => #{@volume_desc}, 'size' => 1)").formats(@volume_format) do
39
- data = HP[:block_storage_v2].create_volume('display_name' => @volume_name, 'display_description' => @volume_desc, 'size' => 1).body['volume']
40
- @volume_id = data['id']
41
- data
42
- end
43
-
44
- tests("#get_volume_details(#{@volume_id})").formats(@volume_format) do
45
- HP[:block_storage_v2].get_volume_details(@volume_id).body['volume']
46
- end
47
-
48
- tests("#update_volume(#{@volume_id}, 'display_name' => #{@volume_name}+' Upd'").formats(@volume_format) do
49
- data = HP[:block_storage_v2].update_volume(@volume_id, 'display_name' => @volume_name).body['volume']
50
- @volume_id = data['id']
51
- data
52
- end
53
-
54
- tests('#list_volumes').formats({'volumes' => [@volume_format]}) do
55
- HP[:block_storage_v2].list_volumes.body
56
- end
57
-
58
- tests('#list_volumes_detail').formats({'volumes' => [@volume_format]}) do
59
- HP[:block_storage_v2].list_volumes_detail.body
60
- end
61
-
62
- tests("#attach_volume(#{@server.id}, #{@volume_id}, '/dev/sdg')").formats(@volume_attach_format) do
63
- compute_service.attach_volume(@server.id, @volume_id, "/dev/sdg").body['volumeAttachment']
64
- end
65
-
66
- tests("#detach_volume(#{@server.id}, #{@volume_id})").succeeds do
67
- compute_service.detach_volume(@server.id, @volume_id)
68
- end
69
-
70
- tests("#delete_volume(#{@volume_id})").succeeds do
71
- HP[:block_storage_v2].delete_volume(@volume_id)
72
- end
73
-
74
- end
75
-
76
- tests('failure') do
77
-
78
- tests('#get_volume_details(0)').raises(Fog::HP::BlockStorageV2::NotFound) do
79
- HP[:block_storage_v2].get_volume_details(0)
80
- end
81
-
82
- tests("#attach_volume(0, 0, '/dev/sdg')").raises(Fog::Compute::HPV2::NotFound) do
83
- compute_service.attach_volume(0, 0, "/dev/sdg")
84
- end
85
- tests("#attach_volume(#{@server.id}, 0, '/dev/sdg')").raises(Fog::HP::BlockStorageV2::NotFound) do
86
- pending if Fog.mocking?
87
- compute_service.attach_volume(@server.id, 0, "/dev/sdg")
88
- end
89
-
90
- tests('#detach_volume(0, 0)').raises(Fog::Compute::HPV2::NotFound) do
91
- compute_service.detach_volume(0, 0)
92
- end
93
- tests("#detach_volume(#{@server.id}, 0)").raises(Fog::HP::BlockStorageV2::NotFound) do
94
- pending if Fog.mocking?
95
- compute_service.detach_volume(@server.id, 0)
96
- end
97
-
98
- tests('#delete_volume(0)').raises(Fog::HP::BlockStorageV2::NotFound) do
99
- HP[:block_storage_v2].delete_volume(0)
100
- end
101
-
102
- end
103
-
104
- @server.destroy
105
-
106
- end
@@ -1,56 +0,0 @@
1
- Shindo.tests("Fog::CDN[:hp] | container requests", ['hp']) do
2
-
3
- @cdn_containers_format = [{
4
- 'x-cdn-ssl-uri' => String,
5
- 'cdn_enabled' => Fog::Boolean,
6
- 'name' => String,
7
- 'x-cdn-uri' => String,
8
- 'ttl' => Integer,
9
- 'log_retention' => Fog::Boolean
10
- }]
11
-
12
- tests('success') do
13
-
14
- tests("#put_container('fogcdncontainertests')").succeeds do
15
- Fog::CDN[:hp].put_container('fogcdncontainertests')
16
- end
17
-
18
- tests("duplicate #put_container('fogcdncontainertests')").succeeds do
19
- Fog::CDN[:hp].put_container('fogcdncontainertests')
20
- end
21
-
22
- tests("#get_containers").formats(@cdn_containers_format) do
23
- Fog::CDN[:hp].get_containers.body
24
- end
25
-
26
- tests("#post_container('fogcdncontainertests', {'x-ttl' => 3200})").succeeds do
27
- Fog::CDN[:hp].post_container('fogcdncontainertests', {'x-ttl' => 3200})
28
- end
29
-
30
- tests("#head_container('fogcdncontainertests')").succeeds do
31
- Fog::CDN[:hp].head_container('fogcdncontainertests')
32
- end
33
-
34
- tests("#delete_container('fogcdncontainertests')").succeeds do
35
- Fog::CDN[:hp].delete_container('fogcdncontainertests')
36
- end
37
-
38
- end
39
-
40
- tests('failure') do
41
-
42
- tests("#post_container('fognoncdncontainer', {'x-ttl' => 3200})").raises(Fog::CDN::HP::NotFound) do
43
- Fog::CDN[:hp].post_container('fogcdnnoncontainer', {'x-ttl' => 3200})
44
- end
45
-
46
- tests("#head_container('fognoncdncontainer')").raises(Fog::CDN::HP::NotFound) do
47
- Fog::CDN[:hp].head_container('fognoncdncontainer')
48
- end
49
-
50
- tests("#delete_container('fognoncdncontainer')").raises(Fog::CDN::HP::NotFound) do
51
- Fog::CDN[:hp].delete_container('fognoncdncontainer')
52
- end
53
-
54
- end
55
-
56
- end
@@ -1,72 +0,0 @@
1
- Shindo.tests("Fog::Compute[:hp] | address requests", ['hp', 'address']) do
2
-
3
- @floating_ips_format = {
4
- 'instance_id' => Fog::Nullable::Integer,
5
- 'ip' => Fog::Nullable::String,
6
- 'fixed_ip' => Fog::Nullable::String,
7
- 'id' => Integer
8
- }
9
-
10
- @base_image_id = ENV["BASE_IMAGE_ID"] || 1242
11
-
12
- tests('success') do
13
-
14
- tests("#list_addresses").formats({'floating_ips' => [@floating_ips_format]}) do
15
- Fog::Compute[:hp].list_addresses.body
16
- end
17
-
18
- tests("#allocate_address").formats(@floating_ips_format) do
19
- data = Fog::Compute[:hp].allocate_address.body['floating_ip']
20
- @address_id = data['id']
21
- @ip_address = data['ip']
22
- data
23
- end
24
-
25
- tests("#get_address('#{@address_id}')").formats(@floating_ips_format) do
26
- Fog::Compute[:hp].get_address(@address_id).body['floating_ip']
27
- end
28
-
29
- @server = Fog::Compute[:hp].servers.create(:name => 'fogaddresstests', :flavor_id => 100, :image_id => @base_image_id)
30
- @server.wait_for { ready? }
31
-
32
- tests("#associate_address('#{@server.id}', '#{@ip_address}')").succeeds do
33
- Fog::Compute[:hp].associate_address(@server.id, @ip_address)
34
- tests("#get_address").returns(@ip_address, "server has associated ip address") do
35
- @server.reload
36
- @server.addresses['private'][1]['addr']
37
- end
38
- end
39
-
40
- tests("#disassociate_address('#{@server.id}', '#{@ip_address}')").succeeds do
41
- Fog::Compute[:hp].disassociate_address(@server.id, @ip_address)
42
- end
43
-
44
- @server.destroy
45
-
46
- tests("#release_address('#{@address_id}')").succeeds do
47
- Fog::Compute[:hp].release_address(@address_id)
48
- end
49
-
50
- end
51
-
52
- tests('failure') do
53
-
54
- tests("#get_address('invalidaddress', 'invalidip')").raises(Fog::Compute::HP::NotFound) do
55
- Fog::Compute[:hp].get_address('invalidaddress')
56
- end
57
-
58
- tests("#associate_address('invalidserver', 'invalidip')").raises(Excon::Errors::InternalServerError) do
59
- Fog::Compute[:hp].associate_address('invalidserver', 'invalidip')
60
- end
61
-
62
- tests("#disassociate_address('invalidserver', 'invalidip')").raises(Excon::Errors::InternalServerError) do
63
- Fog::Compute[:hp].disassociate_address('invalidserver', 'invalidip')
64
- end
65
-
66
- tests("#release_address('invalidaddress')").raises(Fog::Compute::HP::NotFound) do
67
- Fog::Compute[:hp].release_address('invalidaddress')
68
- end
69
-
70
- end
71
-
72
- end
@@ -1,45 +0,0 @@
1
- Shindo.tests("Fog::Compute[:hp] | flavor requests", ['hp']) do
2
-
3
- @flavor_format = {
4
- 'rxtx_quota' => Integer,
5
- 'rxtx_cap' => Integer,
6
- 'vcpus' => Integer,
7
- 'swap' => Integer,
8
- 'disk' => Integer,
9
- 'ram' => Integer,
10
- 'id' => Integer,
11
- 'links' => [Hash],
12
- 'name' => String
13
- }
14
-
15
- @list_flavors_format = {
16
- 'id' => Integer,
17
- 'name' => String,
18
- 'links' => [Hash]
19
- }
20
-
21
- tests('success') do
22
-
23
- tests('#list_flavors').formats({'flavors' => [@list_flavors_format]}) do
24
- Fog::Compute[:hp].list_flavors.body
25
- end
26
-
27
- tests('#get_flavor_details(1)').formats(@flavor_format) do
28
- Fog::Compute[:hp].get_flavor_details(1).body['flavor']
29
- end
30
-
31
- tests('#list_flavors_detail').formats({'flavors' => [@flavor_format]}) do
32
- Fog::Compute[:hp].list_flavors_detail.body
33
- end
34
-
35
- end
36
-
37
- tests('failure') do
38
-
39
- tests('#get_flavor_details(9999)').raises(Fog::Compute::HP::NotFound) do
40
- Fog::Compute[:hp].get_flavor_details(9999)
41
- end
42
-
43
- end
44
-
45
- end