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
@@ -18,55 +18,55 @@ Shindo.tests('Fog::Compute[:brightbox] | server group requests', ['brightbox'])
18
18
  pending if Fog.mocking?
19
19
  result = Fog::Compute[:brightbox].create_server_group(create_options)
20
20
  @server_group_id = result["id"]
21
- formats(Brightbox::Compute::Formats::Full::SERVER_GROUP) { result }
21
+ formats(Brightbox::Compute::Formats::Full::SERVER_GROUP, false) { result }
22
22
  end
23
23
 
24
24
  tests("#list_server_groups") do
25
25
  pending if Fog.mocking?
26
26
  result = Fog::Compute[:brightbox].list_server_groups
27
- formats(Brightbox::Compute::Formats::Collection::SERVER_GROUPS) { result }
27
+ formats(Brightbox::Compute::Formats::Collection::SERVER_GROUPS, false) { result }
28
28
  @default_group_id = result.select {|grp| grp["default"] == true }.first["id"]
29
29
  end
30
30
 
31
31
  tests("#get_server_group('#{@server_group_id}')") do
32
32
  pending if Fog.mocking?
33
33
  result = Fog::Compute[:brightbox].get_server_group(@server_group_id)
34
- formats(Brightbox::Compute::Formats::Full::SERVER_GROUP) { result }
34
+ formats(Brightbox::Compute::Formats::Full::SERVER_GROUP, false) { result }
35
35
  end
36
36
 
37
37
  update_options = {:name => "Fog@#{Time.now.iso8601}"}
38
38
  tests("#update_server_group('#{@server_group_id}', #{update_options.inspect})") do
39
39
  pending if Fog.mocking?
40
40
  result = Fog::Compute[:brightbox].update_server_group(@server_group_id, update_options)
41
- formats(Brightbox::Compute::Formats::Full::SERVER_GROUP) { result }
41
+ formats(Brightbox::Compute::Formats::Full::SERVER_GROUP, false) { result }
42
42
  end
43
43
 
44
44
  remove_options = {:servers => [{:server => server_id}]}
45
45
  tests("#remove_servers_server_group('#{@server_group_id}', #{remove_options.inspect})") do
46
46
  pending if Fog.mocking?
47
47
  result = Fog::Compute[:brightbox].remove_servers_server_group(@server_group_id, remove_options)
48
- formats(Brightbox::Compute::Formats::Full::SERVER_GROUP) { result }
48
+ formats(Brightbox::Compute::Formats::Full::SERVER_GROUP, false) { result }
49
49
  end
50
50
 
51
51
  add_options = {:servers => [{:server => server_id}]}
52
52
  tests("#add_servers_server_group('#{@server_group_id}', #{remove_options.inspect})") do
53
53
  pending if Fog.mocking?
54
54
  result = Fog::Compute[:brightbox].add_servers_server_group(@server_group_id, add_options)
55
- formats(Brightbox::Compute::Formats::Full::SERVER_GROUP) { result }
55
+ formats(Brightbox::Compute::Formats::Full::SERVER_GROUP, false) { result }
56
56
  end
57
57
 
58
58
  move_options = {:destination => @default_group_id, :servers => [{:server => server_id}]}
59
59
  tests("#move_servers_server_group('#{@server_group_id}', #{move_options.inspect})") do
60
60
  pending if Fog.mocking?
61
61
  result = Fog::Compute[:brightbox].move_servers_server_group(@server_group_id, move_options)
62
- formats(Brightbox::Compute::Formats::Full::SERVER_GROUP) { result }
62
+ formats(Brightbox::Compute::Formats::Full::SERVER_GROUP, false) { result }
63
63
  test("group is emptied") { result["servers"].empty? }
64
64
  end
65
65
 
66
66
  tests("#destroy_server_group('#{@server_group_id}')") do
67
67
  pending if Fog.mocking?
68
68
  result = Fog::Compute[:brightbox].destroy_server_group(@server_group_id)
69
- formats(Brightbox::Compute::Formats::Full::SERVER_GROUP) { result }
69
+ formats(Brightbox::Compute::Formats::Full::SERVER_GROUP, false) { result }
70
70
  end
71
71
 
72
72
  unless Fog.mocking?
@@ -2,14 +2,16 @@ Shindo.tests('Fog::Compute[:brightbox] | server requests', ['brightbox']) do
2
2
 
3
3
  tests('success') do
4
4
 
5
- image_id = Brightbox::Compute::TestSupport.image_id
6
- server_id = nil
5
+ unless Fog.mocking?
6
+ image_id = Brightbox::Compute::TestSupport.image_id
7
+ server_id = nil
8
+ end
7
9
 
8
10
  tests("#create_server(:image => '#{image_id}')") do
9
11
  pending if Fog.mocking?
10
12
  result = Fog::Compute[:brightbox].create_server(:image => image_id)
11
13
  server_id = result["id"]
12
- formats(Brightbox::Compute::Formats::Full::SERVER) { result }
14
+ formats(Brightbox::Compute::Formats::Full::SERVER, false) { result }
13
15
  end
14
16
 
15
17
  unless Fog.mocking?
@@ -19,58 +21,60 @@ Shindo.tests('Fog::Compute[:brightbox] | server requests', ['brightbox']) do
19
21
  tests("#list_servers") do
20
22
  pending if Fog.mocking?
21
23
  result = Fog::Compute[:brightbox].list_servers
22
- formats(Brightbox::Compute::Formats::Collection::SERVERS) { result }
24
+ formats(Brightbox::Compute::Formats::Collection::SERVERS, false) { result }
23
25
  end
24
26
 
25
27
  tests("#get_server('#{server_id}')") do
26
28
  pending if Fog.mocking?
27
29
  result = Fog::Compute[:brightbox].get_server(server_id)
28
- formats(Brightbox::Compute::Formats::Full::SERVER) { result }
30
+ formats(Brightbox::Compute::Formats::Full::SERVER, false) { result }
29
31
  end
30
32
 
31
33
  tests("#update_server('#{server_id}')") do
32
34
  pending if Fog.mocking?
33
35
  result = Fog::Compute[:brightbox].update_server(server_id, :name => "Fog@#{Time.now.iso8601}")
34
- formats(Brightbox::Compute::Formats::Full::SERVER) { result }
36
+ formats(Brightbox::Compute::Formats::Full::SERVER, false) { result }
35
37
  end
36
38
 
37
39
  tests("#activate_console_server('#{server_id}')") do
38
40
  pending if Fog.mocking?
39
41
  result = Fog::Compute[:brightbox].activate_console_server(server_id)
40
- formats(Brightbox::Compute::Formats::Full::SERVER) { result }
42
+ formats(Brightbox::Compute::Formats::Full::SERVER, false) { result }
41
43
  end
42
44
 
43
45
  tests("#stop_server('#{server_id}')") do
44
46
  pending if Fog.mocking?
45
47
  result = Fog::Compute[:brightbox].stop_server(server_id)
46
- formats(Brightbox::Compute::Formats::Full::SERVER) { result }
48
+ formats(Brightbox::Compute::Formats::Full::SERVER, false) { result }
47
49
  end
48
50
 
49
51
  tests("#start_server('#{server_id}')") do
50
52
  pending if Fog.mocking?
51
53
  result = Fog::Compute[:brightbox].start_server(server_id)
52
- formats(Brightbox::Compute::Formats::Full::SERVER) { result }
54
+ formats(Brightbox::Compute::Formats::Full::SERVER, false) { result }
53
55
  end
54
56
 
55
57
  tests("#shutdown_server('#{server_id}')") do
56
58
  pending if Fog.mocking?
57
59
  result = Fog::Compute[:brightbox].shutdown_server(server_id)
58
- formats(Brightbox::Compute::Formats::Full::SERVER) { result }
60
+ formats(Brightbox::Compute::Formats::Full::SERVER, false) { result }
59
61
  end
60
62
 
61
63
  tests("#snapshot_server('#{server_id}')") do
62
64
  pending if Fog.mocking?
63
65
  result = Fog::Compute[:brightbox].snapshot_server(server_id)
64
- formats(Brightbox::Compute::Formats::Full::SERVER) { result }
65
- snapshot_id = result["id"]
66
+ formats(Brightbox::Compute::Formats::Full::SERVER, false) { result }
67
+ # Server should be exclusively for our test so assume we can delete the snapshot
68
+ snapshot_id = result["snapshots"].first["id"]
66
69
  @snapshot = Fog::Compute[:brightbox].images.get(snapshot_id)
70
+ @snapshot.wait_for { ready? }
67
71
  @snapshot.destroy
68
72
  end
69
73
 
70
74
  tests("#destroy_server('#{server_id}')") do
71
75
  pending if Fog.mocking?
72
76
  result = Fog::Compute[:brightbox].destroy_server(server_id)
73
- formats(Brightbox::Compute::Formats::Full::SERVER) { result }
77
+ formats(Brightbox::Compute::Formats::Full::SERVER, false) { result }
74
78
  end
75
79
 
76
80
  end
@@ -6,13 +6,13 @@ Shindo.tests('Fog::Compute[:brightbox] | server type requests', ['brightbox']) d
6
6
  pending if Fog.mocking?
7
7
  result = Fog::Compute[:brightbox].list_server_types
8
8
  @server_type_id = result.first["id"]
9
- formats(Brightbox::Compute::Formats::Collection::SERVER_TYPES) { result }
9
+ formats(Brightbox::Compute::Formats::Collection::SERVER_TYPES, false) { result }
10
10
  end
11
11
 
12
12
  tests("#get_server_type('#{@server_type_id}')") do
13
13
  pending if Fog.mocking?
14
14
  result = Fog::Compute[:brightbox].get_server_type(@server_type_id)
15
- formats(Brightbox::Compute::Formats::Full::SERVER_TYPE) { result }
15
+ formats(Brightbox::Compute::Formats::Full::SERVER_TYPE, false) { result }
16
16
  end
17
17
 
18
18
  end
@@ -6,20 +6,20 @@ Shindo.tests('Fog::Compute[:brightbox] | user requests', ['brightbox']) do
6
6
  pending if Fog.mocking?
7
7
  result = Fog::Compute[:brightbox].list_users
8
8
  @user_id = result.first["id"]
9
- formats(Brightbox::Compute::Formats::Collection::USERS) { result }
9
+ formats(Brightbox::Compute::Formats::Collection::USERS, false) { result }
10
10
  end
11
11
 
12
12
  tests("#get_user('#{@user_id}')") do
13
13
  pending if Fog.mocking?
14
14
  result = Fog::Compute[:brightbox].get_user(@user_id)
15
- formats(Brightbox::Compute::Formats::Full::USER) { result }
15
+ formats(Brightbox::Compute::Formats::Full::USER, false) { result }
16
16
  end
17
17
 
18
18
  update_options = { :name => "Example User" }
19
19
  tests("#update_user('#{@user_id}', #{update_options.inspect})") do
20
20
  pending if Fog.mocking?
21
21
  result = Fog::Compute[:brightbox].update_user(@user_id, update_options)
22
- formats(Brightbox::Compute::Formats::Full::USER) { result }
22
+ formats(Brightbox::Compute::Formats::Full::USER, false) { result }
23
23
  end
24
24
 
25
25
  end
@@ -6,13 +6,13 @@ Shindo.tests('Fog::Compute[:brightbox] | zone requests', ['brightbox']) do
6
6
  pending if Fog.mocking?
7
7
  result = Fog::Compute[:brightbox].list_zones
8
8
  @zone_id = result.first["id"]
9
- formats(Brightbox::Compute::Formats::Collection::ZONES) { result }
9
+ formats(Brightbox::Compute::Formats::Collection::ZONES, false) { result }
10
10
  end
11
11
 
12
12
  tests("#get_zone('#{@zone_id}')") do
13
13
  pending if Fog.mocking?
14
14
  result = Fog::Compute[:brightbox].get_zone(@zone_id)
15
- formats(Brightbox::Compute::Formats::Full::ZONE) { result }
15
+ formats(Brightbox::Compute::Formats::Full::ZONE, false) { result }
16
16
  end
17
17
 
18
18
  end
@@ -4,7 +4,9 @@ class Glesys
4
4
  module Servers
5
5
 
6
6
  LIST = {
7
- 'arguments' => [],
7
+ 'debug' => {
8
+ 'input' => []
9
+ },
8
10
  'servers' => [{
9
11
  'serverid' => String,
10
12
  'hostname' => String,
@@ -18,17 +20,19 @@ class Glesys
18
20
  }
19
21
 
20
22
  CREATE = {
21
- 'arguments' => {
22
- "rootpw" => String,
23
- "disksize" => String,
24
- "memorysize" => String,
25
- "datacenter" => String,
26
- "cpucores" => String,
27
- "transfer" => String,
28
- "template" => String,
29
- "description" => String,
30
- "hostname" => String,
31
- "platform" => String
23
+ 'debug' => {
24
+ 'input' => {
25
+ "rootpw" => String,
26
+ "disksize" => String,
27
+ "memorysize" => String,
28
+ "datacenter" => String,
29
+ "cpucores" => String,
30
+ "transfer" => String,
31
+ "template" => String,
32
+ "description" => String,
33
+ "hostname" => String,
34
+ "platform" => String
35
+ }
32
36
  },
33
37
  'server' => {
34
38
  'serverid' => String,
@@ -46,9 +50,11 @@ class Glesys
46
50
  }
47
51
 
48
52
  DESTROY = {
49
- 'arguments' => {
50
- 'serverid' => String,
51
- 'keepip' => String,
53
+ 'debug' => {
54
+ 'input' => {
55
+ 'serverid' => String,
56
+ 'keepip' => String,
57
+ }
52
58
  },
53
59
  'status' => {
54
60
  'code' => String,
@@ -57,61 +63,68 @@ class Glesys
57
63
  }
58
64
 
59
65
  DETAILS = {
60
- 'arguments' => {
61
- 'serverid' => String
62
- },
66
+ 'debug' => {
67
+ 'input' => {
68
+ 'serverid' => String
69
+ }
70
+ },
63
71
  'server' => {
64
72
  'managedhosting' => String,
65
73
  'cost' => {
66
74
  'amount' => Float,
67
- 'timeperiod' => String,
75
+ 'timeperiod' => String,
68
76
  'currency' => String
69
77
  },
70
- 'datacenter' => String,
78
+ 'serverid' => String,
79
+ 'datacenter' => String,
71
80
  'memory' => String,
72
- 'cpucores' => String,
73
- 'transfer' => String,
74
- 'template' => String,
81
+ 'cpucores' => String,
82
+ 'transfer' => String,
83
+ 'template' => String,
75
84
  'iplist' => [{
76
- 'cost' => String,
77
- 'version' => String,
85
+ 'cost' => String,
86
+ 'version' => String,
78
87
  'ip' => String
79
88
  }],
80
89
  'description' => String,
81
- 'hostname' => String,
82
- 'disk' => String,
90
+ 'hostname' => String,
91
+ 'disk' => String,
83
92
  'platform' => String
84
- },
93
+ },
85
94
  'status' => {
86
- 'code' => String,
95
+ 'code' => String,
87
96
  'text' => String
88
97
  }
89
98
  }
90
99
 
91
100
  STATUS = {
92
- 'arguments' => {
93
- 'serverid' => String
94
- },
101
+ 'debug' => {
102
+ 'input' => {
103
+ 'serverid' => String
104
+ }
105
+ },
95
106
  'server' => {
96
- 'memory' => String,
107
+ 'memory' => String,
97
108
  'bandwidth' => {
98
- 'last30days' => Integer,
109
+ 'last30days' => Integer,
99
110
  'today' => Integer,
100
111
  'max' => String
101
- },
102
- 'cpu' => String,
103
- 'disk' => String,
112
+ },
113
+ 'cpu' => String,
114
+ 'disk' => String,
104
115
  'state' => String
105
- },
106
- 'status' => {
116
+ },
117
+ 'status' => {
107
118
  'code' => String,
108
119
  'text' => String
109
120
  }
110
121
  }
111
-
122
+
112
123
  START = {
113
- 'arguments' => {
114
- 'serverid' => String
124
+ 'debug' => {
125
+ 'input' => {
126
+ 'serverid' => String
127
+ }
115
128
  },
116
129
  'status' => {
117
130
  'code' => String,
@@ -120,9 +133,11 @@ class Glesys
120
133
  }
121
134
 
122
135
  STOP = {
123
- 'arguments' => {
124
- 'serverid' => String,
125
- 'type' => String
136
+ 'debug' => {
137
+ 'input' => {
138
+ 'serverid' => String,
139
+ 'type' => String
140
+ }
126
141
  },
127
142
  'status' => {
128
143
  'code' => String,
@@ -132,9 +147,11 @@ class Glesys
132
147
 
133
148
  end
134
149
  module Ips
135
-
150
+
136
151
  IPLIST = {
137
- 'arguments' => [],
152
+ 'debug' => {
153
+ 'input' => []
154
+ },
138
155
  'iplist' => [{
139
156
  'price' => {
140
157
  'amount' => String,
@@ -153,12 +170,14 @@ class Glesys
153
170
  'text' => String
154
171
  }
155
172
  }
156
-
173
+
157
174
  IPLIST_ALL = {
158
- 'arguments' => {
159
- 'datacenter' => String,
160
- 'ipversion' => String,
161
- 'platform' => String
175
+ 'debug' => {
176
+ 'input' => {
177
+ 'datacenter' => String,
178
+ 'ipversion' => String,
179
+ 'platform' => String
180
+ }
162
181
  },
163
182
  'iplist' => [],
164
183
  'status' => {
@@ -173,11 +192,13 @@ class Glesys
173
192
  }
174
193
 
175
194
  IPLIST_CATCH_RELEASE = {
176
- 'arguments' => {
177
- 'ipaddress' => String,
178
- },
195
+ 'debug' => {
196
+ 'input' => {
197
+ 'ipaddress' => String,
198
+ }
199
+ },
179
200
  'status' => {
180
- 'code' => String,
201
+ 'code' => String,
181
202
  'text' => String
182
203
  }
183
204
  }
@@ -186,20 +207,22 @@ class Glesys
186
207
  module Templates
187
208
 
188
209
  LIST = {
189
- 'arguments' => [],
190
- 'templates' => {
210
+ 'debug' => {
211
+ 'input' => []
212
+ },
213
+ 'templates' => {
191
214
  'Xen' => [{
192
215
  'name' => String,
193
- 'os' => String,
194
- 'min_mem_size' => String,
195
- 'min_disk_size' => String,
216
+ 'os' => String,
217
+ 'min_mem_size' => String,
218
+ 'min_disk_size' => String,
196
219
  'platform' => String
197
220
  }],
198
221
  'OpenVZ' => [{
199
222
  'name' => String,
200
- 'os' => String,
201
- 'min_mem_size' => String,
202
- 'min_disk_size' => String,
223
+ 'os' => String,
224
+ 'min_mem_size' => String,
225
+ 'min_disk_size' => String,
203
226
  'platform' => String
204
227
  }]
205
228
  },