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.
- data/.gitignore +1 -1
- data/brightbox-cli.gemspec +10 -9
- data/lib/brightbox-cli/commands/servers-activate-console.rb +1 -1
- data/lib/brightbox-cli/commands/types-show.rb +5 -4
- data/lib/brightbox-cli/config.rb +1 -1
- data/lib/brightbox-cli/detailed_server.rb +2 -1
- data/lib/brightbox-cli/gli_global_hooks.rb +1 -8
- data/lib/brightbox-cli/server_groups.rb +4 -0
- data/lib/brightbox-cli/servers.rb +5 -13
- data/lib/brightbox-cli/types.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/.gitignore +1 -0
- data/lib/brightbox-cli/vendor/fog/README.rdoc +1 -1
- data/lib/brightbox-cli/vendor/fog/Rakefile +4 -3
- data/lib/brightbox-cli/vendor/fog/changelog.txt +213 -0
- data/lib/brightbox-cli/vendor/fog/docs/compute/index.markdown +15 -1
- data/lib/brightbox-cli/vendor/fog/docs/index.markdown +1 -1
- data/lib/brightbox-cli/vendor/fog/docs/storage/index.markdown +4 -4
- data/lib/brightbox-cli/vendor/fog/examples/compute_tests.rb +18 -6
- data/lib/brightbox-cli/vendor/fog/examples/dns_tests.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/examples/storage_tests.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/fog.gemspec +4 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws.rb +16 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/auto_scaling.rb +2 -17
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/cloud_formation.rb +1 -16
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/cloud_watch.rb +2 -17
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/compute.rb +10 -21
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/elasticache.rb +1 -7
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/elb.rb +34 -24
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/emr.rb +5 -4
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/iam.rb +16 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/group.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/cloud_watch/metric_statistic.rb +1 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/security_group.rb +3 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/security_groups.rb +25 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/compute/server.rb +4 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/dns/records.rb +3 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elb/listener.rb +9 -7
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/elb/load_balancer.rb +6 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/directory.rb +21 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/file.rb +19 -5
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/models/storage/files.rb +4 -4
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_instances.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_security_groups.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/sqs/receive_message.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/rds.rb +41 -18
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/create_security_group.rb +6 -4
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/create_tags.rb +3 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_availability_zones.rb +3 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_security_groups.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_lb_cookie_stickiness_policy.rb +3 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_load_balancer.rb +7 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/create_load_balancer_listeners.rb +10 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/delete_load_balancer_policy.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/describe_load_balancers.rb +5 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/set_load_balancer_listener_ssl_certificate.rb +27 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elb/set_load_balancer_policies_of_listener.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/emr/run_job_flow.rb +9 -7
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/add_user_to_group.rb +24 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_access_key.rb +24 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_group.rb +21 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/create_user.rb +21 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_access_key.rb +17 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_group.rb +19 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_user.rb +17 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/delete_user_policy.rb +16 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_access_keys.rb +21 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_groups.rb +18 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_groups_for_user.rb +24 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_user_policies.rb +18 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/list_users.rb +17 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/put_user_policy.rb +18 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/remove_user_from_group.rb +19 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/iam/upload_server_certificate.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb +30 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_instance.rb +67 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_security_group.rb +19 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/delete_db_instance.rb +19 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/delete_db_security_group.rb +11 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_instances.rb +56 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_reserved_instances.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_security_groups.rb +44 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/modify_db_instance.rb +26 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/reboot_db_instance.rb +17 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/revoke_db_security_group_ingress.rb +27 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/change_message_visibility.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/delete_message.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/receive_message.rb +13 -14
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/copy_object.rb +14 -6
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/delete_object.rb +73 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket.rb +3 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +95 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_bucket_versioning.rb +32 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object.rb +27 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object_http_url.rb +4 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/get_object_https_url.rb +4 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_bucket_versioning.rb +41 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_bucket_website.rb +17 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/storage/put_object.rb +25 -9
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/ses.rb +2 -7
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/simpledb.rb +4 -17
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/sns.rb +1 -14
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/sqs.rb +5 -11
- data/lib/brightbox-cli/vendor/fog/lib/fog/aws/storage.rb +6 -22
- data/lib/brightbox-cli/vendor/fog/lib/fog/bin.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/bin/aws.rb +9 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/bin/voxel.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/server.rb +1 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/compute.rb +6 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/compute/models/server.rb +11 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/core.rb +0 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/core/connection.rb +0 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/core/errors.rb +5 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/core/scp.rb +18 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/core/wait_for.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/dns.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/dynect/models/dns/records.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/dynect/requests/dns/get_node_list.rb +2 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/compute.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_backup_internet_service.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_internet_service.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/add_node.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/clone_vapp.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_internet_service.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_network.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_network_ip.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/configure_vapp.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/ecloud/requests/compute/instantiate_vapp_template.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/compute.rb +7 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/nodes.rb +1 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/server.rb +93 -99
- data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/servers.rb +2 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/util.rb +1 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/providers.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/dns.rb +10 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/load_balancers.rb +3 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/compute/flavor.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/compute/server.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/dns/callback.rb +3 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/dns/record.rb +4 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/load_balancers/load_balancer.rb +18 -8
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/models/storage/directory.rb +5 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/create_image.rb +1 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb +1 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/list_load_balancers.rb +8 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/storm_on_demand/compute.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/compute.rb +91 -30
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalog.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalog_item.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalogs.rb +5 -8
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/ip.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/network.rb +9 -51
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/networks.rb +21 -7
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/server.rb +38 -58
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/servers.rb +12 -18
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/task.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/tasks.rb +1 -3
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/vdc.rb +14 -29
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/vdcs.rb +6 -11
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/clone_vapp.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_network.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_network_ip.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_vapp.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/configure_vm.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/instantiate_vapp_template.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/login.rb +8 -4
- data/lib/brightbox-cli/vendor/fog/lib/fog/virtual_box/compute.rb +4 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/compute.rb +1 -0
- data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/models/compute/server.rb +7 -1
- data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +86 -86
- data/lib/brightbox-cli/vendor/fog/lib/fog/vsphere/requests/compute/vm_clone.rb +43 -8
- data/lib/brightbox-cli/vendor/fog/lib/fog/zerigo/models/dns/record.rb +7 -5
- data/lib/brightbox-cli/vendor/fog/lib/fog/zerigo/requests/dns/update_host.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/spec/ecloud/spec_helper.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/tests/aws/models/elb/model_tests.rb +15 -6
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/instance_tests.rb +37 -0
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/compute/security_group_tests.rb +6 -4
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/helper.rb +33 -0
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/listener_tests.rb +22 -4
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/policy_tests.rb +13 -0
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/access_key_tests.rb +2 -7
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/group_tests.rb +1 -4
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/user_policy_tests.rb +4 -11
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/iam/user_tests.rb +19 -12
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/rds/helper.rb +38 -3
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/rds/instance_tests.rb +3 -1
- data/lib/brightbox-cli/vendor/fog/tests/aws/requests/storage/bucket_tests.rb +66 -1
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb +3 -3
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/api_client_tests.rb +6 -6
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/cloud_ip_tests.rb +15 -9
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/helper.rb +6 -2
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/image_tests.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/interface_tests.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/load_balancer_tests.rb +9 -9
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_group_tests.rb +8 -8
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_tests.rb +17 -13
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/server_type_tests.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/user_tests.rb +3 -3
- data/lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/zone_tests.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/helper.rb +87 -64
- data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/ip_tests.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/tests/glesys/requests/compute/server_tests.rb +4 -4
- data/lib/brightbox-cli/vendor/fog/tests/helpers/formats_helper.rb +1 -1
- data/lib/brightbox-cli/vendor/fog/tests/helpers/mock_helper.rb +2 -0
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/dns/dns_tests.rb +4 -2
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/helper.rb +27 -11
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +4 -1
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/node_tests.rb +24 -25
- data/lib/brightbox-cli/vendor/fog/tests/slicehost/requests/compute/slice_tests.rb +2 -2
- data/lib/brightbox-cli/vendor/fog/tests/storm_on_demand/requests/compute/server_tests.rb +3 -3
- data/lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/servers_tests.rb +18 -90
- data/lib/brightbox-cli/vendor/fog/tests/vsphere/requests/compute/vm_clone_tests.rb +16 -4
- data/lib/brightbox-cli/vendor/fog/tests/vsphere/requests/compute/vm_power_on_tests.rb +1 -1
- data/lib/brightbox-cli/version.rb +1 -1
- data/spec/cloud_ips_spec.rb +1 -1
- data/spec/fixtures/vcr_cassettes/list_cloud_ip.yml +58 -26
- data/spec/fixtures/vcr_cassettes/server_show.yml +143 -102
- data/spec/servers_spec.rb +3 -2
- data/spec/spec_helper.rb +4 -0
- metadata +128 -213
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/access_list_tests.rb +0 -12
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/access_lists_tests.rb +0 -12
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/load_balancer_tests.rb +0 -116
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/load_balancers_tests.rb +0 -19
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/node_tests.rb +0 -19
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/nodes_tests.rb +0 -12
- data/lib/brightbox-cli/vendor/fog/tests/rackspace/models/virtual_ip_tests.rb +0 -16
- 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
|
-
|
6
|
-
|
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
|
-
|
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
|
-
'
|
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
|
-
'
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
'
|
50
|
-
'
|
51
|
-
|
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
|
-
'
|
61
|
-
'
|
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
|
-
'
|
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
|
-
'
|
93
|
-
'
|
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
|
-
'
|
114
|
-
'
|
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
|
-
'
|
124
|
-
'
|
125
|
-
|
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
|
-
'
|
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
|
-
'
|
159
|
-
'
|
160
|
-
|
161
|
-
|
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
|
-
'
|
177
|
-
'
|
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
|
-
'
|
190
|
-
|
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
|
},
|