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,71 +0,0 @@
|
|
1
|
-
Shindo.tests('HP::Network | networking port requests', ['hp', 'networking', 'port']) do
|
2
|
-
|
3
|
-
@port_format = {
|
4
|
-
'id' => String,
|
5
|
-
'name' => Fog::Nullable::String,
|
6
|
-
'network_id' => String,
|
7
|
-
'fixed_ips' => Array,
|
8
|
-
'mac_address' => String,
|
9
|
-
'status' => String,
|
10
|
-
'admin_state_up' => Fog::Boolean,
|
11
|
-
'binding:vif_type' => String,
|
12
|
-
'device_owner' => String,
|
13
|
-
'device_id' => String,
|
14
|
-
'security_groups' => Array,
|
15
|
-
'tenant_id' => String
|
16
|
-
}
|
17
|
-
|
18
|
-
n_data = HP[:network].create_network({:name => 'fog_network'}).body['network']
|
19
|
-
@network_id = n_data['id']
|
20
|
-
|
21
|
-
tests('success') do
|
22
|
-
|
23
|
-
@port_id = nil
|
24
|
-
|
25
|
-
tests('#create_port').formats(@port_format) do
|
26
|
-
attributes = {:name => 'myport', :fixed_ips => [],
|
27
|
-
:mac_address => 'fa:16:3e:71:26:c8', :admin_state_up => true,
|
28
|
-
:device_owner => '2222222', :device_id => '3333333', :tenant_id => '111111111'}
|
29
|
-
data = HP[:network].create_port(@network_id, attributes).body['port']
|
30
|
-
@port_id = data['id']
|
31
|
-
data
|
32
|
-
end
|
33
|
-
|
34
|
-
tests('#list_port').formats({'ports' => [@port_format]}) do
|
35
|
-
HP[:network].list_ports.body
|
36
|
-
end
|
37
|
-
|
38
|
-
tests("#get_port(#{@port_id})").formats({'port' => @port_format}) do
|
39
|
-
HP[:network].get_port(@port_id).body
|
40
|
-
end
|
41
|
-
|
42
|
-
tests("#update_port(#{@port_id})").formats({'port' => @port_format}) do
|
43
|
-
attributes = {:name => 'myport_upd', :fixed_ips => [],
|
44
|
-
:admin_state_up => true, :device_owner => 'device_owner',
|
45
|
-
:device_id => 'device_id'}
|
46
|
-
HP[:network].update_port(@port_id, attributes).body
|
47
|
-
end
|
48
|
-
|
49
|
-
tests("#delete_port(#{@port_id})").succeeds do
|
50
|
-
HP[:network].delete_port(@port_id)
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
tests('failure') do
|
55
|
-
tests('#get_port(0)').raises(Fog::HP::Network::NotFound) do
|
56
|
-
HP[:network].get_port(0)
|
57
|
-
end
|
58
|
-
|
59
|
-
tests('#update_port(0)').raises(Fog::HP::Network::NotFound) do
|
60
|
-
HP[:network].update_port(0, {})
|
61
|
-
end
|
62
|
-
|
63
|
-
tests('#delete_port(0)').raises(Fog::HP::Network::NotFound) do
|
64
|
-
HP[:network].delete_port(0)
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# cleanup
|
69
|
-
HP[:network].delete_network(@network_id)
|
70
|
-
|
71
|
-
end
|
@@ -1,108 +0,0 @@
|
|
1
|
-
Shindo.tests('HP::Network | networking router requests', ['hp', 'networking', 'router']) do
|
2
|
-
|
3
|
-
@router_format = {
|
4
|
-
'id' => String,
|
5
|
-
'name' => String,
|
6
|
-
'tenant_id' => String,
|
7
|
-
'status' => String,
|
8
|
-
'admin_state_up' => Fog::Boolean,
|
9
|
-
'external_gateway_info' => Fog::Nullable::Hash
|
10
|
-
}
|
11
|
-
|
12
|
-
@router_interface_format = {
|
13
|
-
'subnet_id' => String,
|
14
|
-
'port_id' => String
|
15
|
-
}
|
16
|
-
|
17
|
-
n_data = HP[:network].create_network({:name => 'fog_network'}).body['network']
|
18
|
-
@network_id = n_data['id']
|
19
|
-
|
20
|
-
p_data = HP[:network].create_port(@network_id, {:name => 'fog_port'}).body['port']
|
21
|
-
@port_id = p_data['id']
|
22
|
-
|
23
|
-
tests('success') do
|
24
|
-
|
25
|
-
@router_id = nil
|
26
|
-
|
27
|
-
tests('#create_router').formats(@router_format) do
|
28
|
-
attributes = {:name => 'my_router', :admin_state_up => true}
|
29
|
-
data = HP[:network].create_router(attributes).body['router']
|
30
|
-
@router_id = data['id']
|
31
|
-
data
|
32
|
-
end
|
33
|
-
|
34
|
-
tests('#list_routers').formats({'routers' => [@router_format]}) do
|
35
|
-
HP[:network].list_routers.body
|
36
|
-
end
|
37
|
-
|
38
|
-
tests("#get_router(#{@router_id})").formats({'router' => @router_format}) do
|
39
|
-
HP[:network].get_router(@router_id).body
|
40
|
-
end
|
41
|
-
|
42
|
-
tests("#update_router(#{@router_id})").formats({'router' => @router_format}) do
|
43
|
-
attributes = {
|
44
|
-
:name => 'my_router_upd',
|
45
|
-
:external_gateway_info => { :network_id => '11111111111' },
|
46
|
-
:admin_state_up => true
|
47
|
-
}
|
48
|
-
HP[:network].update_router(@router_id, attributes).body
|
49
|
-
end
|
50
|
-
|
51
|
-
tests("#add_router_interface(#{@router_id}, '1111111111', nil) - using subnet_id").formats(@router_interface_format) do
|
52
|
-
HP[:network].add_router_interface(@router_id, '1111111111', nil).body
|
53
|
-
end
|
54
|
-
|
55
|
-
#tests("#remove_router_interface(#{@router_id}, '1111111111', nil) - using subnet_id").formats('') do
|
56
|
-
# HP[:network].remove_router_interface(@router_id, '1111111111', nil).body
|
57
|
-
#end
|
58
|
-
|
59
|
-
tests("#add_router_interface(#{@router_id}, nil, #{@port_id}) - using port_id").formats(@router_interface_format) do
|
60
|
-
HP[:network].add_router_interface(@router_id, nil, @port_id).body
|
61
|
-
end
|
62
|
-
|
63
|
-
tests("#add_router_interface(#{@router_id}, '1111111111', '2222222222') - using port_id and subnet_id").raises(ArgumentError) do
|
64
|
-
HP[:network].add_router_interface(@router_id, '1111111111', '2222222222').body
|
65
|
-
end
|
66
|
-
|
67
|
-
tests("#remove_router_interface(#{@router_id}, nil, #{@port_id}) - using port_id").formats('') do
|
68
|
-
HP[:network].remove_router_interface(@router_id, nil, @port_id).body
|
69
|
-
end
|
70
|
-
|
71
|
-
tests("#remove_router_interface(#{@router_id}, '1111111111', '2222222222') - using port_id and subnet_id").raises(ArgumentError) do
|
72
|
-
HP[:network].remove_router_interface(@router_id, '1111111111', '2222222222').body
|
73
|
-
end
|
74
|
-
|
75
|
-
tests("#delete_router(#{@router_id})").succeeds do
|
76
|
-
HP[:network].delete_router(@router_id)
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
tests('failure') do
|
81
|
-
tests('#get_router(0)').raises(Fog::HP::Network::NotFound) do
|
82
|
-
HP[:network].get_router(0)
|
83
|
-
end
|
84
|
-
|
85
|
-
tests('#update_router(0)').raises(Fog::HP::Network::NotFound) do
|
86
|
-
HP[:network].update_router(0, {})
|
87
|
-
end
|
88
|
-
|
89
|
-
tests('#delete_router(0)').raises(Fog::HP::Network::NotFound) do
|
90
|
-
HP[:network].delete_router(0)
|
91
|
-
end
|
92
|
-
|
93
|
-
tests("#add_router_interface(0, '1111111111')").raises(Fog::HP::Network::NotFound) do
|
94
|
-
HP[:network].add_router_interface(0, '1111111111').body
|
95
|
-
end
|
96
|
-
|
97
|
-
tests("#remove_router_interface(0, '1111111111')").raises(Fog::HP::Network::NotFound) do
|
98
|
-
HP[:network].remove_router_interface(0, '1111111111').body
|
99
|
-
end
|
100
|
-
|
101
|
-
end
|
102
|
-
|
103
|
-
# cleanup
|
104
|
-
# remove_router_interface method removes the port
|
105
|
-
#HP[:network].delete_port(@port_id)
|
106
|
-
HP[:network].delete_network(@network_id)
|
107
|
-
|
108
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
Shindo.tests('HP::Network | networking security group rule requests', ['hp', 'networking', 'securitygroup']) do
|
2
|
-
|
3
|
-
@security_group_rule_format = {
|
4
|
-
'id' => String,
|
5
|
-
'remote_group_id' => Fog::Nullable::String,
|
6
|
-
'direction' => String,
|
7
|
-
'remote_ip_prefix' => Fog::Nullable::String,
|
8
|
-
'protocol' => Fog::Nullable::String,
|
9
|
-
'ethertype' => String,
|
10
|
-
'port_range_max' => Fog::Nullable::Integer,
|
11
|
-
'port_range_min' => Fog::Nullable::Integer,
|
12
|
-
'security_group_id' => String,
|
13
|
-
'tenant_id' => String
|
14
|
-
}
|
15
|
-
|
16
|
-
tests('success') do
|
17
|
-
|
18
|
-
attributes = {:name => 'my_security_group', :description => 'tests group'}
|
19
|
-
data = HP[:network].create_security_group(attributes).body['security_group']
|
20
|
-
@sec_group_id = data['id']
|
21
|
-
|
22
|
-
@sec_group_rule_id = nil
|
23
|
-
|
24
|
-
tests("#create_security_group_rule(#{@sec_group_id}, 'ingress', attributes)").formats(@security_group_rule_format) do
|
25
|
-
attributes = {:remote_ip_prefix => '0.0.0.0/0', :protocol => 'tcp', :port_range_min => 22, :port_range_max => 22}
|
26
|
-
data = HP[:network].create_security_group_rule(@sec_group_id, 'ingress', attributes).body['security_group_rule']
|
27
|
-
@sec_group_rule_id = data['id']
|
28
|
-
data
|
29
|
-
end
|
30
|
-
|
31
|
-
tests("#get_security_group_rule('#{@sec_group_rule_id}')").formats(@security_group_rule_format) do
|
32
|
-
HP[:network].get_security_group_rule(@sec_group_rule_id).body['security_group_rule']
|
33
|
-
end
|
34
|
-
|
35
|
-
tests("#list_security_group_rules").formats('security_group_rules' => [@security_group_rule_format]) do
|
36
|
-
HP[:network].list_security_group_rules.body
|
37
|
-
end
|
38
|
-
|
39
|
-
tests("#delete_security_group_rule('#{@sec_group_rule_id}')").succeeds do
|
40
|
-
HP[:network].delete_security_group_rule(@sec_group_rule_id)
|
41
|
-
end
|
42
|
-
|
43
|
-
end
|
44
|
-
|
45
|
-
tests('failure') do
|
46
|
-
|
47
|
-
tests('#get_security_group_rule(0)').raises(Fog::HP::Network::NotFound) do
|
48
|
-
HP[:network].get_security_group_rule(0)
|
49
|
-
end
|
50
|
-
|
51
|
-
tests('#delete_security_group_rule(0)').raises(Fog::HP::Network::NotFound) do
|
52
|
-
HP[:network].delete_security_group_rule(0)
|
53
|
-
end
|
54
|
-
|
55
|
-
end
|
56
|
-
|
57
|
-
HP[:network].delete_security_group(@sec_group_id)
|
58
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
Shindo.tests('HP::Network | networking security group requests', ['hp', 'networking', 'securitygroup']) do
|
2
|
-
|
3
|
-
@security_group_format = {
|
4
|
-
'id' => String,
|
5
|
-
'name' => String,
|
6
|
-
'description' => String,
|
7
|
-
'tenant_id' => String,
|
8
|
-
'security_group_rules' => [Hash]
|
9
|
-
}
|
10
|
-
|
11
|
-
tests('success') do
|
12
|
-
|
13
|
-
@sec_group_id = nil
|
14
|
-
|
15
|
-
tests("#create_security_group('fog_security_group', 'tests group')").formats(@security_group_format) do
|
16
|
-
attributes = {:name => 'fog_security_group', :description => 'tests group'}
|
17
|
-
data = HP[:network].create_security_group(attributes).body['security_group']
|
18
|
-
@sec_group_id = data['id']
|
19
|
-
data
|
20
|
-
end
|
21
|
-
|
22
|
-
tests("#get_security_group('#{@sec_group_id}')").formats(@security_group_format) do
|
23
|
-
HP[:network].get_security_group(@sec_group_id).body['security_group']
|
24
|
-
end
|
25
|
-
|
26
|
-
tests("#list_security_groups").formats('security_groups' => [@security_group_format]) do
|
27
|
-
HP[:network].list_security_groups.body
|
28
|
-
end
|
29
|
-
|
30
|
-
tests("#delete_security_group('#{@sec_group_id}')").succeeds do
|
31
|
-
HP[:network].delete_security_group(@sec_group_id)
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
|
36
|
-
tests('failure') do
|
37
|
-
|
38
|
-
tests("#get_security_group(0)").raises(Fog::HP::Network::NotFound) do
|
39
|
-
HP[:network].get_security_group(0)
|
40
|
-
end
|
41
|
-
|
42
|
-
tests("#delete_security_group(0)").raises(Fog::HP::Network::NotFound) do
|
43
|
-
HP[:network].delete_security_group(0)
|
44
|
-
end
|
45
|
-
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|
@@ -1,71 +0,0 @@
|
|
1
|
-
Shindo.tests('HP::Network | networking subnet requests', ['hp', 'networking', 'subnet']) do
|
2
|
-
|
3
|
-
@subnet_format = {
|
4
|
-
'id' => String,
|
5
|
-
'name' => Fog::Nullable::String,
|
6
|
-
'network_id' => String,
|
7
|
-
'cidr' => String,
|
8
|
-
'ip_version' => Integer,
|
9
|
-
'gateway_ip' => Fog::Nullable::String,
|
10
|
-
'allocation_pools' => Fog::Nullable::Array,
|
11
|
-
'dns_nameservers' => Fog::Nullable::Array,
|
12
|
-
'host_routes' => Fog::Nullable::Array,
|
13
|
-
'enable_dhcp' => Fog::Boolean,
|
14
|
-
'tenant_id' => String,
|
15
|
-
}
|
16
|
-
|
17
|
-
n_data = HP[:network].create_network({:name => 'fog_network'}).body['network']
|
18
|
-
@network_id = n_data['id']
|
19
|
-
|
20
|
-
tests('success') do
|
21
|
-
|
22
|
-
@subnet_id = nil
|
23
|
-
|
24
|
-
tests('#create_subnet').formats(@subnet_format) do
|
25
|
-
attributes = {:name => 'mysubnet', :gateway_ip => '10.0.3.1',
|
26
|
-
:allocation_pools => [], :dns_nameservers => [],
|
27
|
-
:host_routes => [], :enable_dhcp => true, :tenant_id => '111111111'}
|
28
|
-
data = HP[:network].create_subnet(@network_id, '10.0.3.0/24', 4, attributes).body['subnet']
|
29
|
-
@subnet_id = data['id']
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
tests('#list_subnets').formats({'subnets' => [@subnet_format]}) do
|
34
|
-
HP[:network].list_subnets.body
|
35
|
-
end
|
36
|
-
|
37
|
-
tests("#get_subnet(#{@subnet_id})").formats({'subnet' => @subnet_format}) do
|
38
|
-
HP[:network].get_subnet(@subnet_id).body
|
39
|
-
end
|
40
|
-
|
41
|
-
tests("#update_subnet(#{@subnet_id})").formats({'subnet' => @subnet_format}) do
|
42
|
-
attributes = {:name => 'mysubnet_upd',:gateway_ip => '10.0.3.1',
|
43
|
-
:dns_nameservers => [], :host_routes => [],
|
44
|
-
:enable_dhcp => true}
|
45
|
-
HP[:network].update_subnet(@subnet_id, attributes).body
|
46
|
-
end
|
47
|
-
|
48
|
-
tests("#delete_subnet(#{@subnet_id})").succeeds do
|
49
|
-
HP[:network].delete_subnet(@subnet_id)
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
53
|
-
|
54
|
-
tests('failure') do
|
55
|
-
tests('#get_subnet(0)').raises(Fog::HP::Network::NotFound) do
|
56
|
-
HP[:network].get_subnet(0)
|
57
|
-
end
|
58
|
-
|
59
|
-
tests('#update_subnet(0)').raises(Fog::HP::Network::NotFound) do
|
60
|
-
HP[:network].update_subnet(0, {})
|
61
|
-
end
|
62
|
-
|
63
|
-
tests('#delete_subnet(0)').raises(Fog::HP::Network::NotFound) do
|
64
|
-
HP[:network].delete_subnet(0)
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# cleanup
|
69
|
-
HP[:network].delete_network(@network_id)
|
70
|
-
|
71
|
-
end
|
@@ -1,86 +0,0 @@
|
|
1
|
-
Shindo.tests("Fog::Storage[:hp] | container requests", ['hp']) do
|
2
|
-
|
3
|
-
@container_format = [String]
|
4
|
-
|
5
|
-
@containers_format = [{
|
6
|
-
'bytes' => Integer,
|
7
|
-
'count' => Integer,
|
8
|
-
'name' => String
|
9
|
-
}]
|
10
|
-
|
11
|
-
tests('success') do
|
12
|
-
|
13
|
-
tests("#put_container('fogcontainertests')").succeeds do
|
14
|
-
Fog::Storage[:hp].put_container('fogcontainertests')
|
15
|
-
end
|
16
|
-
|
17
|
-
tests("#post_container('fogcontainertests', {'X-Container-Meta-Foo' => 'foometa'})").succeeds do
|
18
|
-
Fog::Storage[:hp].post_container('fogcontainertests', {'X-Container-Meta-Foo' => 'foometa'})
|
19
|
-
end
|
20
|
-
|
21
|
-
tests("#get_container('fogcontainertests')").formats(@container_format) do
|
22
|
-
Fog::Storage[:hp].get_container('fogcontainertests').body
|
23
|
-
end
|
24
|
-
|
25
|
-
tests("#get_containers").formats(@containers_format) do
|
26
|
-
Fog::Storage[:hp].get_containers.body
|
27
|
-
end
|
28
|
-
|
29
|
-
tests("#head_container('fogcontainertests')").succeeds do
|
30
|
-
Fog::Storage[:hp].head_container('fogcontainertests')
|
31
|
-
end
|
32
|
-
|
33
|
-
tests("#head_containers").succeeds do
|
34
|
-
Fog::Storage[:hp].head_containers
|
35
|
-
end
|
36
|
-
|
37
|
-
tests("#delete_container('fogcontainertests')").succeeds do
|
38
|
-
Fog::Storage[:hp].delete_container('fogcontainertests')
|
39
|
-
end
|
40
|
-
|
41
|
-
tests("#put_container('fogacltests', {'X-Container-Read' => 'private'})").succeeds do
|
42
|
-
Fog::Storage[:hp].put_container('fogacltests', {'X-Container-Read' => 'private'})
|
43
|
-
end
|
44
|
-
Fog::Storage[:hp].delete_container('fogacltests')
|
45
|
-
|
46
|
-
tests("#put_container('fogacltests', {'X-Container-Read' => 'public-read'})").succeeds do
|
47
|
-
Fog::Storage[:hp].put_container('fogacltests', {'X-Container-Read' => 'public-read'})
|
48
|
-
end
|
49
|
-
Fog::Storage[:hp].delete_container('fogacltests')
|
50
|
-
|
51
|
-
tests("#put_container('fogacltests', {'X-Container-Read' => 'invalid'})").succeeds do
|
52
|
-
Fog::Storage[:hp].put_container('fogacltests', {'X-Container-Read' => 'invalid'})
|
53
|
-
end
|
54
|
-
Fog::Storage[:hp].delete_container('fogacltests')
|
55
|
-
|
56
|
-
end
|
57
|
-
|
58
|
-
tests('failure') do
|
59
|
-
|
60
|
-
tests("#get_container('fognoncontainer')").raises(Fog::Storage::HP::NotFound) do
|
61
|
-
Fog::Storage[:hp].get_container('fognoncontainer')
|
62
|
-
end
|
63
|
-
|
64
|
-
tests("#post_container('fognoncontainer', {})").raises(Fog::Storage::HP::NotFound) do
|
65
|
-
Fog::Storage[:hp].post_container('fognoncontainer', {})
|
66
|
-
end
|
67
|
-
|
68
|
-
tests("#head_container('fognoncontainer')").raises(Fog::Storage::HP::NotFound) do
|
69
|
-
Fog::Storage[:hp].head_container('fognoncontainer')
|
70
|
-
end
|
71
|
-
|
72
|
-
tests("#delete_container('fognoncontainer')").raises(Fog::Storage::HP::NotFound) do
|
73
|
-
Fog::Storage[:hp].delete_container('fognoncontainer')
|
74
|
-
end
|
75
|
-
|
76
|
-
@container = Fog::Storage[:hp].directories.create(:key => 'fognonempty')
|
77
|
-
@file = @container.files.create(:key => 'foo', :body => 'bar')
|
78
|
-
tests("#delete_container('fognonempty')").raises(Excon::Errors::Conflict) do
|
79
|
-
Fog::Storage[:hp].delete_container('fognonempty')
|
80
|
-
end
|
81
|
-
@file.destroy
|
82
|
-
@container.destroy
|
83
|
-
|
84
|
-
end
|
85
|
-
|
86
|
-
end
|