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
@@ -1,4 +1,4 @@
|
|
1
|
-
Shindo.tests('
|
1
|
+
Shindo.tests('Fog::DNS[:bluebox] | DNS requests', ['bluebox', 'dns']) do
|
2
2
|
|
3
3
|
@domain = ''
|
4
4
|
@new_zones = []
|
@@ -22,7 +22,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
22
22
|
pending if Fog.mocking?
|
23
23
|
|
24
24
|
@org_zone_count= 0
|
25
|
-
response =
|
25
|
+
response = Fog::DNS[:bluebox].get_zones()
|
26
26
|
if response.status == 200
|
27
27
|
zones = response.body['zones']
|
28
28
|
@org_zone_count = zones.count
|
@@ -35,7 +35,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
35
35
|
pending if Fog.mocking?
|
36
36
|
|
37
37
|
domain = generate_unique_domain
|
38
|
-
response =
|
38
|
+
response = Fog::DNS[:bluebox].create_zone(:name => domain, :ttl => 360)
|
39
39
|
if response.status == 202
|
40
40
|
zone_id = response.body['id']
|
41
41
|
@new_zones << zone_id
|
@@ -49,7 +49,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
49
49
|
|
50
50
|
options = { :ttl => 60, :retry => 3600, :refresh => 1800, :minimum => 30 }
|
51
51
|
@domain= generate_unique_domain
|
52
|
-
response =
|
52
|
+
response = Fog::DNS[:bluebox].create_zone(options.merge(:name => @domain))
|
53
53
|
if response.status == 202
|
54
54
|
@zone_id = response.body['id']
|
55
55
|
@new_zones << @zone_id
|
@@ -63,7 +63,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
63
63
|
|
64
64
|
result = false
|
65
65
|
|
66
|
-
response =
|
66
|
+
response = Fog::DNS[:bluebox].get_zone(@zone_id)
|
67
67
|
if response.status == 200
|
68
68
|
zone = response.body
|
69
69
|
if (zone['name'] == @domain) and (zone['ttl'] == 60)
|
@@ -79,7 +79,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
79
79
|
|
80
80
|
result = false
|
81
81
|
|
82
|
-
response =
|
82
|
+
response = Fog::DNS[:bluebox].get_zones()
|
83
83
|
if response.status == 200
|
84
84
|
zones = response.body['zones']
|
85
85
|
if (@org_zone_count+2) == zones.count
|
@@ -95,7 +95,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
95
95
|
|
96
96
|
result= false
|
97
97
|
|
98
|
-
response =
|
98
|
+
response = Fog::DNS[:bluebox].get_zones()
|
99
99
|
if response.status == 200
|
100
100
|
zones = response.body['zones']
|
101
101
|
zones.each { |zone|
|
@@ -119,7 +119,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
119
119
|
|
120
120
|
host= 'www.' + @domain
|
121
121
|
zone_id= @new_zones[1]
|
122
|
-
response =
|
122
|
+
response = Fog::DNS[:bluebox].create_record(zone_id, 'A', host, '1.2.3.4')
|
123
123
|
if response.status == 202
|
124
124
|
record_id = response.body['id']
|
125
125
|
@new_records << record_id
|
@@ -133,7 +133,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
133
133
|
|
134
134
|
host= 'ftp.' + @domain
|
135
135
|
zone_id= @new_zones[1]
|
136
|
-
response =
|
136
|
+
response = Fog::DNS[:bluebox].create_record( zone_id, 'A', host, '1.2.3.4')
|
137
137
|
if response.status == 202
|
138
138
|
record_id = response.body['id']
|
139
139
|
@new_records << record_id
|
@@ -146,7 +146,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
146
146
|
pending if Fog.mocking?
|
147
147
|
|
148
148
|
zone_id= @new_zones[1]
|
149
|
-
response =
|
149
|
+
response = Fog::DNS[:bluebox].create_record( zone_id, 'CNAME', 'mail', @domain)
|
150
150
|
if response.status == 202
|
151
151
|
record_id = response.body['id']
|
152
152
|
@new_records << record_id
|
@@ -160,7 +160,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
160
160
|
|
161
161
|
ns_domain = 'ns.' + @domain
|
162
162
|
zone_id= @new_zones[1]
|
163
|
-
response =
|
163
|
+
response = Fog::DNS[:bluebox].create_record( zone_id, 'NS', @domain, ns_domain)
|
164
164
|
if response.status == 202
|
165
165
|
record_id = response.body['id']
|
166
166
|
@new_records << record_id
|
@@ -174,7 +174,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
174
174
|
|
175
175
|
mail_domain = 'mail.' + @domain
|
176
176
|
zone_id= @new_zones[1]
|
177
|
-
response =
|
177
|
+
response = Fog::DNS[:bluebox].create_record( zone_id, 'MX', @domain, mail_domain, :priority => 10)
|
178
178
|
if response.status == 202
|
179
179
|
@record_id = response.body['id']
|
180
180
|
@new_records << @record_id
|
@@ -188,7 +188,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
188
188
|
|
189
189
|
result= false
|
190
190
|
|
191
|
-
response =
|
191
|
+
response = Fog::DNS[:bluebox].get_record(@new_zones[1], @record_id)
|
192
192
|
if response.status == 200
|
193
193
|
mail_domain = 'mail.' + @domain + "."
|
194
194
|
record = response.body
|
@@ -205,7 +205,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
205
205
|
|
206
206
|
result= false
|
207
207
|
|
208
|
-
response =
|
208
|
+
response = Fog::DNS[:bluebox].get_records(@new_zones[1])
|
209
209
|
if response.status == 200
|
210
210
|
records = response.body['records']
|
211
211
|
|
@@ -231,7 +231,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
231
231
|
|
232
232
|
result= true
|
233
233
|
@new_records.each { |record_id|
|
234
|
-
response =
|
234
|
+
response = Fog::DNS[:bluebox].delete_record(@new_zones[1], record_id)
|
235
235
|
if response.status != 200
|
236
236
|
result= false;
|
237
237
|
end
|
@@ -245,7 +245,7 @@ Shindo.tests('Bluebox::dns | DNS requests', ['bluebox', 'dns']) do
|
|
245
245
|
result= true
|
246
246
|
|
247
247
|
@new_zones.each { |zone_id|
|
248
|
-
response =
|
248
|
+
response = Fog::DNS[:bluebox].delete_zone( zone_id)
|
249
249
|
if response.status != 200
|
250
250
|
result= false;
|
251
251
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Shindo.tests('
|
1
|
+
Shindo.tests('Fog::DNS[:dnsimple] | DNS requests', ['dnsimple', 'dns']) do
|
2
2
|
|
3
3
|
@domain = ''
|
4
4
|
@domain_count = 0
|
@@ -20,7 +20,7 @@ Shindo.tests('DNSimple::dns | DNS requests', ['dnsimple', 'dns']) do
|
|
20
20
|
test("get current domain count") do
|
21
21
|
pending if Fog.mocking?
|
22
22
|
|
23
|
-
response =
|
23
|
+
response = Fog::DNS[:dnsimple].list_domains()
|
24
24
|
if response.status == 200
|
25
25
|
@domain_count = response.body.size
|
26
26
|
end
|
@@ -32,7 +32,7 @@ Shindo.tests('DNSimple::dns | DNS requests', ['dnsimple', 'dns']) do
|
|
32
32
|
pending if Fog.mocking?
|
33
33
|
|
34
34
|
domain = generate_unique_domain
|
35
|
-
response =
|
35
|
+
response = Fog::DNS[:dnsimple].create_domain(domain)
|
36
36
|
if response.status == 201
|
37
37
|
@domain = response.body["domain"]
|
38
38
|
end
|
@@ -43,7 +43,7 @@ Shindo.tests('DNSimple::dns | DNS requests', ['dnsimple', 'dns']) do
|
|
43
43
|
test("get domain by id") do
|
44
44
|
pending if Fog.mocking?
|
45
45
|
|
46
|
-
response =
|
46
|
+
response = Fog::DNS[:dnsimple].get_domain(@domain["id"])
|
47
47
|
response.status == 200
|
48
48
|
end
|
49
49
|
|
@@ -54,7 +54,7 @@ Shindo.tests('DNSimple::dns | DNS requests', ['dnsimple', 'dns']) do
|
|
54
54
|
name = "www"
|
55
55
|
type = "A"
|
56
56
|
content = "1.2.3.4"
|
57
|
-
response =
|
57
|
+
response = Fog::DNS[:dnsimple].create_record(domain, name, type, content)
|
58
58
|
|
59
59
|
if response.status == 201
|
60
60
|
@record = response.body["record"]
|
@@ -72,7 +72,7 @@ Shindo.tests('DNSimple::dns | DNS requests', ['dnsimple', 'dns']) do
|
|
72
72
|
type = "MX"
|
73
73
|
content = "mail.#{domain}"
|
74
74
|
options = { :ttl => 60, :prio => 10 }
|
75
|
-
response =
|
75
|
+
response = Fog::DNS[:dnsimple].create_record(domain, name, type, content, options)
|
76
76
|
|
77
77
|
response.status == 201
|
78
78
|
end
|
@@ -83,14 +83,14 @@ Shindo.tests('DNSimple::dns | DNS requests', ['dnsimple', 'dns']) do
|
|
83
83
|
domain = @domain["name"]
|
84
84
|
record_id = @record["id"]
|
85
85
|
options = { :content => "2.3.4.5", :ttl => 600 }
|
86
|
-
response =
|
86
|
+
response = Fog::DNS[:dnsimple].update_record(domain, record_id, options)
|
87
87
|
response.status == 200
|
88
88
|
end
|
89
89
|
|
90
90
|
test("list records") do
|
91
91
|
pending if Fog.mocking?
|
92
92
|
|
93
|
-
response =
|
93
|
+
response = Fog::DNS[:dnsimple].list_records(@domain["name"])
|
94
94
|
|
95
95
|
if response.status == 200
|
96
96
|
@records = response.body
|
@@ -105,7 +105,7 @@ Shindo.tests('DNSimple::dns | DNS requests', ['dnsimple', 'dns']) do
|
|
105
105
|
|
106
106
|
result = true
|
107
107
|
@records.each do |record|
|
108
|
-
response =
|
108
|
+
response = Fog::DNS[:dnsimple].delete_record(domain, record["record"]["id"])
|
109
109
|
if(response.status != 200)
|
110
110
|
result = false
|
111
111
|
break
|
@@ -118,7 +118,7 @@ Shindo.tests('DNSimple::dns | DNS requests', ['dnsimple', 'dns']) do
|
|
118
118
|
test("delete domain") do
|
119
119
|
pending if Fog.mocking?
|
120
120
|
|
121
|
-
response =
|
121
|
+
response = Fog::DNS[:dnsimple].delete_domain(@domain["name"])
|
122
122
|
response.status == 200
|
123
123
|
end
|
124
124
|
|
@@ -0,0 +1,150 @@
|
|
1
|
+
Shindo.tests('Fog::DNS[:dnsmadeeasy] | DNS requests', ['dnsmadeeasy', 'dns']) do
|
2
|
+
|
3
|
+
@domain = ''
|
4
|
+
@domain_count = 0
|
5
|
+
|
6
|
+
def generate_unique_domain( with_trailing_dot = false)
|
7
|
+
#get time (with 1/100th of sec accuracy)
|
8
|
+
#want unique domain name and if provider is fast, this can be called more than once per second
|
9
|
+
time= (Time.now.to_f * 100).to_i
|
10
|
+
domain = 'test-' + time.to_s + '.com'
|
11
|
+
if with_trailing_dot
|
12
|
+
domain+= '.'
|
13
|
+
end
|
14
|
+
|
15
|
+
domain
|
16
|
+
end
|
17
|
+
|
18
|
+
tests("success") do
|
19
|
+
|
20
|
+
test("get current domain count") do
|
21
|
+
pending if Fog.mocking?
|
22
|
+
|
23
|
+
response = Fog::DNS[:dnsmadeeasy].list_domains()
|
24
|
+
if response.status == 200
|
25
|
+
@domain_count = response.body['list'].size
|
26
|
+
end
|
27
|
+
|
28
|
+
response.status == 200
|
29
|
+
end
|
30
|
+
|
31
|
+
test("create domain") do
|
32
|
+
pending if Fog.mocking?
|
33
|
+
|
34
|
+
domain = generate_unique_domain
|
35
|
+
response = Fog::DNS[:dnsmadeeasy].create_domain(domain)
|
36
|
+
if response.status == 201
|
37
|
+
@domain = response.body
|
38
|
+
end
|
39
|
+
|
40
|
+
response.status == 201
|
41
|
+
end
|
42
|
+
|
43
|
+
test("get domain by name") do
|
44
|
+
pending if Fog.mocking?
|
45
|
+
|
46
|
+
response = Fog::DNS[:dnsmadeeasy].get_domain(@domain["name"])
|
47
|
+
response.status == 200
|
48
|
+
end
|
49
|
+
|
50
|
+
test("create an A resource record") do
|
51
|
+
pending if Fog.mocking?
|
52
|
+
|
53
|
+
domain = @domain["name"]
|
54
|
+
name = "www"
|
55
|
+
type = "A"
|
56
|
+
data = "1.2.3.4"
|
57
|
+
response = Fog::DNS[:dnsmadeeasy].create_record(domain, name, type, data)
|
58
|
+
|
59
|
+
if response.status == 201
|
60
|
+
@record = response.body
|
61
|
+
end
|
62
|
+
|
63
|
+
response.status == 201
|
64
|
+
|
65
|
+
end
|
66
|
+
|
67
|
+
test("create a MX record") do
|
68
|
+
pending if Fog.mocking?
|
69
|
+
|
70
|
+
domain = @domain["name"]
|
71
|
+
name = ""
|
72
|
+
type = "MX"
|
73
|
+
data = "10 mail.#{domain}"
|
74
|
+
options = { :ttl => 60 }
|
75
|
+
response = Fog::DNS[:dnsmadeeasy].create_record(domain, name, type, data, options)
|
76
|
+
|
77
|
+
response.status == 201
|
78
|
+
end
|
79
|
+
|
80
|
+
test("update a record") do
|
81
|
+
pending if Fog.mocking?
|
82
|
+
|
83
|
+
domain = @domain["name"]
|
84
|
+
record_id = @record["id"]
|
85
|
+
options = {:name => '', :type => 'A', :data => "2.3.4.5", :ttl => 600}
|
86
|
+
|
87
|
+
response = Fog::DNS[:dnsmadeeasy].update_record(domain, record_id, options)
|
88
|
+
|
89
|
+
response.status == 200
|
90
|
+
end
|
91
|
+
|
92
|
+
test("get record - check ip/ttl") do
|
93
|
+
pending if Fog.mocking?
|
94
|
+
|
95
|
+
response = Fog::DNS[:dnsmadeeasy].get_record(@domain["name"], @record['id'])
|
96
|
+
record = response.body
|
97
|
+
result = false
|
98
|
+
|
99
|
+
if response.status == 200 && record['data'] == '2.3.4.5' && record['ttl'] == 600
|
100
|
+
result = true
|
101
|
+
end
|
102
|
+
|
103
|
+
result
|
104
|
+
end
|
105
|
+
|
106
|
+
test("list records") do
|
107
|
+
pending if Fog.mocking?
|
108
|
+
|
109
|
+
response = Fog::DNS[:dnsmadeeasy].list_records(@domain["name"])
|
110
|
+
|
111
|
+
if response.status == 200
|
112
|
+
@records = response.body
|
113
|
+
end
|
114
|
+
|
115
|
+
(response.status == 200) and (response.body.size == 2)
|
116
|
+
end
|
117
|
+
|
118
|
+
test("delete records") do
|
119
|
+
pending if Fog.mocking?
|
120
|
+
domain = @domain["name"]
|
121
|
+
|
122
|
+
result = true
|
123
|
+
@records.each do |record|
|
124
|
+
response = Fog::DNS[:dnsmadeeasy].delete_record(domain, record["id"])
|
125
|
+
if(response.status != 200)
|
126
|
+
result = false
|
127
|
+
break
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
result
|
132
|
+
end
|
133
|
+
|
134
|
+
test("delete domain") do
|
135
|
+
pending if Fog.mocking?
|
136
|
+
|
137
|
+
puts "DNS Made Easy - Sleeping for 10 seconds, otherwise test fails because DNS Made Easy queues requests, it still might fail if DNS Made Easy is busy! MOCK IT!"
|
138
|
+
puts "THIS MOST LIKELY WILL FAIL ON LIVE because it can take while for DNS Made Easy to create a domain/zone, changing the host to api.sandbox.dnsmadeeasy.com should make it work"
|
139
|
+
sleep 10
|
140
|
+
|
141
|
+
response = Fog::DNS[:dnsmadeeasy].delete_domain(@domain["name"])
|
142
|
+
response.status == 200
|
143
|
+
end
|
144
|
+
|
145
|
+
end
|
146
|
+
|
147
|
+
tests( 'failure') do
|
148
|
+
end
|
149
|
+
|
150
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Shindo.tests('
|
1
|
+
Shindo.tests('Fog::DNS[:linode] | DNS requests', ['linode', 'dns']) do
|
2
2
|
|
3
3
|
@domain = ''
|
4
4
|
@new_zones = []
|
@@ -22,7 +22,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
22
22
|
pending if Fog.mocking?
|
23
23
|
|
24
24
|
@org_zone_count= 0
|
25
|
-
response =
|
25
|
+
response = Fog::DNS[:linode].domain_list()
|
26
26
|
if response.status == 200
|
27
27
|
zones = response.body['DATA']
|
28
28
|
@org_zone_count = zones.count
|
@@ -37,7 +37,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
37
37
|
type = 'master'
|
38
38
|
domain= generate_unique_domain
|
39
39
|
options = { :SOA_email => "netops@#{domain}", :description => "Sample-Domain Inc", :status => 0}
|
40
|
-
response =
|
40
|
+
response = Fog::DNS[:linode].domain_create( domain, type, options)
|
41
41
|
if response.status == 200
|
42
42
|
@master_zone_id = response.body['DATA']['DomainID']
|
43
43
|
@new_zones << @master_zone_id
|
@@ -53,7 +53,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
53
53
|
@domain= generate_unique_domain
|
54
54
|
options = { :SOA_email => "netops@#{@domain}", :refresh_sec => 14400, :retry_sec => 3600,
|
55
55
|
:expire_sec => 604800, :ttl_sec => 28800, :status => 0, :master_ips => '1.2.3.4;2.3.4.5' }
|
56
|
-
response =
|
56
|
+
response = Fog::DNS[:linode].domain_create( @domain, type, options)
|
57
57
|
if response.status == 200
|
58
58
|
@slave_zone_id = response.body['DATA']['DomainID']
|
59
59
|
@new_zones << @slave_zone_id
|
@@ -67,7 +67,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
67
67
|
|
68
68
|
result= false
|
69
69
|
|
70
|
-
response =
|
70
|
+
response = Fog::DNS[:linode].domain_list( @slave_zone_id)
|
71
71
|
if response.status == 200
|
72
72
|
zones = response.body['DATA']
|
73
73
|
num_zones = zones.count
|
@@ -91,7 +91,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
91
91
|
result= false
|
92
92
|
|
93
93
|
options = { :ttl_sec => 14400 }
|
94
|
-
response =
|
94
|
+
response = Fog::DNS[:linode].domain_update( @slave_zone_id, options)
|
95
95
|
if response.status == 200
|
96
96
|
result= true
|
97
97
|
end
|
@@ -104,7 +104,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
104
104
|
|
105
105
|
result= false
|
106
106
|
|
107
|
-
response =
|
107
|
+
response = Fog::DNS[:linode].domain_list( @slave_zone_id)
|
108
108
|
if response.status == 200
|
109
109
|
zones = response.body['DATA']
|
110
110
|
num_zones = zones.count
|
@@ -124,7 +124,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
124
124
|
|
125
125
|
host= 'www.' + @domain
|
126
126
|
options = { :name => host, :target => '4.5.6.7', :ttl_sec => 3600 }
|
127
|
-
response =
|
127
|
+
response = Fog::DNS[:linode].domain_resource_create( @master_zone_id, 'A', options)
|
128
128
|
if response.status == 200
|
129
129
|
record_id = response.body['DATA']['ResourceID']
|
130
130
|
@new_records << record_id
|
@@ -138,7 +138,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
138
138
|
|
139
139
|
host= 'mail'
|
140
140
|
options = { :name => host, :target => 'www.' + @domain }
|
141
|
-
response =
|
141
|
+
response = Fog::DNS[:linode].domain_resource_create( @master_zone_id, 'CNAME', options)
|
142
142
|
if response.status == 200
|
143
143
|
record_id = response.body['DATA']['ResourceID']
|
144
144
|
@new_records << record_id
|
@@ -151,7 +151,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
151
151
|
pending if Fog.mocking?
|
152
152
|
|
153
153
|
options = { :name => @domain, :target => 'ns.' + @domain}
|
154
|
-
response =
|
154
|
+
response = Fog::DNS[:linode].domain_resource_create( @master_zone_id, 'NS', options)
|
155
155
|
if response.status == 200
|
156
156
|
record_id = response.body['DATA']['ResourceID']
|
157
157
|
@new_records << record_id
|
@@ -164,7 +164,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
164
164
|
pending if Fog.mocking?
|
165
165
|
|
166
166
|
options = { :target => 'mail.' + @domain, :ttl_sec => 7200, :priority => 5 }
|
167
|
-
response =
|
167
|
+
response = Fog::DNS[:linode].domain_resource_create( @master_zone_id, 'MX', options)
|
168
168
|
if response.status == 200
|
169
169
|
@record_id = response.body['DATA']['ResourceID']
|
170
170
|
@new_records << @record_id
|
@@ -179,7 +179,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
179
179
|
result= false
|
180
180
|
|
181
181
|
domain= 'mail.' + @domain
|
182
|
-
response =
|
182
|
+
response = Fog::DNS[:linode].domain_resource_list(@master_zone_id, @record_id)
|
183
183
|
if response.status == 200
|
184
184
|
|
185
185
|
records= response.body['DATA']
|
@@ -200,7 +200,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
200
200
|
pending if Fog.mocking?
|
201
201
|
|
202
202
|
options = { :target => 'mail2.' + @domain }
|
203
|
-
response =
|
203
|
+
response = Fog::DNS[:linode].domain_resource_update( @master_zone_id, @record_id, options)
|
204
204
|
|
205
205
|
response.status == 200
|
206
206
|
end
|
@@ -211,7 +211,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
211
211
|
result= false
|
212
212
|
|
213
213
|
domain= 'mail2.' + @domain
|
214
|
-
response =
|
214
|
+
response = Fog::DNS[:linode].domain_resource_list(@master_zone_id, @record_id)
|
215
215
|
if response.status == 200
|
216
216
|
|
217
217
|
records= response.body['DATA']
|
@@ -233,7 +233,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
233
233
|
|
234
234
|
result= true
|
235
235
|
@new_records.each { |record_id|
|
236
|
-
response =
|
236
|
+
response = Fog::DNS[:linode].domain_resource_delete( @master_zone_id, record_id)
|
237
237
|
if response.status != 200
|
238
238
|
result= false;
|
239
239
|
end
|
@@ -246,7 +246,7 @@ Shindo.tests('Linode::dns | DNS requests', ['linode', 'dns']) do
|
|
246
246
|
|
247
247
|
result= true
|
248
248
|
@new_zones.each { |zone_id|
|
249
|
-
response =
|
249
|
+
response = Fog::DNS[:linode].domain_delete( zone_id)
|
250
250
|
if response.status != 200
|
251
251
|
result= false;
|
252
252
|
end
|