fog 1.25.0 → 1.26.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 +2 -0
- data/CHANGELOG.md +113 -0
- data/Rakefile +4 -1
- data/fog.gemspec +9 -5
- data/lib/fog.rb +2 -0
- data/lib/fog/aws/models/auto_scaling/configuration.rb +1 -0
- data/lib/fog/aws/models/storage/file.rb +5 -3
- data/lib/fog/aws/parsers/sts/assume_role_with_saml.rb +26 -0
- data/lib/fog/aws/requests/auto_scaling/create_launch_configuration.rb +3 -0
- data/lib/fog/aws/requests/auto_scaling/describe_launch_configurations.rb +1 -0
- data/lib/fog/aws/requests/compute/describe_network_acls.rb +1 -2
- data/lib/fog/aws/requests/dns/create_health_check.rb +12 -12
- data/lib/fog/aws/requests/storage/put_bucket_logging.rb +14 -13
- data/lib/fog/aws/requests/sts/assume_role_with_saml.rb +44 -0
- data/lib/fog/aws/signaturev4.rb +3 -3
- data/lib/fog/aws/storage.rb +140 -34
- data/lib/fog/aws/sts.rb +34 -3
- data/lib/fog/bin.rb +1 -1
- data/lib/fog/core/deprecated/connection.rb +2 -2
- data/lib/fog/digitalocean/models/compute/server.rb +27 -2
- data/lib/fog/digitalocean/requests/compute/create_server.rb +2 -0
- data/lib/fog/fogdocker/models/compute/server.rb +4 -0
- data/lib/fog/fogdocker/requests/compute/container_get.rb +1 -0
- data/lib/fog/google/models/storage/files.rb +5 -1
- data/lib/fog/hp/core.rb +1 -0
- data/lib/fog/ninefold/storage.rb +1 -1
- data/lib/fog/opennebula/compute.rb +1 -1
- data/lib/fog/openstack/examples/compute/block_device_mapping_v2.rb +30 -0
- data/lib/fog/openstack/identity.rb +4 -2
- data/lib/fog/openstack/models/compute/server.rb +5 -3
- data/lib/fog/openstack/models/image/images.rb +2 -2
- data/lib/fog/openstack/models/network/floating_ips.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_server.rb +23 -11
- data/lib/fog/openstack/requests/image/list_public_images_detailed.rb +7 -5
- data/lib/fog/openstack/requests/storage/head_containers.rb +1 -1
- data/lib/fog/rackspace.rb +1 -0
- data/lib/fog/rackspace/core.rb +1 -0
- data/lib/fog/rackspace/docs/orchestration.md +356 -0
- data/lib/fog/rackspace/models/orchestration/event.rb +18 -0
- data/lib/fog/rackspace/models/orchestration/events.rb +28 -0
- data/lib/fog/rackspace/models/orchestration/resource.rb +30 -0
- data/lib/fog/rackspace/models/orchestration/resource_schemas.rb +16 -0
- data/lib/fog/rackspace/models/orchestration/resources.rb +35 -0
- data/lib/fog/rackspace/models/orchestration/stack.rb +48 -0
- data/lib/fog/rackspace/models/orchestration/stacks.rb +40 -0
- data/lib/fog/rackspace/models/orchestration/template.rb +13 -0
- data/lib/fog/rackspace/models/orchestration/templates.rb +31 -0
- data/lib/fog/rackspace/orchestration.rb +227 -0
- data/lib/fog/rackspace/requests/orchestration/abandon_stack.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/build_info.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/create_stack.rb +16 -0
- data/lib/fog/rackspace/requests/orchestration/delete_stack.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/get_stack_template.rb +20 -0
- data/lib/fog/rackspace/requests/orchestration/list_resource_events.rb +19 -0
- data/lib/fog/rackspace/requests/orchestration/list_resource_types.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/list_resources.rb +19 -0
- data/lib/fog/rackspace/requests/orchestration/list_stack_data.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/list_stack_events.rb +19 -0
- data/lib/fog/rackspace/requests/orchestration/preview_stack.rb +16 -0
- data/lib/fog/rackspace/requests/orchestration/show_event_details.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_data.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_metadata.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_schema.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_template.rb +20 -0
- data/lib/fog/rackspace/requests/orchestration/show_stack_details.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/update_stack.rb +16 -0
- data/lib/fog/rackspace/requests/orchestration/validate_template.rb +16 -0
- data/lib/fog/version.rb +1 -1
- data/lib/tasks/changelog_task.rb +2 -0
- data/spec/fog/bin/atmos_spec.rb +10 -0
- data/spec/fog/bin/aws_spec.rb +10 -0
- data/spec/fog/bin/baremetalcloud_spec.rb +10 -0
- data/spec/fog/bin/bluebox_spec.rb +10 -0
- data/spec/fog/bin/brightbox_spec.rb +31 -0
- data/spec/fog/bin/clodo_spec.rb +10 -0
- data/spec/fog/bin/cloudsigma_spec.rb +10 -0
- data/spec/fog/bin/cloudstack_spec.rb +10 -0
- data/spec/fog/bin/digitalocean_spec.rb +10 -0
- data/spec/fog/bin/dnsimple_spec.rb +10 -0
- data/spec/fog/bin/dnsmadeeasy_spec.rb +10 -0
- data/spec/fog/bin/dreamhost_spec.rb +10 -0
- data/spec/fog/bin/dynect_spec.rb +10 -0
- data/spec/fog/bin/ecloud_spec.rb +10 -0
- data/spec/fog/bin/fogdocker_spec.rb +10 -0
- data/spec/fog/bin/glesys_spec.rb +10 -0
- data/spec/fog/bin/gogrid_spec.rb +10 -0
- data/spec/fog/bin/google_spec.rb +10 -0
- data/spec/fog/bin/hp_spec.rb +10 -0
- data/spec/fog/bin/ibm_spec.rb +10 -0
- data/spec/fog/bin/internetarchive_spec.rb +10 -0
- data/spec/fog/bin/joyent_spec.rb +10 -0
- data/spec/fog/bin/libvirt_spec.rb +10 -0
- data/spec/fog/bin/linode_spec.rb +10 -0
- data/spec/fog/bin/local_spec.rb +10 -0
- data/spec/fog/bin/ninefold_spec.rb +10 -0
- data/spec/fog/bin/opennebula_spec.rb +10 -0
- data/spec/fog/bin/openstack_spec.rb +10 -0
- data/spec/fog/bin/openvz_spec.rb +10 -0
- data/spec/fog/bin/ovirt_spec.rb +10 -0
- data/spec/fog/bin/profitbricks_spec.rb +10 -0
- data/spec/fog/bin/rackspace_spec.rb +10 -0
- data/spec/fog/bin/rage4_spec.rb +10 -0
- data/spec/fog/bin/riakcs_spec.rb +10 -0
- data/spec/fog/bin/sakuracloud_spec.rb +10 -0
- data/spec/fog/bin/serverlove_spec.rb +10 -0
- data/spec/fog/bin/softlayer_spec.rb +10 -0
- data/spec/fog/bin/stormondemand_spec.rb +10 -0
- data/spec/fog/bin/vcloud_spec.rb +10 -0
- data/spec/fog/bin/vclouddirector_spec.rb +10 -0
- data/spec/fog/bin/vmfusion_spec.rb +10 -0
- data/spec/fog/bin/voxel_spec.rb +10 -0
- data/spec/fog/bin/vsphere_spec.rb +10 -0
- data/spec/fog/bin/xenserver_spec.rb +10 -0
- data/spec/fog/bin/zerigo_spec.rb +10 -0
- data/spec/fog/bin_spec.rb +165 -0
- data/spec/fog/compute_spec.rb +8 -0
- data/spec/helpers/bin.rb +30 -0
- data/tests/aws/requests/sts/assume_role_with_saml_tests.rb +18 -0
- data/tests/compute/helper.rb +0 -23
- data/tests/compute/models/flavors_tests.rb +1 -1
- data/tests/compute/models/server_tests.rb +0 -3
- data/tests/compute/models/servers_tests.rb +0 -3
- data/tests/fogdocker/models/compute/server_tests.rb +2 -1
- data/tests/helpers/mock_helper.rb +0 -6
- data/tests/openstack/requests/compute/helper.rb +8 -3
- data/tests/openstack/requests/compute/server_tests.rb +75 -21
- metadata +184 -491
- data/lib/fog/atmos.rb +0 -1
- data/lib/fog/atmos/core.rb +0 -9
- data/lib/fog/atmos/models/storage/directories.rb +0 -44
- data/lib/fog/atmos/models/storage/directory.rb +0 -48
- data/lib/fog/atmos/models/storage/file.rb +0 -108
- data/lib/fog/atmos/models/storage/files.rb +0 -74
- data/lib/fog/atmos/requests/storage/delete_namespace.rb +0 -17
- data/lib/fog/atmos/requests/storage/get_namespace.rb +0 -23
- data/lib/fog/atmos/requests/storage/head_namespace.rb +0 -18
- data/lib/fog/atmos/requests/storage/post_namespace.rb +0 -18
- data/lib/fog/atmos/requests/storage/put_namespace.rb +0 -18
- data/lib/fog/atmos/storage.rb +0 -184
- data/lib/fog/bin/ecloud.rb +0 -33
- data/lib/fog/bin/stormondemand.rb +0 -29
- data/lib/fog/ecloud.rb +0 -1
- data/lib/fog/ecloud/collection.rb +0 -24
- data/lib/fog/ecloud/compute.rb +0 -824
- data/lib/fog/ecloud/core.rb +0 -31
- data/lib/fog/ecloud/generate_collection.rb +0 -127
- data/lib/fog/ecloud/ipaddr.rb +0 -5
- data/lib/fog/ecloud/mock_data_classes.rb +0 -766
- data/lib/fog/ecloud/model.rb +0 -20
- data/lib/fog/ecloud/models/compute/admin_organization.rb +0 -43
- data/lib/fog/ecloud/models/compute/admin_organizations.rb +0 -21
- data/lib/fog/ecloud/models/compute/api_key.rb +0 -20
- data/lib/fog/ecloud/models/compute/api_keys.rb +0 -26
- data/lib/fog/ecloud/models/compute/association.rb +0 -23
- data/lib/fog/ecloud/models/compute/associations.rb +0 -34
- data/lib/fog/ecloud/models/compute/authentication_level.rb +0 -21
- data/lib/fog/ecloud/models/compute/authentication_levels.rb +0 -26
- data/lib/fog/ecloud/models/compute/backup_internet_service.rb +0 -45
- data/lib/fog/ecloud/models/compute/backup_internet_services.rb +0 -41
- data/lib/fog/ecloud/models/compute/catalog.rb +0 -39
- data/lib/fog/ecloud/models/compute/catalog_configuration.rb +0 -22
- data/lib/fog/ecloud/models/compute/catalog_configurations.rb +0 -26
- data/lib/fog/ecloud/models/compute/catalog_item.rb +0 -24
- data/lib/fog/ecloud/models/compute/compute_pool.rb +0 -70
- data/lib/fog/ecloud/models/compute/compute_pools.rb +0 -33
- data/lib/fog/ecloud/models/compute/cpu_usage_detail.rb +0 -16
- data/lib/fog/ecloud/models/compute/cpu_usage_detail_summary.rb +0 -26
- data/lib/fog/ecloud/models/compute/detached_disk.rb +0 -27
- data/lib/fog/ecloud/models/compute/detached_disks.rb +0 -26
- data/lib/fog/ecloud/models/compute/environment.rb +0 -111
- data/lib/fog/ecloud/models/compute/environments.rb +0 -39
- data/lib/fog/ecloud/models/compute/firewall_acl.rb +0 -27
- data/lib/fog/ecloud/models/compute/firewall_acls.rb +0 -27
- data/lib/fog/ecloud/models/compute/group.rb +0 -41
- data/lib/fog/ecloud/models/compute/groups.rb +0 -38
- data/lib/fog/ecloud/models/compute/guest_process.rb +0 -15
- data/lib/fog/ecloud/models/compute/guest_processes.rb +0 -26
- data/lib/fog/ecloud/models/compute/hardware_configuration.rb +0 -18
- data/lib/fog/ecloud/models/compute/hardware_configurations.rb +0 -26
- data/lib/fog/ecloud/models/compute/internet_service.rb +0 -97
- data/lib/fog/ecloud/models/compute/internet_services.rb +0 -44
- data/lib/fog/ecloud/models/compute/ip_address.rb +0 -39
- data/lib/fog/ecloud/models/compute/ip_addresses.rb +0 -32
- data/lib/fog/ecloud/models/compute/layout.rb +0 -20
- data/lib/fog/ecloud/models/compute/layouts.rb +0 -26
- data/lib/fog/ecloud/models/compute/location.rb +0 -22
- data/lib/fog/ecloud/models/compute/locations.rb +0 -28
- data/lib/fog/ecloud/models/compute/login_banner.rb +0 -16
- data/lib/fog/ecloud/models/compute/login_banners.rb +0 -26
- data/lib/fog/ecloud/models/compute/memory_usage_detail.rb +0 -16
- data/lib/fog/ecloud/models/compute/memory_usage_detail_summary.rb +0 -26
- data/lib/fog/ecloud/models/compute/monitor.rb +0 -46
- data/lib/fog/ecloud/models/compute/monitors.rb +0 -30
- data/lib/fog/ecloud/models/compute/network.rb +0 -46
- data/lib/fog/ecloud/models/compute/networks.rb +0 -32
- data/lib/fog/ecloud/models/compute/node.rb +0 -45
- data/lib/fog/ecloud/models/compute/nodes.rb +0 -42
- data/lib/fog/ecloud/models/compute/operating_system.rb +0 -16
- data/lib/fog/ecloud/models/compute/operating_system_families.rb +0 -26
- data/lib/fog/ecloud/models/compute/operating_system_family.rb +0 -21
- data/lib/fog/ecloud/models/compute/operating_systems.rb +0 -25
- data/lib/fog/ecloud/models/compute/organization.rb +0 -78
- data/lib/fog/ecloud/models/compute/organizations.rb +0 -38
- data/lib/fog/ecloud/models/compute/password_complexity_rule.rb +0 -49
- data/lib/fog/ecloud/models/compute/password_complexity_rules.rb +0 -26
- data/lib/fog/ecloud/models/compute/physical_device.rb +0 -21
- data/lib/fog/ecloud/models/compute/physical_devices.rb +0 -26
- data/lib/fog/ecloud/models/compute/public_ip.rb +0 -26
- data/lib/fog/ecloud/models/compute/public_ips.rb +0 -31
- data/lib/fog/ecloud/models/compute/rnat.rb +0 -27
- data/lib/fog/ecloud/models/compute/rnats.rb +0 -26
- data/lib/fog/ecloud/models/compute/role.rb +0 -23
- data/lib/fog/ecloud/models/compute/roles.rb +0 -36
- data/lib/fog/ecloud/models/compute/row.rb +0 -56
- data/lib/fog/ecloud/models/compute/rows.rb +0 -39
- data/lib/fog/ecloud/models/compute/server.rb +0 -323
- data/lib/fog/ecloud/models/compute/server_configuration_option.rb +0 -16
- data/lib/fog/ecloud/models/compute/server_configuration_options.rb +0 -26
- data/lib/fog/ecloud/models/compute/servers.rb +0 -65
- data/lib/fog/ecloud/models/compute/ssh_key.rb +0 -19
- data/lib/fog/ecloud/models/compute/ssh_keys.rb +0 -26
- data/lib/fog/ecloud/models/compute/storage_usage_detail.rb +0 -16
- data/lib/fog/ecloud/models/compute/storage_usage_detail_summary.rb +0 -26
- data/lib/fog/ecloud/models/compute/support_ticket.rb +0 -28
- data/lib/fog/ecloud/models/compute/support_tickets.rb +0 -26
- data/lib/fog/ecloud/models/compute/tag.rb +0 -13
- data/lib/fog/ecloud/models/compute/tags.rb +0 -26
- data/lib/fog/ecloud/models/compute/task.rb +0 -23
- data/lib/fog/ecloud/models/compute/tasks.rb +0 -29
- data/lib/fog/ecloud/models/compute/template.rb +0 -23
- data/lib/fog/ecloud/models/compute/templates.rb +0 -41
- data/lib/fog/ecloud/models/compute/trusted_network_group.rb +0 -33
- data/lib/fog/ecloud/models/compute/trusted_network_groups.rb +0 -27
- data/lib/fog/ecloud/models/compute/user.rb +0 -35
- data/lib/fog/ecloud/models/compute/users.rb +0 -26
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ip.rb +0 -32
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ips.rb +0 -26
- data/lib/fog/ecloud/requests/compute/admin_disable_support_access.rb +0 -9
- data/lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb +0 -32
- data/lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb +0 -30
- data/lib/fog/ecloud/requests/compute/admin_edit_password_complexity_rules.rb +0 -72
- data/lib/fog/ecloud/requests/compute/admin_enable_support_access.rb +0 -9
- data/lib/fog/ecloud/requests/compute/backup_internet_service_create.rb +0 -47
- data/lib/fog/ecloud/requests/compute/backup_internet_service_delete.rb +0 -9
- data/lib/fog/ecloud/requests/compute/backup_internet_service_edit.rb +0 -47
- data/lib/fog/ecloud/requests/compute/compute_pool_edit.rb +0 -35
- data/lib/fog/ecloud/requests/compute/firewall_acls_create.rb +0 -78
- data/lib/fog/ecloud/requests/compute/firewall_acls_delete.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_admin_organization.rb +0 -23
- data/lib/fog/ecloud/requests/compute/get_api_key.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_api_keys.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_association.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_associations.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_authentication_level.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_authentication_levels.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_backup_internet_service.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_backup_internet_services.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_catalog.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_catalog_configuration.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_catalog_configurations.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_catalog_item.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_compute_pool.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_compute_pools.rb +0 -31
- data/lib/fog/ecloud/requests/compute/get_cpu_usage_detail.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_cpu_usage_detail_summary.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_detached_disk.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_detached_disks.rb +0 -31
- data/lib/fog/ecloud/requests/compute/get_environment.rb +0 -31
- data/lib/fog/ecloud/requests/compute/get_environments.rb +0 -0
- data/lib/fog/ecloud/requests/compute/get_firewall_acl.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_firewall_acls.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_group.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_groups.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_guest_process.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_guest_processes.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_hardware_configuration.rb +0 -29
- data/lib/fog/ecloud/requests/compute/get_hardware_configurations.rb +0 -14
- data/lib/fog/ecloud/requests/compute/get_internet_service.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_internet_services.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_ip_address.rb +0 -20
- data/lib/fog/ecloud/requests/compute/get_layout.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_layouts.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_location.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_locations.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_login_banner.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_login_banners.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_memory_usage_detail.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_memory_usage_detail_summary.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_monitor.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_monitors.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_network.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_network_summary.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_networks.rb +0 -30
- data/lib/fog/ecloud/requests/compute/get_node.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_nodes.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_operating_system.rb +0 -24
- data/lib/fog/ecloud/requests/compute/get_operating_system_families.rb +0 -30
- data/lib/fog/ecloud/requests/compute/get_organization.rb +0 -24
- data/lib/fog/ecloud/requests/compute/get_organizations.rb +0 -23
- data/lib/fog/ecloud/requests/compute/get_password_complexity_rule.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_password_complexity_rules.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_physical_device.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_physical_devices.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_process.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_processes.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_public_ip.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_public_ips.rb +0 -31
- data/lib/fog/ecloud/requests/compute/get_rnat.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_rnats.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_role.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_roles.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_row.rb +0 -18
- data/lib/fog/ecloud/requests/compute/get_rows.rb +0 -12
- data/lib/fog/ecloud/requests/compute/get_server.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_server_configuration_option.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_server_configuration_options.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_servers.rb +0 -42
- data/lib/fog/ecloud/requests/compute/get_ssh_key.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_ssh_keys.rb +0 -30
- data/lib/fog/ecloud/requests/compute/get_storage_usage_detail.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_storage_usage_detail_summary.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_support_ticket.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_support_tickets.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_tag.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_tags.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_task.rb +0 -13
- data/lib/fog/ecloud/requests/compute/get_tasks.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_template.rb +0 -21
- data/lib/fog/ecloud/requests/compute/get_templates.rb +0 -48
- data/lib/fog/ecloud/requests/compute/get_trusted_network_group.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_trusted_network_groups.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_user.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_users.rb +0 -9
- data/lib/fog/ecloud/requests/compute/get_virtual_machine_assigned_ips.rb +0 -42
- data/lib/fog/ecloud/requests/compute/groups_create.rb +0 -31
- data/lib/fog/ecloud/requests/compute/groups_delete.rb +0 -26
- data/lib/fog/ecloud/requests/compute/groups_edit.rb +0 -29
- data/lib/fog/ecloud/requests/compute/groups_movedown.rb +0 -9
- data/lib/fog/ecloud/requests/compute/groups_moveup.rb +0 -9
- data/lib/fog/ecloud/requests/compute/internet_service_create.rb +0 -102
- data/lib/fog/ecloud/requests/compute/internet_service_delete.rb +0 -33
- data/lib/fog/ecloud/requests/compute/internet_service_edit.rb +0 -58
- data/lib/fog/ecloud/requests/compute/monitors_create_default.rb +0 -9
- data/lib/fog/ecloud/requests/compute/monitors_create_ecv.rb +0 -40
- data/lib/fog/ecloud/requests/compute/monitors_create_http.rb +0 -44
- data/lib/fog/ecloud/requests/compute/monitors_create_loopback.rb +0 -9
- data/lib/fog/ecloud/requests/compute/monitors_create_ping.rb +0 -35
- data/lib/fog/ecloud/requests/compute/monitors_disable.rb +0 -9
- data/lib/fog/ecloud/requests/compute/monitors_edit_ecv.rb +0 -40
- data/lib/fog/ecloud/requests/compute/monitors_edit_http.rb +0 -44
- data/lib/fog/ecloud/requests/compute/monitors_edit_ping.rb +0 -35
- data/lib/fog/ecloud/requests/compute/monitors_enable.rb +0 -9
- data/lib/fog/ecloud/requests/compute/node_service_create.rb +0 -93
- data/lib/fog/ecloud/requests/compute/node_service_delete.rb +0 -33
- data/lib/fog/ecloud/requests/compute/node_service_edit.rb +0 -39
- data/lib/fog/ecloud/requests/compute/power_off.rb +0 -9
- data/lib/fog/ecloud/requests/compute/power_on.rb +0 -9
- data/lib/fog/ecloud/requests/compute/power_reset.rb +0 -9
- data/lib/fog/ecloud/requests/compute/power_shutdown.rb +0 -9
- data/lib/fog/ecloud/requests/compute/public_ip_activate.rb +0 -9
- data/lib/fog/ecloud/requests/compute/rnat_associations_create_device.rb +0 -32
- data/lib/fog/ecloud/requests/compute/rnat_associations_delete.rb +0 -9
- data/lib/fog/ecloud/requests/compute/rnat_associations_edit_network.rb +0 -31
- data/lib/fog/ecloud/requests/compute/rows_create.rb +0 -29
- data/lib/fog/ecloud/requests/compute/rows_delete.rb +0 -21
- data/lib/fog/ecloud/requests/compute/rows_edit.rb +0 -29
- data/lib/fog/ecloud/requests/compute/rows_movedown.rb +0 -9
- data/lib/fog/ecloud/requests/compute/rows_moveup.rb +0 -9
- data/lib/fog/ecloud/requests/compute/trusted_network_groups_create.rb +0 -51
- data/lib/fog/ecloud/requests/compute/trusted_network_groups_delete.rb +0 -9
- data/lib/fog/ecloud/requests/compute/trusted_network_groups_edit.rb +0 -51
- data/lib/fog/ecloud/requests/compute/virtual_machine_attach_disk.rb +0 -61
- data/lib/fog/ecloud/requests/compute/virtual_machine_copy.rb +0 -116
- data/lib/fog/ecloud/requests/compute/virtual_machine_copy_identical.rb +0 -43
- data/lib/fog/ecloud/requests/compute/virtual_machine_create_from_template.rb +0 -244
- data/lib/fog/ecloud/requests/compute/virtual_machine_delete.rb +0 -46
- data/lib/fog/ecloud/requests/compute/virtual_machine_detach_disk.rb +0 -70
- data/lib/fog/ecloud/requests/compute/virtual_machine_edit.rb +0 -45
- data/lib/fog/ecloud/requests/compute/virtual_machine_edit_assigned_ips.rb +0 -80
- data/lib/fog/ecloud/requests/compute/virtual_machine_edit_hardware_configuration.rb +0 -75
- data/lib/fog/ecloud/requests/compute/virtual_machine_import.rb +0 -179
- data/lib/fog/ecloud/requests/compute/virtual_machine_upload_file.rb +0 -28
- data/lib/fog/storm_on_demand.rb +0 -9
- data/lib/fog/storm_on_demand/README.md +0 -49
- data/lib/fog/storm_on_demand/account.rb +0 -51
- data/lib/fog/storm_on_demand/billing.rb +0 -55
- data/lib/fog/storm_on_demand/compute.rb +0 -105
- data/lib/fog/storm_on_demand/core.rb +0 -18
- data/lib/fog/storm_on_demand/dns.rb +0 -79
- data/lib/fog/storm_on_demand/models/account/token.rb +0 -20
- data/lib/fog/storm_on_demand/models/account/tokens.rb +0 -17
- data/lib/fog/storm_on_demand/models/billing/invoice.rb +0 -25
- data/lib/fog/storm_on_demand/models/billing/invoices.rb +0 -27
- data/lib/fog/storm_on_demand/models/billing/payment.rb +0 -13
- data/lib/fog/storm_on_demand/models/billing/payments.rb +0 -17
- data/lib/fog/storm_on_demand/models/compute/config.rb +0 -37
- data/lib/fog/storm_on_demand/models/compute/configs.rb +0 -22
- data/lib/fog/storm_on_demand/models/compute/image.rb +0 -37
- data/lib/fog/storm_on_demand/models/compute/images.rb +0 -27
- data/lib/fog/storm_on_demand/models/compute/notification.rb +0 -31
- data/lib/fog/storm_on_demand/models/compute/notifications.rb +0 -27
- data/lib/fog/storm_on_demand/models/compute/product.rb +0 -37
- data/lib/fog/storm_on_demand/models/compute/products.rb +0 -25
- data/lib/fog/storm_on_demand/models/compute/server.rb +0 -91
- data/lib/fog/storm_on_demand/models/compute/servers.rb +0 -27
- data/lib/fog/storm_on_demand/models/compute/template.rb +0 -26
- data/lib/fog/storm_on_demand/models/compute/templates.rb +0 -22
- data/lib/fog/storm_on_demand/models/dns/domain.rb +0 -31
- data/lib/fog/storm_on_demand/models/dns/domains.rb +0 -17
- data/lib/fog/storm_on_demand/models/dns/record.rb +0 -61
- data/lib/fog/storm_on_demand/models/dns/records.rb +0 -27
- data/lib/fog/storm_on_demand/models/dns/reverse.rb +0 -13
- data/lib/fog/storm_on_demand/models/dns/reverses.rb +0 -20
- data/lib/fog/storm_on_demand/models/dns/zone.rb +0 -38
- data/lib/fog/storm_on_demand/models/dns/zones.rb +0 -27
- data/lib/fog/storm_on_demand/models/monitoring/bandwidth.rb +0 -20
- data/lib/fog/storm_on_demand/models/monitoring/bandwidths.rb +0 -21
- data/lib/fog/storm_on_demand/models/monitoring/load.rb +0 -20
- data/lib/fog/storm_on_demand/models/monitoring/loads.rb +0 -21
- data/lib/fog/storm_on_demand/models/monitoring/monitor_service.rb +0 -19
- data/lib/fog/storm_on_demand/models/monitoring/monitor_services.rb +0 -30
- data/lib/fog/storm_on_demand/models/network/balancer.rb +0 -56
- data/lib/fog/storm_on_demand/models/network/balancers.rb +0 -40
- data/lib/fog/storm_on_demand/models/network/firewall.rb +0 -18
- data/lib/fog/storm_on_demand/models/network/firewalls.rb +0 -31
- data/lib/fog/storm_on_demand/models/network/network_ip.rb +0 -21
- data/lib/fog/storm_on_demand/models/network/network_ips.rb +0 -46
- data/lib/fog/storm_on_demand/models/network/pool.rb +0 -30
- data/lib/fog/storm_on_demand/models/network/pools.rb +0 -26
- data/lib/fog/storm_on_demand/models/network/private_ip.rb +0 -15
- data/lib/fog/storm_on_demand/models/network/private_ips.rb +0 -36
- data/lib/fog/storm_on_demand/models/network/ruleset.rb +0 -25
- data/lib/fog/storm_on_demand/models/network/rulesets.rb +0 -27
- data/lib/fog/storm_on_demand/models/network/zone.rb +0 -25
- data/lib/fog/storm_on_demand/models/network/zones.rb +0 -22
- data/lib/fog/storm_on_demand/models/storage/cluster.rb +0 -17
- data/lib/fog/storm_on_demand/models/storage/clusters.rb +0 -17
- data/lib/fog/storm_on_demand/models/storage/volume.rb +0 -51
- data/lib/fog/storm_on_demand/models/storage/volumes.rb +0 -27
- data/lib/fog/storm_on_demand/models/support/alert.rb +0 -16
- data/lib/fog/storm_on_demand/models/support/alerts.rb +0 -17
- data/lib/fog/storm_on_demand/models/support/ticket.rb +0 -70
- data/lib/fog/storm_on_demand/models/support/tickets.rb +0 -30
- data/lib/fog/storm_on_demand/models/vpn/vpn.rb +0 -28
- data/lib/fog/storm_on_demand/models/vpn/vpns.rb +0 -26
- data/lib/fog/storm_on_demand/monitoring.rb +0 -61
- data/lib/fog/storm_on_demand/network.rb +0 -107
- data/lib/fog/storm_on_demand/requests/account/create_token.rb +0 -14
- data/lib/fog/storm_on_demand/requests/account/expire_token.rb +0 -14
- data/lib/fog/storm_on_demand/requests/billing/get_invoice.rb +0 -14
- data/lib/fog/storm_on_demand/requests/billing/list_invoices.rb +0 -14
- data/lib/fog/storm_on_demand/requests/billing/make_payment.rb +0 -14
- data/lib/fog/storm_on_demand/requests/billing/next_invoice.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/clone_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/create_image.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/create_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/current_notifications.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/delete_image.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/delete_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_config_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_image_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_notification.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_product.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_product_code.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_product_price.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_product_starting_price.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/get_template_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_configs.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_images.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_notifications.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_products.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_servers.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/list_templates.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/reboot_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/resize_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/resolve_notification.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/restore_image.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/restore_template.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/server_history.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/server_status.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/shutdown_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/start_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/update_image.rb +0 -14
- data/lib/fog/storm_on_demand/requests/compute/update_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/check_zone_delegation.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/create_record.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/create_record_region.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/create_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/delete_record.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/delete_record_region.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/delete_reverse.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/delete_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/get_record.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/get_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/list_domains.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/list_records.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/list_zones.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/renew_domain.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/update_record.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/update_record_region.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/update_reverse.rb +0 -14
- data/lib/fog/storm_on_demand/requests/dns/update_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_graph.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_stats.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_load_graph.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_load_stats.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_service.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/get_service_status.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/monitoring_ips.rb +0 -14
- data/lib/fog/storm_on_demand/requests/monitoring/update_service.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/add_balancer_node.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/add_balancer_service.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/add_ip_to_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/attach_server_to_private_ip.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/check_balancer_available.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/check_server_attached.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/create_balancer.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/create_pool.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/create_ruleset.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/delete_balancer.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/delete_pool.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/detach_server_from_private_ip.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_assignments.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_balancer_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_balancer_possible_nodes.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_balancer_strategies.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_firewall.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_firewall_basic_options.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_firewall_rules.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_ip_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_pool.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_private_ip.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_ruleset.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/get_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_balancers.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_ip_public_accounts.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_network_ips.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_network_public_ips.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_private_ips.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_rulesets.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/list_zones.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/remove_balancer_node.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/remove_balancer_service.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/remove_ip_from_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/request_new_ips.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/set_default_zone.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/update_balancer.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/update_firewall.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/update_pool.rb +0 -14
- data/lib/fog/storm_on_demand/requests/network/update_ruleset.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/attach_volume_to_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/create_volume.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/delete_volume.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/detach_volume_from_server.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/get_volume.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/list_clusters.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/list_volumes.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/resize_volume.rb +0 -14
- data/lib/fog/storm_on_demand/requests/storage/update_volume.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/add_feedback.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/add_transaction_feedback.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/authenticate.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/close_ticket.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/create_ticket.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/get_active_alert.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/get_ticket_details.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/list_ticket_types.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/list_tickets.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/reopen_ticket.rb +0 -14
- data/lib/fog/storm_on_demand/requests/support/reply_ticket.rb +0 -14
- data/lib/fog/storm_on_demand/requests/vpn/create_vpn.rb +0 -14
- data/lib/fog/storm_on_demand/requests/vpn/get_vpn.rb +0 -14
- data/lib/fog/storm_on_demand/requests/vpn/list_vpn_users.rb +0 -14
- data/lib/fog/storm_on_demand/requests/vpn/update_vpn.rb +0 -14
- data/lib/fog/storm_on_demand/shared.rb +0 -53
- data/lib/fog/storm_on_demand/storage.rb +0 -63
- data/lib/fog/storm_on_demand/support.rb +0 -61
- data/lib/fog/storm_on_demand/vpn.rb +0 -53
- data/tests/atmos/models/storage/file_update_tests.rb +0 -19
- data/tests/atmos/models/storage/nested_directories_tests.rb +0 -23
- data/tests/ecloud/compute/models/admin_organization_tests.rb +0 -16
- data/tests/ecloud/compute/models/compute_pool_tests.rb +0 -17
- data/tests/ecloud/compute/models/detached_disk_tests.rb +0 -26
- data/tests/ecloud/compute/models/environment_tests.rb +0 -23
- data/tests/ecloud/compute/models/internet_service_tests.rb +0 -28
- data/tests/ecloud/compute/models/ip_address_tests.rb +0 -19
- data/tests/ecloud/compute/models/network_tests.rb +0 -17
- data/tests/ecloud/compute/models/operating_system_families_tests.rb +0 -13
- data/tests/ecloud/compute/models/operating_system_tests.rb +0 -22
- data/tests/ecloud/compute/models/organization_tests.rb +0 -21
- data/tests/ecloud/compute/models/public_ip_tests.rb +0 -19
- data/tests/ecloud/compute/models/server_tests.rb +0 -144
- data/tests/ecloud/compute/models/ssh_key_tests.rb +0 -19
- data/tests/ecloud/compute/models/template_tests.rb +0 -20
- data/tests/storm_on_demand/requests/compute/server_tests.rb +0 -64
@@ -0,0 +1,165 @@
|
|
1
|
+
require "minitest/autorun"
|
2
|
+
require "fog"
|
3
|
+
require "fog/bin"
|
4
|
+
|
5
|
+
describe Fog do
|
6
|
+
describe "#providers" do
|
7
|
+
it "includes existing providers" do
|
8
|
+
assert_equal "Atmos", Fog.providers[:atmos]
|
9
|
+
assert_equal "AWS", Fog.providers[:aws]
|
10
|
+
assert_equal "BareMetalCloud", Fog.providers[:baremetalcloud]
|
11
|
+
assert_equal "Bluebox", Fog.providers[:bluebox]
|
12
|
+
assert_equal "Brightbox", Fog.providers[:brightbox]
|
13
|
+
assert_equal "Clodo", Fog.providers[:clodo]
|
14
|
+
assert_equal "CloudSigma", Fog.providers[:cloudsigma]
|
15
|
+
assert_equal "Cloudstack", Fog.providers[:cloudstack]
|
16
|
+
assert_equal "DigitalOcean", Fog.providers[:digitalocean]
|
17
|
+
assert_equal "DNSimple", Fog.providers[:dnsimple]
|
18
|
+
assert_equal "DNSMadeEasy", Fog.providers[:dnsmadeeasy]
|
19
|
+
assert_equal "Dreamhost", Fog.providers[:dreamhost]
|
20
|
+
assert_equal "Dynect", Fog.providers[:dynect]
|
21
|
+
assert_equal "Ecloud", Fog.providers[:ecloud]
|
22
|
+
assert_equal "Fogdocker", Fog.providers[:fogdocker]
|
23
|
+
assert_equal "Glesys", Fog.providers[:glesys]
|
24
|
+
assert_equal "GoGrid", Fog.providers[:gogrid]
|
25
|
+
assert_equal "Google", Fog.providers[:google]
|
26
|
+
assert_equal "HP", Fog.providers[:hp]
|
27
|
+
assert_equal "IBM", Fog.providers[:ibm]
|
28
|
+
assert_equal "InternetArchive", Fog.providers[:internetarchive]
|
29
|
+
assert_equal "Joyent", Fog.providers[:joyent]
|
30
|
+
assert_equal "Libvirt", Fog.providers[:libvirt]
|
31
|
+
assert_equal "Linode", Fog.providers[:linode]
|
32
|
+
assert_equal "Local", Fog.providers[:local]
|
33
|
+
assert_equal "Ninefold", Fog.providers[:ninefold]
|
34
|
+
assert_equal "OpenNebula", Fog.providers[:opennebula]
|
35
|
+
assert_equal "OpenStack", Fog.providers[:openstack]
|
36
|
+
assert_equal "Openvz", Fog.providers[:openvz]
|
37
|
+
assert_equal "Ovirt", Fog.providers[:ovirt]
|
38
|
+
assert_equal "ProfitBricks", Fog.providers[:profitbricks]
|
39
|
+
assert_equal "Rackspace", Fog.providers[:rackspace]
|
40
|
+
assert_equal "Rage4", Fog.providers[:rage4]
|
41
|
+
assert_equal "RiakCS", Fog.providers[:riakcs]
|
42
|
+
assert_equal "SakuraCloud", Fog.providers[:sakuracloud]
|
43
|
+
assert_equal "Serverlove", Fog.providers[:serverlove]
|
44
|
+
assert_equal "Softlayer", Fog.providers[:softlayer]
|
45
|
+
assert_equal "StormOnDemand", Fog.providers[:stormondemand]
|
46
|
+
assert_equal "Vcloud", Fog.providers[:vcloud]
|
47
|
+
assert_equal "VcloudDirector", Fog.providers[:vclouddirector]
|
48
|
+
assert_equal "Vmfusion", Fog.providers[:vmfusion]
|
49
|
+
assert_equal "Voxel", Fog.providers[:voxel]
|
50
|
+
assert_equal "Vsphere", Fog.providers[:vsphere]
|
51
|
+
assert_equal "XenServer", Fog.providers[:xenserver]
|
52
|
+
assert_equal "Zerigo", Fog.providers[:zerigo]
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe "#registered_providers" do
|
57
|
+
it "includes existing providers" do
|
58
|
+
assert_includes Fog.registered_providers, "Atmos"
|
59
|
+
assert_includes Fog.registered_providers, "AWS"
|
60
|
+
assert_includes Fog.registered_providers, "BareMetalCloud"
|
61
|
+
assert_includes Fog.registered_providers, "Bluebox"
|
62
|
+
assert_includes Fog.registered_providers, "Brightbox"
|
63
|
+
assert_includes Fog.registered_providers, "Clodo"
|
64
|
+
assert_includes Fog.registered_providers, "CloudSigma"
|
65
|
+
assert_includes Fog.registered_providers, "Cloudstack"
|
66
|
+
assert_includes Fog.registered_providers, "DigitalOcean"
|
67
|
+
assert_includes Fog.registered_providers, "DNSimple"
|
68
|
+
assert_includes Fog.registered_providers, "DNSMadeEasy"
|
69
|
+
assert_includes Fog.registered_providers, "Dreamhost"
|
70
|
+
assert_includes Fog.registered_providers, "Dynect"
|
71
|
+
assert_includes Fog.registered_providers, "Ecloud"
|
72
|
+
assert_includes Fog.registered_providers, "Fogdocker"
|
73
|
+
assert_includes Fog.registered_providers, "Glesys"
|
74
|
+
assert_includes Fog.registered_providers, "GoGrid"
|
75
|
+
assert_includes Fog.registered_providers, "Google"
|
76
|
+
assert_includes Fog.registered_providers, "HP"
|
77
|
+
assert_includes Fog.registered_providers, "IBM"
|
78
|
+
assert_includes Fog.registered_providers, "InternetArchive"
|
79
|
+
assert_includes Fog.registered_providers, "Joyent"
|
80
|
+
assert_includes Fog.registered_providers, "Libvirt"
|
81
|
+
assert_includes Fog.registered_providers, "Linode"
|
82
|
+
assert_includes Fog.registered_providers, "Local"
|
83
|
+
assert_includes Fog.registered_providers, "Ninefold"
|
84
|
+
assert_includes Fog.registered_providers, "OpenNebula"
|
85
|
+
assert_includes Fog.registered_providers, "OpenStack"
|
86
|
+
assert_includes Fog.registered_providers, "Openvz"
|
87
|
+
assert_includes Fog.registered_providers, "Ovirt"
|
88
|
+
assert_includes Fog.registered_providers, "ProfitBricks"
|
89
|
+
assert_includes Fog.registered_providers, "Rackspace"
|
90
|
+
assert_includes Fog.registered_providers, "Rage4"
|
91
|
+
assert_includes Fog.registered_providers, "RiakCS"
|
92
|
+
assert_includes Fog.registered_providers, "SakuraCloud"
|
93
|
+
assert_includes Fog.registered_providers, "Serverlove"
|
94
|
+
assert_includes Fog.registered_providers, "Softlayer"
|
95
|
+
assert_includes Fog.registered_providers, "StormOnDemand"
|
96
|
+
assert_includes Fog.registered_providers, "Vcloud"
|
97
|
+
assert_includes Fog.registered_providers, "VcloudDirector"
|
98
|
+
assert_includes Fog.registered_providers, "Vmfusion"
|
99
|
+
assert_includes Fog.registered_providers, "Voxel"
|
100
|
+
assert_includes Fog.registered_providers, "Vsphere"
|
101
|
+
assert_includes Fog.registered_providers, "XenServer"
|
102
|
+
assert_includes Fog.registered_providers, "Zerigo"
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
describe "#available_providers" do
|
107
|
+
it "includes existing providers" do
|
108
|
+
assert_includes Fog.available_providers, "Atmos" if Atmos.available?
|
109
|
+
assert_includes Fog.available_providers, "AWS" if AWS.available?
|
110
|
+
assert_includes Fog.available_providers, "BareMetalCloud" if BareMetalCloud.available?
|
111
|
+
assert_includes Fog.available_providers, "Bluebox" if Bluebox.available?
|
112
|
+
assert_includes Fog.available_providers, "Brightbox" if Brightbox.available?
|
113
|
+
assert_includes Fog.available_providers, "Clodo" if Clodo.available?
|
114
|
+
assert_includes Fog.available_providers, "CloudSigma" if CloudSigma.available?
|
115
|
+
assert_includes Fog.available_providers, "Cloudstack" if Cloudstack.available?
|
116
|
+
assert_includes Fog.available_providers, "DigitalOcean" if DigitalOcean.available?
|
117
|
+
assert_includes Fog.available_providers, "DNSimple" if DNSimple.available?
|
118
|
+
assert_includes Fog.available_providers, "DNSMadeEasy" if DNSMadeEasy.available?
|
119
|
+
assert_includes Fog.available_providers, "Dreamhost" if Dreamhost.available?
|
120
|
+
assert_includes Fog.available_providers, "Dynect" if Dynect.available?
|
121
|
+
assert_includes Fog.available_providers, "Ecloud" if Ecloud.available?
|
122
|
+
assert_includes Fog.available_providers, "Fogdocker" if Fogdocker.available?
|
123
|
+
assert_includes Fog.available_providers, "Glesys" if Glesys.available?
|
124
|
+
assert_includes Fog.available_providers, "GoGrid" if GoGrid.available?
|
125
|
+
assert_includes Fog.available_providers, "Google" if Google.available?
|
126
|
+
assert_includes Fog.available_providers, "HP" if HP.available?
|
127
|
+
assert_includes Fog.available_providers, "IBM" if IBM.available?
|
128
|
+
assert_includes Fog.available_providers, "InternetArchive" if InternetArchive.available?
|
129
|
+
assert_includes Fog.available_providers, "Joyent" if Joyent.available?
|
130
|
+
assert_includes Fog.available_providers, "Libvirt" if Libvirt.available?
|
131
|
+
assert_includes Fog.available_providers, "Linode" if Linode.available?
|
132
|
+
assert_includes Fog.available_providers, "Local" if Local.available?
|
133
|
+
assert_includes Fog.available_providers, "Ninefold" if Ninefold.available?
|
134
|
+
assert_includes Fog.available_providers, "OpenNebula" if OpenNebula.available?
|
135
|
+
assert_includes Fog.available_providers, "OpenStack" if OpenStack.available?
|
136
|
+
assert_includes Fog.available_providers, "Openvz" if Openvz.available?
|
137
|
+
assert_includes Fog.available_providers, "Ovirt" if Ovirt.available?
|
138
|
+
assert_includes Fog.available_providers, "ProfitBricks" if ProfitBricks.available?
|
139
|
+
assert_includes Fog.available_providers, "Rackspace" if Rackspace.available?
|
140
|
+
assert_includes Fog.available_providers, "Rage4" if Rage4.available?
|
141
|
+
assert_includes Fog.available_providers, "RiakCS" if RiakCS.available?
|
142
|
+
assert_includes Fog.available_providers, "SakuraCloud" if SakuraCloud.available?
|
143
|
+
assert_includes Fog.available_providers, "Serverlove" if Serverlove.available?
|
144
|
+
assert_includes Fog.available_providers, "Softlayer" if Softlayer.available?
|
145
|
+
assert_includes Fog.available_providers, "StormOnDemand" if StormOnDemand.available?
|
146
|
+
assert_includes Fog.available_providers, "Vcloud" if Vcloud.available?
|
147
|
+
assert_includes Fog.available_providers, "VcloudDirector" if VcloudDirector.available?
|
148
|
+
assert_includes Fog.available_providers, "Vmfusion" if Vmfusion.available?
|
149
|
+
assert_includes Fog.available_providers, "Voxel" if Voxel.available?
|
150
|
+
assert_includes Fog.available_providers, "Vsphere" if Vsphere.available?
|
151
|
+
assert_includes Fog.available_providers, "XenServer" if XenServer.available?
|
152
|
+
assert_includes Fog.available_providers, "Zerigo" if Zerigo.available?
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
describe "#services" do
|
157
|
+
it "returns Hash of services" do
|
158
|
+
assert_kind_of Hash, Fog.services
|
159
|
+
assert_includes Fog.services, :cdn
|
160
|
+
assert_includes Fog.services, :compute
|
161
|
+
assert_includes Fog.services, :dns
|
162
|
+
assert_includes Fog.services, :storage
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
data/spec/helpers/bin.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
module Fog
|
2
|
+
module BinSpec
|
3
|
+
extend Minitest::Spec::DSL
|
4
|
+
|
5
|
+
it "responds to available?" do
|
6
|
+
assert_respond_to subject, :available?
|
7
|
+
end
|
8
|
+
|
9
|
+
it "responds to class_for" do
|
10
|
+
assert_respond_to subject, :class_for
|
11
|
+
end
|
12
|
+
|
13
|
+
it "#class_for raises ArgumentError for unknown services" do
|
14
|
+
assert_raises(ArgumentError) { subject.class_for(:unknown) }
|
15
|
+
end
|
16
|
+
|
17
|
+
it "responds to collections" do
|
18
|
+
skip if subject == ::Google
|
19
|
+
assert_respond_to subject, :collections
|
20
|
+
end
|
21
|
+
|
22
|
+
it "responds to []" do
|
23
|
+
assert_respond_to subject, :[]
|
24
|
+
end
|
25
|
+
|
26
|
+
it "responds to services" do
|
27
|
+
assert_respond_to subject, :services
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Shindo.tests('AWS::STS | assume role with SAML', ['aws']) do
|
2
|
+
|
3
|
+
@policy = {"Statement" => [{"Effect" => "Allow", "Action" => "*", "Resource" => "*"}]}
|
4
|
+
|
5
|
+
@response_format = {
|
6
|
+
'SessionToken' => String,
|
7
|
+
'SecretAccessKey' => String,
|
8
|
+
'Expiration' => String,
|
9
|
+
'AccessKeyId' => String,
|
10
|
+
'Arn' => String,
|
11
|
+
'RequestId' => String
|
12
|
+
}
|
13
|
+
|
14
|
+
tests("#assume_role_with_saml('role_arn', 'principal_arn', 'saml_assertion', #{@policy.inspect}, 900)").formats(@response_format) do
|
15
|
+
pending if Fog.mocking?
|
16
|
+
Fog::AWS[:sts].assume_role_with_saml("role_arn","principal_arn","saml_assertion", @policy, 900).body
|
17
|
+
end
|
18
|
+
end
|
data/tests/compute/helper.rb
CHANGED
@@ -19,29 +19,6 @@ def compute_providers
|
|
19
19
|
},
|
20
20
|
:mocked => false
|
21
21
|
},
|
22
|
-
:ecloud => {
|
23
|
-
:server_attributes => {
|
24
|
-
:name => "VM4",
|
25
|
-
:row => "Layout Row 1",
|
26
|
-
:group => "Layout Group 1",
|
27
|
-
:catalog_network_name => "bridged",
|
28
|
-
:description => "blarg",
|
29
|
-
:operating_system => {
|
30
|
-
:name => "Red Hat Enterprise Linux 5 (64-bit)",
|
31
|
-
:href => "/cloudapi/ecloud/operatingsystems/rhel5_64guest/computepools/963",
|
32
|
-
},
|
33
|
-
:organization_uri => 'organizations/2'
|
34
|
-
}.tap do |hash|
|
35
|
-
[:template_href, :network_uri,
|
36
|
-
:environment_name, :organization_uri].each do |k|
|
37
|
-
key = "ecloud_#{k}".to_sym
|
38
|
-
if Fog.credentials[key]
|
39
|
-
hash[k]= Fog.credentials[key]
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end,
|
43
|
-
:mocked => true,
|
44
|
-
},
|
45
22
|
:cloudstack => {
|
46
23
|
:provider_attributes => {
|
47
24
|
:cloudstack_host => 'http://host.foo'
|
@@ -13,9 +13,6 @@ if Fog.mock?
|
|
13
13
|
:aws_secret_access_key => 'aws_secret_access_key',
|
14
14
|
:ia_access_key_id => 'aws_access_key_id',
|
15
15
|
:ia_secret_access_key => 'aws_secret_access_key',
|
16
|
-
:atmos_storage_token => 'atmos_token',
|
17
|
-
:atmos_storage_secret => 'atmos_secret',
|
18
|
-
:atmos_storage_endpoint => 'http://atmos.is.cool:1000/test1.0',
|
19
16
|
:bluebox_api_key => 'bluebox_api_key',
|
20
17
|
:bluebox_customer_id => 'bluebox_customer_id',
|
21
18
|
:brightbox_client_id => 'brightbox_client_id',
|
@@ -34,9 +31,6 @@ if Fog.mock?
|
|
34
31
|
:dnsimple_password => 'dnsimple_password',
|
35
32
|
:dnsmadeeasy_api_key => 'dnsmadeeasy_api_key',
|
36
33
|
:dnsmadeeasy_secret_key => 'dnsmadeeasy_secret_key',
|
37
|
-
:ecloud_username => 'ecloud_username',
|
38
|
-
:ecloud_password => 'ecloud_password',
|
39
|
-
:ecloud_versions_uri => 'http://ecloud.versions.uri',
|
40
34
|
:glesys_username => 'glesys_username',
|
41
35
|
:glesys_api_key => 'glesys_api_key',
|
42
36
|
:go_grid_api_key => 'go_grid_api_key',
|
@@ -10,16 +10,22 @@ class OpenStack
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
+
def compute
|
14
|
+
Fog::Compute[:openstack]
|
15
|
+
end
|
16
|
+
|
13
17
|
def get_flavor_ref
|
14
|
-
compute = Fog::Compute[:openstack]
|
15
18
|
ENV['OPENSTACK_FLAVOR_REF'] || compute.list_flavors.body['flavors'].first['id']
|
16
19
|
end
|
17
20
|
|
18
21
|
def get_image_ref
|
19
|
-
compute = Fog::Compute[:openstack]
|
20
22
|
ENV['OPENSTACK_IMAGE_REF'] || compute.list_images.body['images'].first['id']
|
21
23
|
end
|
22
24
|
|
25
|
+
def get_volume_ref
|
26
|
+
ENV['OPENSTACK_VOLUME_REF'] || compute.list_volumes.body['volumes'].first['id']
|
27
|
+
end
|
28
|
+
|
23
29
|
def get_flavor_ref_resize
|
24
30
|
# by default we simply add one to the default flavor ref
|
25
31
|
ENV['OPENSTACK_FLAVOR_REF_RESIZE'] || (get_flavor_ref.to_i + 1).to_s
|
@@ -31,6 +37,5 @@ def set_password_enabled
|
|
31
37
|
end
|
32
38
|
|
33
39
|
def get_security_group_ref
|
34
|
-
compute = Fog::Compute[:openstack]
|
35
40
|
ENV['OPENSTACK_SECURITY_GROUP_REF'] || compute.list_security_groups.body['security_groups'].first['name']
|
36
41
|
end
|
@@ -1,24 +1,25 @@
|
|
1
1
|
Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
2
2
|
|
3
|
-
@
|
4
|
-
'id'
|
5
|
-
'addresses'
|
6
|
-
'flavor'
|
7
|
-
'hostId'
|
8
|
-
'
|
9
|
-
'
|
10
|
-
'
|
11
|
-
'
|
12
|
-
'
|
13
|
-
'
|
14
|
-
'
|
15
|
-
'
|
16
|
-
'
|
17
|
-
'
|
18
|
-
'user_id' => String,
|
3
|
+
@base_server_format = {
|
4
|
+
'id' => String,
|
5
|
+
'addresses' => Hash,
|
6
|
+
'flavor' => Hash,
|
7
|
+
'hostId' => String,
|
8
|
+
'metadata' => Hash,
|
9
|
+
'name' => String,
|
10
|
+
'progress' => Integer,
|
11
|
+
'status' => String,
|
12
|
+
'accessIPv4' => Fog::Nullable::String,
|
13
|
+
'accessIPv6' => Fog::Nullable::String,
|
14
|
+
'links' => Array,
|
15
|
+
'created' => String,
|
16
|
+
'updated' => String,
|
17
|
+
'user_id' => String,
|
19
18
|
'config_drive' => String,
|
20
19
|
}
|
21
20
|
|
21
|
+
@server_from_image_format = @base_server_format.merge('image' => Hash)
|
22
|
+
|
22
23
|
@create_format = {
|
23
24
|
'adminPass' => String,
|
24
25
|
'id' => String,
|
@@ -51,6 +52,60 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
|
51
52
|
@flavor_id = get_flavor_ref
|
52
53
|
@security_group_name = get_security_group_ref
|
53
54
|
|
55
|
+
#CREATE_SERVER_WITH_BLOCK_DEVICE_MAPPING
|
56
|
+
tests('#create_server("test", nil , #{@flavor_id}) with a block_device_mapping').formats(@create_format, false) do
|
57
|
+
@volume1_id = compute.create_volume('test', 'this is a test volume', 1).body["volume"]["id"]
|
58
|
+
volume_data = {
|
59
|
+
:delete_on_termination => true,
|
60
|
+
:device_name => "vda",
|
61
|
+
:volume_id => @volume1_id,
|
62
|
+
:volume_size => 1,
|
63
|
+
}
|
64
|
+
data = compute.create_server("test", nil, @flavor_id, "block_device_mapping" => volume_data).body['server']
|
65
|
+
@server_id = data['id']
|
66
|
+
data
|
67
|
+
end
|
68
|
+
|
69
|
+
tests("#get_server_details(#{@server_id})").formats(@base_server_format, false) do
|
70
|
+
compute.get_server_details(@server_id).body['server']
|
71
|
+
end
|
72
|
+
|
73
|
+
tests("#block_device_mapping").succeeds do
|
74
|
+
compute.servers.get(@server_id).volumes.first.id == @volume1_id
|
75
|
+
end
|
76
|
+
|
77
|
+
#CREATE_SERVER_WITH_BLOCK_DEVICE_MAPPING_V2
|
78
|
+
tests('#create_server("test", nil , #{@flavor_id}) with multiple block_device_mapping_v2').formats(@create_format, false) do
|
79
|
+
@volume2_id = compute.create_volume('test', 'this is a test volume', 1).body["volume"]["id"]
|
80
|
+
volume_data = [{
|
81
|
+
:boot_index => 0,
|
82
|
+
:uuid => @volume1_id,
|
83
|
+
:device_name => "vda",
|
84
|
+
:source_type => "volume",
|
85
|
+
:destination_type => "volume",
|
86
|
+
:delete_on_termination => true,
|
87
|
+
}, {
|
88
|
+
:boot_index => 1,
|
89
|
+
:uuid => @volume2_id,
|
90
|
+
:device_name => "vdb",
|
91
|
+
:source_type => "volume",
|
92
|
+
:destination_type => "volume",
|
93
|
+
:delete_on_termination => true,
|
94
|
+
}]
|
95
|
+
data = compute.create_server("test", nil, @flavor_id, "block_device_mapping_v2" => volume_data).body['server']
|
96
|
+
@server_id = data['id']
|
97
|
+
data
|
98
|
+
end
|
99
|
+
|
100
|
+
tests("#get_server_details(#{@server_id})").formats(@base_server_format, false) do
|
101
|
+
compute.get_server_details(@server_id).body['server']
|
102
|
+
end
|
103
|
+
|
104
|
+
tests("#block_device_mapping_v2").succeeds do
|
105
|
+
compute.servers.get(@server_id).volumes.collect(&:id).sort == [@volume1_id, @volume2_id].sort
|
106
|
+
end
|
107
|
+
|
108
|
+
#CREATE_SINGLE_FROM_IMAGE
|
54
109
|
tests('#create_server("test", #{@image_id} , 19)').formats(@create_format, false) do
|
55
110
|
data = Fog::Compute[:openstack].create_server("test", @image_id, @flavor_id).body['server']
|
56
111
|
@server_id = data['id']
|
@@ -59,12 +114,11 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
|
59
114
|
|
60
115
|
Fog::Compute[:openstack].servers.get(@server_id).wait_for { ready? }
|
61
116
|
|
62
|
-
#
|
63
|
-
tests("#get_server_details(#{@server_id})").formats(@detailed_server_format, false) do
|
117
|
+
tests("#get_server_details(#{@server_id})").formats(@server_from_image_format, false) do
|
64
118
|
Fog::Compute[:openstack].get_server_details(@server_id).body['server']
|
65
119
|
end
|
66
120
|
|
67
|
-
#
|
121
|
+
#MULTI_CREATE_FROM_IMAGE
|
68
122
|
tests('#create_server("test", #{@image_id} , 19, {"min_count" => 2, "return_reservation_id" => "True"})').formats(@reservation_format, false) do
|
69
123
|
data = Fog::Compute[:openstack].create_server("test", @image_id, @flavor_id, {"min_count" => 2, "return_reservation_id" => "True"}).body
|
70
124
|
@reservation_id = data['reservation_id']
|
@@ -96,7 +150,7 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
|
96
150
|
end
|
97
151
|
|
98
152
|
#DETAILS
|
99
|
-
tests('#list_servers_detail').formats({'servers' => [@
|
153
|
+
tests('#list_servers_detail').formats({'servers' => [@server_from_image_format]}, false) do
|
100
154
|
Fog::Compute[:openstack].list_servers_detail.body
|
101
155
|
end
|
102
156
|
|
@@ -133,7 +187,7 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
|
133
187
|
Fog::Compute[:openstack].images.get(@snapshot_id).wait_for { ready? }
|
134
188
|
|
135
189
|
#REBUILD
|
136
|
-
tests("#rebuild_server(#{@server_id}, #{@snapshot_id}, 'fog')").formats({'server' => @
|
190
|
+
tests("#rebuild_server(#{@server_id}, #{@snapshot_id}, 'fog')").formats({'server' => @server_from_image_format}, false) do
|
137
191
|
Fog::Compute[:openstack].rebuild_server(@server_id, @snapshot_id, 'fog', 'newpass', {"foo" => "bar"}).body
|
138
192
|
end
|
139
193
|
Fog::Compute[:openstack].servers.get(@server_id).wait_for { ready? } if not Fog.mocking?
|