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
@@ -10,7 +10,7 @@ Shindo.tests('Fog::Compute[:glesys] | ip requests', ['glesys']) do
|
|
10
10
|
Fog::Compute[:glesys].ip_list_own.body['response']
|
11
11
|
end
|
12
12
|
|
13
|
-
tests("#ip_list_free(:
|
13
|
+
tests("#ip_list_free(:datacenter => 'Falkenberg, :platform => 'Xen', :ipversion => 4)"
|
14
14
|
).formats(Glesys::Compute::Formats::Ips::IPLIST_ALL) do
|
15
15
|
pending if Fog.mocking?
|
16
16
|
ips = Fog::Compute[:glesys].ip_list_free(
|
@@ -1,5 +1,5 @@
|
|
1
1
|
Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
|
2
|
-
|
2
|
+
|
3
3
|
@serverid = nil
|
4
4
|
@hostname = "fog-#{Time.now.to_i}"
|
5
5
|
|
@@ -27,7 +27,7 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
|
|
27
27
|
:cpucores => "1",
|
28
28
|
:transfer => "500"
|
29
29
|
)
|
30
|
-
|
30
|
+
|
31
31
|
@serverid = vm.body['response']['server']['serverid']
|
32
32
|
vm.body['response']
|
33
33
|
end
|
@@ -35,7 +35,7 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
|
|
35
35
|
unless Fog.mocking?
|
36
36
|
Fog::Compute[:glesys].servers.get(@serverid).wait_for { ready? }
|
37
37
|
end
|
38
|
-
|
38
|
+
|
39
39
|
tests("#server_details(#{@serverid})").formats(Glesys::Compute::Formats::Servers::DETAILS) do
|
40
40
|
pending if Fog.mocking?
|
41
41
|
Fog::Compute[:glesys].server_details(@serverid).body['response']
|
@@ -55,7 +55,7 @@ Shindo.tests('Fog::Compute[:glesys] | server requests', ['glesys']) do
|
|
55
55
|
unless Fog.mocking?
|
56
56
|
pending if Fog.mocking?
|
57
57
|
s = Fog::Compute[:glesys].servers.get(@serverid)
|
58
|
-
s.wait_for { s.state == 'stopped' }
|
58
|
+
s.wait_for { s.state == 'stopped' }
|
59
59
|
end
|
60
60
|
|
61
61
|
tests("#start(:serverid => #{@serverid})").formats(Glesys::Compute::Formats::Servers::START) do
|
@@ -14,7 +14,7 @@ module Fog
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
[FalseClass, TrueClass].each {|klass| klass.send(:include, Fog::Boolean)}
|
17
|
-
[NilClass, Fog::Boolean].each {|klass| klass.send(:include, Fog::Nullable::Boolean)}
|
17
|
+
[FalseClass, TrueClass, NilClass, Fog::Boolean].each {|klass| klass.send(:include, Fog::Nullable::Boolean)}
|
18
18
|
[NilClass, String].each {|klass| klass.send(:include, Fog::Nullable::String)}
|
19
19
|
[NilClass, Time].each {|klass| klass.send(:include, Fog::Nullable::Time)}
|
20
20
|
[Integer, NilClass].each {|klass| klass.send(:include, Fog::Nullable::Integer)}
|
@@ -15,6 +15,8 @@ if Fog.mock?
|
|
15
15
|
:bluebox_customer_id => 'bluebox_customer_id',
|
16
16
|
:brightbox_client_id => 'brightbox_client_id',
|
17
17
|
:brightbox_secret => 'brightbox_secret',
|
18
|
+
:clodo_api_key => 'clodo_api_key',
|
19
|
+
:clodo_username => 'clodo_username',
|
18
20
|
:dnsimple_email => 'dnsimple_email',
|
19
21
|
:dnsimple_password => 'dnsimple_password',
|
20
22
|
:dnsmadeeasy_api_key => 'dnsmadeeasy_api_key',
|
@@ -101,8 +101,10 @@ Shindo.tests('Fog::DNS[:rackspace] | DNS requests', ['rackspace', 'dns']) do
|
|
101
101
|
|
102
102
|
tests( 'failure') do
|
103
103
|
|
104
|
-
tests('create_domain(invalid)').
|
105
|
-
wait_for Fog::DNS[:rackspace], Fog::DNS[:rackspace].create_domains([{:name => 'badtestdomain.com', :email => '', :records => [{:ttl => 300, :name => 'badtestdomain.com', :type => 'A', :data => '192.168.1.1'}]}])
|
104
|
+
tests('create_domain(invalid)').returns('ERROR') do
|
105
|
+
response = wait_for Fog::DNS[:rackspace], Fog::DNS[:rackspace].create_domains([{:name => 'badtestdomain.com', :email => '', :records => [{:ttl => 300, :name => 'badtestdomain.com', :type => 'A', :data => '192.168.1.1'}]}])
|
106
|
+
|
107
|
+
response.body['status']
|
106
108
|
end
|
107
109
|
|
108
110
|
tests('list_domains :limit => 5, :offset => 8').raises(Fog::Rackspace::Errors::BadRequest) do
|
@@ -3,6 +3,11 @@ NODE_FORMAT = {'node' => SINGLE_NODE_FORMAT}
|
|
3
3
|
NODES_FORMAT = {'nodes' => [SINGLE_NODE_FORMAT]}
|
4
4
|
VIRTUAL_IP_FORMAT = {'type' => String, 'id' => Integer, 'type' => String, 'ipVersion' => String, 'address' => String}
|
5
5
|
VIRTUAL_IPS_FORMAT = { 'virtualIps' => [VIRTUAL_IP_FORMAT] }
|
6
|
+
SOURCE_ADDRESSES = {
|
7
|
+
'ipv4Servicenet' => String,
|
8
|
+
'ipv4Public' => String,
|
9
|
+
'ipv6Public' => String,
|
10
|
+
}
|
6
11
|
LOAD_BALANCER_USAGE_FORMAT = {
|
7
12
|
'loadBalancerUsageRecords' => [
|
8
13
|
{
|
@@ -87,11 +92,22 @@ LOAD_BALANCERS_FORMAT = {
|
|
87
92
|
'port' => Integer,
|
88
93
|
'protocol' => String,
|
89
94
|
'algorithm' => String,
|
90
|
-
'
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
+
'status' => String,
|
96
|
+
'virtualIps' => [VIRTUAL_IP_FORMAT],
|
97
|
+
'created' => { 'time' => String },
|
98
|
+
'updated' => { 'time' => String }
|
99
|
+
}]
|
100
|
+
}
|
101
|
+
|
102
|
+
LOAD_BALANCERS_DETAIL_FORMAT = {
|
103
|
+
'loadBalancers' => [
|
104
|
+
{
|
105
|
+
'name' => String,
|
106
|
+
'id' => Integer,
|
107
|
+
'port' => Integer,
|
108
|
+
'protocol' => String,
|
109
|
+
'algorithm' => String,
|
110
|
+
'sourceAddresses' => SOURCE_ADDRESSES,
|
95
111
|
'status' => String,
|
96
112
|
'virtualIps' => [VIRTUAL_IP_FORMAT],
|
97
113
|
'nodes' => [SINGLE_NODE_FORMAT],
|
@@ -106,11 +122,7 @@ LOAD_BALANCER_FORMAT = {
|
|
106
122
|
'port' => Integer,
|
107
123
|
'protocol' => String,
|
108
124
|
'algorithm' => String,
|
109
|
-
'sourceAddresses' =>
|
110
|
-
'ipv4Servicenet' => String,
|
111
|
-
'ipv4Public' => String,
|
112
|
-
'ipv6Public' => String,
|
113
|
-
},
|
125
|
+
'sourceAddresses' => SOURCE_ADDRESSES,
|
114
126
|
'status' => String,
|
115
127
|
'cluster' => { 'name' => String },
|
116
128
|
'virtualIps' => [VIRTUAL_IP_FORMAT],
|
@@ -120,4 +132,8 @@ LOAD_BALANCER_FORMAT = {
|
|
120
132
|
}.merge(CONNECTION_LOGGING_FORMAT)
|
121
133
|
}
|
122
134
|
|
123
|
-
|
135
|
+
ERROR_PAGE_FORMAT = {
|
136
|
+
'errorpage' => {
|
137
|
+
'content' => String
|
138
|
+
}
|
139
|
+
}
|
data/lib/brightbox-cli/vendor/fog/tests/rackspace/requests/load_balancers/load_balancer_tests.rb
CHANGED
@@ -8,7 +8,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
|
|
8
8
|
@lb_id = nil
|
9
9
|
@lb_name = 'fog' + Time.now.to_i.to_s
|
10
10
|
|
11
|
-
tests(
|
11
|
+
tests("#create_load_balancer(#{@lb_name}, 'HTTP', 80,...)").formats(LOAD_BALANCER_FORMAT) do
|
12
12
|
data = @service.create_load_balancer(@lb_name, 'HTTP', 80, [{ :type => 'PUBLIC'}], [{ :address => '10.0.0.1', :port => 80, :condition => 'ENABLED'}]).body
|
13
13
|
@lb_id = data['loadBalancer']['id']
|
14
14
|
data
|
@@ -30,6 +30,9 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
|
|
30
30
|
sleep 10
|
31
31
|
end
|
32
32
|
|
33
|
+
tests("#list_load_balancers({:node_address => '10.0.0.1'})").formats(LOAD_BALANCERS_FORMAT) do
|
34
|
+
@service.list_load_balancers({:node_address => '10.0.0.1'}).body
|
35
|
+
end
|
33
36
|
|
34
37
|
tests("#update_load_balancer(#{@lb_id}, { :port => 80 })").succeeds do
|
35
38
|
@service.update_load_balancer(@lb_id, { :port => 80 }).body
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Shindo.tests('Fog::Rackspace::LoadBalancers |
|
1
|
+
Shindo.tests('Fog::Rackspace::LoadBalancers | node_tests', ['rackspace']) do
|
2
2
|
|
3
3
|
pending if Fog.mocking?
|
4
4
|
|
@@ -9,7 +9,7 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
|
|
9
9
|
tests('success') do
|
10
10
|
|
11
11
|
@lb.wait_for { ready? }
|
12
|
-
tests(
|
12
|
+
tests("#create_node(#{@lb.id}, '10.10.10.10', 80, 'ENABLED')").formats(NODES_FORMAT) do
|
13
13
|
data = @service.create_node(@lb.id, '10.10.10.10', 80, 'ENABLED').body
|
14
14
|
@nodes_created << data['nodes'][0]['id']
|
15
15
|
data
|
@@ -23,48 +23,48 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
|
|
23
23
|
end
|
24
24
|
|
25
25
|
@lb.wait_for { ready? }
|
26
|
-
tests("list_nodes").formats(NODES_FORMAT) do
|
26
|
+
tests("#list_nodes(#{@lb.id})").formats(NODES_FORMAT) do
|
27
27
|
@service.list_nodes(@lb.id).body
|
28
28
|
end
|
29
29
|
|
30
30
|
@lb.wait_for { ready? }
|
31
|
-
tests("get_node(#{@
|
31
|
+
tests("#get_node(#{@lb.id})").formats(NODE_FORMAT) do
|
32
32
|
@service.get_node(@lb.id, @nodes_created[0]).body
|
33
33
|
end
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
@lb.
|
38
|
-
|
39
|
-
@service.update_node(@lb.id, @nodes_created[0], { :condition => 'DISABLED' })
|
40
|
-
end
|
35
|
+
@lb.wait_for { ready? }
|
36
|
+
tests("#update_node(#{@lb.id}, #{@nodes_created[0]}, { :condition => 'DISABLED' })").succeeds do
|
37
|
+
@service.update_node(@lb.id, @nodes_created[0], { :condition => 'DISABLED' })
|
38
|
+
end
|
41
39
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
40
|
+
@lb.wait_for { ready? }
|
41
|
+
tests("#update_node(#{@lb.id}, #{@nodes_created[0]}, { :weight => 20})").succeeds do
|
42
|
+
@service.update_node(@lb.id, @nodes_created[0], { :weight => 20 })
|
43
|
+
end
|
46
44
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
end
|
45
|
+
@lb.wait_for { ready? }
|
46
|
+
tests("#update_node(#{@lb.id}, #{@nodes_created[0]}, { :condition => 'DISABLED', :weight => 20 })").succeeds do
|
47
|
+
@service.update_node(@lb.id, @nodes_created[0], { :condition => 'DISABLED', :weight => 20 })
|
51
48
|
end
|
52
49
|
end
|
53
50
|
|
54
51
|
tests('failure') do
|
55
|
-
tests('create_node(invalid ip)').raises(Fog::Rackspace::LoadBalancers::BadRequest) do
|
52
|
+
tests('#create_node(invalid ip)').raises(Fog::Rackspace::LoadBalancers::BadRequest) do
|
56
53
|
@service.create_node(@lb.id, '', 80, 'ENABLED')
|
57
54
|
end
|
58
|
-
tests('create_node(invalid condition)').raises(Fog::Rackspace::LoadBalancers::BadRequest) do
|
55
|
+
tests('#create_node(invalid condition)').raises(Fog::Rackspace::LoadBalancers::BadRequest) do
|
59
56
|
@service.create_node(@lb.id, '10.10.10.10', 80, 'EABLED')
|
60
57
|
end
|
61
|
-
tests(
|
58
|
+
tests("#get_node(#{@lb.id}, 0)").raises(Fog::Rackspace::LoadBalancers::NotFound) do
|
62
59
|
@service.get_node(@lb.id, 0)
|
63
60
|
end
|
64
|
-
tests(
|
65
|
-
@service.
|
61
|
+
tests("#delete_node(#{@lb.id}, 0)").raises(Fog::Rackspace::LoadBalancers::NotFound) do
|
62
|
+
@service.delete_node(@lb.id, 0)
|
63
|
+
end
|
64
|
+
tests("#delete_nodes('a', 'b')").raises(Fog::Rackspace::LoadBalancers::NotFound) do
|
65
|
+
@service.delete_nodes(@lb.id, 'a', 'b')
|
66
66
|
end
|
67
|
-
tests(
|
67
|
+
tests("#update_node(#{@lb.id}, 0, { :weight => 20 })").raises(Fog::Rackspace::LoadBalancers::NotFound) do
|
68
68
|
@service.update_node(@lb.id, 0, { :weight => 20 })
|
69
69
|
end
|
70
70
|
end
|
@@ -72,7 +72,6 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer_tests', ['rackspace'
|
|
72
72
|
tests('success') do
|
73
73
|
@lb.wait_for { ready? }
|
74
74
|
tests("#delete_nodes(multiple node)").succeeds do
|
75
|
-
pending
|
76
75
|
@service.delete_nodes(@lb.id, *@nodes_created)
|
77
76
|
end
|
78
77
|
@lb.wait_for { ready? }
|
@@ -16,9 +16,9 @@ Shindo.tests('Fog::Compute[:slicehost] | slice requests', ['slicehost']) do
|
|
16
16
|
|
17
17
|
@slice_id = nil
|
18
18
|
|
19
|
-
tests("#create_slice(1,
|
19
|
+
tests("#create_slice(1, 305, 'fogcreateslice')").formats(@slice_format.merge('root-password' => String)) do
|
20
20
|
pending if Fog.mocking?
|
21
|
-
data = Fog::Compute[:slicehost].create_slice(1,
|
21
|
+
data = Fog::Compute[:slicehost].create_slice(1, 305, 'fogcreateslice').body
|
22
22
|
@slice_id = data['id']
|
23
23
|
data
|
24
24
|
end
|
@@ -14,16 +14,16 @@ Shindo.tests('Fog::Compute[:stormondemand] | server requests', ['stormondemand']
|
|
14
14
|
'ip' => String,
|
15
15
|
'ip_count' => String,
|
16
16
|
'subaccnt' => String,
|
17
|
-
'template' =>
|
17
|
+
'template' => String,
|
18
18
|
'template_description' => String,
|
19
|
-
'manage_level' =>
|
19
|
+
'manage_level' => String,
|
20
20
|
'zone' => Hash,
|
21
21
|
'active' => Integer,
|
22
22
|
'create_date' => String
|
23
23
|
}
|
24
24
|
|
25
25
|
@servers_format = {
|
26
|
-
'
|
26
|
+
'items' => [@server_format]
|
27
27
|
}
|
28
28
|
|
29
29
|
tests('success') do
|
@@ -1,95 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
tests("#server.new('#{Vcloud::Compute::TestSupport::template}')").returns(true) do
|
4
|
-
pending if Fog.mocking?
|
5
|
-
@svr = Vcloud.servers.create :catalog_item_uri => Vcloud::Compute::TestSupport::template, :name => 'fog_test_run', :password => 'password'
|
6
|
-
print "Waiting for server to be ready"
|
7
|
-
@svr.wait_for(1200) { print '.' ; ready? }
|
8
|
-
puts ""
|
9
|
-
@svr.ready?
|
10
|
-
end
|
11
|
-
|
12
|
-
tests("#svr.power_on()").returns(true) do
|
13
|
-
pending if Fog.mocking?
|
14
|
-
@svr.power_on
|
15
|
-
@svr.wait_for { on? }
|
16
|
-
@svr.wait_for { ready? }
|
17
|
-
@svr.on?
|
18
|
-
end
|
1
|
+
require 'fog/vcloud/models/compute/servers'
|
19
2
|
|
20
|
-
|
21
|
-
pending if Fog.mocking?
|
22
|
-
@svr.wait_for { ready? }
|
23
|
-
@svr.description = "testing"
|
24
|
-
@svr.save
|
25
|
-
@svr.wait_for { ready? }
|
26
|
-
@svr.description
|
27
|
-
end
|
28
|
-
|
29
|
-
# Power off only stops the OS, doesn't free up resources. #undeploy is for this.
|
30
|
-
tests("#svr.undeploy()").returns(true) do
|
31
|
-
pending if Fog.mocking?
|
32
|
-
@svr.undeploy
|
33
|
-
@svr.wait_for { off? }
|
34
|
-
@svr.wait_for { ready? }
|
35
|
-
@svr.off?
|
36
|
-
end
|
37
|
-
|
38
|
-
tests("#svr.memory(384)").returns(384) do
|
39
|
-
pending if Fog.mocking?
|
40
|
-
raise 'Server template memory already 384m - change to something different' if @svr.memory[:amount] == 384
|
41
|
-
@svr.wait_for { ready? }
|
42
|
-
@svr.memory = 384
|
43
|
-
@svr.save
|
44
|
-
@svr.wait_for { ready? }
|
45
|
-
# Can take a little while for the VM to know it has different ram, and not tied to a task..
|
46
|
-
(1..20).each do |i|
|
47
|
-
break if @svr.reload.memory[:amount] == '384'
|
48
|
-
sleep 1
|
49
|
-
end
|
50
|
-
@svr.reload.memory[:amount]
|
51
|
-
end
|
52
|
-
|
53
|
-
tests("#svr.add_disk(4096)").returns([2, "4096"]) do
|
54
|
-
pending if Fog.mocking?
|
55
|
-
raise 'Server template already has two disks' if @svr.disks.size == 2
|
56
|
-
@svr.wait_for { ready? }
|
57
|
-
@svr.add_disk(4096)
|
58
|
-
@svr.save
|
59
|
-
@svr.wait_for { ready? }
|
60
|
-
# Can take a little while for the VM to know it has different ram, and not tied to a task..
|
61
|
-
(1..20).each do |i|
|
62
|
-
break if @svr.reload.disks.size == 2
|
63
|
-
sleep 1
|
64
|
-
end
|
65
|
-
[
|
66
|
-
@svr.disks.size,
|
67
|
-
@svr.disks[1][:resource][:vcloud_capacity]
|
68
|
-
]
|
69
|
-
end
|
3
|
+
Shindo.tests("Vcloud::Compute | servers", ['vcloud']) do
|
70
4
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
5
|
+
Fog::Vcloud::Compute::SUPPORTED_VERSIONS.each do |version|
|
6
|
+
tests("api version #{version}") do
|
7
|
+
pending if Fog.mocking?
|
8
|
+
instance = Fog::Vcloud::Compute::Servers.new(
|
9
|
+
:connection => Fog::Vcloud::Compute.new(
|
10
|
+
:vcloud_host => 'vcloud.example.com',
|
11
|
+
:vcloud_username => 'username',
|
12
|
+
:vcloud_password => 'password',
|
13
|
+
:vcloud_version => version),
|
14
|
+
:href => "https://vcloud.example.com/api#{(version == '1.0') ? '/v1.0' : ''}/vApp/vapp-1"
|
15
|
+
)
|
16
|
+
|
17
|
+
tests("collection") do
|
18
|
+
returns(2) { instance.size }
|
19
|
+
returns("https://vcloud.example.com/api#{(version == '1.0') ? '/v1.0' : ''}/vApp/vm-2") { instance.first.href }
|
20
|
+
end
|
83
21
|
end
|
84
|
-
@svr.disks.size
|
85
22
|
end
|
86
|
-
|
87
|
-
tests("#svr.destroy").raises(Excon::Errors::Forbidden) do
|
88
|
-
pending if Fog.mocking?
|
89
|
-
@svr.destroy
|
90
|
-
sleep 5 # allow cleanup..
|
91
|
-
Vcloud.servers.get(@svr.href) == nil
|
92
|
-
end
|
93
|
-
|
94
|
-
|
95
23
|
end
|
@@ -1,15 +1,27 @@
|
|
1
1
|
Shindo.tests("Fog::Compute[:vsphere] | vm_clone request", 'vsphere') do
|
2
|
-
#require 'guid'
|
3
|
-
template = "/Datacenters/Solutions/vm/Jeff/Templates/centos56gm2"
|
2
|
+
# require 'guid'
|
4
3
|
compute = Fog::Compute[:vsphere]
|
4
|
+
response = nil
|
5
|
+
response_linked = nil
|
6
|
+
|
7
|
+
template = "/Datacenters/Solutions/vm/Jeff/Templates/centos56gm2"
|
8
|
+
tests("Standard Clone | The return value should") do
|
9
|
+
response = compute.vm_clone('path' => template, 'name' => 'cloning_vm', 'wait' => 1)
|
10
|
+
test("be a kind of Hash") { response.kind_of? Hash }
|
11
|
+
%w{ vm_ref task_ref }.each do |key|
|
12
|
+
test("have a #{key} key") { response.has_key? key }
|
13
|
+
end
|
14
|
+
end
|
5
15
|
|
6
|
-
|
7
|
-
|
16
|
+
template = "/Datacenters/Solutions/vm/Jeff/Templates/centos56gm2"
|
17
|
+
tests("Linked Clone | The return value should") do
|
18
|
+
response = compute.vm_clone('path' => template, 'name' => 'cloning_vm_linked', 'wait' => 1, 'linked_clone' => true)
|
8
19
|
test("be a kind of Hash") { response.kind_of? Hash }
|
9
20
|
%w{ vm_ref task_ref }.each do |key|
|
10
21
|
test("have a #{key} key") { response.has_key? key }
|
11
22
|
end
|
12
23
|
end
|
24
|
+
|
13
25
|
tests("When invalid input is presented") do
|
14
26
|
raises(ArgumentError, 'it should raise ArgumentError') { compute.vm_clone(:foo => 1) }
|
15
27
|
raises(Fog::Compute::Vsphere::NotFound, 'it should raise Fog::Compute::Vsphere::NotFound when the UUID is not a string') do
|
@@ -5,7 +5,7 @@ Shindo.tests('Fog::Compute[:vsphere] | vm_power_on request', ['vsphere']) do
|
|
5
5
|
powered_off_vm = nil
|
6
6
|
|
7
7
|
tests('The response should') do
|
8
|
-
response = compute.
|
8
|
+
response = compute.vm_power_on('instance_uuid' => powered_off_vm)
|
9
9
|
test('be a kind of Hash') { response.kind_of? Hash }
|
10
10
|
test('should have a task_state key') { response.has_key? 'task_state' }
|
11
11
|
end
|