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
@@ -19,7 +19,39 @@ class AWS
|
|
19
19
|
'DBParameterGroup' => DB_PARAMETER_GROUP
|
20
20
|
}
|
21
21
|
}
|
22
|
-
|
22
|
+
|
23
|
+
DB_SECURITY_GROUP = {
|
24
|
+
'DBSecurityGroupDescription' => String,
|
25
|
+
'DBSecurityGroupName' => String,
|
26
|
+
'EC2SecurityGroups' => [Fog::Nullable::Hash],
|
27
|
+
'IPRanges' => [Fog::Nullable::Hash],
|
28
|
+
'OwnerId' => Fog::Nullable::String
|
29
|
+
}
|
30
|
+
|
31
|
+
CREATE_DB_SECURITY_GROUP = BASIC.merge({
|
32
|
+
'CreateDBSecurityGroupResult' => {
|
33
|
+
'DBSecurityGroup' => DB_SECURITY_GROUP
|
34
|
+
}
|
35
|
+
})
|
36
|
+
|
37
|
+
AUTHORIZE_DB_SECURITY_GROUP = BASIC.merge({
|
38
|
+
'AuthorizeDBSecurityGroupIngressResult' => {
|
39
|
+
'DBSecurityGroup' => DB_SECURITY_GROUP
|
40
|
+
}
|
41
|
+
})
|
42
|
+
|
43
|
+
REVOKE_DB_SECURITY_GROUP = BASIC.merge({
|
44
|
+
'RevokeDBSecurityGroupIngressResult' => {
|
45
|
+
'DBSecurityGroup' => DB_SECURITY_GROUP
|
46
|
+
}
|
47
|
+
})
|
48
|
+
|
49
|
+
DESCRIBE_DB_SECURITY_GROUP = BASIC.merge({
|
50
|
+
'DescribeDBSecurityGroupsResult' => {
|
51
|
+
'DBSecurityGroups' => [DB_SECURITY_GROUP]
|
52
|
+
}
|
53
|
+
})
|
54
|
+
|
23
55
|
DESCRIBE_DB_PARAMETER_GROUP = {
|
24
56
|
'ResponseMetadata' => {'RequestId' => String},
|
25
57
|
'DescribeDBParameterGroupsResult' =>{
|
@@ -33,6 +65,8 @@ class AWS
|
|
33
65
|
}
|
34
66
|
})
|
35
67
|
|
68
|
+
|
69
|
+
|
36
70
|
DB_PARAMETER = {
|
37
71
|
'ParameterValue' => Fog::Nullable::String,
|
38
72
|
'DataType' => String,
|
@@ -41,8 +75,9 @@ class AWS
|
|
41
75
|
'IsModifiable' => Fog::Boolean,
|
42
76
|
'Description' => String,
|
43
77
|
'ParameterName' => String,
|
44
|
-
'ApplyType' => String
|
78
|
+
'ApplyType' => String
|
45
79
|
}
|
80
|
+
|
46
81
|
DESCRIBE_DB_PARAMETERS = BASIC.merge({
|
47
82
|
'DescribeDBParametersResult' => {
|
48
83
|
'Marker' => Fog::Nullable::String,
|
@@ -51,7 +86,6 @@ class AWS
|
|
51
86
|
|
52
87
|
})
|
53
88
|
|
54
|
-
|
55
89
|
SNAPSHOT={
|
56
90
|
'AllocatedStorage' => Integer,
|
57
91
|
'AvailabilityZone' => String,
|
@@ -105,6 +139,7 @@ class AWS
|
|
105
139
|
'PreferredBackupWindow'=> String,
|
106
140
|
'PreferredMaintenanceWindow'=> String,
|
107
141
|
'ReadReplicaDBInstanceIdentifiers'=> [String],
|
142
|
+
'ReadReplicaDBInstanceIdentifiers'=> [Fog::Nullable::String],
|
108
143
|
'ReadReplicaSourceDBInstanceIdentifier'=> Fog::Nullable::String
|
109
144
|
}
|
110
145
|
|
@@ -10,7 +10,7 @@ Shindo.tests('AWS::RDS | instance requests', ['aws', 'rds']) do
|
|
10
10
|
@db_final_snapshot_id = "fog-final-snapshot"
|
11
11
|
|
12
12
|
tests('success') do
|
13
|
-
|
13
|
+
#
|
14
14
|
|
15
15
|
tests("#create_db_instance").formats(AWS::RDS::Formats::CREATE_DB_INSTANCE) do
|
16
16
|
result = Fog::AWS[:rds].create_db_instance(@db_instance_id, 'AllocatedStorage' => 5,
|
@@ -59,6 +59,8 @@ Shindo.tests('AWS::RDS | instance requests', ['aws', 'rds']) do
|
|
59
59
|
server.reload.wait_for { state == 'rebooting' }
|
60
60
|
server.reload.wait_for { state == 'available'}
|
61
61
|
|
62
|
+
pending if Fog.mocking?
|
63
|
+
|
62
64
|
tests("#create_db_snapshot").formats(AWS::RDS::Formats::CREATE_DB_SNAPSHOT) do
|
63
65
|
body = Fog::AWS[:rds].create_db_snapshot(@db_instance_id, @db_snapshot_id).body
|
64
66
|
returns('creating'){ body['CreateDBSnapshotResult']['DBSnapshot']['Status']}
|
@@ -117,7 +117,6 @@ Shindo.tests('Fog::Storage[:aws] | bucket requests', [:aws]) do
|
|
117
117
|
end
|
118
118
|
|
119
119
|
tests("#put_bucket_website('#{@aws_bucket_name}', 'index.html')").succeeds do
|
120
|
-
pending if Fog.mocking?
|
121
120
|
Fog::Storage[:aws].put_bucket_website(@aws_bucket_name, 'index.html')
|
122
121
|
end
|
123
122
|
|
@@ -180,6 +179,68 @@ Shindo.tests('Fog::Storage[:aws] | bucket requests', [:aws]) do
|
|
180
179
|
Fog::Storage[:aws].delete_bucket_website(@aws_bucket_name)
|
181
180
|
end
|
182
181
|
|
182
|
+
tests('bucket lifecycle') do
|
183
|
+
pending if Fog.mocking?
|
184
|
+
|
185
|
+
lifecycle = {'Rules' => [{'ID' => 'test rule', 'Prefix' => '/prefix', 'Enabled' => true, 'Days' => 42}]}
|
186
|
+
tests('non-existant bucket') do
|
187
|
+
tests('#put_bucket_lifecycle').returns([404, 'NoSuchBucket']) do
|
188
|
+
begin
|
189
|
+
Fog::Storage[:aws].put_bucket_lifecycle('fognonbucket', lifecycle)
|
190
|
+
rescue Excon::Errors::NotFound => e
|
191
|
+
[e.response.status, e.response.body.match(%r{<Code>(.*)</Code>})[1]]
|
192
|
+
end
|
193
|
+
end
|
194
|
+
tests('#get_bucket_lifecycle').returns([404, 'NoSuchBucket']) do
|
195
|
+
begin
|
196
|
+
Fog::Storage[:aws].get_bucket_lifecycle('fognonbucket')
|
197
|
+
rescue Excon::Errors::NotFound => e
|
198
|
+
[e.response.status, e.response.body.match(%r{<Code>(.*)</Code>})[1]]
|
199
|
+
end
|
200
|
+
end
|
201
|
+
tests('#delete_bucket_lifecycle').returns([404, 'NoSuchBucket']) do
|
202
|
+
begin
|
203
|
+
Fog::Storage[:aws].delete_bucket_lifecycle('fognonbucket')
|
204
|
+
rescue Excon::Errors::NotFound => e
|
205
|
+
[e.response.status, e.response.body.match(%r{<Code>(.*)</Code>})[1]]
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
tests('no lifecycle') do
|
210
|
+
tests('#get_bucket_lifecycle').returns([404, 'NoSuchLifecycleConfiguration']) do
|
211
|
+
begin
|
212
|
+
Fog::Storage[:aws].get_bucket_lifecycle(@aws_bucket_name)
|
213
|
+
rescue Excon::Errors::NotFound => e
|
214
|
+
[e.response.status, e.response.body.match(%r{<Code>(.*)</Code>})[1]]
|
215
|
+
end
|
216
|
+
end
|
217
|
+
tests('#delete_bucket_lifecycle').succeeds do
|
218
|
+
Fog::Storage[:aws].delete_bucket_lifecycle(@aws_bucket_name)
|
219
|
+
end
|
220
|
+
end
|
221
|
+
tests('create').succeeds do
|
222
|
+
Fog::Storage[:aws].put_bucket_lifecycle(@aws_bucket_name, lifecycle)
|
223
|
+
end
|
224
|
+
tests('read').returns(lifecycle) do
|
225
|
+
Fog::Storage[:aws].get_bucket_lifecycle(@aws_bucket_name).body
|
226
|
+
end
|
227
|
+
lifecycle = { 'Rules' => 5.upto(6).map { |i| {'ID' => "rule\##{i}", 'Prefix' => i.to_s, 'Enabled' => true, 'Days' => i} } }
|
228
|
+
tests('update').returns(lifecycle) do
|
229
|
+
Fog::Storage[:aws].put_bucket_lifecycle(@aws_bucket_name, lifecycle)
|
230
|
+
Fog::Storage[:aws].get_bucket_lifecycle(@aws_bucket_name).body
|
231
|
+
end
|
232
|
+
tests('delete').succeeds do
|
233
|
+
Fog::Storage[:aws].delete_bucket_lifecycle(@aws_bucket_name)
|
234
|
+
end
|
235
|
+
tests('read').returns([404, 'NoSuchLifecycleConfiguration']) do
|
236
|
+
begin
|
237
|
+
Fog::Storage[:aws].get_bucket_lifecycle(@aws_bucket_name)
|
238
|
+
rescue Excon::Errors::NotFound => e
|
239
|
+
[e.response.status, e.response.body.match(%r{<Code>(.*)</Code>})[1]]
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
183
244
|
tests("#delete_bucket('#{@aws_bucket_name}')").succeeds do
|
184
245
|
Fog::Storage[:aws].delete_bucket(@aws_bucket_name)
|
185
246
|
end
|
@@ -222,6 +283,10 @@ Shindo.tests('Fog::Storage[:aws] | bucket requests', [:aws]) do
|
|
222
283
|
Fog::Storage[:aws].put_bucket_acl('fognonbucket', 'invalid')
|
223
284
|
end
|
224
285
|
|
286
|
+
tests("#put_bucket_website('fognonbucket', 'index.html')").raises(Excon::Errors::NotFound) do
|
287
|
+
Fog::Storage[:aws].put_bucket_website('fognonbucket', 'index.html')
|
288
|
+
end
|
289
|
+
|
225
290
|
end
|
226
291
|
|
227
292
|
# don't keep the bucket around
|
@@ -5,7 +5,7 @@ Shindo.tests('Fog::Compute[:brightbox] | account requests', ['brightbox']) do
|
|
5
5
|
tests("#get_account") do
|
6
6
|
pending if Fog.mocking?
|
7
7
|
result = Fog::Compute[:brightbox].get_account
|
8
|
-
formats(Brightbox::Compute::Formats::Full::ACCOUNT) { result }
|
8
|
+
formats(Brightbox::Compute::Formats::Full::ACCOUNT, false) { result }
|
9
9
|
test("ftp password is blanked") { result["library_ftp_password"].nil? }
|
10
10
|
end
|
11
11
|
|
@@ -13,13 +13,13 @@ Shindo.tests('Fog::Compute[:brightbox] | account requests', ['brightbox']) do
|
|
13
13
|
tests("#update_account(#{update_options.inspect})") do
|
14
14
|
pending if Fog.mocking?
|
15
15
|
result = Fog::Compute[:brightbox].update_account(update_options)
|
16
|
-
formats(Brightbox::Compute::Formats::Full::ACCOUNT) { result }
|
16
|
+
formats(Brightbox::Compute::Formats::Full::ACCOUNT, false) { result }
|
17
17
|
end
|
18
18
|
|
19
19
|
tests("#reset_ftp_password_account") do
|
20
20
|
pending if Fog.mocking?
|
21
21
|
result = Fog::Compute[:brightbox].reset_ftp_password_account
|
22
|
-
formats(Brightbox::Compute::Formats::Full::ACCOUNT) { result }
|
22
|
+
formats(Brightbox::Compute::Formats::Full::ACCOUNT, false) { result }
|
23
23
|
test("new ftp password is visible") { ! result["library_ftp_password"].nil? }
|
24
24
|
end
|
25
25
|
|
@@ -11,39 +11,39 @@ Shindo.tests('Fog::Compute[:brightbox] | api client requests', ['brightbox']) do
|
|
11
11
|
pending if Fog.mocking?
|
12
12
|
result = Fog::Compute[:brightbox].create_api_client(create_options)
|
13
13
|
@api_client_id = result["id"]
|
14
|
-
formats(Brightbox::Compute::Formats::Full::API_CLIENT) { result }
|
14
|
+
formats(Brightbox::Compute::Formats::Full::API_CLIENT, false) { result }
|
15
15
|
end
|
16
16
|
|
17
17
|
tests("#list_api_clients") do
|
18
18
|
pending if Fog.mocking?
|
19
19
|
result = Fog::Compute[:brightbox].list_api_clients
|
20
|
-
formats(Brightbox::Compute::Formats::Collection::API_CLIENTS) { result }
|
20
|
+
formats(Brightbox::Compute::Formats::Collection::API_CLIENTS, false) { result }
|
21
21
|
end
|
22
22
|
|
23
23
|
tests("#get_api_client('#{@api_client_id}')") do
|
24
24
|
pending if Fog.mocking?
|
25
25
|
result = Fog::Compute[:brightbox].get_api_client(@api_client_id)
|
26
|
-
formats(Brightbox::Compute::Formats::Full::API_CLIENT) { result }
|
26
|
+
formats(Brightbox::Compute::Formats::Full::API_CLIENT, false) { result }
|
27
27
|
end
|
28
28
|
|
29
29
|
update_options = {:name => "Fog@#{Time.now.iso8601}"}
|
30
30
|
tests("#update_api_client('#{@api_client_id}', #{update_options.inspect})") do
|
31
31
|
pending if Fog.mocking?
|
32
32
|
result = Fog::Compute[:brightbox].update_api_client(@api_client_id, update_options)
|
33
|
-
formats(Brightbox::Compute::Formats::Full::API_CLIENT) { result }
|
33
|
+
formats(Brightbox::Compute::Formats::Full::API_CLIENT, false) { result }
|
34
34
|
end
|
35
35
|
|
36
36
|
tests("#reset_secret_api_client('#{@api_client_id}')") do
|
37
37
|
pending if Fog.mocking?
|
38
38
|
result = Fog::Compute[:brightbox].reset_secret_api_client(@api_client_id)
|
39
|
-
formats(Brightbox::Compute::Formats::Full::API_CLIENT) { result }
|
39
|
+
formats(Brightbox::Compute::Formats::Full::API_CLIENT, false) { result }
|
40
40
|
test("new secret is visible") { ! result["secret"].nil? }
|
41
41
|
end
|
42
42
|
|
43
43
|
tests("#destroy_api_client('#{@api_client_id}')") do
|
44
44
|
pending if Fog.mocking?
|
45
45
|
result = Fog::Compute[:brightbox].destroy_api_client(@api_client_id)
|
46
|
-
formats(Brightbox::Compute::Formats::Full::API_CLIENT) { result }
|
46
|
+
formats(Brightbox::Compute::Formats::Full::API_CLIENT, false) { result }
|
47
47
|
end
|
48
48
|
|
49
49
|
end
|
@@ -10,26 +10,29 @@ Shindo.tests('Fog::Compute[:brightbox] | cloud ip requests', ['brightbox']) do
|
|
10
10
|
pending if Fog.mocking?
|
11
11
|
result = Fog::Compute[:brightbox].create_cloud_ip
|
12
12
|
@cloud_ip_id = result["id"]
|
13
|
-
formats(Brightbox::Compute::Formats::Full::CLOUD_IP) { result }
|
13
|
+
formats(Brightbox::Compute::Formats::Full::CLOUD_IP, false) { result }
|
14
14
|
end
|
15
15
|
|
16
16
|
tests("#list_cloud_ips") do
|
17
17
|
pending if Fog.mocking?
|
18
18
|
result = Fog::Compute[:brightbox].list_cloud_ips
|
19
|
-
formats(Brightbox::Compute::Formats::Collection::CLOUD_IPS) { result }
|
19
|
+
formats(Brightbox::Compute::Formats::Collection::CLOUD_IPS, false) { result }
|
20
20
|
end
|
21
21
|
|
22
22
|
tests("#get_cloud_ip('#{@cloud_ip_id}')") do
|
23
23
|
pending if Fog.mocking?
|
24
24
|
result = Fog::Compute[:brightbox].get_cloud_ip(@cloud_ip_id)
|
25
|
-
formats(Brightbox::Compute::Formats::Full::CLOUD_IP) { result }
|
25
|
+
formats(Brightbox::Compute::Formats::Full::CLOUD_IP, false) { result }
|
26
|
+
end
|
27
|
+
|
28
|
+
unless Fog.mocking?
|
29
|
+
map_options = {:destination => @server.interfaces.first["id"]}
|
26
30
|
end
|
27
31
|
|
28
|
-
map_options = {:destination => @server.interfaces.first["id"]}
|
29
32
|
tests("#map_cloud_ip('#{@cloud_ip_id}', #{map_options.inspect})") do
|
30
33
|
pending if Fog.mocking?
|
31
34
|
result = Fog::Compute[:brightbox].map_cloud_ip(@cloud_ip_id, map_options)
|
32
|
-
formats(Brightbox::Compute::Formats::Full::CLOUD_IP) { result }
|
35
|
+
formats(Brightbox::Compute::Formats::Full::CLOUD_IP, false) { result }
|
33
36
|
end
|
34
37
|
|
35
38
|
unless Fog.mocking?
|
@@ -39,21 +42,24 @@ Shindo.tests('Fog::Compute[:brightbox] | cloud ip requests', ['brightbox']) do
|
|
39
42
|
tests("#unmap_cloud_ip('#{@cloud_ip_id}')") do
|
40
43
|
pending if Fog.mocking?
|
41
44
|
result = Fog::Compute[:brightbox].unmap_cloud_ip(@cloud_ip_id)
|
42
|
-
formats(Brightbox::Compute::Formats::Full::CLOUD_IP) { result }
|
45
|
+
formats(Brightbox::Compute::Formats::Full::CLOUD_IP, false) { result }
|
46
|
+
end
|
47
|
+
|
48
|
+
unless Fog.mocking?
|
49
|
+
update_options = {:reverse_dns => "public.#{@server.id}.gb1.brightbox.com"}
|
43
50
|
end
|
44
51
|
|
45
|
-
update_options = {:reverse_dns => "public.#{@server.id}.gb1.brightbox.com"}
|
46
52
|
tests("#update_cloud_ip('#{@cloud_ip_id}', #{update_options.inspect})") do
|
47
53
|
pending if Fog.mocking?
|
48
54
|
result = Fog::Compute[:brightbox].update_cloud_ip(@cloud_ip_id, update_options)
|
49
|
-
formats(Brightbox::Compute::Formats::Full::CLOUD_IP) { result }
|
55
|
+
formats(Brightbox::Compute::Formats::Full::CLOUD_IP, false) { result }
|
50
56
|
result = Fog::Compute[:brightbox].update_cloud_ip(@cloud_ip_id, {:reverse_dns => ""})
|
51
57
|
end
|
52
58
|
|
53
59
|
tests("#destroy_cloud_ip('#{@cloud_ip_id}')") do
|
54
60
|
pending if Fog.mocking?
|
55
61
|
result = Fog::Compute[:brightbox].destroy_cloud_ip(@cloud_ip_id)
|
56
|
-
formats(Brightbox::Compute::Formats::Full::CLOUD_IP) { result }
|
62
|
+
formats(Brightbox::Compute::Formats::Full::CLOUD_IP, false) { result }
|
57
63
|
end
|
58
64
|
|
59
65
|
unless Fog.mocking?
|
@@ -64,7 +64,8 @@ class Brightbox
|
|
64
64
|
LB_LISTENER = {
|
65
65
|
"in" => Integer,
|
66
66
|
"out" => Integer,
|
67
|
-
"protocol" => String
|
67
|
+
"protocol" => String,
|
68
|
+
"timeout" => Integer
|
68
69
|
}
|
69
70
|
LB_HEALTHCHECK = {
|
70
71
|
"type" => String,
|
@@ -111,7 +112,7 @@ class Brightbox
|
|
111
112
|
"name" => String,
|
112
113
|
"default" => Fog::Boolean,
|
113
114
|
"created_at" => String,
|
114
|
-
"description" => String
|
115
|
+
"description" => Fog::Nullable::String
|
115
116
|
}
|
116
117
|
|
117
118
|
FIREWALL_RULE = {
|
@@ -279,6 +280,7 @@ class Brightbox
|
|
279
280
|
"compatibility_mode" => Fog::Boolean,
|
280
281
|
"virtual_size" => Integer,
|
281
282
|
"disk_size" => Integer,
|
283
|
+
"min_ram" => Fog::Nullable::Integer,
|
282
284
|
"ancestor" => Fog::Brightbox::Nullable::Image,
|
283
285
|
"username" => Fog::Nullable::String
|
284
286
|
}
|
@@ -293,6 +295,7 @@ class Brightbox
|
|
293
295
|
"deleted_at" => Fog::Nullable::String,
|
294
296
|
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
295
297
|
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
298
|
+
"listeners" => [Brightbox::Compute::Formats::Struct::LB_LISTENER],
|
296
299
|
"nodes" => [Brightbox::Compute::Formats::Nested::SERVER]
|
297
300
|
}
|
298
301
|
|
@@ -471,6 +474,7 @@ class Brightbox
|
|
471
474
|
"compatibility_mode" => Fog::Boolean,
|
472
475
|
"virtual_size" => Integer,
|
473
476
|
"disk_size" => Integer,
|
477
|
+
"min_ram" => Fog::Nullable::Integer,
|
474
478
|
"ancestor" => Fog::Brightbox::Nullable::Image,
|
475
479
|
"username" => Fog::Nullable::String
|
476
480
|
}
|
@@ -19,13 +19,13 @@ Shindo.tests('Fog::Compute[:brightbox] | image requests', ['brightbox']) do
|
|
19
19
|
pending if Fog.mocking?
|
20
20
|
result = Fog::Compute[:brightbox].list_images
|
21
21
|
@image_id = result.first["id"]
|
22
|
-
formats(Brightbox::Compute::Formats::Collection::IMAGES) { result }
|
22
|
+
formats(Brightbox::Compute::Formats::Collection::IMAGES, false) { result }
|
23
23
|
end
|
24
24
|
|
25
25
|
tests("#get_image('#{@image_id}')") do
|
26
26
|
pending if Fog.mocking?
|
27
27
|
result = Fog::Compute[:brightbox].get_image(@image_id)
|
28
|
-
formats(Brightbox::Compute::Formats::Full::IMAGE) { result }
|
28
|
+
formats(Brightbox::Compute::Formats::Full::IMAGE, false) { result }
|
29
29
|
end
|
30
30
|
|
31
31
|
## Until Image creation can be automated, we shouldn't be updating Images randomly
|
@@ -10,7 +10,7 @@ Shindo.tests('Fog::Compute[:brightbox] | interface requests', ['brightbox']) do
|
|
10
10
|
tests("#get_interface('#{@interface_id}')") do
|
11
11
|
pending if Fog.mocking?
|
12
12
|
result = Fog::Compute[:brightbox].get_interface(@interface_id)
|
13
|
-
formats(Brightbox::Compute::Formats::Full::INTERFACE) { result }
|
13
|
+
formats(Brightbox::Compute::Formats::Full::INTERFACE, false) { result }
|
14
14
|
end
|
15
15
|
|
16
16
|
end
|
@@ -26,7 +26,7 @@ Shindo.tests('Fog::Compute[:brightbox] | load balancer requests', ['brightbox'])
|
|
26
26
|
pending if Fog.mocking?
|
27
27
|
result = Fog::Compute[:brightbox].create_load_balancer(create_options)
|
28
28
|
@load_balancer_id = result["id"]
|
29
|
-
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER) { result }
|
29
|
+
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER, false) { result }
|
30
30
|
end
|
31
31
|
|
32
32
|
unless Fog.mocking?
|
@@ -36,34 +36,34 @@ Shindo.tests('Fog::Compute[:brightbox] | load balancer requests', ['brightbox'])
|
|
36
36
|
tests("#list_load_balancers()") do
|
37
37
|
pending if Fog.mocking?
|
38
38
|
result = Fog::Compute[:brightbox].list_load_balancers
|
39
|
-
formats(Brightbox::Compute::Formats::Collection::LOAD_BALANCERS) { result }
|
39
|
+
formats(Brightbox::Compute::Formats::Collection::LOAD_BALANCERS, false) { result }
|
40
40
|
end
|
41
41
|
|
42
42
|
tests("#get_load_balancer('#{@load_balancer_id}')") do
|
43
43
|
pending if Fog.mocking?
|
44
44
|
result = Fog::Compute[:brightbox].get_load_balancer(@load_balancer_id)
|
45
|
-
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER) { result }
|
45
|
+
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER, false) { result }
|
46
46
|
end
|
47
47
|
|
48
48
|
update_options = {:name => "New name"}
|
49
49
|
tests("#update_load_balancer('#{@load_balancer_id}', #{update_options.inspect})") do
|
50
50
|
pending if Fog.mocking?
|
51
51
|
result = Fog::Compute[:brightbox].update_load_balancer(@load_balancer_id, update_options)
|
52
|
-
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER) { result }
|
52
|
+
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER, false) { result }
|
53
53
|
end
|
54
54
|
|
55
55
|
add_listeners_options = {:listeners=>[{:out=>28080, :in=>8080, :protocol=>"http"}]}
|
56
56
|
tests("#add_listeners_load_balancer('#{@load_balancer_id}', #{add_listeners_options.inspect})") do
|
57
57
|
pending if Fog.mocking?
|
58
58
|
result = Fog::Compute[:brightbox].add_listeners_load_balancer(@load_balancer_id, add_listeners_options)
|
59
|
-
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER) { result }
|
59
|
+
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER, false) { result }
|
60
60
|
end
|
61
61
|
|
62
62
|
remove_listeners_options = {:listeners=>[{:out=>28080, :in=>8080, :protocol=>"http"}]}
|
63
63
|
tests("#remove_listeners_load_balancer('#{@load_balancer_id}', #{remove_listeners_options.inspect})") do
|
64
64
|
pending if Fog.mocking?
|
65
65
|
result = Fog::Compute[:brightbox].remove_listeners_load_balancer(@load_balancer_id, remove_listeners_options)
|
66
|
-
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER) { result }
|
66
|
+
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER, false) { result }
|
67
67
|
end
|
68
68
|
|
69
69
|
unless Fog.mocking?
|
@@ -76,7 +76,7 @@ Shindo.tests('Fog::Compute[:brightbox] | load balancer requests', ['brightbox'])
|
|
76
76
|
tests("#add_nodes_load_balancer('#{@load_balancer_id}', #{add_nodes_options.inspect})") do
|
77
77
|
pending if Fog.mocking?
|
78
78
|
result = Fog::Compute[:brightbox].add_nodes_load_balancer(@load_balancer_id, add_nodes_options)
|
79
|
-
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER) { result }
|
79
|
+
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER, false) { result }
|
80
80
|
end
|
81
81
|
|
82
82
|
# ...before we can attempt to remove either
|
@@ -84,13 +84,13 @@ Shindo.tests('Fog::Compute[:brightbox] | load balancer requests', ['brightbox'])
|
|
84
84
|
tests("#remove_nodes_load_balancer('#{@load_balancer_id}', #{remove_nodes_options.inspect})") do
|
85
85
|
pending if Fog.mocking?
|
86
86
|
result = Fog::Compute[:brightbox].remove_nodes_load_balancer(@load_balancer_id, remove_nodes_options)
|
87
|
-
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER) { result }
|
87
|
+
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER, false) { result }
|
88
88
|
end
|
89
89
|
|
90
90
|
tests("#destroy_load_balancer('#{@load_balancer_id}')") do
|
91
91
|
pending if Fog.mocking?
|
92
92
|
result = Fog::Compute[:brightbox].destroy_load_balancer(@load_balancer_id)
|
93
|
-
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER) { result }
|
93
|
+
formats(Brightbox::Compute::Formats::Full::LOAD_BALANCER, false) { result }
|
94
94
|
end
|
95
95
|
|
96
96
|
unless Fog.mocking?
|