fog 0.8.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -6
- data/Rakefile +58 -21
- data/bin/fog +6 -0
- data/changelog.txt +107 -0
- data/docs/about/getting_started.markdown +4 -4
- data/docs/about/press.markdown +7 -0
- data/docs/about/structure.markdown +3 -3
- data/docs/compute/index.markdown +5 -5
- data/docs/dns/index.markdown +3 -3
- data/docs/index.markdown +3 -3
- data/docs/storage/index.markdown +10 -10
- data/examples/compute_tests.rb +71 -0
- data/examples/dns_tests.rb +4 -4
- data/examples/storage_tests.rb +1 -1
- data/fog.gemspec +4 -3
- data/lib/fog.rb +1 -1
- data/lib/fog/aws/cloud_formation.rb +1 -1
- data/lib/fog/aws/elb.rb +3 -3
- data/lib/fog/aws/iam.rb +1 -1
- data/lib/fog/aws/models/elb/load_balancer.rb +3 -2
- data/lib/fog/aws/models/rds/security_group.rb +0 -2
- data/lib/fog/aws/models/rds/server.rb +2 -2
- data/lib/fog/aws/parsers/elb/describe_load_balancers.rb +5 -2
- data/lib/fog/aws/rds.rb +1 -1
- data/lib/fog/aws/requests/cloud_formation/create_stack.rb +1 -1
- data/lib/fog/aws/requests/elb/create_load_balancer.rb +5 -5
- data/lib/fog/aws/requests/elb/create_load_balancer_listeners.rb +4 -4
- data/lib/fog/aws/requests/elb/delete_load_balancer_listeners.rb +1 -1
- data/lib/fog/aws/requests/elb/deregister_instances_from_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/describe_instance_health.rb +1 -1
- data/lib/fog/aws/requests/elb/describe_load_balancers.rb +16 -11
- data/lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/register_instances_with_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/set_load_balancer_policies_of_listener.rb +1 -1
- data/lib/fog/aws/requests/rds/create_db_instance.rb +1 -1
- data/lib/fog/aws/requests/rds/modify_db_instance.rb +1 -1
- data/lib/fog/aws/requests/rds/modify_db_parameter_group.rb +3 -3
- data/lib/fog/aws/requests/ses/send_email.rb +2 -2
- data/lib/fog/aws/requests/ses/send_raw_email.rb +1 -1
- data/lib/fog/aws/requests/simpledb/delete_attributes.rb +14 -4
- data/lib/fog/aws/simpledb.rb +3 -3
- data/lib/fog/bin.rb +2 -0
- data/lib/fog/bin/aws.rb +8 -4
- data/lib/fog/bin/bluebox.rb +4 -2
- data/lib/fog/bin/brightbox.rb +2 -1
- data/lib/fog/bin/dnsimple.rb +7 -6
- data/lib/fog/bin/dnsmadeeasy.rb +31 -0
- data/lib/fog/bin/ecloud.rb +2 -1
- data/lib/fog/bin/go_grid.rb +2 -1
- data/lib/fog/bin/google.rb +2 -1
- data/lib/fog/bin/linode.rb +4 -2
- data/lib/fog/bin/local.rb +2 -1
- data/lib/fog/bin/new_servers.rb +2 -1
- data/lib/fog/bin/ninefold.rb +31 -0
- data/lib/fog/bin/rackspace.rb +6 -3
- data/lib/fog/bin/slicehost.rb +4 -2
- data/lib/fog/bin/stormondemand.rb +2 -1
- data/lib/fog/bin/virtual_box.rb +2 -1
- data/lib/fog/bin/voxel.rb +2 -1
- data/lib/fog/bin/zerigo.rb +2 -1
- data/lib/fog/cdn.rb +10 -6
- data/lib/fog/cdn/aws.rb +2 -17
- data/lib/fog/cdn/parsers/aws/distribution.rb +2 -2
- data/lib/fog/cdn/parsers/aws/get_distribution_list.rb +2 -2
- data/lib/fog/cdn/parsers/aws/post_invalidation.rb +2 -2
- data/lib/fog/cdn/rackspace.rb +2 -17
- data/lib/fog/cdn/requests/aws/delete_distribution.rb +2 -2
- data/lib/fog/cdn/requests/aws/get_distribution.rb +3 -3
- data/lib/fog/cdn/requests/aws/get_distribution_list.rb +3 -3
- data/lib/fog/cdn/requests/aws/post_distribution.rb +3 -3
- data/lib/fog/cdn/requests/aws/post_invalidation.rb +3 -3
- data/lib/fog/cdn/requests/aws/put_distribution_config.rb +3 -3
- data/lib/fog/cdn/requests/rackspace/get_containers.rb +2 -2
- data/lib/fog/cdn/requests/rackspace/head_container.rb +2 -2
- data/lib/fog/cdn/requests/rackspace/post_container.rb +2 -2
- data/lib/fog/cdn/requests/rackspace/put_container.rb +2 -2
- data/lib/fog/compute.rb +44 -26
- data/lib/fog/compute/aws.rb +5 -20
- data/lib/fog/compute/bluebox.rb +3 -18
- data/lib/fog/compute/brightbox.rb +3 -18
- data/lib/fog/compute/ecloud.rb +4 -5
- data/lib/fog/compute/go_grid.rb +3 -18
- data/lib/fog/compute/linode.rb +4 -19
- data/lib/fog/compute/models/aws/address.rb +2 -2
- data/lib/fog/compute/models/aws/addresses.rb +3 -3
- data/lib/fog/compute/models/aws/flavor.rb +2 -2
- data/lib/fog/compute/models/aws/flavors.rb +4 -4
- data/lib/fog/compute/models/aws/image.rb +2 -2
- data/lib/fog/compute/models/aws/images.rb +3 -3
- data/lib/fog/compute/models/aws/key_pair.rb +2 -3
- data/lib/fog/compute/models/aws/key_pairs.rb +3 -3
- data/lib/fog/compute/models/aws/security_group.rb +2 -2
- data/lib/fog/compute/models/aws/security_groups.rb +3 -3
- data/lib/fog/compute/models/aws/server.rb +18 -15
- data/lib/fog/compute/models/aws/servers.rb +3 -3
- data/lib/fog/compute/models/aws/snapshot.rb +2 -2
- data/lib/fog/compute/models/aws/snapshots.rb +3 -3
- data/lib/fog/compute/models/aws/tag.rb +2 -4
- data/lib/fog/compute/models/aws/tags.rb +3 -3
- data/lib/fog/compute/models/aws/volume.rb +2 -2
- data/lib/fog/compute/models/aws/volumes.rb +3 -3
- data/lib/fog/compute/models/bluebox/flavor.rb +2 -2
- data/lib/fog/compute/models/bluebox/flavors.rb +4 -4
- data/lib/fog/compute/models/bluebox/image.rb +2 -2
- data/lib/fog/compute/models/bluebox/images.rb +4 -4
- data/lib/fog/compute/models/bluebox/server.rb +6 -6
- data/lib/fog/compute/models/bluebox/servers.rb +4 -4
- data/lib/fog/compute/models/brightbox/account.rb +2 -2
- data/lib/fog/compute/models/brightbox/cloud_ip.rb +2 -2
- data/lib/fog/compute/models/brightbox/cloud_ips.rb +3 -3
- data/lib/fog/compute/models/brightbox/flavor.rb +2 -2
- data/lib/fog/compute/models/brightbox/flavors.rb +3 -3
- data/lib/fog/compute/models/brightbox/image.rb +3 -2
- data/lib/fog/compute/models/brightbox/images.rb +3 -3
- data/lib/fog/compute/models/brightbox/load_balancer.rb +2 -2
- data/lib/fog/compute/models/brightbox/load_balancers.rb +3 -3
- data/lib/fog/compute/models/brightbox/server.rb +2 -2
- data/lib/fog/compute/models/brightbox/servers.rb +3 -3
- data/lib/fog/compute/models/brightbox/user.rb +2 -2
- data/lib/fog/compute/models/brightbox/users.rb +3 -3
- data/lib/fog/compute/models/brightbox/zone.rb +2 -2
- data/lib/fog/compute/models/brightbox/zones.rb +3 -3
- data/lib/fog/compute/models/ecloud/backup_internet_service.rb +3 -3
- data/lib/fog/compute/models/ecloud/backup_internet_services.rb +3 -3
- data/lib/fog/compute/models/ecloud/catalog.rb +3 -3
- data/lib/fog/compute/models/ecloud/catalog_item.rb +2 -2
- data/lib/fog/compute/models/ecloud/firewall_acl.rb +2 -2
- data/lib/fog/compute/models/ecloud/firewall_acls.rb +3 -3
- data/lib/fog/compute/models/ecloud/internet_service.rb +3 -3
- data/lib/fog/compute/models/ecloud/internet_services.rb +3 -3
- data/lib/fog/compute/models/ecloud/ip.rb +2 -2
- data/lib/fog/compute/models/ecloud/ips.rb +3 -3
- data/lib/fog/compute/models/ecloud/network.rb +7 -4
- data/lib/fog/compute/models/ecloud/networks.rb +3 -3
- data/lib/fog/compute/models/ecloud/node.rb +2 -2
- data/lib/fog/compute/models/ecloud/nodes.rb +3 -3
- data/lib/fog/compute/models/ecloud/public_ip.rb +3 -3
- data/lib/fog/compute/models/ecloud/public_ips.rb +3 -3
- data/lib/fog/compute/models/ecloud/server.rb +2 -2
- data/lib/fog/compute/models/ecloud/servers.rb +3 -3
- data/lib/fog/compute/models/ecloud/task.rb +2 -2
- data/lib/fog/compute/models/ecloud/tasks.rb +3 -3
- data/lib/fog/compute/models/ecloud/vdc.rb +9 -9
- data/lib/fog/compute/models/ecloud/vdcs.rb +3 -3
- data/lib/fog/compute/models/go_grid/image.rb +2 -2
- data/lib/fog/compute/models/go_grid/images.rb +4 -4
- data/lib/fog/compute/models/go_grid/password.rb +2 -2
- data/lib/fog/compute/models/go_grid/passwords.rb +4 -4
- data/lib/fog/compute/models/go_grid/server.rb +14 -14
- data/lib/fog/compute/models/go_grid/servers.rb +5 -4
- data/lib/fog/compute/models/linode/data_center.rb +2 -2
- data/lib/fog/compute/models/linode/data_centers.rb +3 -3
- data/lib/fog/compute/models/linode/disk.rb +2 -2
- data/lib/fog/compute/models/linode/disks.rb +3 -3
- data/lib/fog/compute/models/linode/flavor.rb +2 -2
- data/lib/fog/compute/models/linode/flavors.rb +3 -3
- data/lib/fog/compute/models/linode/image.rb +2 -2
- data/lib/fog/compute/models/linode/images.rb +4 -4
- data/lib/fog/compute/models/linode/ip.rb +2 -2
- data/lib/fog/compute/models/linode/ips.rb +4 -4
- data/lib/fog/compute/models/linode/kernel.rb +2 -2
- data/lib/fog/compute/models/linode/kernels.rb +4 -4
- data/lib/fog/compute/models/linode/server.rb +4 -4
- data/lib/fog/compute/models/linode/servers.rb +4 -4
- data/lib/fog/compute/models/linode/stack_script.rb +2 -2
- data/lib/fog/compute/models/linode/stack_scripts.rb +4 -4
- data/lib/fog/compute/models/ninefold/address.rb +103 -0
- data/lib/fog/compute/models/ninefold/addresses.rb +31 -0
- data/lib/fog/compute/models/ninefold/flavor.rb +29 -0
- data/lib/fog/compute/models/ninefold/flavors.rb +30 -0
- data/lib/fog/compute/models/ninefold/image.rb +42 -0
- data/lib/fog/compute/models/ninefold/images.rb +30 -0
- data/lib/fog/compute/models/ninefold/ip_forwarding_rule.rb +79 -0
- data/lib/fog/compute/models/ninefold/ip_forwarding_rules.rb +31 -0
- data/lib/fog/compute/models/ninefold/server.rb +180 -0
- data/lib/fog/compute/models/ninefold/servers.rb +31 -0
- data/lib/fog/compute/models/rackspace/flavor.rb +2 -2
- data/lib/fog/compute/models/rackspace/flavors.rb +4 -4
- data/lib/fog/compute/models/rackspace/image.rb +2 -2
- data/lib/fog/compute/models/rackspace/images.rb +4 -4
- data/lib/fog/compute/models/rackspace/server.rb +6 -6
- data/lib/fog/compute/models/rackspace/servers.rb +4 -4
- data/lib/fog/compute/models/slicehost/flavor.rb +2 -2
- data/lib/fog/compute/models/slicehost/flavors.rb +3 -3
- data/lib/fog/compute/models/slicehost/image.rb +2 -2
- data/lib/fog/compute/models/slicehost/images.rb +3 -3
- data/lib/fog/compute/models/slicehost/server.rb +6 -6
- data/lib/fog/compute/models/slicehost/servers.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/balancer.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/balancers.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/config.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/configs.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/image.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/images.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/private_ip.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/private_ips.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/server.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/servers.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/stat.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/stats.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/template.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/templates.rb +3 -3
- data/lib/fog/compute/models/virtual_box/medium.rb +3 -3
- data/lib/fog/compute/models/virtual_box/medium_format.rb +2 -2
- data/lib/fog/compute/models/virtual_box/mediums.rb +3 -3
- data/lib/fog/compute/models/virtual_box/nat_engine.rb +3 -3
- data/lib/fog/compute/models/virtual_box/nat_redirect.rb +2 -2
- data/lib/fog/compute/models/virtual_box/nat_redirects.rb +3 -3
- data/lib/fog/compute/models/virtual_box/network_adapter.rb +3 -3
- data/lib/fog/compute/models/virtual_box/network_adapters.rb +3 -3
- data/lib/fog/compute/models/virtual_box/server.rb +8 -8
- data/lib/fog/compute/models/virtual_box/servers.rb +3 -3
- data/lib/fog/compute/models/virtual_box/storage_controller.rb +2 -2
- data/lib/fog/compute/models/virtual_box/storage_controllers.rb +3 -3
- data/lib/fog/compute/models/voxel/image.rb +2 -2
- data/lib/fog/compute/models/voxel/images.rb +3 -3
- data/lib/fog/compute/models/voxel/server.rb +2 -2
- data/lib/fog/compute/models/voxel/servers.rb +3 -3
- data/lib/fog/compute/new_servers.rb +3 -18
- data/lib/fog/compute/ninefold.rb +139 -0
- data/lib/fog/compute/parsers/aws/allocate_address.rb +2 -2
- data/lib/fog/compute/parsers/aws/attach_volume.rb +2 -2
- data/lib/fog/compute/parsers/aws/basic.rb +2 -2
- data/lib/fog/compute/parsers/aws/create_image.rb +2 -2
- data/lib/fog/compute/parsers/aws/create_key_pair.rb +2 -2
- data/lib/fog/compute/parsers/aws/create_snapshot.rb +2 -2
- data/lib/fog/compute/parsers/aws/create_volume.rb +2 -2
- data/lib/fog/compute/parsers/aws/deregister_image.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_addresses.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_availability_zones.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_images.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_instances.rb +20 -54
- data/lib/fog/compute/parsers/aws/describe_key_pairs.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_regions.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_reserved_instances.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_reserved_instances_offerings.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_security_groups.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_snapshots.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_tags.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_volumes.rb +2 -2
- data/lib/fog/compute/parsers/aws/detach_volume.rb +2 -2
- data/lib/fog/compute/parsers/aws/get_console_output.rb +2 -2
- data/lib/fog/compute/parsers/aws/get_password_data.rb +2 -2
- data/lib/fog/compute/parsers/aws/import_key_pair.rb +2 -2
- data/lib/fog/compute/parsers/aws/monitor_unmonitor_instances.rb +2 -2
- data/lib/fog/compute/parsers/aws/register_image.rb +2 -2
- data/lib/fog/compute/parsers/aws/run_instances.rb +2 -2
- data/lib/fog/compute/parsers/aws/start_stop_instances.rb +2 -2
- data/lib/fog/compute/parsers/aws/terminate_instances.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/create_slice.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_backups.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_flavor.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_flavors.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_image.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_images.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_slice.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_slices.rb +2 -2
- data/lib/fog/compute/parsers/voxel/basic.rb +2 -2
- data/lib/fog/compute/parsers/voxel/devices_list.rb +2 -2
- data/lib/fog/compute/parsers/voxel/images_list.rb +2 -2
- data/lib/fog/compute/parsers/voxel/voxcloud_create.rb +2 -2
- data/lib/fog/compute/parsers/voxel/voxcloud_delete.rb +2 -2
- data/lib/fog/compute/parsers/voxel/voxcloud_status.rb +2 -2
- data/lib/fog/compute/rackspace.rb +21 -26
- data/lib/fog/compute/requests/aws/allocate_address.rb +3 -3
- data/lib/fog/compute/requests/aws/associate_address.rb +9 -5
- data/lib/fog/compute/requests/aws/attach_volume.rb +7 -7
- data/lib/fog/compute/requests/aws/authorize_security_group_ingress.rb +4 -4
- data/lib/fog/compute/requests/aws/create_image.rb +3 -3
- data/lib/fog/compute/requests/aws/create_key_pair.rb +4 -4
- data/lib/fog/compute/requests/aws/create_security_group.rb +4 -4
- data/lib/fog/compute/requests/aws/create_snapshot.rb +3 -3
- data/lib/fog/compute/requests/aws/create_tags.rb +6 -6
- data/lib/fog/compute/requests/aws/create_volume.rb +13 -6
- data/lib/fog/compute/requests/aws/delete_key_pair.rb +3 -3
- data/lib/fog/compute/requests/aws/delete_security_group.rb +4 -4
- data/lib/fog/compute/requests/aws/delete_snapshot.rb +4 -4
- data/lib/fog/compute/requests/aws/delete_tags.rb +4 -4
- data/lib/fog/compute/requests/aws/delete_volume.rb +5 -5
- data/lib/fog/compute/requests/aws/deregister_image.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_addresses.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_availability_zones.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_images.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_instances.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_key_pairs.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_regions.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_reserved_instances.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_reserved_instances_offerings.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_security_groups.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_snapshots.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_tags.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_volumes.rb +4 -4
- data/lib/fog/compute/requests/aws/detach_volume.rb +4 -4
- data/lib/fog/compute/requests/aws/disassociate_address.rb +4 -4
- data/lib/fog/compute/requests/aws/get_console_output.rb +5 -5
- data/lib/fog/compute/requests/aws/get_password_data.rb +4 -4
- data/lib/fog/compute/requests/aws/import_key_pair.rb +4 -4
- data/lib/fog/compute/requests/aws/modify_image_attributes.rb +6 -6
- data/lib/fog/compute/requests/aws/modify_snapshot_attribute.rb +5 -5
- data/lib/fog/compute/requests/aws/monitor_instances.rb +5 -5
- data/lib/fog/compute/requests/aws/reboot_instances.rb +5 -5
- data/lib/fog/compute/requests/aws/register_image.rb +4 -4
- data/lib/fog/compute/requests/aws/release_address.rb +4 -4
- data/lib/fog/compute/requests/aws/revoke_security_group_ingress.rb +4 -4
- data/lib/fog/compute/requests/aws/run_instances.rb +5 -5
- data/lib/fog/compute/requests/aws/start_instances.rb +4 -4
- data/lib/fog/compute/requests/aws/stop_instances.rb +4 -4
- data/lib/fog/compute/requests/aws/terminate_instances.rb +5 -5
- data/lib/fog/compute/requests/aws/unmonitor_instances.rb +5 -5
- data/lib/fog/compute/requests/bluebox/create_block.rb +2 -2
- data/lib/fog/compute/requests/bluebox/destroy_block.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_block.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_blocks.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_product.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_products.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_template.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_templates.rb +2 -2
- data/lib/fog/compute/requests/bluebox/reboot_block.rb +2 -2
- data/lib/fog/compute/requests/brightbox/activate_console_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/add_listeners_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/create_api_client.rb +2 -2
- data/lib/fog/compute/requests/brightbox/create_cloud_ip.rb +2 -2
- data/lib/fog/compute/requests/brightbox/create_image.rb +2 -2
- data/lib/fog/compute/requests/brightbox/create_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/create_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/destroy_api_client.rb +2 -2
- data/lib/fog/compute/requests/brightbox/destroy_cloud_ip.rb +2 -2
- data/lib/fog/compute/requests/brightbox/destroy_image.rb +2 -2
- data/lib/fog/compute/requests/brightbox/destroy_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/destroy_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_account.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_api_client.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_cloud_ip.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_image.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_interface.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_server_type.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_user.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_zone.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_api_clients.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_cloud_ips.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_images.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_load_balancers.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_server_types.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_servers.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_users.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_zones.rb +2 -2
- data/lib/fog/compute/requests/brightbox/map_cloud_ip.rb +2 -2
- data/lib/fog/compute/requests/brightbox/remove_listeners_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/remove_nodes_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/reset_ftp_password_account.rb +2 -2
- data/lib/fog/compute/requests/brightbox/resize_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/shutdown_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/snapshot_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/start_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/stop_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/unmap_cloud_ip.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_account.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_api_client.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_image.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_user.rb +2 -2
- data/lib/fog/compute/requests/ecloud/add_backup_internet_service.rb +2 -2
- data/lib/fog/compute/requests/ecloud/add_internet_service.rb +2 -2
- data/lib/fog/compute/requests/ecloud/add_node.rb +2 -2
- data/lib/fog/compute/requests/ecloud/clone_vapp.rb +2 -2
- data/lib/fog/compute/requests/ecloud/configure_internet_service.rb +2 -2
- data/lib/fog/compute/requests/ecloud/configure_network.rb +2 -2
- data/lib/fog/compute/requests/ecloud/configure_network_ip.rb +2 -2
- data/lib/fog/compute/requests/ecloud/configure_node.rb +2 -2
- data/lib/fog/compute/requests/ecloud/configure_vapp.rb +2 -2
- data/lib/fog/compute/requests/ecloud/delete_internet_service.rb +2 -2
- data/lib/fog/compute/requests/ecloud/delete_node.rb +2 -2
- data/lib/fog/compute/requests/ecloud/delete_vapp.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_catalog.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_catalog_item.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_customization_options.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_firewall_acl.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_firewall_acls.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_internet_services.rb +5 -5
- data/lib/fog/compute/requests/ecloud/get_network.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_network_extensions.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_network_ip.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_network_ips.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_node.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_nodes.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_organization.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_public_ip.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_public_ips.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_task.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_task_list.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_vapp.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_vapp_template.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_vdc.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_versions.rb +2 -2
- data/lib/fog/compute/requests/ecloud/instantiate_vapp_template.rb +2 -2
- data/lib/fog/compute/requests/ecloud/login.rb +2 -2
- data/lib/fog/compute/requests/ecloud/power_off.rb +2 -2
- data/lib/fog/compute/requests/ecloud/power_on.rb +2 -2
- data/lib/fog/compute/requests/ecloud/power_reset.rb +2 -2
- data/lib/fog/compute/requests/ecloud/power_shutdown.rb +2 -2
- data/lib/fog/compute/requests/go_grid/common_lookup_list.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_image_get.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_image_list.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_ip_list.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_loadbalancer_list.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_server_add.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_server_delete.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_server_get.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_server_list.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_server_power.rb +2 -2
- data/lib/fog/compute/requests/go_grid/support_password_get.rb +2 -2
- data/lib/fog/compute/requests/go_grid/support_password_list.rb +2 -2
- data/lib/fog/compute/requests/linode/avail_datacenters.rb +4 -3
- data/lib/fog/compute/requests/linode/avail_distributions.rb +3 -2
- data/lib/fog/compute/requests/linode/avail_kernels.rb +3 -2
- data/lib/fog/compute/requests/linode/avail_linodeplans.rb +3 -2
- data/lib/fog/compute/requests/linode/avail_stackscripts.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_boot.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_config_create.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_config_list.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_create.rb +3 -2
- data/lib/fog/compute/requests/linode/linode_delete.rb +3 -2
- data/lib/fog/compute/requests/linode/linode_disk_create.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_disk_createfromdistribution.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_disk_createfromstackscript.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_disk_delete.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_disk_list.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_ip_addprivate.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_ip_list.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_list.rb +3 -2
- data/lib/fog/compute/requests/linode/linode_reboot.rb +3 -2
- data/lib/fog/compute/requests/linode/linode_shutdown.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_update.rb +4 -2
- data/lib/fog/compute/requests/linode/stackscript_list.rb +3 -2
- data/lib/fog/compute/requests/new_servers/add_server.rb +2 -2
- data/lib/fog/compute/requests/new_servers/cancel_server.rb +2 -2
- data/lib/fog/compute/requests/new_servers/get_server.rb +2 -2
- data/lib/fog/compute/requests/new_servers/list_images.rb +2 -2
- data/lib/fog/compute/requests/new_servers/list_plans.rb +2 -2
- data/lib/fog/compute/requests/new_servers/list_servers.rb +2 -2
- data/lib/fog/compute/requests/new_servers/reboot_server.rb +2 -2
- data/lib/fog/compute/requests/ninefold/associate_ip_address.rb +14 -0
- data/lib/fog/compute/requests/ninefold/change_service_for_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/create_ip_forwarding_rule.rb +14 -0
- data/lib/fog/compute/requests/ninefold/delete_ip_forwarding_rule.rb +14 -0
- data/lib/fog/compute/requests/ninefold/deploy_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/destroy_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/disable_static_nat.rb +14 -0
- data/lib/fog/compute/requests/ninefold/disassociate_ip_address.rb +14 -0
- data/lib/fog/compute/requests/ninefold/enable_static_nat.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_accounts.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_async_jobs.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_capabilities.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_disk_offerings.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_events.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_hypervisors.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_ip_forwarding_rules.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_network_offerings.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_networks.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_public_ip_addresses.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_resource_limits.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_service_offerings.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_templates.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_virtual_machines.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_zones.rb +14 -0
- data/lib/fog/compute/requests/ninefold/query_async_job_result.rb +14 -0
- data/lib/fog/compute/requests/ninefold/reboot_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/reset_password_for_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/start_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/stop_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/update_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/rackspace/confirm_resized_server.rb +2 -2
- data/lib/fog/compute/requests/rackspace/create_image.rb +2 -2
- data/lib/fog/compute/requests/rackspace/create_server.rb +3 -3
- data/lib/fog/compute/requests/rackspace/delete_image.rb +2 -2
- data/lib/fog/compute/requests/rackspace/delete_server.rb +3 -3
- data/lib/fog/compute/requests/rackspace/get_flavor_details.rb +3 -3
- data/lib/fog/compute/requests/rackspace/get_image_details.rb +2 -2
- data/lib/fog/compute/requests/rackspace/get_server_details.rb +3 -3
- data/lib/fog/compute/requests/rackspace/list_addresses.rb +3 -3
- data/lib/fog/compute/requests/rackspace/list_flavors.rb +2 -2
- data/lib/fog/compute/requests/rackspace/list_flavors_detail.rb +2 -2
- data/lib/fog/compute/requests/rackspace/list_images.rb +2 -2
- data/lib/fog/compute/requests/rackspace/list_images_detail.rb +2 -2
- data/lib/fog/compute/requests/rackspace/list_private_addresses.rb +3 -3
- data/lib/fog/compute/requests/rackspace/list_public_addresses.rb +3 -3
- data/lib/fog/compute/requests/rackspace/list_servers.rb +2 -2
- data/lib/fog/compute/requests/rackspace/list_servers_detail.rb +2 -2
- data/lib/fog/compute/requests/rackspace/reboot_server.rb +2 -2
- data/lib/fog/compute/requests/rackspace/resize_server.rb +2 -2
- data/lib/fog/compute/requests/rackspace/revert_resized_server.rb +2 -2
- data/lib/fog/compute/requests/rackspace/server_action.rb +2 -2
- data/lib/fog/compute/requests/rackspace/update_server.rb +3 -3
- data/lib/fog/compute/requests/slicehost/create_slice.rb +3 -3
- data/lib/fog/compute/requests/slicehost/delete_slice.rb +2 -2
- data/lib/fog/compute/requests/slicehost/get_backups.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_flavor.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_flavors.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_image.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_images.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_slice.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_slices.rb +3 -3
- data/lib/fog/compute/requests/slicehost/reboot_slice.rb +3 -3
- data/lib/fog/compute/requests/storm_on_demand/add_balancer_node.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/clone_server.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/create_server.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/delete_server.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/get_server.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/get_stats.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_balancers.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_configs.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_images.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_private_ips.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_servers.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_templates.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/reboot_server.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/remove_balancer_node.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/resize_server.rb +2 -2
- data/lib/fog/compute/requests/voxel/devices_list.rb +3 -3
- data/lib/fog/compute/requests/voxel/devices_power.rb +3 -3
- data/lib/fog/compute/requests/voxel/images_list.rb +4 -4
- data/lib/fog/compute/requests/voxel/voxcloud_create.rb +3 -3
- data/lib/fog/compute/requests/voxel/voxcloud_delete.rb +3 -3
- data/lib/fog/compute/requests/voxel/voxcloud_status.rb +5 -10
- data/lib/fog/compute/slicehost.rb +3 -18
- data/lib/fog/compute/storm_on_demand.rb +5 -6
- data/lib/fog/compute/virtual_box.rb +2 -4
- data/lib/fog/compute/voxel.rb +5 -5
- data/lib/fog/core/collection.rb +3 -0
- data/lib/fog/core/errors.rb +2 -0
- data/lib/fog/core/mock.rb +16 -9
- data/lib/fog/core/scp.rb +3 -3
- data/lib/fog/core/service.rb +3 -0
- data/lib/fog/dns.rb +32 -14
- data/lib/fog/dns/aws.rb +2 -17
- data/lib/fog/dns/bluebox.rb +4 -18
- data/lib/fog/dns/dnsimple.rb +2 -17
- data/lib/fog/dns/dnsmadeeasy.rb +134 -0
- data/lib/fog/dns/linode.rb +4 -19
- data/lib/fog/dns/models/aws/record.rb +10 -7
- data/lib/fog/dns/models/aws/records.rb +3 -3
- data/lib/fog/dns/models/aws/zone.rb +3 -3
- data/lib/fog/dns/models/aws/zones.rb +3 -3
- data/lib/fog/dns/models/bluebox/record.rb +9 -6
- data/lib/fog/dns/models/bluebox/records.rb +3 -3
- data/lib/fog/dns/models/bluebox/zone.rb +3 -3
- data/lib/fog/dns/models/bluebox/zones.rb +3 -3
- data/lib/fog/dns/models/dnsimple/record.rb +9 -6
- data/lib/fog/dns/models/dnsimple/records.rb +3 -3
- data/lib/fog/dns/models/dnsimple/zone.rb +7 -7
- data/lib/fog/dns/models/dnsimple/zones.rb +3 -3
- data/lib/fog/dns/models/dnsmadeeasy/record.rb +79 -0
- data/lib/fog/dns/models/dnsmadeeasy/records.rb +36 -0
- data/lib/fog/dns/models/dnsmadeeasy/zone.rb +42 -0
- data/lib/fog/dns/models/dnsmadeeasy/zones.rb +30 -0
- data/lib/fog/dns/models/linode/record.rb +7 -4
- data/lib/fog/dns/models/linode/records.rb +3 -3
- data/lib/fog/dns/models/linode/zone.rb +3 -3
- data/lib/fog/dns/models/linode/zones.rb +3 -3
- data/lib/fog/dns/models/slicehost/record.rb +8 -5
- data/lib/fog/dns/models/slicehost/records.rb +3 -3
- data/lib/fog/dns/models/slicehost/zone.rb +3 -3
- data/lib/fog/dns/models/slicehost/zones.rb +3 -3
- data/lib/fog/dns/models/zerigo/record.rb +8 -5
- data/lib/fog/dns/models/zerigo/records.rb +3 -3
- data/lib/fog/dns/models/zerigo/zone.rb +3 -3
- data/lib/fog/dns/models/zerigo/zones.rb +3 -3
- data/lib/fog/dns/parsers/aws/change_resource_record_sets.rb +2 -2
- data/lib/fog/dns/parsers/aws/create_hosted_zone.rb +2 -2
- data/lib/fog/dns/parsers/aws/delete_hosted_zone.rb +2 -2
- data/lib/fog/dns/parsers/aws/get_change.rb +2 -2
- data/lib/fog/dns/parsers/aws/get_hosted_zone.rb +2 -2
- data/lib/fog/dns/parsers/aws/list_hosted_zones.rb +2 -2
- data/lib/fog/dns/parsers/aws/list_resource_record_sets.rb +2 -2
- data/lib/fog/dns/parsers/bluebox/create_record.rb +2 -2
- data/lib/fog/dns/parsers/bluebox/create_zone.rb +2 -2
- data/lib/fog/dns/parsers/bluebox/get_record.rb +2 -2
- data/lib/fog/dns/parsers/bluebox/get_records.rb +3 -2
- data/lib/fog/dns/parsers/bluebox/get_zone.rb +5 -2
- data/lib/fog/dns/parsers/bluebox/get_zones.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/create_record.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/create_zone.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/get_record.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/get_records.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/get_zone.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/get_zones.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/count_hosts.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/count_zones.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/create_host.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/create_zone.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/find_hosts.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/get_host.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/get_zone.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/get_zone_stats.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/list_hosts.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/list_zones.rb +2 -2
- data/lib/fog/dns/requests/aws/change_resource_record_sets.rb +3 -3
- data/lib/fog/dns/requests/aws/create_hosted_zone.rb +3 -3
- data/lib/fog/dns/requests/aws/delete_hosted_zone.rb +3 -3
- data/lib/fog/dns/requests/aws/get_change.rb +3 -3
- data/lib/fog/dns/requests/aws/get_hosted_zone.rb +3 -3
- data/lib/fog/dns/requests/aws/list_hosted_zones.rb +3 -3
- data/lib/fog/dns/requests/aws/list_resource_record_sets.rb +3 -3
- data/lib/fog/dns/requests/bluebox/create_record.rb +3 -3
- data/lib/fog/dns/requests/bluebox/create_zone.rb +3 -3
- data/lib/fog/dns/requests/bluebox/delete_record.rb +2 -2
- data/lib/fog/dns/requests/bluebox/delete_zone.rb +2 -2
- data/lib/fog/dns/requests/bluebox/get_record.rb +3 -3
- data/lib/fog/dns/requests/bluebox/get_records.rb +3 -3
- data/lib/fog/dns/requests/bluebox/get_zone.rb +3 -3
- data/lib/fog/dns/requests/bluebox/get_zones.rb +3 -3
- data/lib/fog/dns/requests/bluebox/update_zone.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/create_domain.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/create_record.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/delete_domain.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/delete_record.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/get_domain.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/get_record.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/list_domains.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/list_records.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/update_record.rb +2 -2
- data/lib/fog/dns/requests/dnsmadeeasy/create_domain.rb +29 -0
- data/lib/fog/dns/requests/dnsmadeeasy/create_record.rb +62 -0
- data/lib/fog/dns/requests/dnsmadeeasy/create_secondary.rb +36 -0
- data/lib/fog/dns/requests/dnsmadeeasy/delete_all_domains.rb +23 -0
- data/lib/fog/dns/requests/dnsmadeeasy/delete_all_secondary.rb +22 -0
- data/lib/fog/dns/requests/dnsmadeeasy/delete_domain.rb +25 -0
- data/lib/fog/dns/requests/dnsmadeeasy/delete_record.rb +26 -0
- data/lib/fog/dns/requests/dnsmadeeasy/delete_secondary.rb +25 -0
- data/lib/fog/dns/requests/dnsmadeeasy/get_domain.rb +29 -0
- data/lib/fog/dns/requests/dnsmadeeasy/get_record.rb +38 -0
- data/lib/fog/dns/requests/dnsmadeeasy/get_secondary.rb +29 -0
- data/lib/fog/dns/requests/dnsmadeeasy/list_domains.rb +24 -0
- data/lib/fog/dns/requests/dnsmadeeasy/list_records.rb +42 -0
- data/lib/fog/dns/requests/dnsmadeeasy/list_secondary.rb +24 -0
- data/lib/fog/dns/requests/dnsmadeeasy/update_record.rb +56 -0
- data/lib/fog/dns/requests/dnsmadeeasy/update_secondary.rb +36 -0
- data/lib/fog/dns/requests/linode/domain_create.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_delete.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_list.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_resource_create.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_resource_delete.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_resource_list.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_resource_update.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_update.rb +2 -2
- data/lib/fog/dns/requests/slicehost/create_record.rb +3 -3
- data/lib/fog/dns/requests/slicehost/create_zone.rb +3 -3
- data/lib/fog/dns/requests/slicehost/delete_record.rb +2 -2
- data/lib/fog/dns/requests/slicehost/delete_zone.rb +2 -2
- data/lib/fog/dns/requests/slicehost/get_record.rb +3 -3
- data/lib/fog/dns/requests/slicehost/get_records.rb +3 -3
- data/lib/fog/dns/requests/slicehost/get_zone.rb +3 -3
- data/lib/fog/dns/requests/slicehost/get_zones.rb +3 -3
- data/lib/fog/dns/requests/zerigo/count_hosts.rb +3 -3
- data/lib/fog/dns/requests/zerigo/count_zones.rb +3 -3
- data/lib/fog/dns/requests/zerigo/create_host.rb +3 -3
- data/lib/fog/dns/requests/zerigo/create_zone.rb +3 -3
- data/lib/fog/dns/requests/zerigo/delete_host.rb +2 -2
- data/lib/fog/dns/requests/zerigo/delete_zone.rb +2 -2
- data/lib/fog/dns/requests/zerigo/find_hosts.rb +4 -4
- data/lib/fog/dns/requests/zerigo/get_host.rb +3 -3
- data/lib/fog/dns/requests/zerigo/get_zone.rb +3 -3
- data/lib/fog/dns/requests/zerigo/get_zone_stats.rb +3 -3
- data/lib/fog/dns/requests/zerigo/list_hosts.rb +3 -3
- data/lib/fog/dns/requests/zerigo/list_zones.rb +3 -3
- data/lib/fog/dns/requests/zerigo/update_host.rb +2 -2
- data/lib/fog/dns/requests/zerigo/update_zone.rb +2 -2
- data/lib/fog/dns/slicehost.rb +3 -18
- data/lib/fog/dns/zerigo.rb +3 -18
- data/lib/fog/providers.rb +2 -0
- data/lib/fog/providers/aws.rb +7 -2
- data/lib/fog/providers/dnsmadeeasy.rb +11 -0
- data/lib/fog/providers/ninefold.rb +11 -0
- data/lib/fog/providers/rackspace.rb +3 -1
- data/lib/fog/storage.rb +25 -10
- data/lib/fog/storage/aws.rb +38 -23
- data/lib/fog/storage/google.rb +2 -17
- data/lib/fog/storage/local.rb +2 -17
- data/lib/fog/storage/models/aws/directories.rb +3 -3
- data/lib/fog/storage/models/aws/directory.rb +3 -3
- data/lib/fog/storage/models/aws/file.rb +2 -2
- data/lib/fog/storage/models/aws/files.rb +12 -5
- data/lib/fog/storage/models/google/directories.rb +3 -3
- data/lib/fog/storage/models/google/directory.rb +3 -3
- data/lib/fog/storage/models/google/file.rb +2 -2
- data/lib/fog/storage/models/google/files.rb +3 -3
- data/lib/fog/storage/models/local/directories.rb +3 -3
- data/lib/fog/storage/models/local/directory.rb +3 -3
- data/lib/fog/storage/models/local/file.rb +2 -2
- data/lib/fog/storage/models/local/files.rb +3 -3
- data/lib/fog/storage/models/rackspace/directories.rb +9 -5
- data/lib/fog/storage/models/rackspace/directory.rb +5 -4
- data/lib/fog/storage/models/rackspace/file.rb +4 -6
- data/lib/fog/storage/models/rackspace/files.rb +9 -7
- data/lib/fog/storage/parsers/aws/access_control_list.rb +2 -2
- data/lib/fog/storage/parsers/aws/complete_multipart_upload.rb +2 -2
- data/lib/fog/storage/parsers/aws/copy_object.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket_location.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket_logging.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket_object_versions.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket_versioning.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket_website.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_request_payment.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_service.rb +2 -2
- data/lib/fog/storage/parsers/aws/initiate_multipart_upload.rb +2 -2
- data/lib/fog/storage/parsers/aws/list_multipart_uploads.rb +2 -2
- data/lib/fog/storage/parsers/aws/list_parts.rb +2 -2
- data/lib/fog/storage/parsers/google/access_control_list.rb +2 -2
- data/lib/fog/storage/parsers/google/copy_object.rb +2 -2
- data/lib/fog/storage/parsers/google/get_bucket.rb +2 -2
- data/lib/fog/storage/parsers/google/get_bucket_logging.rb +2 -2
- data/lib/fog/storage/parsers/google/get_bucket_object_versions.rb +2 -2
- data/lib/fog/storage/parsers/google/get_bucket_versioning.rb +2 -2
- data/lib/fog/storage/parsers/google/get_request_payment.rb +2 -2
- data/lib/fog/storage/parsers/google/get_service.rb +2 -2
- data/lib/fog/storage/rackspace.rb +4 -19
- data/lib/fog/storage/requests/aws/abort_multipart_upload.rb +2 -2
- data/lib/fog/storage/requests/aws/complete_multipart_upload.rb +3 -3
- data/lib/fog/storage/requests/aws/copy_object.rb +3 -3
- data/lib/fog/storage/requests/aws/delete_bucket.rb +2 -2
- data/lib/fog/storage/requests/aws/delete_bucket_policy.rb +32 -0
- data/lib/fog/storage/requests/aws/delete_bucket_website.rb +2 -2
- data/lib/fog/storage/requests/aws/delete_object.rb +6 -5
- data/lib/fog/storage/requests/aws/get_bucket.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_acl.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_location.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_logging.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_object_versions.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_policy.rb +37 -0
- data/lib/fog/storage/requests/aws/get_bucket_versioning.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_website.rb +3 -3
- data/lib/fog/storage/requests/aws/get_object.rb +34 -27
- data/lib/fog/storage/requests/aws/get_object_acl.rb +3 -3
- data/lib/fog/storage/requests/aws/get_object_torrent.rb +2 -2
- data/lib/fog/storage/requests/aws/get_object_url.rb +2 -2
- data/lib/fog/storage/requests/aws/get_request_payment.rb +3 -3
- data/lib/fog/storage/requests/aws/get_service.rb +3 -3
- data/lib/fog/storage/requests/aws/head_object.rb +2 -2
- data/lib/fog/storage/requests/aws/initiate_multipart_upload.rb +3 -3
- data/lib/fog/storage/requests/aws/list_multipart_uploads.rb +3 -3
- data/lib/fog/storage/requests/aws/list_parts.rb +3 -3
- data/lib/fog/storage/requests/aws/post_object_hidden_fields.rb +2 -2
- data/lib/fog/storage/requests/aws/put_bucket.rb +2 -2
- data/lib/fog/storage/requests/aws/put_bucket_acl.rb +2 -2
- data/lib/fog/storage/requests/aws/put_bucket_logging.rb +2 -2
- data/lib/fog/storage/requests/aws/put_bucket_policy.rb +30 -0
- data/lib/fog/storage/requests/aws/put_bucket_versioning.rb +2 -2
- data/lib/fog/storage/requests/aws/put_bucket_website.rb +2 -2
- data/lib/fog/storage/requests/aws/put_object.rb +2 -2
- data/lib/fog/storage/requests/aws/put_object_acl.rb +2 -2
- data/lib/fog/storage/requests/aws/put_object_url.rb +2 -2
- data/lib/fog/storage/requests/aws/put_request_payment.rb +2 -2
- data/lib/fog/storage/requests/aws/sync_clock.rb +2 -2
- data/lib/fog/storage/requests/aws/upload_part.rb +2 -2
- data/lib/fog/storage/requests/google/copy_object.rb +3 -3
- data/lib/fog/storage/requests/google/delete_bucket.rb +2 -2
- data/lib/fog/storage/requests/google/delete_object.rb +2 -2
- data/lib/fog/storage/requests/google/get_bucket.rb +3 -3
- data/lib/fog/storage/requests/google/get_bucket_acl.rb +1 -1
- data/lib/fog/storage/requests/google/get_object.rb +2 -2
- data/lib/fog/storage/requests/google/get_object_acl.rb +3 -3
- data/lib/fog/storage/requests/google/get_object_torrent.rb +2 -2
- data/lib/fog/storage/requests/google/get_object_url.rb +2 -2
- data/lib/fog/storage/requests/google/get_service.rb +3 -3
- data/lib/fog/storage/requests/google/head_object.rb +2 -2
- data/lib/fog/storage/requests/google/put_bucket.rb +2 -2
- data/lib/fog/storage/requests/google/put_bucket_acl.rb +2 -2
- data/lib/fog/storage/requests/google/put_object.rb +2 -2
- data/lib/fog/storage/requests/google/put_object_url.rb +2 -2
- data/lib/fog/storage/requests/rackspace/delete_container.rb +3 -4
- data/lib/fog/storage/requests/rackspace/delete_object.rb +3 -4
- data/lib/fog/storage/requests/rackspace/get_container.rb +3 -4
- data/lib/fog/storage/requests/rackspace/get_containers.rb +3 -4
- data/lib/fog/storage/requests/rackspace/get_object.rb +3 -4
- data/lib/fog/storage/requests/rackspace/head_container.rb +3 -4
- data/lib/fog/storage/requests/rackspace/head_containers.rb +3 -4
- data/lib/fog/storage/requests/rackspace/head_object.rb +3 -4
- data/lib/fog/storage/requests/rackspace/put_container.rb +3 -4
- data/lib/fog/storage/requests/rackspace/put_object.rb +3 -4
- data/spec/ecloud/bin_spec.rb +1 -1
- data/spec/ecloud/models/backup_internet_service_spec.rb +4 -4
- data/spec/ecloud/models/backup_internet_services_spec.rb +3 -3
- data/spec/ecloud/models/internet_service_spec.rb +4 -4
- data/spec/ecloud/models/internet_services_spec.rb +3 -3
- data/spec/ecloud/models/ip_spec.rb +4 -4
- data/spec/ecloud/models/ips_spec.rb +3 -3
- data/spec/ecloud/models/network_spec.rb +4 -4
- data/spec/ecloud/models/networks_spec.rb +3 -3
- data/spec/ecloud/models/node_spec.rb +4 -4
- data/spec/ecloud/models/nodes_spec.rb +3 -3
- data/spec/ecloud/models/public_ip_spec.rb +4 -4
- data/spec/ecloud/models/public_ips_spec.rb +3 -3
- data/spec/ecloud/models/server_spec.rb +3 -3
- data/spec/ecloud/models/vdc_spec.rb +4 -4
- data/spec/ecloud/models/vdcs_spec.rb +3 -3
- data/spec/ecloud/spec_helper.rb +10 -10
- data/spec/ecloud/vcloud_spec.rb +1 -1
- data/tests/aws/models/rds/helper.rb +5 -0
- data/tests/aws/models/rds/parameter_group_tests.rb +24 -0
- data/tests/aws/models/rds/parameter_groups_tests.rb +8 -0
- data/tests/aws/models/rds/security_group_tests.rb +50 -0
- data/tests/aws/models/rds/security_groups_tests.rb +6 -0
- data/tests/aws/models/rds/server_tests.rb +104 -0
- data/tests/aws/models/rds/servers_tests.rb +8 -0
- data/tests/aws/models/rds/snapshot_tests.rb +15 -0
- data/tests/aws/models/rds/snapshots_tests.rb +15 -0
- data/tests/aws/requests/cloud_formation/stack_tests.rb +1 -1
- data/tests/aws/requests/elb/helper.rb +8 -5
- data/tests/aws/requests/elb/model_tests.rb +2 -2
- data/tests/aws/requests/simpledb/attributes_tests.rb +16 -0
- data/tests/compute/helper.rb +9 -6
- data/tests/compute/models/aws/address_tests.rb +3 -3
- data/tests/compute/models/aws/addresses_tests.rb +2 -2
- data/tests/compute/models/aws/key_pair_tests.rb +5 -5
- data/tests/compute/models/aws/key_pairs_tests.rb +2 -2
- data/tests/compute/models/aws/security_group_tests.rb +3 -3
- data/tests/compute/models/aws/security_groups.rb +2 -2
- data/tests/compute/models/aws/server_tests.rb +2 -2
- data/tests/compute/models/aws/snapshot_tests.rb +3 -3
- data/tests/compute/models/aws/snapshots_tests.rb +4 -4
- data/tests/compute/models/aws/volume_tests.rb +3 -3
- data/tests/compute/models/aws/volumes_tests.rb +2 -2
- data/tests/compute/models/flavors_tests.rb +3 -3
- data/tests/compute/models/server_tests.rb +2 -2
- data/tests/compute/models/servers_tests.rb +2 -2
- data/tests/compute/parsers/aws/monitor_unmonitor_instances_tests.rb +2 -2
- data/tests/compute/requests/aws/address_tests.rb +22 -22
- data/tests/compute/requests/aws/availability_zone_tests.rb +3 -3
- data/tests/compute/requests/aws/image_tests.rb +3 -3
- data/tests/compute/requests/aws/instance_tests.rb +22 -22
- data/tests/compute/requests/aws/key_pair_tests.rb +11 -11
- data/tests/compute/requests/aws/region_tests.rb +3 -3
- data/tests/compute/requests/aws/security_group_tests.rb +23 -23
- data/tests/compute/requests/aws/snapshot_tests.rb +11 -11
- data/tests/compute/requests/aws/tag_tests.rb +7 -7
- data/tests/compute/requests/aws/volume_tests.rb +37 -21
- data/tests/compute/requests/bluebox/block_tests.rb +15 -15
- data/tests/compute/requests/bluebox/helper.rb +1 -1
- data/tests/compute/requests/bluebox/product_tests.rb +5 -5
- data/tests/compute/requests/bluebox/template_tests.rb +6 -6
- data/tests/compute/requests/brightbox/account_tests.rb +7 -7
- data/tests/compute/requests/brightbox/api_client_tests.rb +8 -8
- data/tests/compute/requests/brightbox/cloud_ip_tests.rb +11 -11
- data/tests/compute/requests/brightbox/helper.rb +17 -8
- data/tests/compute/requests/brightbox/image_tests.rb +9 -9
- data/tests/compute/requests/brightbox/interface_tests.rb +1 -1
- data/tests/compute/requests/brightbox/load_balancer_tests.rb +10 -10
- data/tests/compute/requests/brightbox/server_tests.rb +13 -13
- data/tests/compute/requests/brightbox/server_type_tests.rb +5 -5
- data/tests/compute/requests/brightbox/user_tests.rb +6 -6
- data/tests/compute/requests/brightbox/zone_tests.rb +5 -5
- data/tests/compute/requests/linode/datacenter_tests.rb +2 -2
- data/tests/compute/requests/linode/distribution_tests.rb +3 -3
- data/tests/compute/requests/linode/kernel_tests.rb +3 -3
- data/tests/compute/requests/linode/linode_tests.rb +18 -18
- data/tests/compute/requests/linode/linodeplans_tests.rb +3 -3
- data/tests/compute/requests/linode/stackscripts_tests.rb +4 -3
- data/tests/compute/requests/ninefold/address_tests.rb +42 -0
- data/tests/compute/requests/ninefold/async_job_tests.rb +33 -0
- data/tests/compute/requests/ninefold/helper.rb +320 -0
- data/tests/compute/requests/ninefold/list_tests.rb +56 -0
- data/tests/compute/requests/ninefold/nat_tests.rb +92 -0
- data/tests/compute/requests/ninefold/network_tests.rb +21 -0
- data/tests/compute/requests/ninefold/template_tests.rb +21 -0
- data/tests/compute/requests/ninefold/virtual_machine_tests.rb +69 -0
- data/tests/compute/requests/rackspace/address_tests.rb +11 -11
- data/tests/compute/requests/rackspace/flavor_tests.rb +6 -6
- data/tests/compute/requests/rackspace/image_tests.rb +12 -12
- data/tests/compute/requests/rackspace/resize_tests.rb +7 -7
- data/tests/compute/requests/rackspace/server_tests.rb +22 -22
- data/tests/compute/requests/slicehost/backup_tests.rb +2 -2
- data/tests/compute/requests/slicehost/flavor_tests.rb +4 -4
- data/tests/compute/requests/slicehost/image_tests.rb +4 -4
- data/tests/compute/requests/slicehost/slice_tests.rb +12 -12
- data/tests/compute/requests/storm_on_demand/server_tests.rb +7 -7
- data/tests/compute/requests/voxel/image_tests.rb +5 -5
- data/tests/compute/requests/voxel/server_tests.rb +12 -12
- data/tests/dns/helper.rb +11 -8
- data/tests/dns/models/record_tests.rb +8 -5
- data/tests/dns/models/records_tests.rb +8 -5
- data/tests/dns/models/zone_tests.rb +5 -2
- data/tests/dns/models/zones_tests.rb +5 -2
- data/tests/dns/requests/aws/dns_tests.rb +15 -15
- data/tests/dns/requests/bluebox/dns_tests.rb +16 -16
- data/tests/dns/requests/dnsimple/dns_tests.rb +10 -10
- data/tests/dns/requests/dnsmadeeasy/dns_tests.rb +150 -0
- data/tests/dns/requests/linode/dns_tests.rb +16 -16
- data/tests/dns/requests/slicehost/dns_tests.rb +16 -16
- data/tests/dns/requests/zerigo/dns_tests.rb +31 -32
- data/tests/helper.rb +1 -1
- data/tests/helpers/collection_helper.rb +1 -1
- data/tests/helpers/mock_helper.rb +4 -0
- data/tests/helpers/model_helper.rb +12 -0
- data/tests/storage/helper.rb +4 -4
- data/tests/storage/models/directories_tests.rb +2 -2
- data/tests/storage/models/directory_test.rb +2 -2
- data/tests/storage/models/file_tests.rb +2 -2
- data/tests/storage/models/files_tests.rb +2 -2
- data/tests/storage/requests/aws/bucket_tests.rb +18 -18
- data/tests/storage/requests/aws/multipart_upload_tests.rb +11 -11
- data/tests/storage/requests/aws/object_tests.rb +16 -16
- data/tests/storage/requests/google/bucket_tests.rb +10 -10
- data/tests/storage/requests/google/object_tests.rb +17 -17
- data/tests/storage/requests/rackspace/container_tests.rb +13 -13
- data/tests/storage/requests/rackspace/object_tests.rb +19 -19
- metadata +184 -64
- data/tests/aws/requests/rds/model_tests.rb +0 -98
@@ -0,0 +1,15 @@
|
|
1
|
+
Shindo.tests("AWS::RDS | snapshot", ['aws', 'rds']) do
|
2
|
+
|
3
|
+
pending if Fog.mocking?
|
4
|
+
|
5
|
+
@server = AWS[:rds].servers.create(rds_default_server_params)
|
6
|
+
@server.wait_for { ready? }
|
7
|
+
|
8
|
+
params = {:id => uniq_id, :instance_id => @server.id}
|
9
|
+
model_tests(AWS[:rds].snapshots, params, false) do
|
10
|
+
@instance.wait_for { ready? }
|
11
|
+
end
|
12
|
+
|
13
|
+
@server.destroy
|
14
|
+
end
|
15
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Shindo.tests("AWS::RDS | snapshots", ['aws', 'rds']) do
|
2
|
+
|
3
|
+
pending if Fog.mocking?
|
4
|
+
|
5
|
+
@server = AWS[:rds].servers.create(rds_default_server_params)
|
6
|
+
@server.wait_for { ready? }
|
7
|
+
|
8
|
+
params = {:id => uniq_id, :instance_id => @server.id}
|
9
|
+
collection_tests(AWS[:rds].snapshots, params, false) do
|
10
|
+
@instance.wait_for { ready? }
|
11
|
+
end
|
12
|
+
|
13
|
+
@server.destroy
|
14
|
+
end
|
15
|
+
|
@@ -85,7 +85,7 @@ Shindo.tests('AWS::CloudFormation | stack requests', ['aws', 'cloudformation'])
|
|
85
85
|
|
86
86
|
unless Fog.mocking?
|
87
87
|
@stack_name = 'fogstack' << Time.now.to_i.to_s
|
88
|
-
@keypair =
|
88
|
+
@keypair = Compute[:aws].key_pairs.create(:name => 'cloudformation')
|
89
89
|
@template_url = 'https://s3.amazonaws.com/cloudformation-templates-us-east-1/EC2InstanceSample-1.0.0.template'
|
90
90
|
end
|
91
91
|
|
@@ -7,14 +7,17 @@ class AWS
|
|
7
7
|
}
|
8
8
|
|
9
9
|
LOAD_BALANCER = {
|
10
|
+
"AvailabilityZones" => Array,
|
11
|
+
"CanonicalHostedZoneName" => String,
|
12
|
+
"CanonicalHostedZoneNameID" => String,
|
10
13
|
"CreatedTime" => Time,
|
11
|
-
"
|
14
|
+
"DNSName" => String,
|
12
15
|
"HealthCheck" => {"HealthyThreshold" => Integer, "Timeout" => Integer, "UnhealthyThreshold" => Integer, "Interval" => Integer, "Target" => String},
|
16
|
+
"Instances" => Array,
|
17
|
+
"ListenerDescriptions" => Array,
|
18
|
+
"LoadBalancerName" => String,
|
13
19
|
"Policies" => {"LBCookieStickinessPolicies" => Array, "AppCookieStickinessPolicies" => Array},
|
14
|
-
"
|
15
|
-
"DNSName" => String,
|
16
|
-
"LoadBalancerName"=> String,
|
17
|
-
"Instances"=> Array
|
20
|
+
"SourceSecurityGroup" => {"GroupName" => String, "OwnerAlias" => String},
|
18
21
|
}
|
19
22
|
|
20
23
|
CREATE_LOAD_BALANCER = BASIC.merge({
|
@@ -16,7 +16,7 @@ Shindo.tests('AWS::ELB | models', ['aws', 'elb']) do
|
|
16
16
|
tests('create') do
|
17
17
|
elb = AWS[:elb].load_balancers.create(:id => elb_id)
|
18
18
|
tests("dns names is set").returns(true) { elb.dns_name.is_a?(String) }
|
19
|
-
tests("created_at is set").returns(true) {
|
19
|
+
tests("created_at is set").returns(true) { Time === elb.created_at }
|
20
20
|
tests("policies is empty").returns([]) { elb.policies }
|
21
21
|
end
|
22
22
|
|
@@ -44,7 +44,7 @@ Shindo.tests('AWS::ELB | models', ['aws', 'elb']) do
|
|
44
44
|
raises(Fog::AWS::ELB::InvalidInstance) { elb.deregister_instances('i-00000000') }
|
45
45
|
end
|
46
46
|
|
47
|
-
server =
|
47
|
+
server = Compute[:aws].servers.create
|
48
48
|
tests('register instance') do
|
49
49
|
begin
|
50
50
|
elb.register_instances(server.id)
|
@@ -36,14 +36,30 @@ Shindo.tests('AWS::SimpleDB | attributes requests', ['aws']) do
|
|
36
36
|
AWS[:sdb].put_attributes(@domain_name, 'conditional', { 'version' => '2' }, :expect => { 'version' => '1' }, :replace => ['version']).body
|
37
37
|
end
|
38
38
|
|
39
|
+
# Verify that we can delete individual attributes.
|
40
|
+
tests("#delete_attributes('#{@domain_name}', 'a', {'d' => []})").succeeds do
|
41
|
+
AWS[:sdb].delete_attributes(@domain_name, 'a', {'d' => []}).body
|
42
|
+
end
|
43
|
+
|
44
|
+
# Verify that individually deleted attributes are actually removed.
|
45
|
+
tests("#get_attributes('#{@domain_name}', 'a', ['d']).body['Attributes']").returns({'d' => nil}) do
|
46
|
+
AWS[:sdb].get_attributes(@domain_name, 'a', ['d']).body['Attributes']
|
47
|
+
end
|
48
|
+
|
39
49
|
tests("#delete_attributes('#{@domain_name}', 'a').body").formats(AWS::SimpleDB::Formats::BASIC) do
|
40
50
|
AWS[:sdb].delete_attributes(@domain_name, 'a').body
|
41
51
|
end
|
42
52
|
|
53
|
+
# Verify that we can delete entire domain, item combinations.
|
43
54
|
tests("#delete_attributes('#{@domain_name}', 'a').body").succeeds do
|
44
55
|
AWS[:sdb].delete_attributes(@domain_name, 'a').body
|
45
56
|
end
|
46
57
|
|
58
|
+
# Verify that deleting a domain, item combination removes all related attributes.
|
59
|
+
tests("#get_attributes('#{@domain_name}', 'a').body['Attributes']").returns({}) do
|
60
|
+
AWS[:sdb].get_attributes(@domain_name, 'a').body['Attributes']
|
61
|
+
end
|
62
|
+
|
47
63
|
end
|
48
64
|
|
49
65
|
tests('failure') do
|
data/tests/compute/helper.rb
CHANGED
@@ -1,37 +1,40 @@
|
|
1
1
|
def compute_providers
|
2
2
|
{
|
3
|
-
|
3
|
+
:aws => {
|
4
4
|
:server_attributes => {},
|
5
5
|
:mocked => true
|
6
6
|
},
|
7
|
-
|
7
|
+
:bluebox => {
|
8
8
|
:server_attributes => {
|
9
9
|
:image_id => '03807e08-a13d-44e4-b011-ebec7ef2c928', # Ubuntu 10.04 64bit
|
10
10
|
:password => 'chunkybacon'
|
11
11
|
},
|
12
12
|
:mocked => false
|
13
13
|
},
|
14
|
-
|
14
|
+
:brightbox => {
|
15
15
|
:server_attributes => {
|
16
16
|
:image_id => 'img-2ab98' # Ubuntu Lucid 10.04 server (i686)
|
17
17
|
},
|
18
18
|
:mocked => false
|
19
19
|
},
|
20
|
-
|
20
|
+
:ninefold => {
|
21
|
+
:mocked => false
|
22
|
+
},
|
23
|
+
:rackspace => {
|
21
24
|
:server_attributes => {
|
22
25
|
:image_id => 49, # image 49 = Ubuntu 10.04 LTS (lucid)
|
23
26
|
:name => "fog_#{Time.now.to_i}"
|
24
27
|
},
|
25
28
|
:mocked => true
|
26
29
|
},
|
27
|
-
|
30
|
+
:slicehost => {
|
28
31
|
:server_attributes => {
|
29
32
|
:image_id => 49, # image 49 = Ubuntu 10.04 LTS (lucid)
|
30
33
|
:name => "fog_#{Time.now.to_i}"
|
31
34
|
},
|
32
35
|
:mocked => false
|
33
36
|
},
|
34
|
-
|
37
|
+
:voxel => {
|
35
38
|
:server_attributes => {
|
36
39
|
:name => "fog.#{Time.now.to_i}",
|
37
40
|
:disk_size => 10,
|
@@ -1,8 +1,8 @@
|
|
1
|
-
Shindo.tests("
|
1
|
+
Shindo.tests("Fog::Compute[:aws] | address", ['aws']) do
|
2
2
|
|
3
|
-
model_tests(
|
3
|
+
model_tests(Fog::Compute[:aws].addresses, {}, true) do
|
4
4
|
|
5
|
-
@server =
|
5
|
+
@server = Fog::Compute[:aws].servers.create
|
6
6
|
@server.wait_for { ready? }
|
7
7
|
|
8
8
|
tests('#server=').succeeds do
|
@@ -1,13 +1,13 @@
|
|
1
|
-
Shindo.tests("
|
1
|
+
Shindo.tests("Fog::Compute[:aws] | key_pair", ['aws']) do
|
2
2
|
|
3
|
-
model_tests(
|
3
|
+
model_tests(Fog::Compute[:aws].key_pairs, {:name => 'fogkeyname'}, true)
|
4
4
|
|
5
5
|
after do
|
6
6
|
@keypair.destroy
|
7
7
|
end
|
8
8
|
|
9
9
|
tests("new keypair") do
|
10
|
-
@keypair =
|
10
|
+
@keypair = Fog::Compute[:aws].key_pairs.create(:name => 'testkey')
|
11
11
|
|
12
12
|
test ("writable?") do
|
13
13
|
@keypair.writable? == true
|
@@ -15,8 +15,8 @@ Shindo.tests("AWS::Compute | key_pair", ['aws']) do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
tests("existing keypair") do
|
18
|
-
|
19
|
-
@keypair =
|
18
|
+
Fog::Compute[:aws].key_pairs.create(:name => 'testkey')
|
19
|
+
@keypair = Fog::Compute[:aws].key_pairs.get('testkey')
|
20
20
|
|
21
21
|
test("writable?") do
|
22
22
|
@keypair.writable? == false
|
@@ -1,5 +1,5 @@
|
|
1
|
-
Shindo.tests("
|
1
|
+
Shindo.tests("Fog::Compute[:aws] | key_pairs", ['aws']) do
|
2
2
|
|
3
|
-
collection_tests(
|
3
|
+
collection_tests(Fog::Compute[:aws].key_pairs, {:name => 'fogkeyname'}, true)
|
4
4
|
|
5
5
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
Shindo.tests("
|
1
|
+
Shindo.tests("Fog::Compute[:aws] | security_group", ['aws']) do
|
2
2
|
|
3
|
-
model_tests(
|
3
|
+
model_tests(Fog::Compute[:aws].security_groups, {:description => 'foggroupdescription', :name => 'foggroupname'}, true)
|
4
4
|
|
5
5
|
tests("a group with trailing whitespace") do
|
6
|
-
@group =
|
6
|
+
@group = Fog::Compute[:aws].security_groups.create(:name => "foggroup with spaces ", :description => " fog group desc ")
|
7
7
|
test("name is correct") do
|
8
8
|
@group.name == "foggroup with spaces "
|
9
9
|
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
Shindo.tests("
|
1
|
+
Shindo.tests("Fog::Compute[:aws] | security_groups", ['aws']) do
|
2
2
|
|
3
|
-
collection_tests(
|
3
|
+
collection_tests(Fog::Compute[:aws].security_groups, {:description => 'foggroupdescription', :name => 'foggroupname'}, true)
|
4
4
|
|
5
5
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Shindo.tests("
|
1
|
+
Shindo.tests("Fog::Compute[:aws] | monitor", ['aws']) do
|
2
2
|
|
3
|
-
@instance =
|
3
|
+
@instance = Fog::Compute[:aws].servers.new
|
4
4
|
|
5
5
|
[:addresses, :flavor, :key_pair, :key_pair=, :volumes].each do |association|
|
6
6
|
responds_to(association)
|
@@ -1,9 +1,9 @@
|
|
1
|
-
Shindo.tests("
|
1
|
+
Shindo.tests("Fog::Compute[:aws] | snapshot", ['aws']) do
|
2
2
|
|
3
|
-
@volume =
|
3
|
+
@volume = Fog::Compute[:aws].volumes.create(:availability_zone => 'us-east-1a', :size => 1)
|
4
4
|
@volume.wait_for { ready? }
|
5
5
|
|
6
|
-
model_tests(
|
6
|
+
model_tests(Fog::Compute[:aws].snapshots, {:volume_id => @volume.identity}, true)
|
7
7
|
|
8
8
|
@volume.destroy
|
9
9
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
Shindo.tests("
|
1
|
+
Shindo.tests("Fog::Compute[:aws] | snapshots", ['aws']) do
|
2
2
|
|
3
|
-
@volume =
|
3
|
+
@volume = Fog::Compute[:aws].volumes.create(:availability_zone => 'us-east-1a', :size => 1)
|
4
4
|
@volume.wait_for { ready? }
|
5
5
|
|
6
|
-
collection_tests(
|
7
|
-
|
6
|
+
collection_tests(Fog::Compute[:aws].snapshots, {:volume_id => @volume.identity}, true)
|
7
|
+
|
8
8
|
@volume.destroy
|
9
9
|
|
10
10
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
Shindo.tests("
|
1
|
+
Shindo.tests("Fog::Compute[:aws] | volume", ['aws']) do
|
2
2
|
|
3
|
-
@server =
|
3
|
+
@server = Fog::Compute[:aws].servers.create
|
4
4
|
@server.wait_for { ready? }
|
5
5
|
|
6
|
-
model_tests(
|
6
|
+
model_tests(Fog::Compute[:aws].volumes, {:availability_zone => @server.availability_zone, :size => 1, :device => '/dev/sdz1'}, true) do
|
7
7
|
|
8
8
|
@instance.wait_for { ready? }
|
9
9
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
Shindo.tests("
|
1
|
+
Shindo.tests("Fog::Compute[:aws] | volumes", ['aws']) do
|
2
2
|
|
3
|
-
collection_tests(
|
3
|
+
collection_tests(Fog::Compute[:aws].volumes, {:availability_zone => 'us-east-1a', :size => 1, :device => '/dev/sdz1'}, true)
|
4
4
|
|
5
5
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
for provider, config in compute_providers
|
2
2
|
|
3
|
-
next if [
|
3
|
+
next if [:voxel].include?(provider)
|
4
4
|
|
5
|
-
Shindo.tests("
|
5
|
+
Shindo.tests("Fog::Compute[:#{provider}] | flavors", [provider]) do
|
6
6
|
|
7
|
-
flavors_tests(provider
|
7
|
+
flavors_tests(Fog::Compute[provider], (config[:flavors_attributes] || {}), config[:mocked])
|
8
8
|
|
9
9
|
end
|
10
10
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
for provider, config in compute_providers
|
2
2
|
|
3
|
-
Shindo.tests("
|
3
|
+
Shindo.tests("Fog::Compute[:#{provider}] | server", [provider]) do
|
4
4
|
|
5
|
-
server_tests(provider
|
5
|
+
server_tests(Fog::Compute[provider], (config[:server_attributes] || {}), config[:mocked]) do
|
6
6
|
|
7
7
|
if Fog.mocking? && !config[:mocked]
|
8
8
|
pending
|
@@ -1,8 +1,8 @@
|
|
1
1
|
for provider, config in compute_providers
|
2
2
|
|
3
|
-
Shindo.tests("
|
3
|
+
Shindo.tests("Fog::Compute[:#{provider}] | servers", [provider]) do
|
4
4
|
|
5
|
-
servers_tests(provider
|
5
|
+
servers_tests(Fog::Compute[provider], (config[:server_attributes] || {}), config[:mocked])
|
6
6
|
|
7
7
|
end
|
8
8
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'fog/compute/parsers/aws/monitor_unmonitor_instances'
|
2
2
|
|
3
|
-
Shindo.tests('AWS::
|
3
|
+
Shindo.tests('Compute::AWS::MonitorUnmonitorInstances | monitor/unmonitor parser') do
|
4
4
|
|
5
5
|
tests('success') do
|
6
6
|
|
@@ -26,7 +26,7 @@ Shindo.tests('AWS::Compute::MonitorUnmonitorInstances | monitor/unmonitor parser
|
|
26
26
|
</UnmonitorInstancesResponse>
|
27
27
|
AWS
|
28
28
|
|
29
|
-
parser = Fog::Parsers::AWS::
|
29
|
+
parser = Fog::Parsers::Compute::AWS::MonitorUnmonitorInstances.new
|
30
30
|
body = Nokogiri::XML::SAX::PushParser.new(parser)
|
31
31
|
body << aws_result
|
32
32
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Shindo.tests('
|
1
|
+
Shindo.tests('Fog::Compute[:aws] | address requests', ['aws']) do
|
2
2
|
|
3
3
|
@addresses_format = {
|
4
4
|
'addressesSet' => [{
|
@@ -8,7 +8,7 @@ Shindo.tests('AWS::Compute | address requests', ['aws']) do
|
|
8
8
|
'requestId' => String
|
9
9
|
}
|
10
10
|
|
11
|
-
@server =
|
11
|
+
@server = Fog::Compute[:aws].servers.create
|
12
12
|
@server.wait_for { ready? }
|
13
13
|
@ip_address = @server.ip_address
|
14
14
|
|
@@ -17,54 +17,54 @@ Shindo.tests('AWS::Compute | address requests', ['aws']) do
|
|
17
17
|
@public_ip = nil
|
18
18
|
|
19
19
|
tests('#allocate_address').formats({'publicIp' => String, 'requestId' => String}) do
|
20
|
-
data =
|
20
|
+
data = Fog::Compute[:aws].allocate_address.body
|
21
21
|
@public_ip = data['publicIp']
|
22
22
|
data
|
23
23
|
end
|
24
24
|
|
25
25
|
tests('#describe_addresses').formats(@addresses_format) do
|
26
|
-
|
26
|
+
Fog::Compute[:aws].describe_addresses.body
|
27
27
|
end
|
28
28
|
|
29
|
-
tests("#describe_addresses('public-ip' => #{@
|
30
|
-
|
29
|
+
tests("#describe_addresses('public-ip' => #{@public_ip}')").formats(@addresses_format) do
|
30
|
+
Fog::Compute[:aws].describe_addresses('public-ip' => @public_ip).body
|
31
31
|
end
|
32
32
|
|
33
|
-
tests("#associate_addresses('#{@server.identity}', '#{@
|
34
|
-
|
33
|
+
tests("#associate_addresses('#{@server.identity}', '#{@public_ip}')").formats(AWS::Compute::Formats::BASIC) do
|
34
|
+
Fog::Compute[:aws].associate_address(@server.identity, @public_ip).body
|
35
35
|
end
|
36
36
|
|
37
37
|
tests("#dissassociate_address('#{@public_ip}')").formats(AWS::Compute::Formats::BASIC) do
|
38
|
-
|
38
|
+
Fog::Compute[:aws].disassociate_address(@public_ip).body
|
39
39
|
end
|
40
40
|
|
41
41
|
tests("#release_address('#{@public_ip}')").formats(AWS::Compute::Formats::BASIC) do
|
42
|
-
|
42
|
+
Fog::Compute[:aws].release_address(@public_ip).body
|
43
43
|
end
|
44
44
|
|
45
45
|
end
|
46
|
-
tests
|
46
|
+
tests('failure') do
|
47
47
|
|
48
|
-
@address =
|
48
|
+
@address = Fog::Compute[:aws].addresses.create
|
49
49
|
|
50
|
-
tests("#associate_addresses('i-00000000', '#{@address.identity}')").raises(Fog::AWS::
|
51
|
-
|
50
|
+
tests("#associate_addresses('i-00000000', '#{@address.identity}')").raises(Fog::Compute::AWS::NotFound) do
|
51
|
+
Fog::Compute[:aws].associate_address('i-00000000', @address.identity)
|
52
52
|
end
|
53
53
|
|
54
|
-
tests("#associate_addresses('#{@server.identity}', '127.0.0.1')").raises(Fog::AWS::
|
55
|
-
|
54
|
+
tests("#associate_addresses('#{@server.identity}', '127.0.0.1')").raises(Fog::Compute::AWS::Error) do
|
55
|
+
Fog::Compute[:aws].associate_address(@server.identity, '127.0.0.1')
|
56
56
|
end
|
57
57
|
|
58
|
-
tests("#associate_addresses('i-00000000', '127.0.0.1')").raises(Fog::AWS::
|
59
|
-
|
58
|
+
tests("#associate_addresses('i-00000000', '127.0.0.1')").raises(Fog::Compute::AWS::NotFound) do
|
59
|
+
Fog::Compute[:aws].associate_address('i-00000000', '127.0.0.1')
|
60
60
|
end
|
61
61
|
|
62
|
-
tests("#disassociate_addresses('127.0.0.1') raises BadRequest error").raises(Fog::AWS::
|
63
|
-
|
62
|
+
tests("#disassociate_addresses('127.0.0.1') raises BadRequest error").raises(Fog::Compute::AWS::Error) do
|
63
|
+
Fog::Compute[:aws].disassociate_address('127.0.0.1')
|
64
64
|
end
|
65
65
|
|
66
|
-
tests("#release_address('127.0.0.1')").raises(Fog::AWS::
|
67
|
-
|
66
|
+
tests("#release_address('127.0.0.1')").raises(Fog::Compute::AWS::Error) do
|
67
|
+
Fog::Compute[:aws].release_address('127.0.0.1')
|
68
68
|
end
|
69
69
|
|
70
70
|
@address.destroy
|