fog 1.38.0 → 1.39.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +13 -3
- data/CHANGELOG.md +66 -0
- data/Gemfile +1 -1
- data/LICENSE.md +1 -1
- data/README.md +13 -0
- data/fog.gemspec +27 -6
- data/gemfiles/Gemfile-1.9 +16 -0
- data/gemfiles/Gemfile-2.0 +11 -0
- data/gemfiles/Gemfile-edge +1 -1
- data/gemfiles/Gemfile-edge-1.9 +20 -0
- data/gemfiles/Gemfile-edge-2.0 +16 -0
- data/lib/fog.rb +0 -1
- data/lib/fog/bin.rb +0 -1
- data/lib/fog/cloudsigma/compute.rb +9 -0
- data/lib/fog/cloudsigma/models/server.rb +5 -0
- data/lib/fog/cloudsigma/models/snapshot.rb +77 -0
- data/lib/fog/cloudsigma/models/snapshots.rb +26 -0
- data/lib/fog/cloudsigma/models/volume.rb +15 -0
- data/lib/fog/cloudsigma/requests/clone_snapshot.rb +31 -0
- data/lib/fog/cloudsigma/requests/create_snapshot.rb +27 -0
- data/lib/fog/cloudsigma/requests/delete_snapshot.rb +17 -0
- data/lib/fog/cloudsigma/requests/get_snapshot.rb +17 -0
- data/lib/fog/cloudsigma/requests/list_snapshots.rb +17 -0
- data/lib/fog/cloudsigma/requests/stop_server.rb +5 -4
- data/lib/fog/cloudsigma/requests/update_snapshot.rb +17 -0
- data/lib/fog/cloudstack/core.rb +2 -0
- data/lib/fog/joyent/compute.rb +4 -16
- data/lib/fog/opennebula/README.md +0 -0
- data/lib/fog/opennebula/compute.rb +90 -19
- data/lib/fog/opennebula/models/compute/server.rb +9 -1
- data/lib/fog/opennebula/requests/compute/image_pool.rb +0 -1
- data/lib/fog/opennebula/requests/compute/list_vms.rb +8 -26
- data/lib/fog/opennebula/requests/compute/template_pool.rb +8 -29
- data/lib/fog/opennebula/requests/compute/vm_allocate.rb +24 -15
- data/lib/fog/opennebula/requests/compute/vm_destroy.rb +13 -4
- data/lib/fog/opennebula/requests/compute/vm_disk_snapshot.rb +8 -2
- data/lib/fog/opennebula/requests/compute/vm_resume.rb +13 -23
- data/lib/fog/opennebula/requests/compute/vm_shutdown.rb +1 -1
- data/lib/fog/opennebula/requests/compute/vm_stop.rb +3 -10
- data/lib/fog/opennebula/requests/compute/vm_suspend.rb +31 -0
- data/lib/fog/ovirt/compute.rb +4 -0
- data/lib/fog/ovirt/models/compute/instance_type.rb +39 -0
- data/lib/fog/ovirt/models/compute/instance_types.rb +20 -0
- data/lib/fog/ovirt/models/compute/server.rb +1 -0
- data/lib/fog/ovirt/requests/compute/get_instance_type.rb +17 -0
- data/lib/fog/ovirt/requests/compute/list_instance_types.rb +19 -0
- data/lib/fog/ovirt/requests/compute/mock_files/instance_type.xml +42 -0
- data/lib/fog/ovirt/requests/compute/mock_files/instance_types.xml +197 -0
- data/lib/fog/rage4/dns.rb +1 -0
- data/lib/fog/rage4/requests/dns/bulk_update_records.rb +38 -0
- data/lib/fog/vcloud_director/compute.rb +1 -0
- data/lib/fog/vcloud_director/generators/compute/compose_common.rb +17 -16
- data/lib/fog/vcloud_director/generators/compute/create_snapshot.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/post_create_snapshot.rb +21 -0
- data/lib/fog/version.rb +1 -1
- data/lib/tasks/changelog_task.rb +4 -4
- data/spec/fog/bin/dnsimple_spec.rb +2 -2
- data/spec/fog/bin_spec.rb +3 -6
- data/tests/cloudsigma/models/snapshot_tests.rb +23 -0
- data/tests/cloudsigma/models/snapshots_tests.rb +15 -0
- data/tests/cloudsigma/models/volume_tests.rb +3 -3
- data/tests/cloudsigma/requests/server_tests.rb +10 -10
- data/tests/cloudsigma/requests/snapshots_tests.rb +83 -0
- data/tests/cloudsigma/requests/volumes_tests.rb +12 -11
- data/tests/compute/helper.rb +0 -19
- data/tests/helpers/mock_helper.rb +0 -4
- data/tests/opennebula/models/compute/flavor_tests.rb +2 -2
- data/tests/opennebula/models/compute/network_tests.rb +1 -2
- data/tests/opennebula/requests/compute/vm_allocate_tests.rb +20 -3
- data/tests/opennebula/requests/compute/vm_suspend_resume_tests.rb +52 -0
- data/tests/rage4/requests/dns/dns_tests.rb +12 -0
- data/tests/storage/helper.rb +0 -6
- metadata +101 -389
- data/lib/fog/bin/digitalocean.rb +0 -29
- data/lib/fog/bin/dnsimple.rb +0 -29
- data/lib/fog/bin/ninefold.rb +0 -34
- data/lib/fog/digitalocean.rb +0 -1
- data/lib/fog/digitalocean/CHANGELOG.md +0 -6
- data/lib/fog/digitalocean/compute_v2.rb +0 -109
- data/lib/fog/digitalocean/core.rb +0 -9
- data/lib/fog/digitalocean/examples/getting_started.md +0 -124
- data/lib/fog/digitalocean/models/compute_v2/flavor.rb +0 -17
- data/lib/fog/digitalocean/models/compute_v2/flavors.rb +0 -21
- data/lib/fog/digitalocean/models/compute_v2/image.rb +0 -25
- data/lib/fog/digitalocean/models/compute_v2/images.rb +0 -42
- data/lib/fog/digitalocean/models/compute_v2/region.rb +0 -13
- data/lib/fog/digitalocean/models/compute_v2/regions.rb +0 -21
- data/lib/fog/digitalocean/models/compute_v2/server.rb +0 -170
- data/lib/fog/digitalocean/models/compute_v2/servers.rb +0 -43
- data/lib/fog/digitalocean/models/compute_v2/ssh_key.rb +0 -31
- data/lib/fog/digitalocean/models/compute_v2/ssh_keys.rb +0 -40
- data/lib/fog/digitalocean/models/paging_collection.rb +0 -41
- data/lib/fog/digitalocean/requests/compute_v2/change_kernel.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/convert_to_snapshot.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/create_server.rb +0 -93
- data/lib/fog/digitalocean/requests/compute_v2/create_ssh_key.rb +0 -49
- data/lib/fog/digitalocean/requests/compute_v2/delete_ssh_key.rb +0 -32
- data/lib/fog/digitalocean/requests/compute_v2/destroy_server.rb +0 -35
- data/lib/fog/digitalocean/requests/compute_v2/disable_backups.rb +0 -45
- data/lib/fog/digitalocean/requests/compute_v2/enable_ipv6.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/enable_private_networking.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/get_droplet_action.rb +0 -36
- data/lib/fog/digitalocean/requests/compute_v2/get_image_details.rb +0 -42
- data/lib/fog/digitalocean/requests/compute_v2/get_server_details.rb +0 -84
- data/lib/fog/digitalocean/requests/compute_v2/get_ssh_key.rb +0 -34
- data/lib/fog/digitalocean/requests/compute_v2/list_droplet_actions.rb +0 -38
- data/lib/fog/digitalocean/requests/compute_v2/list_flavors.rb +0 -131
- data/lib/fog/digitalocean/requests/compute_v2/list_images.rb +0 -50
- data/lib/fog/digitalocean/requests/compute_v2/list_regions.rb +0 -94
- data/lib/fog/digitalocean/requests/compute_v2/list_servers.rb +0 -28
- data/lib/fog/digitalocean/requests/compute_v2/list_ssh_keys.rb +0 -31
- data/lib/fog/digitalocean/requests/compute_v2/password_reset.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/power_cycle.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/power_off.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/power_on.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/reboot_server.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/rebuild.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/rename.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/resize.rb +0 -48
- data/lib/fog/digitalocean/requests/compute_v2/restore.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/shutdown.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/snapshot.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/transfer_image.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/update_ssh_key.rb +0 -46
- data/lib/fog/digitalocean/requests/compute_v2/upgrade.rb +0 -44
- data/lib/fog/digitalocean/service.rb +0 -51
- data/lib/fog/dnsimple.rb +0 -1
- data/lib/fog/dnsimple/core.rb +0 -10
- data/lib/fog/dnsimple/dns.rb +0 -112
- data/lib/fog/dnsimple/models/dns/record.rb +0 -63
- data/lib/fog/dnsimple/models/dns/records.rb +0 -34
- data/lib/fog/dnsimple/models/dns/zone.rb +0 -46
- data/lib/fog/dnsimple/models/dns/zones.rb +0 -25
- data/lib/fog/dnsimple/requests/dns/create_domain.rb +0 -62
- data/lib/fog/dnsimple/requests/dns/create_record.rb +0 -67
- data/lib/fog/dnsimple/requests/dns/delete_domain.rb +0 -35
- data/lib/fog/dnsimple/requests/dns/delete_record.rb +0 -30
- data/lib/fog/dnsimple/requests/dns/get_domain.rb +0 -39
- data/lib/fog/dnsimple/requests/dns/get_record.rb +0 -49
- data/lib/fog/dnsimple/requests/dns/list_domains.rb +0 -34
- data/lib/fog/dnsimple/requests/dns/list_records.rb +0 -34
- data/lib/fog/dnsimple/requests/dns/update_record.rb +0 -53
- data/lib/fog/ninefold.rb +0 -1
- data/lib/fog/ninefold/compute.rb +0 -144
- data/lib/fog/ninefold/core.rb +0 -11
- data/lib/fog/ninefold/models/compute/address.rb +0 -100
- data/lib/fog/ninefold/models/compute/addresses.rb +0 -27
- data/lib/fog/ninefold/models/compute/flavor.rb +0 -24
- data/lib/fog/ninefold/models/compute/flavors.rb +0 -26
- data/lib/fog/ninefold/models/compute/image.rb +0 -38
- data/lib/fog/ninefold/models/compute/images.rb +0 -26
- data/lib/fog/ninefold/models/compute/ip_forwarding_rule.rb +0 -76
- data/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb +0 -27
- data/lib/fog/ninefold/models/compute/server.rb +0 -182
- data/lib/fog/ninefold/models/compute/servers.rb +0 -27
- data/lib/fog/ninefold/requests/compute/assign_to_load_balancer_rule.rb +0 -11
- data/lib/fog/ninefold/requests/compute/associate_ip_address.rb +0 -12
- data/lib/fog/ninefold/requests/compute/change_service_for_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/create_ip_forwarding_rule.rb +0 -12
- data/lib/fog/ninefold/requests/compute/create_load_balancer_rule.rb +0 -11
- data/lib/fog/ninefold/requests/compute/delete_ip_forwarding_rule.rb +0 -12
- data/lib/fog/ninefold/requests/compute/delete_load_balancer_rule.rb +0 -11
- data/lib/fog/ninefold/requests/compute/deploy_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/destroy_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/disable_static_nat.rb +0 -12
- data/lib/fog/ninefold/requests/compute/disassociate_ip_address.rb +0 -12
- data/lib/fog/ninefold/requests/compute/enable_static_nat.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_accounts.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_async_jobs.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_capabilities.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_disk_offerings.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_events.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_hypervisors.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_ip_forwarding_rules.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_load_balancer_rule_instances.rb +0 -11
- data/lib/fog/ninefold/requests/compute/list_load_balancer_rules.rb +0 -11
- data/lib/fog/ninefold/requests/compute/list_network_offerings.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_networks.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_public_ip_addresses.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_resource_limits.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_service_offerings.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_templates.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_virtual_machines.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_zones.rb +0 -12
- data/lib/fog/ninefold/requests/compute/query_async_job_result.rb +0 -12
- data/lib/fog/ninefold/requests/compute/reboot_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/remove_from_load_balancer_rule.rb +0 -11
- data/lib/fog/ninefold/requests/compute/reset_password_for_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/start_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/stop_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/update_load_balancer_rule.rb +0 -11
- data/lib/fog/ninefold/requests/compute/update_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/storage.rb +0 -53
- data/spec/fog/bin/digitalocean_spec.rb +0 -9
- data/spec/fog/bin/ninefold_spec.rb +0 -10
- data/tests/digitalocean/helper.rb +0 -56
- data/tests/digitalocean/requests/compute_v2/list_flavors_tests.rb +0 -25
- data/tests/digitalocean/requests/compute_v2/list_images_tests.rb +0 -25
- data/tests/digitalocean/requests/compute_v2/list_regions_tests.rb +0 -21
- data/tests/digitalocean/requests/compute_v2/server_tests.rb +0 -77
- data/tests/dnsimple/requests/dns/dns_tests.rb +0 -122
- data/tests/hp/block_storage_tests.rb +0 -47
- data/tests/hp/cdn_tests.rb +0 -23
- data/tests/hp/compute_tests.rb +0 -22
- data/tests/hp/models/block_storage/bootable_volume_tests.rb +0 -23
- data/tests/hp/models/block_storage/snapshot_tests.rb +0 -23
- data/tests/hp/models/block_storage/volume_tests.rb +0 -21
- data/tests/hp/models/block_storage_v2/snapshot_tests.rb +0 -22
- data/tests/hp/models/block_storage_v2/snapshots_tests.rb +0 -10
- data/tests/hp/models/block_storage_v2/volume_backup_tests.rb +0 -22
- data/tests/hp/models/block_storage_v2/volume_backups_tests.rb +0 -9
- data/tests/hp/models/block_storage_v2/volume_tests.rb +0 -22
- data/tests/hp/models/block_storage_v2/volumes_tests.rb +0 -5
- data/tests/hp/models/compute/address_tests.rb +0 -18
- data/tests/hp/models/compute/addresses_tests.rb +0 -5
- data/tests/hp/models/compute/key_pair_tests.rb +0 -26
- data/tests/hp/models/compute/key_pairs_tests.rb +0 -5
- data/tests/hp/models/compute/metadata_image_tests.rb +0 -60
- data/tests/hp/models/compute/metadata_server_tests.rb +0 -54
- data/tests/hp/models/compute/security_group_tests.rb +0 -38
- data/tests/hp/models/compute/security_groups_tests.rb +0 -5
- data/tests/hp/models/compute_v2/address_tests.rb +0 -23
- data/tests/hp/models/compute_v2/addresses_tests.rb +0 -7
- data/tests/hp/models/compute_v2/availability_zone_tests.rb +0 -11
- data/tests/hp/models/compute_v2/availability_zones_tests.rb +0 -13
- data/tests/hp/models/compute_v2/key_pair_tests.rb +0 -28
- data/tests/hp/models/compute_v2/key_pairs_tests.rb +0 -7
- data/tests/hp/models/compute_v2/metadata_image_tests.rb +0 -60
- data/tests/hp/models/compute_v2/metadata_server_tests.rb +0 -56
- data/tests/hp/models/compute_v2/server_tests.rb +0 -45
- data/tests/hp/models/compute_v2/servers_tests.rb +0 -9
- data/tests/hp/models/compute_v2/volume_attachment_tests.rb +0 -40
- data/tests/hp/models/compute_v2/volume_attachments_tests.rb +0 -17
- data/tests/hp/models/dns/domain_tests.rb +0 -25
- data/tests/hp/models/dns/domains_tests.rb +0 -14
- data/tests/hp/models/dns/record_tests.rb +0 -29
- data/tests/hp/models/dns/records_tests.rb +0 -9
- data/tests/hp/models/lb/algorithms_tests.rb +0 -15
- data/tests/hp/models/lb/load_balancer_node_tests.rb +0 -9
- data/tests/hp/models/lb/load_balancer_nodes_tests.rb +0 -27
- data/tests/hp/models/lb/load_balancer_tests.rb +0 -6
- data/tests/hp/models/lb/load_balancer_virtual_ips_tests.rb +0 -22
- data/tests/hp/models/lb/load_balancers_tests.rb +0 -22
- data/tests/hp/models/lb/protocols_tests.rb +0 -15
- data/tests/hp/models/network/floating_ip_tests.rb +0 -37
- data/tests/hp/models/network/floating_ips_tests.rb +0 -8
- data/tests/hp/models/network/network_tests.rb +0 -25
- data/tests/hp/models/network/networks_tests.rb +0 -15
- data/tests/hp/models/network/port_tests.rb +0 -30
- data/tests/hp/models/network/ports_tests.rb +0 -21
- data/tests/hp/models/network/router_tests.rb +0 -55
- data/tests/hp/models/network/routers_tests.rb +0 -19
- data/tests/hp/models/network/security_group_rule_tests.rb +0 -25
- data/tests/hp/models/network/security_group_rules_tests.rb +0 -23
- data/tests/hp/models/network/security_group_tests.rb +0 -20
- data/tests/hp/models/network/security_groups_tests.rb +0 -20
- data/tests/hp/models/network/subnet_tests.rb +0 -30
- data/tests/hp/models/network/subnets_tests.rb +0 -22
- data/tests/hp/models/storage/directories_tests.rb +0 -23
- data/tests/hp/models/storage/directory_tests.rb +0 -131
- data/tests/hp/models/storage/file_tests.rb +0 -44
- data/tests/hp/models/storage/files_tests.rb +0 -38
- data/tests/hp/requests/block_storage/bootable_volume_tests.rb +0 -78
- data/tests/hp/requests/block_storage/snapshot_tests.rb +0 -56
- data/tests/hp/requests/block_storage/volume_tests.rb +0 -94
- data/tests/hp/requests/block_storage_v2/snapshot_tests.rb +0 -69
- data/tests/hp/requests/block_storage_v2/volume_backup_tests.rb +0 -117
- data/tests/hp/requests/block_storage_v2/volume_tests.rb +0 -106
- data/tests/hp/requests/cdn/container_tests.rb +0 -56
- data/tests/hp/requests/compute/address_tests.rb +0 -72
- data/tests/hp/requests/compute/flavor_tests.rb +0 -45
- data/tests/hp/requests/compute/image_tests.rb +0 -79
- data/tests/hp/requests/compute/key_pair_tests.rb +0 -65
- data/tests/hp/requests/compute/metadata_tests.rb +0 -70
- data/tests/hp/requests/compute/persistent_server_tests.rb +0 -66
- data/tests/hp/requests/compute/security_group_rule_tests.rb +0 -54
- data/tests/hp/requests/compute/security_group_tests.rb +0 -63
- data/tests/hp/requests/compute/server_address_tests.rb +0 -45
- data/tests/hp/requests/compute/server_tests.rb +0 -126
- data/tests/hp/requests/compute/server_volume_tests.rb +0 -75
- data/tests/hp/requests/compute_v2/address_tests.rb +0 -80
- data/tests/hp/requests/compute_v2/availability_zone_tests.rb +0 -19
- data/tests/hp/requests/compute_v2/flavor_tests.rb +0 -45
- data/tests/hp/requests/compute_v2/image_tests.rb +0 -86
- data/tests/hp/requests/compute_v2/key_pair_tests.rb +0 -66
- data/tests/hp/requests/compute_v2/metadata_tests.rb +0 -101
- data/tests/hp/requests/compute_v2/persistent_server_tests.rb +0 -67
- data/tests/hp/requests/compute_v2/server_address_tests.rb +0 -46
- data/tests/hp/requests/compute_v2/server_security_group_tests.rb +0 -42
- data/tests/hp/requests/compute_v2/server_tests.rb +0 -113
- data/tests/hp/requests/compute_v2/server_volume_tests.rb +0 -84
- data/tests/hp/requests/dns/domain_tests.rb +0 -72
- data/tests/hp/requests/dns/records_tests.rb +0 -64
- data/tests/hp/requests/lb/algorithms_tests.rb +0 -14
- data/tests/hp/requests/lb/limits_tests.rb +0 -16
- data/tests/hp/requests/lb/load_balancer_nodes_tests.rb +0 -46
- data/tests/hp/requests/lb/load_balancer_tests.rb +0 -56
- data/tests/hp/requests/lb/protocols_tests.rb +0 -14
- data/tests/hp/requests/lb/versions_tests.rb +0 -16
- data/tests/hp/requests/lb/virtual_ips_tests.rb +0 -34
- data/tests/hp/requests/network/floating_ip_tests.rb +0 -70
- data/tests/hp/requests/network/network_tests.rb +0 -57
- data/tests/hp/requests/network/port_tests.rb +0 -71
- data/tests/hp/requests/network/router_tests.rb +0 -108
- data/tests/hp/requests/network/security_group_rule_tests.rb +0 -58
- data/tests/hp/requests/network/security_group_tests.rb +0 -48
- data/tests/hp/requests/network/subnet_tests.rb +0 -71
- data/tests/hp/requests/storage/container_tests.rb +0 -86
- data/tests/hp/requests/storage/object_tests.rb +0 -121
- data/tests/hp/storage_tests.rb +0 -28
- data/tests/hp/user_agent_tests.rb +0 -13
- data/tests/ninefold/models/storage/file_update_tests.rb +0 -19
- data/tests/ninefold/models/storage/nested_directories_tests.rb +0 -23
- data/tests/ninefold/requests/compute/address_tests.rb +0 -42
- data/tests/ninefold/requests/compute/async_job_tests.rb +0 -33
- data/tests/ninefold/requests/compute/helper.rb +0 -369
- data/tests/ninefold/requests/compute/list_tests.rb +0 -56
- data/tests/ninefold/requests/compute/load_balancer_tests.rb +0 -66
- data/tests/ninefold/requests/compute/nat_tests.rb +0 -91
- data/tests/ninefold/requests/compute/network_tests.rb +0 -21
- data/tests/ninefold/requests/compute/template_tests.rb +0 -21
- data/tests/ninefold/requests/compute/virtual_machine_tests.rb +0 -68
@@ -1,72 +0,0 @@
|
|
1
|
-
Shindo.tests("HP::DNS | domain requests", ['hp', 'dns', 'domain']) do
|
2
|
-
@domain_format = {
|
3
|
-
'id' => String,
|
4
|
-
'name' => String,
|
5
|
-
'description' => String,
|
6
|
-
'ttl' => Integer,
|
7
|
-
'serial' => Integer,
|
8
|
-
'email' => String,
|
9
|
-
'created_at' => String
|
10
|
-
}
|
11
|
-
|
12
|
-
@server_format = {
|
13
|
-
'id' => String,
|
14
|
-
'name' => String,
|
15
|
-
'created_at' => String,
|
16
|
-
'updated_at' => String
|
17
|
-
}
|
18
|
-
|
19
|
-
tests('success') do
|
20
|
-
|
21
|
-
@domain_name = 'www.fogtest.com.'
|
22
|
-
@email = 'test@fogtest.com'
|
23
|
-
|
24
|
-
tests("#create_domain(#{@domain_name}, #{@email})").formats(@domain_format) do
|
25
|
-
data = HP[:dns].create_domain(@domain_name, @email).body
|
26
|
-
@domain_id = data['id']
|
27
|
-
data
|
28
|
-
end
|
29
|
-
|
30
|
-
tests('#list_domains').formats({'domains' => [@domain_format]}) do
|
31
|
-
HP[:dns].list_domains.body
|
32
|
-
end
|
33
|
-
|
34
|
-
tests("#get_domain(#{@domain_id})").formats(@domain_format) do
|
35
|
-
HP[:dns].get_domain(@domain_id).body
|
36
|
-
end
|
37
|
-
|
38
|
-
tests("#get_servers_hosting_domain(#{@domain_id})").formats('servers' => [@server_format]) do
|
39
|
-
HP[:dns].get_servers_hosting_domain(@domain_id).body
|
40
|
-
end
|
41
|
-
|
42
|
-
tests("#update_domain(#{@domain_id}, {:email => 'updated@fogtest.com'})").formats(@domain_format) do
|
43
|
-
HP[:dns].update_domain(@domain_id, {:email => 'updated@fogtest.com'}).body
|
44
|
-
end
|
45
|
-
|
46
|
-
tests("#delete_domain(#{@domain_id})").succeeds do
|
47
|
-
HP[:dns].delete_domain(@domain_id)
|
48
|
-
end
|
49
|
-
|
50
|
-
end
|
51
|
-
|
52
|
-
tests('failure') do
|
53
|
-
|
54
|
-
tests("#get_domain('invalid_domain')").raises(Fog::HP::DNS::NotFound) do
|
55
|
-
HP[:dns].get_domain('invalid_domain')
|
56
|
-
end
|
57
|
-
|
58
|
-
tests("#get_servers_hosting_domain('invalid_domain')").raises(Fog::HP::DNS::NotFound) do
|
59
|
-
HP[:dns].get_servers_hosting_domain('invalid_domain')
|
60
|
-
end
|
61
|
-
|
62
|
-
tests("#update_domain('invalid_domain', {:email => 'updated@fogtest.com'})").raises(Fog::HP::DNS::NotFound) do
|
63
|
-
HP[:dns].update_domain('invalid_domain', {:email => 'updated@fogtest.com'})
|
64
|
-
end
|
65
|
-
|
66
|
-
tests("#delete_domain('invalid_domain')").raises(Fog::HP::DNS::NotFound) do
|
67
|
-
HP[:dns].delete_domain('invalid_domain')
|
68
|
-
end
|
69
|
-
|
70
|
-
end
|
71
|
-
|
72
|
-
end
|
@@ -1,64 +0,0 @@
|
|
1
|
-
Shindo.tests("HP::DNS | record requests", ['hp', 'dns', 'record']) do
|
2
|
-
@record_format = {
|
3
|
-
'id' => String,
|
4
|
-
'name' => String,
|
5
|
-
'description' => String,
|
6
|
-
'type' => String,
|
7
|
-
'domain_id' => String,
|
8
|
-
'ttl' => Integer,
|
9
|
-
'data' => String,
|
10
|
-
'priority' => Fog::Nullable::Integer,
|
11
|
-
'created_at' => String,
|
12
|
-
'updated_at' => String
|
13
|
-
}
|
14
|
-
|
15
|
-
tests('success') do
|
16
|
-
|
17
|
-
@domain_name = 'www.fogtest.com.'
|
18
|
-
@email = 'test@fogtest.com'
|
19
|
-
@domain_id = HP[:dns].create_domain(@domain_name, @email).body['id']
|
20
|
-
@record_name = 'www.fogtest.com.'
|
21
|
-
@record_data = '15.185.172.152'
|
22
|
-
|
23
|
-
tests("#create_record(#{@domain_id}, #{@record_name}, 'A', #{@record_data})").formats(@record_format) do
|
24
|
-
data = HP[:dns].create_record(@domain_id, @record_name, 'A', @record_data).body
|
25
|
-
@record_id = data['id']
|
26
|
-
data
|
27
|
-
end
|
28
|
-
|
29
|
-
tests("#list_records_in_a_domain(#{@domain_id})").formats({'records' => [@record_format]}) do
|
30
|
-
HP[:dns].list_records_in_a_domain(@domain_id).body
|
31
|
-
end
|
32
|
-
|
33
|
-
tests("#get_record(#{@domain_id}, #{@record_id})").formats(@record_format) do
|
34
|
-
HP[:dns].get_record(@domain_id, @record_id).body
|
35
|
-
end
|
36
|
-
|
37
|
-
tests("#update_record(#{@domain_id}, #{@record_id}, {:description => 'desc for record'})").formats(@record_format) do
|
38
|
-
HP[:dns].update_record(@domain_id, @record_id, {:description => 'desc for record'}).body
|
39
|
-
end
|
40
|
-
|
41
|
-
tests("#delete_record(#{@domain_id}, #{@record_id})").succeeds do
|
42
|
-
HP[:dns].delete_record(@domain_id, @record_id)
|
43
|
-
end
|
44
|
-
|
45
|
-
HP[:dns].delete_domain(@domain_id)
|
46
|
-
end
|
47
|
-
|
48
|
-
tests('failure') do
|
49
|
-
|
50
|
-
tests("#get_record(#{@domain_id}, 'invalid_record')").raises(Fog::HP::DNS::NotFound) do
|
51
|
-
HP[:dns].get_record(@domain_id, 'invalid_record')
|
52
|
-
end
|
53
|
-
|
54
|
-
tests("#update_record(#{@domain_id}, 'invalid_record', {:email => 'updated@fogtest.com'})").raises(Fog::HP::DNS::NotFound) do
|
55
|
-
HP[:dns].update_record(@domain_id, 'invalid_record', {:email => 'updated@fogtest.com'})
|
56
|
-
end
|
57
|
-
|
58
|
-
tests("#delete_record(#{@domain_id}, 'invalid_record')").raises(Fog::HP::DNS::NotFound) do
|
59
|
-
HP[:dns].delete_record(@domain_id, 'invalid_record')
|
60
|
-
end
|
61
|
-
|
62
|
-
end
|
63
|
-
|
64
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
Shindo.tests("HP::LB | algorithms", ['hp', 'lb', 'algorithms']) do
|
2
|
-
@algo_format = {
|
3
|
-
'name' => String
|
4
|
-
}
|
5
|
-
|
6
|
-
tests('success') do
|
7
|
-
|
8
|
-
tests('#list_algorithms').formats({'algorithms' => [@algo_format]}) do
|
9
|
-
HP[:lb].list_algorithms.body
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
Shindo.tests("HP::LB | limits requests", ['hp', 'lb', 'limits']) do
|
2
|
-
@limits_format = {
|
3
|
-
'maxLoadBalancerNameLength' => Integer,
|
4
|
-
'maxLoadBalancers' => Integer,
|
5
|
-
'maxNodesPerLoadBalancer' => Integer,
|
6
|
-
'maxVIPsPerLoadBalancer' => Integer,
|
7
|
-
}
|
8
|
-
|
9
|
-
tests('success') do
|
10
|
-
|
11
|
-
tests('#list_limits').formats({'limits' => [{'values' => @limits_format }]}) do
|
12
|
-
HP[:lb].list_limits.body
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
Shindo.tests('HP::LB | load balancer nodes', ['hp', 'lb', 'nodes']) do
|
2
|
-
@node_format = {
|
3
|
-
'id' => String,
|
4
|
-
'address' => String,
|
5
|
-
'port' => String,
|
6
|
-
'condition' => String,
|
7
|
-
'status' => String
|
8
|
-
}
|
9
|
-
|
10
|
-
tests('successs') do
|
11
|
-
data = HP[:lb].create_load_balancer('rg-fog-lb2', [{'address' => '15.185.1.1', 'port' => '80'}]).body
|
12
|
-
@lb_id = data['id']
|
13
|
-
|
14
|
-
tests("#create_load_balancer_node(#{@lb_id}, '15.185.2.2', '88')").formats({'nodes' => [@node_format]}) do
|
15
|
-
data = HP[:lb].create_load_balancer_node(@lb_id, '15.185.2.2', '88').body
|
16
|
-
@lb_node_id = data['nodes'][0]['id']
|
17
|
-
data
|
18
|
-
end
|
19
|
-
|
20
|
-
tests("#list_load_balancer_nodes(#{@lb_id})").formats({'nodes' => [@node_format]}) do
|
21
|
-
HP[:lb].list_load_balancer_nodes(@lb_id).body
|
22
|
-
end
|
23
|
-
|
24
|
-
tests("#get_load_balancer_node(#{@lb_id}, #{@lb_node_id})").formats(@node_format) do
|
25
|
-
HP[:lb].get_load_balancer_node(@lb_id, @lb_node_id).body
|
26
|
-
end
|
27
|
-
|
28
|
-
tests("#update_load_balancer_node(#{@lb_id}, #{@lb_node_id}, 'DISABLED')").succeeds do
|
29
|
-
HP[:lb].update_load_balancer_node(@lb_id, @lb_node_id, 'DISABLED')
|
30
|
-
end
|
31
|
-
|
32
|
-
tests("#delete_load_balancer_node(#{@lb_id}, #{@lb_node_id})").succeeds do
|
33
|
-
HP[:lb].delete_load_balancer_node(@lb_id, @lb_node_id)
|
34
|
-
end
|
35
|
-
|
36
|
-
HP[:lb].delete_load_balancer(@lb_id)
|
37
|
-
|
38
|
-
end
|
39
|
-
|
40
|
-
tests('failure') do
|
41
|
-
tests('#list_node_balancer_nodes(0)').raises(Fog::HP::LB::NotFound) do
|
42
|
-
HP[:lb].list_load_balancer_nodes('0')
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
Shindo.tests("HP::LB | load balancers requests", ['hp', 'lb', 'load_balancer']) do
|
2
|
-
@lb_format = {
|
3
|
-
'id' => String,
|
4
|
-
'name' => String,
|
5
|
-
'protocol' => String,
|
6
|
-
'port' => String,
|
7
|
-
'algorithm' => String,
|
8
|
-
'status' => String,
|
9
|
-
'created' => String,
|
10
|
-
'updated' => String,
|
11
|
-
'nodes' => Array
|
12
|
-
}
|
13
|
-
|
14
|
-
tests('success') do
|
15
|
-
@lb_name = 'fog-lb'
|
16
|
-
@nodes = [{'address' => '15.185.1.1', 'port' => '80'}]
|
17
|
-
|
18
|
-
tests("#create_load_balancer(#{@lb_name}, #{@nodes})").formats(@lb_format) do
|
19
|
-
data = HP[:lb].create_load_balancer(@lb_name, @nodes).body
|
20
|
-
@lb_id = data['id']
|
21
|
-
data
|
22
|
-
end
|
23
|
-
|
24
|
-
tests('#list_load_balancers').formats({'loadBalancers' => [@lb_format]}) do
|
25
|
-
HP[:lb].list_load_balancers.body
|
26
|
-
end
|
27
|
-
|
28
|
-
tests("#get_load_balancer(#{@lb_id})").formats(@lb_format) do
|
29
|
-
HP[:lb].get_load_balancer(@lb_id).body
|
30
|
-
end
|
31
|
-
|
32
|
-
tests("#update_load_balancer(#{@lb_id}, {'name' => 'updated-fog-lb'})").returns('') do
|
33
|
-
HP[:lb].update_load_balancer(@lb_id, {'name' => 'updated-fog-lb'}).body
|
34
|
-
end
|
35
|
-
|
36
|
-
tests("#delete_load_balancer(#{@lb_id})").succeeds do
|
37
|
-
HP[:lb].delete_load_balancer(@lb_id)
|
38
|
-
end
|
39
|
-
|
40
|
-
end
|
41
|
-
|
42
|
-
tests('failure') do
|
43
|
-
tests("#get_load_balancer(0)").raises(Fog::HP::LB::NotFound) do
|
44
|
-
HP[:lb].get_load_balancer('0')
|
45
|
-
end
|
46
|
-
|
47
|
-
tests("#update_load_balancer(0, {'name' => 'updated-fog-lb'})").raises(Fog::HP::LB::NotFound) do
|
48
|
-
HP[:lb].update_load_balancer('0', {'name' => 'updated-fog-lb'})
|
49
|
-
end
|
50
|
-
|
51
|
-
tests("#delete_load_balancer(0)").raises(Fog::HP::LB::NotFound) do
|
52
|
-
HP[:lb].delete_load_balancer('0')
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
Shindo.tests("HP::LB | protocols requests", ['hp', 'lb', 'protocols']) do
|
2
|
-
@protocol_format = {
|
3
|
-
'name' => String,
|
4
|
-
'port' => Integer
|
5
|
-
}
|
6
|
-
|
7
|
-
tests('success') do
|
8
|
-
|
9
|
-
tests('#list_protocols').formats({'protocols' => [@protocol_format]}) do
|
10
|
-
HP[:lb].list_protocols.body
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
Shindo.tests("HP::LB | versions requests", ['hp', 'lb', 'versions']) do
|
2
|
-
@version_format = {
|
3
|
-
'id' => String,
|
4
|
-
'links' => [Hash],
|
5
|
-
'status' => String,
|
6
|
-
'updated' => String
|
7
|
-
}
|
8
|
-
|
9
|
-
tests('success') do
|
10
|
-
|
11
|
-
tests('#list_versions').formats({'versions' => [@version_format]}) do
|
12
|
-
HP[:lb].list_versions.body
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
Shindo.tests("HP::LB | virtual ips requests", ['hp', 'lb', 'virtual_ips']) do
|
2
|
-
@virtual_ips_format = {
|
3
|
-
'id' => String,
|
4
|
-
'address' => String,
|
5
|
-
'type' => String,
|
6
|
-
'ipVersion' => String
|
7
|
-
}
|
8
|
-
|
9
|
-
tests('success') do
|
10
|
-
@nodes = [{'address' => '15.185.1.1', 'port' => '80'}]
|
11
|
-
@virtual_ip = [{
|
12
|
-
'ipVersion' => 'IPV4',
|
13
|
-
'type' => 'PUBLIC',
|
14
|
-
'id' => '11111111',
|
15
|
-
'address' => '15.185.3.3'
|
16
|
-
}]
|
17
|
-
data = HP[:lb].create_load_balancer('rg-fog-lb3', @nodes, {'virtualIps' => @virtual_ip}).body
|
18
|
-
@lb_id = data['id']
|
19
|
-
|
20
|
-
tests('#list_load_balancer_virtual_ips').formats({'virtualIps' => [@virtual_ips_format]}) do
|
21
|
-
HP[:lb].list_load_balancer_virtual_ips(@lb_id).body
|
22
|
-
end
|
23
|
-
|
24
|
-
HP[:lb].delete_load_balancer(@lb_id)
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
tests('failure') do
|
29
|
-
tests('#list_load_balancer_virtual_ips(0)').raises(Fog::HP::LB::NotFound) do
|
30
|
-
HP[:lb].list_load_balancer_virtual_ips('0')
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
@@ -1,70 +0,0 @@
|
|
1
|
-
Shindo.tests('HP::Network | networking floating ip requests', ['hp', 'networking', 'floatingip']) do
|
2
|
-
|
3
|
-
@floating_ip_format = {
|
4
|
-
'id' => String,
|
5
|
-
'tenant_id' => String,
|
6
|
-
'floating_network_id' => String,
|
7
|
-
'router_id' => Fog::Nullable::String,
|
8
|
-
'fixed_ip_address' => Fog::Nullable::String,
|
9
|
-
'floating_ip_address' => String,
|
10
|
-
'port_id' => Fog::Nullable::String
|
11
|
-
}
|
12
|
-
|
13
|
-
@ext_network_id = HP[:network].list_networks({'router:external'=>true}).body['networks'][0]['id']
|
14
|
-
s_data = HP[:network].create_port(@ext_network_id, {:name => 'fog_port'}).body['port']
|
15
|
-
@port_id = s_data['id']
|
16
|
-
|
17
|
-
tests('success') do
|
18
|
-
|
19
|
-
@floating_ip_id = nil
|
20
|
-
|
21
|
-
tests("#create_floating_ip(#{@ext_network_id})").formats(@floating_ip_format) do
|
22
|
-
data = HP[:network].create_floating_ip(@ext_network_id).body['floatingip']
|
23
|
-
@floating_ip_id = data['id']
|
24
|
-
data
|
25
|
-
end
|
26
|
-
|
27
|
-
tests('#list_floating_ips').formats({'floatingips' => [@floating_ip_format]}) do
|
28
|
-
HP[:network].list_floating_ips.body
|
29
|
-
end
|
30
|
-
|
31
|
-
tests("#get_floating_ip(#{@floating_ip_id})").formats({'floatingip' => @floating_ip_format}) do
|
32
|
-
HP[:network].get_floating_ip(@floating_ip_id).body
|
33
|
-
end
|
34
|
-
|
35
|
-
tests("#associate_floating_ip(#{@floating_ip_id}, #{@port_id})").formats({'floatingip' => @floating_ip_format}) do
|
36
|
-
HP[:network].associate_floating_ip(@floating_ip_id, @port_id).body
|
37
|
-
end
|
38
|
-
|
39
|
-
tests("#disassociate_floating_ip(#{@floating_ip_id}, nil)").formats({'floatingip' => @floating_ip_format}) do
|
40
|
-
HP[:network].disassociate_floating_ip(@floating_ip_id, nil).body
|
41
|
-
end
|
42
|
-
|
43
|
-
tests("#delete_floating_ip(#{@floating_ip_id})").succeeds do
|
44
|
-
HP[:network].delete_floating_ip(@floating_ip_id)
|
45
|
-
end
|
46
|
-
|
47
|
-
end
|
48
|
-
|
49
|
-
tests('failure') do
|
50
|
-
tests('#get_floating_ip("0")').raises(Fog::HP::Network::NotFound) do
|
51
|
-
HP[:network].get_floating_ip(0)
|
52
|
-
end
|
53
|
-
|
54
|
-
tests("#associate_floating_ip('0', #{@port_id})").raises(Fog::HP::Network::NotFound) do
|
55
|
-
HP[:network].associate_floating_ip('0', @port_id)
|
56
|
-
end
|
57
|
-
|
58
|
-
tests('#disassociate_floating_ip("0")').raises(Fog::HP::Network::NotFound) do
|
59
|
-
HP[:network].disassociate_floating_ip("0")
|
60
|
-
end
|
61
|
-
|
62
|
-
tests('#delete_floating_ip("0")').raises(Fog::HP::Network::NotFound) do
|
63
|
-
HP[:network].delete_floating_ip("0")
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
# cleanup
|
68
|
-
HP[:network].delete_port(@port_id)
|
69
|
-
|
70
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
Shindo.tests('HP::Network | networking network requests', ['hp', 'networking', 'network']) do
|
2
|
-
|
3
|
-
@network_format = {
|
4
|
-
'id' => String,
|
5
|
-
'name' => Fog::Nullable::String,
|
6
|
-
'tenant_id' => String,
|
7
|
-
'status' => String,
|
8
|
-
'subnets' => Array,
|
9
|
-
'router:external' => Fog::Boolean,
|
10
|
-
'admin_state_up' => Fog::Boolean,
|
11
|
-
'shared' => Fog::Boolean
|
12
|
-
}
|
13
|
-
|
14
|
-
tests('success') do
|
15
|
-
|
16
|
-
@network_id = nil
|
17
|
-
|
18
|
-
tests('#create_network').formats(@network_format) do
|
19
|
-
attributes = {:name => 'my_network', :admin_state_up => true, :shared => false}
|
20
|
-
data = HP[:network].create_network(attributes).body['network']
|
21
|
-
@network_id = data['id']
|
22
|
-
data
|
23
|
-
end
|
24
|
-
|
25
|
-
tests('#list_networks').formats({'networks' => [@network_format]}) do
|
26
|
-
HP[:network].list_networks.body
|
27
|
-
end
|
28
|
-
|
29
|
-
tests("#get_network(#{@network_id})").formats({'network' => @network_format}) do
|
30
|
-
HP[:network].get_network(@network_id).body
|
31
|
-
end
|
32
|
-
|
33
|
-
tests("#update_network(#{@network_id})").formats({'network' => @network_format}) do
|
34
|
-
attributes = {:name => 'my_network_upd', :shared => false, :admin_state_up => true}
|
35
|
-
HP[:network].update_network(@network_id, attributes).body
|
36
|
-
end
|
37
|
-
|
38
|
-
tests("#delete_network(#{@network_id})").succeeds do
|
39
|
-
HP[:network].delete_network(@network_id)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
tests('failure') do
|
44
|
-
tests('#get_network(0)').raises(Fog::HP::Network::NotFound) do
|
45
|
-
HP[:network].get_network(0)
|
46
|
-
end
|
47
|
-
|
48
|
-
tests('#update_network(0)').raises(Fog::HP::Network::NotFound) do
|
49
|
-
HP[:network].update_network(0, {})
|
50
|
-
end
|
51
|
-
|
52
|
-
tests('#delete_network(0)').raises(Fog::HP::Network::NotFound) do
|
53
|
-
HP[:network].delete_network(0)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
end
|