brightbox-cli 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (229) hide show
  1. data/.gitignore +1 -1
  2. data/brightbox-cli.gemspec +10 -9
  3. data/lib/brightbox-cli/commands/servers-activate-console.rb +1 -1
  4. data/lib/brightbox-cli/commands/types-show.rb +5 -4
  5. data/lib/brightbox-cli/config.rb +1 -1
  6. data/lib/brightbox-cli/detailed_server.rb +2 -1
  7. data/lib/brightbox-cli/gli_global_hooks.rb +1 -8
  8. data/lib/brightbox-cli/server_groups.rb +4 -0
  9. data/lib/brightbox-cli/servers.rb +5 -13
  10. data/lib/brightbox-cli/types.rb +1 -1
  11. data/lib/brightbox-cli/vendor/fog/.gitignore +1 -0
  12. data/lib/brightbox-cli/vendor/fog/README.rdoc +1 -1
  13. data/lib/brightbox-cli/vendor/fog/Rakefile +4 -3
  14. data/lib/brightbox-cli/vendor/fog/changelog.txt +213 -0
  15. data/lib/brightbox-cli/vendor/fog/docs/compute/index.markdown +15 -1
  16. data/lib/brightbox-cli/vendor/fog/docs/index.markdown +1 -1
  17. data/lib/brightbox-cli/vendor/fog/docs/storage/index.markdown +4 -4
  18. data/lib/brightbox-cli/vendor/fog/examples/compute_tests.rb +18 -6
  19. data/lib/brightbox-cli/vendor/fog/examples/dns_tests.rb +1 -1
  20. data/lib/brightbox-cli/vendor/fog/examples/storage_tests.rb +1 -1
  21. data/lib/brightbox-cli/vendor/fog/fog.gemspec +4 -3
  22. data/lib/brightbox-cli/vendor/fog/lib/fog.rb +1 -1
  23. data/lib/brightbox-cli/vendor/fog/lib/fog/aws.rb +16 -1
  24. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/auto_scaling.rb +2 -17
  25. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/cloud_formation.rb +1 -16
  26. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/cloud_watch.rb +2 -17
  27. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/compute.rb +10 -21
  28. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/elasticache.rb +1 -7
  29. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/elb.rb +34 -24
  30. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/emr.rb +5 -4
  31. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/iam.rb +16 -1
  32. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/group.rb +2 -2
  33. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/cloud_watch/metric_statistic.rb +1 -2
  34. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/security_group.rb +3 -3
  35. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/security_groups.rb +25 -0
  36. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/server.rb +4 -1
  37. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/dns/records.rb +3 -3
  38. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elb/listener.rb +9 -7
  39. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elb/load_balancer.rb +6 -0
  40. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/directory.rb +21 -0
  41. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/file.rb +19 -5
  42. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/files.rb +4 -4
  43. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_instances.rb +2 -2
  44. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_security_groups.rb +2 -2
  45. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/sqs/receive_message.rb +1 -1
  46. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/rds.rb +41 -18
  47. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/create_security_group.rb +6 -4
  48. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/create_tags.rb +3 -2
  49. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_availability_zones.rb +3 -0
  50. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_security_groups.rb +2 -0
  51. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb +2 -0
  52. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_lb_cookie_stickiness_policy.rb +3 -1
  53. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_load_balancer.rb +7 -2
  54. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_load_balancer_listeners.rb +10 -1
  55. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/delete_load_balancer_policy.rb +1 -1
  56. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/describe_load_balancers.rb +5 -1
  57. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/set_load_balancer_listener_ssl_certificate.rb +27 -0
  58. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/set_load_balancer_policies_of_listener.rb +1 -1
  59. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/emr/run_job_flow.rb +9 -7
  60. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/add_user_to_group.rb +24 -0
  61. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_access_key.rb +24 -0
  62. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_group.rb +21 -0
  63. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_user.rb +21 -0
  64. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_access_key.rb +17 -0
  65. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_group.rb +19 -0
  66. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_user.rb +17 -0
  67. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_user_policy.rb +16 -0
  68. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_access_keys.rb +21 -0
  69. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_groups.rb +18 -0
  70. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_groups_for_user.rb +24 -0
  71. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_user_policies.rb +18 -0
  72. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_users.rb +17 -0
  73. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/put_user_policy.rb +18 -0
  74. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/remove_user_from_group.rb +19 -0
  75. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/upload_server_certificate.rb +1 -1
  76. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb +30 -1
  77. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_instance.rb +67 -1
  78. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_security_group.rb +19 -1
  79. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/delete_db_instance.rb +19 -3
  80. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/delete_db_security_group.rb +11 -1
  81. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb +56 -1
  82. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_reserved_instances.rb +1 -1
  83. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_security_groups.rb +44 -2
  84. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/modify_db_instance.rb +26 -1
  85. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/reboot_db_instance.rb +17 -1
  86. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/revoke_db_security_group_ingress.rb +27 -1
  87. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/change_message_visibility.rb +1 -1
  88. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/delete_message.rb +1 -1
  89. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/receive_message.rb +13 -14
  90. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/copy_object.rb +14 -6
  91. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/delete_object.rb +73 -2
  92. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket.rb +3 -2
  93. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +95 -2
  94. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket_versioning.rb +32 -0
  95. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object.rb +27 -1
  96. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object_http_url.rb +4 -3
  97. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object_https_url.rb +4 -3
  98. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_bucket_versioning.rb +41 -0
  99. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_bucket_website.rb +17 -0
  100. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_object.rb +25 -9
  101. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/ses.rb +2 -7
  102. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/simpledb.rb +4 -17
  103. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/sns.rb +1 -14
  104. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/sqs.rb +5 -11
  105. data/lib/brightbox-cli/vendor/fog/lib/fog/aws/storage.rb +6 -22
  106. data/lib/brightbox-cli/vendor/fog/lib/fog/bin.rb +2 -0
  107. data/lib/brightbox-cli/vendor/fog/lib/fog/bin/aws.rb +9 -1
  108. data/lib/brightbox-cli/vendor/fog/lib/fog/bin/voxel.rb +1 -1
  109. data/lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/server.rb +1 -0
  110. data/lib/brightbox-cli/vendor/fog/lib/fog/compute.rb +6 -0
  111. data/lib/brightbox-cli/vendor/fog/lib/fog/compute/models/server.rb +11 -0
  112. data/lib/brightbox-cli/vendor/fog/lib/fog/core.rb +0 -1
  113. data/lib/brightbox-cli/vendor/fog/lib/fog/core/connection.rb +0 -1
  114. data/lib/brightbox-cli/vendor/fog/lib/fog/core/errors.rb +5 -0
  115. data/lib/brightbox-cli/vendor/fog/lib/fog/core/scp.rb +18 -2
  116. data/lib/brightbox-cli/vendor/fog/lib/fog/core/wait_for.rb +1 -1
  117. data/lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/dns.rb +1 -1
  118. data/lib/brightbox-cli/vendor/fog/lib/fog/dynect/models/dns/records.rb +2 -2
  119. data/lib/brightbox-cli/vendor/fog/lib/fog/dynect/requests/dns/get_node_list.rb +2 -1
  120. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/compute.rb +1 -1
  121. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_backup_internet_service.rb +1 -1
  122. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_internet_service.rb +2 -2
  123. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_node.rb +1 -1
  124. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/clone_vapp.rb +1 -1
  125. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_internet_service.rb +1 -1
  126. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_network.rb +1 -1
  127. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_network_ip.rb +1 -1
  128. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_vapp.rb +1 -1
  129. data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/instantiate_vapp_template.rb +1 -1
  130. data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/compute.rb +7 -3
  131. data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/nodes.rb +1 -3
  132. data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/server.rb +93 -99
  133. data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/servers.rb +2 -1
  134. data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/util.rb +1 -2
  135. data/lib/brightbox-cli/vendor/fog/lib/fog/providers.rb +2 -0
  136. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/dns.rb +10 -2
  137. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/load_balancers.rb +3 -0
  138. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/compute/flavor.rb +2 -0
  139. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/compute/server.rb +2 -2
  140. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/dns/callback.rb +3 -1
  141. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/dns/record.rb +4 -0
  142. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/load_balancers/load_balancer.rb +18 -8
  143. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/storage/directory.rb +5 -1
  144. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/create_image.rb +1 -3
  145. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb +1 -2
  146. data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/list_load_balancers.rb +8 -2
  147. data/lib/brightbox-cli/vendor/fog/lib/fog/storm_on_demand/compute.rb +1 -1
  148. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/compute.rb +91 -30
  149. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalog.rb +1 -1
  150. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalog_item.rb +1 -1
  151. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalogs.rb +5 -8
  152. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/ip.rb +2 -2
  153. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/network.rb +9 -51
  154. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/networks.rb +21 -7
  155. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/server.rb +38 -58
  156. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/servers.rb +12 -18
  157. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/task.rb +1 -1
  158. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/tasks.rb +1 -3
  159. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/vdc.rb +14 -29
  160. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/vdcs.rb +6 -11
  161. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/clone_vapp.rb +1 -1
  162. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_network.rb +1 -1
  163. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_network_ip.rb +1 -1
  164. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_vapp.rb +1 -1
  165. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_vm.rb +1 -1
  166. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/instantiate_vapp_template.rb +1 -1
  167. data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/login.rb +8 -4
  168. data/lib/brightbox-cli/vendor/fog/lib/fog/virtual_box/compute.rb +4 -0
  169. data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/compute.rb +1 -0
  170. data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/models/compute/server.rb +7 -1
  171. data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +86 -86
  172. data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/requests/compute/vm_clone.rb +43 -8
  173. data/lib/brightbox-cli/vendor/fog/lib/fog/zerigo/models/dns/record.rb +7 -5
  174. data/lib/brightbox-cli/vendor/fog/lib/fog/zerigo/requests/dns/update_host.rb +2 -2
  175. data/lib/brightbox-cli/vendor/fog/spec/ecloud/spec_helper.rb +1 -1
  176. data/lib/brightbox-cli/vendor/fog/tests/aws/models/elb/model_tests.rb +15 -6
  177. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/instance_tests.rb +37 -0
  178. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/security_group_tests.rb +6 -4
  179. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/helper.rb +33 -0
  180. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/listener_tests.rb +22 -4
  181. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/policy_tests.rb +13 -0
  182. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/access_key_tests.rb +2 -7
  183. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/group_tests.rb +1 -4
  184. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/user_policy_tests.rb +4 -11
  185. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/user_tests.rb +19 -12
  186. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/rds/helper.rb +38 -3
  187. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/rds/instance_tests.rb +3 -1
  188. data/lib/brightbox-cli/vendor/fog/tests/aws/requests/storage/bucket_tests.rb +66 -1
  189. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb +3 -3
  190. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/api_client_tests.rb +6 -6
  191. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/cloud_ip_tests.rb +15 -9
  192. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/helper.rb +6 -2
  193. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/image_tests.rb +2 -2
  194. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/interface_tests.rb +1 -1
  195. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/load_balancer_tests.rb +9 -9
  196. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_group_tests.rb +8 -8
  197. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_tests.rb +17 -13
  198. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_type_tests.rb +2 -2
  199. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/user_tests.rb +3 -3
  200. data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/zone_tests.rb +2 -2
  201. data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/helper.rb +87 -64
  202. data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/ip_tests.rb +1 -1
  203. data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/server_tests.rb +4 -4
  204. data/lib/brightbox-cli/vendor/fog/tests/helpers/formats_helper.rb +1 -1
  205. data/lib/brightbox-cli/vendor/fog/tests/helpers/mock_helper.rb +2 -0
  206. data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/dns/dns_tests.rb +4 -2
  207. data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/helper.rb +27 -11
  208. data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +4 -1
  209. data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/node_tests.rb +24 -25
  210. data/lib/brightbox-cli/vendor/fog/tests/slicehost/requests/compute/slice_tests.rb +2 -2
  211. data/lib/brightbox-cli/vendor/fog/tests/storm_on_demand/requests/compute/server_tests.rb +3 -3
  212. data/lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/servers_tests.rb +18 -90
  213. data/lib/brightbox-cli/vendor/fog/tests/vsphere/requests/compute/vm_clone_tests.rb +16 -4
  214. data/lib/brightbox-cli/vendor/fog/tests/vsphere/requests/compute/vm_power_on_tests.rb +1 -1
  215. data/lib/brightbox-cli/version.rb +1 -1
  216. data/spec/cloud_ips_spec.rb +1 -1
  217. data/spec/fixtures/vcr_cassettes/list_cloud_ip.yml +58 -26
  218. data/spec/fixtures/vcr_cassettes/server_show.yml +143 -102
  219. data/spec/servers_spec.rb +3 -2
  220. data/spec/spec_helper.rb +4 -0
  221. metadata +128 -213
  222. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/access_list_tests.rb +0 -12
  223. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/access_lists_tests.rb +0 -12
  224. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/load_balancer_tests.rb +0 -116
  225. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/load_balancers_tests.rb +0 -19
  226. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/node_tests.rb +0 -19
  227. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/nodes_tests.rb +0 -12
  228. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/virtual_ip_tests.rb +0 -16
  229. data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/virtual_ips_tests.rb +0 -12
@@ -10,7 +10,7 @@ Shindo.tests('Fog::Compute[:glesys] | ip requests', ['glesys']) do
10
10
  Fog::Compute[:glesys].ip_list_own.body['response']
11
11
  end
12
12
 
13
- tests("#ip_list_free(:datcenter => 'Falkenberg, :platform => 'Xen', :ipversion => 4)"
13
+ tests("#ip_list_free(:datacenter => 'Falkenberg, :platform => 'Xen', :ipversion => 4)"
14
14
  ).formats(Glesys::Compute::Formats::Ips::IPLIST_ALL) do
15
15
  pending if Fog.mocking?
16
16
  ips = Fog::Compute[:glesys].ip_list_free(
@@ -1,5 +1,5 @@
1
1
  Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
2
-
2
+
3
3
  @serverid = nil
4
4
  @hostname = "fog-#{Time.now.to_i}"
5
5
 
@@ -27,7 +27,7 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
27
27
  :cpucores => "1",
28
28
  :transfer => "500"
29
29
  )
30
-
30
+
31
31
  @serverid = vm.body['response']['server']['serverid']
32
32
  vm.body['response']
33
33
  end
@@ -35,7 +35,7 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
35
35
  unless Fog.mocking?
36
36
  Fog::Compute[:glesys].servers.get(@serverid).wait_for { ready? }
37
37
  end
38
-
38
+
39
39
  tests("#server_details(#{@serverid})").formats(Glesys::Compute::Formats::Servers::DETAILS) do
40
40
  pending if Fog.mocking?
41
41
  Fog::Compute[:glesys].server_details(@serverid).body['response']
@@ -55,7 +55,7 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
55
55
  unless Fog.mocking?
56
56
  pending if Fog.mocking?
57
57
  s = Fog::Compute[:glesys].servers.get(@serverid)
58
- s.wait_for { s.state == 'stopped' }
58
+ s.wait_for { s.state == 'stopped' }
59
59
  end
60
60
 
61
61
  tests("#start(:serverid => #{@serverid})").formats(Glesys::Compute::Formats::Servers::START) do
@@ -14,7 +14,7 @@ module Fog
14
14
  end
15
15
  end
16
16
  [FalseClass, TrueClass].each {|klass| klass.send(:include, Fog::Boolean)}
17
- [NilClass, Fog::Boolean].each {|klass| klass.send(:include, Fog::Nullable::Boolean)}
17
+ [FalseClass, TrueClass, NilClass, Fog::Boolean].each {|klass| klass.send(:include, Fog::Nullable::Boolean)}
18
18
  [NilClass, String].each {|klass| klass.send(:include, Fog::Nullable::String)}
19
19
  [NilClass, Time].each {|klass| klass.send(:include, Fog::Nullable::Time)}
20
20
  [Integer, NilClass].each {|klass| klass.send(:include, Fog::Nullable::Integer)}
@@ -15,6 +15,8 @@ if Fog.mock?
15
15
  :bluebox_customer_id => 'bluebox_customer_id',
16
16
  :brightbox_client_id => 'brightbox_client_id',
17
17
  :brightbox_secret => 'brightbox_secret',
18
+ :clodo_api_key => 'clodo_api_key',
19
+ :clodo_username => 'clodo_username',
18
20
  :dnsimple_email => 'dnsimple_email',
19
21
  :dnsimple_password => 'dnsimple_password',
20
22
  :dnsmadeeasy_api_key => 'dnsmadeeasy_api_key',
@@ -101,8 +101,10 @@ Shindo.tests('Fog::DNS[:rackspace] | DNS requests', ['rackspace', 'dns']) do
101
101
 
102
102
  tests( 'failure') do
103
103
 
104
- tests('create_domain(invalid)').raises(Fog::Rackspace::Errors::BadRequest) do
105
- wait_for Fog::DNS[:rackspace], Fog::DNS[:rackspace].create_domains([{:name => 'badtestdomain.com', :email => '', :records => [{:ttl => 300, :name => 'badtestdomain.com', :type => 'A', :data => '192.168.1.1'}]}])
104
+ tests('create_domain(invalid)').returns('ERROR') do
105
+ response = wait_for Fog::DNS[:rackspace], Fog::DNS[:rackspace].create_domains([{:name => 'badtestdomain.com', :email => '', :records => [{:ttl => 300, :name => 'badtestdomain.com', :type => 'A', :data => '192.168.1.1'}]}])
106
+
107
+ response.body['status']
106
108
  end
107
109
 
108
110
  tests('list_domains :limit => 5, :offset => 8').raises(Fog::Rackspace::Errors::BadRequest) do
@@ -3,6 +3,11 @@ NODE_FORMAT = {'node' => SINGLE_NODE_FORMAT}
3
3
  NODES_FORMAT = {'nodes' => [SINGLE_NODE_FORMAT]}
4
4
  VIRTUAL_IP_FORMAT = {'type' => String, 'id' => Integer, 'type' => String, 'ipVersion' => String, 'address' => String}
5
5
  VIRTUAL_IPS_FORMAT = { 'virtualIps' => [VIRTUAL_IP_FORMAT] }
6
+ SOURCE_ADDRESSES = {
7
+ 'ipv4Servicenet' => String,
8
+ 'ipv4Public' => String,
9
+ 'ipv6Public' => String,
10
+ }
6
11
  LOAD_BALANCER_USAGE_FORMAT = {
7
12
  'loadBalancerUsageRecords' => [
8
13
  {
@@ -87,11 +92,22 @@ LOAD_BALANCERS_FORMAT = {
87
92
  'port' => Integer,
88
93
  'protocol' => String,
89
94
  'algorithm' => String,
90
- 'sourceAddresses' => {
91
- 'ipv4Servicenet' => String,
92
- 'ipv4Public' => String,
93
- 'ipv6Public' => String,
94
- },
95
+ 'status' => String,
96
+ 'virtualIps' => [VIRTUAL_IP_FORMAT],
97
+ 'created' => { 'time' => String },
98
+ 'updated' => { 'time' => String }
99
+ }]
100
+ }
101
+
102
+ LOAD_BALANCERS_DETAIL_FORMAT = {
103
+ 'loadBalancers' => [
104
+ {
105
+ 'name' => String,
106
+ 'id' => Integer,
107
+ 'port' => Integer,
108
+ 'protocol' => String,
109
+ 'algorithm' => String,
110
+ 'sourceAddresses' => SOURCE_ADDRESSES,
95
111
  'status' => String,
96
112
  'virtualIps' => [VIRTUAL_IP_FORMAT],
97
113
  'nodes' => [SINGLE_NODE_FORMAT],
@@ -106,11 +122,7 @@ LOAD_BALANCER_FORMAT = {
106
122
  'port' => Integer,
107
123
  'protocol' => String,
108
124
  'algorithm' => String,
109
- 'sourceAddresses' => {
110
- 'ipv4Servicenet' => String,
111
- 'ipv4Public' => String,
112
- 'ipv6Public' => String,
113
- },
125
+ 'sourceAddresses' => SOURCE_ADDRESSES,
114
126
  'status' => String,
115
127
  'cluster' => { 'name' => String },
116
128
  'virtualIps' => [VIRTUAL_IP_FORMAT],
@@ -120,4 +132,8 @@ LOAD_BALANCER_FORMAT = {
120
132
  }.merge(CONNECTION_LOGGING_FORMAT)
121
133
  }
122
134
 
123
-
135
+ ERROR_PAGE_FORMAT = {
136
+ 'errorpage' => {
137
+ 'content' => String
138
+ }
139
+ }
@@ -8,7 +8,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
8
8
  @lb_id = nil
9
9
  @lb_name = 'fog' + Time.now.to_i.to_s
10
10
 
11
- tests('#create_load_balancer(fog, )').formats(LOAD_BALANCER_FORMAT) do
11
+ tests("#create_load_balancer(#{@lb_name}, 'HTTP', 80,...)").formats(LOAD_BALANCER_FORMAT) do
12
12
  data = @service.create_load_balancer(@lb_name, 'HTTP', 80, [{ :type => 'PUBLIC'}], [{ :address => '10.0.0.1', :port => 80, :condition => 'ENABLED'}]).body
13
13
  @lb_id = data['loadBalancer']['id']
14
14
  data
@@ -30,6 +30,9 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
30
30
  sleep 10
31
31
  end
32
32
 
33
+ tests("#list_load_balancers({:node_address => '10.0.0.1'})").formats(LOAD_BALANCERS_FORMAT) do
34
+ @service.list_load_balancers({:node_address => '10.0.0.1'}).body
35
+ end
33
36
 
34
37
  tests("#update_load_balancer(#{@lb_id}, { :port => 80 })").succeeds do
35
38
  @service.update_load_balancer(@lb_id, { :port => 80 }).body
@@ -1,4 +1,4 @@
1
- Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace']) do
1
+ Shindo.tests('Fog::Rackspace::LoadBalancers | node_tests', ['rackspace']) do
2
2
 
3
3
  pending if Fog.mocking?
4
4
 
@@ -9,7 +9,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
9
9
  tests('success') do
10
10
 
11
11
  @lb.wait_for { ready? }
12
- tests('#create_node').formats(NODES_FORMAT) do
12
+ tests("#create_node(#{@lb.id}, '10.10.10.10', 80, 'ENABLED')").formats(NODES_FORMAT) do
13
13
  data = @service.create_node(@lb.id, '10.10.10.10', 80, 'ENABLED').body
14
14
  @nodes_created << data['nodes'][0]['id']
15
15
  data
@@ -23,48 +23,48 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
23
23
  end
24
24
 
25
25
  @lb.wait_for { ready? }
26
- tests("list_nodes").formats(NODES_FORMAT) do
26
+ tests("#list_nodes(#{@lb.id})").formats(NODES_FORMAT) do
27
27
  @service.list_nodes(@lb.id).body
28
28
  end
29
29
 
30
30
  @lb.wait_for { ready? }
31
- tests("get_node(#{@lb_node_id})").formats(NODE_FORMAT) do
31
+ tests("#get_node(#{@lb.id})").formats(NODE_FORMAT) do
32
32
  @service.get_node(@lb.id, @nodes_created[0]).body
33
33
  end
34
34
 
35
- tests("update_node(#{@lb.id}, #{@nodes_created[0]})").succeeds do
36
-
37
- @lb.wait_for { ready? }
38
- tests("condition").succeeds do
39
- @service.update_node(@lb.id, @nodes_created[0], { :condition => 'DISABLED' })
40
- end
35
+ @lb.wait_for { ready? }
36
+ tests("#update_node(#{@lb.id}, #{@nodes_created[0]}, { :condition => 'DISABLED' })").succeeds do
37
+ @service.update_node(@lb.id, @nodes_created[0], { :condition => 'DISABLED' })
38
+ end
41
39
 
42
- @lb.wait_for { ready? }
43
- tests("weight").succeeds do
44
- @service.update_node(@lb.id, @nodes_created[0], { :weight => 20 })
45
- end
40
+ @lb.wait_for { ready? }
41
+ tests("#update_node(#{@lb.id}, #{@nodes_created[0]}, { :weight => 20})").succeeds do
42
+ @service.update_node(@lb.id, @nodes_created[0], { :weight => 20 })
43
+ end
46
44
 
47
- @lb.wait_for { ready? }
48
- tests("condition and weight").succeeds do
49
- @service.update_node(@lb.id, @nodes_created[0], { :condition => 'DISABLED', :weight => 20 })
50
- end
45
+ @lb.wait_for { ready? }
46
+ tests("#update_node(#{@lb.id}, #{@nodes_created[0]}, { :condition => 'DISABLED', :weight => 20 })").succeeds do
47
+ @service.update_node(@lb.id, @nodes_created[0], { :condition => 'DISABLED', :weight => 20 })
51
48
  end
52
49
  end
53
50
 
54
51
  tests('failure') do
55
- tests('create_node(invalid ip)').raises(Fog::Rackspace::LoadBalancers::BadRequest) do
52
+ tests('#create_node(invalid ip)').raises(Fog::Rackspace::LoadBalancers::BadRequest) do
56
53
  @service.create_node(@lb.id, '', 80, 'ENABLED')
57
54
  end
58
- tests('create_node(invalid condition)').raises(Fog::Rackspace::LoadBalancers::BadRequest) do
55
+ tests('#create_node(invalid condition)').raises(Fog::Rackspace::LoadBalancers::BadRequest) do
59
56
  @service.create_node(@lb.id, '10.10.10.10', 80, 'EABLED')
60
57
  end
61
- tests('get_node(0)').raises(Fog::Rackspace::LoadBalancers::NotFound) do
58
+ tests("#get_node(#{@lb.id}, 0)").raises(Fog::Rackspace::LoadBalancers::NotFound) do
62
59
  @service.get_node(@lb.id, 0)
63
60
  end
64
- tests('delete_nodes(0)').raises(Fog::Rackspace::LoadBalancers::ServiceError) do
65
- @service.delete_nodes(@lb.id, 0)
61
+ tests("#delete_node(#{@lb.id}, 0)").raises(Fog::Rackspace::LoadBalancers::NotFound) do
62
+ @service.delete_node(@lb.id, 0)
63
+ end
64
+ tests("#delete_nodes('a', 'b')").raises(Fog::Rackspace::LoadBalancers::NotFound) do
65
+ @service.delete_nodes(@lb.id, 'a', 'b')
66
66
  end
67
- tests('update_node(0)').raises(Fog::Rackspace::LoadBalancers::NotFound) do
67
+ tests("#update_node(#{@lb.id}, 0, { :weight => 20 })").raises(Fog::Rackspace::LoadBalancers::NotFound) do
68
68
  @service.update_node(@lb.id, 0, { :weight => 20 })
69
69
  end
70
70
  end
@@ -72,7 +72,6 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
72
72
  tests('success') do
73
73
  @lb.wait_for { ready? }
74
74
  tests("#delete_nodes(multiple node)").succeeds do
75
- pending
76
75
  @service.delete_nodes(@lb.id, *@nodes_created)
77
76
  end
78
77
  @lb.wait_for { ready? }
@@ -16,9 +16,9 @@ Shindo.tests('Fog::Compute[:slicehost] | slice requests', ['slicehost']) do
16
16
 
17
17
  @slice_id = nil
18
18
 
19
- tests("#create_slice(1, 19, 'fogcreateslice')").formats(@slice_format.merge('root-password' => String)) do
19
+ tests("#create_slice(1, 305, 'fogcreateslice')").formats(@slice_format.merge('root-password' => String)) do
20
20
  pending if Fog.mocking?
21
- data = Fog::Compute[:slicehost].create_slice(1, 19, 'fogcreateslice').body
21
+ data = Fog::Compute[:slicehost].create_slice(1, 305, 'fogcreateslice').body
22
22
  @slice_id = data['id']
23
23
  data
24
24
  end
@@ -14,16 +14,16 @@ Shindo.tests('Fog::Compute[:stormondemand] | server requests', ['stormondemand']
14
14
  'ip' => String,
15
15
  'ip_count' => String,
16
16
  'subaccnt' => String,
17
- 'template' => NilClass,
17
+ 'template' => String,
18
18
  'template_description' => String,
19
- 'manage_level' => NilClass,
19
+ 'manage_level' => String,
20
20
  'zone' => Hash,
21
21
  'active' => Integer,
22
22
  'create_date' => String
23
23
  }
24
24
 
25
25
  @servers_format = {
26
- 'servers' => [@server_format]
26
+ 'items' => [@server_format]
27
27
  }
28
28
 
29
29
  tests('success') do
@@ -1,95 +1,23 @@
1
- Shindo.tests("Vcloud::Compute | servers", ['vcloud']) do
2
-
3
- tests("#server.new('#{Vcloud::Compute::TestSupport::template}')").returns(true) do
4
- pending if Fog.mocking?
5
- @svr = Vcloud.servers.create :catalog_item_uri => Vcloud::Compute::TestSupport::template, :name => 'fog_test_run', :password => 'password'
6
- print "Waiting for server to be ready"
7
- @svr.wait_for(1200) { print '.' ; ready? }
8
- puts ""
9
- @svr.ready?
10
- end
11
-
12
- tests("#svr.power_on()").returns(true) do
13
- pending if Fog.mocking?
14
- @svr.power_on
15
- @svr.wait_for { on? }
16
- @svr.wait_for { ready? }
17
- @svr.on?
18
- end
1
+ require 'fog/vcloud/models/compute/servers'
19
2
 
20
- tests("#svr.description(\"testing\")").returns("testing") do
21
- pending if Fog.mocking?
22
- @svr.wait_for { ready? }
23
- @svr.description = "testing"
24
- @svr.save
25
- @svr.wait_for { ready? }
26
- @svr.description
27
- end
28
-
29
- # Power off only stops the OS, doesn't free up resources. #undeploy is for this.
30
- tests("#svr.undeploy()").returns(true) do
31
- pending if Fog.mocking?
32
- @svr.undeploy
33
- @svr.wait_for { off? }
34
- @svr.wait_for { ready? }
35
- @svr.off?
36
- end
37
-
38
- tests("#svr.memory(384)").returns(384) do
39
- pending if Fog.mocking?
40
- raise 'Server template memory already 384m - change to something different' if @svr.memory[:amount] == 384
41
- @svr.wait_for { ready? }
42
- @svr.memory = 384
43
- @svr.save
44
- @svr.wait_for { ready? }
45
- # Can take a little while for the VM to know it has different ram, and not tied to a task..
46
- (1..20).each do |i|
47
- break if @svr.reload.memory[:amount] == '384'
48
- sleep 1
49
- end
50
- @svr.reload.memory[:amount]
51
- end
52
-
53
- tests("#svr.add_disk(4096)").returns([2, "4096"]) do
54
- pending if Fog.mocking?
55
- raise 'Server template already has two disks' if @svr.disks.size == 2
56
- @svr.wait_for { ready? }
57
- @svr.add_disk(4096)
58
- @svr.save
59
- @svr.wait_for { ready? }
60
- # Can take a little while for the VM to know it has different ram, and not tied to a task..
61
- (1..20).each do |i|
62
- break if @svr.reload.disks.size == 2
63
- sleep 1
64
- end
65
- [
66
- @svr.disks.size,
67
- @svr.disks[1][:resource][:vcloud_capacity]
68
- ]
69
- end
3
+ Shindo.tests("Vcloud::Compute | servers", ['vcloud']) do
70
4
 
71
- tests("#svr.delete_disk(1)").returns(1) do
72
- pending if Fog.mocking?
73
- raise "Server doesn't have two disks - did previous step fail? " if @svr.disks.size != 2
74
- @svr.wait_for { ready? }
75
- sleep 5 # otherwise complains about being busy
76
- @svr.delete_disk 1
77
- @svr.save
78
- @svr.wait_for { ready? }
79
- # Can take a little while for the VM to know it has different ram, and not tied to a task..
80
- (1..20).each do |i|
81
- break if @svr.reload.disks.size == 1
82
- sleep 1
5
+ Fog::Vcloud::Compute::SUPPORTED_VERSIONS.each do |version|
6
+ tests("api version #{version}") do
7
+ pending if Fog.mocking?
8
+ instance = Fog::Vcloud::Compute::Servers.new(
9
+ :connection => Fog::Vcloud::Compute.new(
10
+ :vcloud_host => 'vcloud.example.com',
11
+ :vcloud_username => 'username',
12
+ :vcloud_password => 'password',
13
+ :vcloud_version => version),
14
+ :href => "https://vcloud.example.com/api#{(version == '1.0') ? '/v1.0' : ''}/vApp/vapp-1"
15
+ )
16
+
17
+ tests("collection") do
18
+ returns(2) { instance.size }
19
+ returns("https://vcloud.example.com/api#{(version == '1.0') ? '/v1.0' : ''}/vApp/vm-2") { instance.first.href }
20
+ end
83
21
  end
84
- @svr.disks.size
85
22
  end
86
-
87
- tests("#svr.destroy").raises(Excon::Errors::Forbidden) do
88
- pending if Fog.mocking?
89
- @svr.destroy
90
- sleep 5 # allow cleanup..
91
- Vcloud.servers.get(@svr.href) == nil
92
- end
93
-
94
-
95
23
  end
@@ -1,15 +1,27 @@
1
1
  Shindo.tests("Fog::Compute[:vsphere] | vm_clone request", 'vsphere') do
2
- #require 'guid'
3
- template = "/Datacenters/Solutions/vm/Jeff/Templates/centos56gm2"
2
+ # require 'guid'
4
3
  compute = Fog::Compute[:vsphere]
4
+ response = nil
5
+ response_linked = nil
6
+
7
+ template = "/Datacenters/Solutions/vm/Jeff/Templates/centos56gm2"
8
+ tests("Standard Clone | The return value should") do
9
+ response = compute.vm_clone('path' => template, 'name' => 'cloning_vm', 'wait' => 1)
10
+ test("be a kind of Hash") { response.kind_of? Hash }
11
+ %w{ vm_ref task_ref }.each do |key|
12
+ test("have a #{key} key") { response.has_key? key }
13
+ end
14
+ end
5
15
 
6
- tests("The return value should") do
7
- response = compute.vm_clone('path' => template, 'name' => 'cloning_vm')
16
+ template = "/Datacenters/Solutions/vm/Jeff/Templates/centos56gm2"
17
+ tests("Linked Clone | The return value should") do
18
+ response = compute.vm_clone('path' => template, 'name' => 'cloning_vm_linked', 'wait' => 1, 'linked_clone' => true)
8
19
  test("be a kind of Hash") { response.kind_of? Hash }
9
20
  %w{ vm_ref task_ref }.each do |key|
10
21
  test("have a #{key} key") { response.has_key? key }
11
22
  end
12
23
  end
24
+
13
25
  tests("When invalid input is presented") do
14
26
  raises(ArgumentError, 'it should raise ArgumentError') { compute.vm_clone(:foo => 1) }
15
27
  raises(Fog::Compute::Vsphere::NotFound, 'it should raise Fog::Compute::Vsphere::NotFound when the UUID is not a string') do
@@ -5,7 +5,7 @@ Shindo.tests('Fog::Compute[:vsphere] | vm_power_on request', ['vsphere']) do
5
5
  powered_off_vm = nil
6
6
 
7
7
  tests('The response should') do
8
- response = compute.vm_power_off('instance_uuid' => powered_off_vm)
8
+ response = compute.vm_power_on('instance_uuid' => powered_off_vm)
9
9
  test('be a kind of Hash') { response.kind_of? Hash }
10
10
  test('should have a task_state key') { response.has_key? 'task_state' }
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Brightbox
2
- VERSION = "0.17.1" unless defined?(Brightbox::VERSION)
2
+ VERSION = "0.17.2" unless defined?(Brightbox::VERSION)
3
3
  end