fog-xenserver 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/.travis.yml +6 -23
- data/fog-xenserver.gemspec +4 -8
- data/lib/fog/bin/xenserver.rb +1 -1
- data/lib/fog/xenserver.rb +7 -14
- data/lib/fog/xenserver/compute.rb +368 -1
- data/lib/fog/xenserver/compute/mock.rb +31 -0
- data/lib/fog/xenserver/compute/models.rb +84 -0
- data/lib/fog/xenserver/compute/models/blob.rb +25 -0
- data/lib/fog/xenserver/compute/models/blobs.rb +11 -0
- data/lib/fog/xenserver/compute/models/bond.rb +27 -0
- data/lib/fog/xenserver/compute/models/bonds.rb +11 -0
- data/lib/fog/xenserver/compute/models/class_methods.rb +24 -0
- data/lib/fog/xenserver/compute/models/collection.rb +45 -0
- data/lib/fog/xenserver/compute/models/console.rb +24 -0
- data/lib/fog/xenserver/compute/models/consoles.rb +11 -0
- data/lib/fog/xenserver/compute/models/crash_dump.rb +23 -0
- data/lib/fog/xenserver/compute/models/crash_dumps.rb +11 -0
- data/lib/fog/xenserver/compute/models/dr_task.rb +21 -0
- data/lib/fog/xenserver/compute/models/dr_tasks.rb +11 -0
- data/lib/fog/xenserver/compute/models/event.rb +24 -0
- data/lib/fog/xenserver/compute/models/events.rb +11 -0
- data/lib/fog/xenserver/compute/models/gpu_group.rb +26 -0
- data/lib/fog/xenserver/compute/models/gpu_groups.rb +11 -0
- data/lib/fog/xenserver/compute/models/guest_metrics.rb +29 -0
- data/lib/fog/xenserver/compute/models/guests_metrics.rb +11 -0
- data/lib/fog/xenserver/compute/models/host.rb +92 -0
- data/lib/fog/xenserver/compute/models/host_cpu.rb +32 -0
- data/lib/fog/xenserver/compute/models/host_cpus.rb +11 -0
- data/lib/fog/xenserver/compute/models/host_crash_dump.rb +24 -0
- data/lib/fog/xenserver/compute/models/host_crash_dumps.rb +11 -0
- data/lib/fog/xenserver/compute/models/host_metrics.rb +24 -0
- data/lib/fog/xenserver/compute/models/host_patch.rb +29 -0
- data/lib/fog/xenserver/compute/models/host_patchs.rb +11 -0
- data/lib/fog/xenserver/compute/models/hosts.rb +11 -0
- data/lib/fog/xenserver/compute/models/hosts_metrics.rb +11 -0
- data/lib/fog/xenserver/compute/models/instance_methods.rb +54 -0
- data/lib/fog/xenserver/compute/models/model.rb +12 -0
- data/lib/fog/xenserver/compute/models/network.rb +34 -0
- data/lib/fog/xenserver/compute/models/networks.rb +11 -0
- data/lib/fog/xenserver/compute/models/pbd.rb +27 -0
- data/lib/fog/xenserver/compute/models/pbds.rb +11 -0
- data/lib/fog/xenserver/compute/models/pci.rb +26 -0
- data/lib/fog/xenserver/compute/models/pcis.rb +11 -0
- data/lib/fog/xenserver/compute/models/pgpu.rb +24 -0
- data/lib/fog/xenserver/compute/models/pgpus.rb +11 -0
- data/lib/fog/xenserver/compute/models/pif.rb +60 -0
- data/lib/fog/xenserver/compute/models/pif_metrics.rb +31 -0
- data/lib/fog/xenserver/compute/models/pifs.rb +11 -0
- data/lib/fog/xenserver/compute/models/pifs_metrics.rb +11 -0
- data/lib/fog/xenserver/compute/models/pool.rb +65 -0
- data/lib/fog/xenserver/compute/models/pool_patch.rb +28 -0
- data/lib/fog/xenserver/compute/models/pool_patchs.rb +11 -0
- data/lib/fog/xenserver/compute/models/pools.rb +11 -0
- data/lib/fog/xenserver/compute/models/role.rb +23 -0
- data/lib/fog/xenserver/compute/models/roles.rb +11 -0
- data/lib/fog/xenserver/compute/models/server.rb +171 -0
- data/lib/fog/xenserver/compute/models/server_appliance.rb +25 -0
- data/lib/fog/xenserver/compute/models/server_appliances.rb +11 -0
- data/lib/fog/xenserver/compute/models/server_metrics.rb +30 -0
- data/lib/fog/xenserver/compute/models/servers.rb +23 -0
- data/lib/fog/xenserver/compute/models/servers_metrics.rb +11 -0
- data/lib/fog/xenserver/compute/models/storage_manager.rb +31 -0
- data/lib/fog/xenserver/compute/models/storage_managers.rb +11 -0
- data/lib/fog/xenserver/compute/models/storage_repositories.rb +11 -0
- data/lib/fog/xenserver/compute/models/storage_repository.rb +50 -0
- data/lib/fog/xenserver/compute/models/tunnel.rb +24 -0
- data/lib/fog/xenserver/compute/models/tunnels.rb +11 -0
- data/lib/fog/xenserver/compute/models/vbd.rb +65 -0
- data/lib/fog/xenserver/compute/models/vbd_metrics.rb +23 -0
- data/lib/fog/xenserver/compute/models/vbds.rb +11 -0
- data/lib/fog/xenserver/compute/models/vbds_metrics.rb +11 -0
- data/lib/fog/xenserver/compute/models/vdi.rb +63 -0
- data/lib/fog/xenserver/compute/models/vdis.rb +11 -0
- data/lib/fog/xenserver/compute/models/vif.rb +50 -0
- data/lib/fog/xenserver/compute/models/vif_metrics.rb +23 -0
- data/lib/fog/xenserver/compute/models/vifs.rb +11 -0
- data/lib/fog/xenserver/compute/models/vifs_metrics.rb +11 -0
- data/lib/fog/xenserver/compute/models/vlan.rb +26 -0
- data/lib/fog/xenserver/compute/models/vlans.rb +11 -0
- data/lib/fog/xenserver/compute/models/vmpp.rb +39 -0
- data/lib/fog/xenserver/compute/models/vmpps.rb +11 -0
- data/lib/fog/xenserver/compute/models/vtpm.rb +22 -0
- data/lib/fog/xenserver/compute/models/vtpms.rb +11 -0
- data/lib/fog/xenserver/compute/real.rb +60 -0
- data/lib/fog/xenserver/compute/requests/add_ipv4_allowed_vif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/add_ipv6_allowed_vif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/add_to_vcpus_params_live_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/apply_edition_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/apply_edition_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/assert_agile_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/assert_attachable_vbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/assert_can_be_recovered_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/assert_can_boot_here_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/assert_can_evacuate_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/assert_can_host_ha_statefile_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/assert_can_migrate_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/assert_operation_valid_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/assert_supports_database_replication_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/backup_rrds_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/bugreport_upload_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/builtin_templates.rb +15 -0
- data/lib/fog/xenserver/compute/requests/call_plugin_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/certificate_install_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/certificate_list_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/certificate_sync_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/certificate_uninstall_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/checkpoint_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/clean_reboot_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/clean_shutdown_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/clone_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/clone_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/compute_free_memory_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/compute_memory_overhead_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/compute_memory_overhead_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/copy_bios_strings_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/copy_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/copy_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_network.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_new_blob_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_new_blob_network.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_new_blob_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_new_blob_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/create_new_blob_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_pbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/create_sr.rb +14 -0
- data/lib/fog/xenserver/compute/requests/create_vbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_vif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_vlan.rb +12 -0
- data/lib/fog/xenserver/compute/requests/create_vlan_from_pif_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/create_vlan_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/crl_install_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/crl_list_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/crl_uninstall_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/custom_templates.rb +15 -0
- data/lib/fog/xenserver/compute/requests/db_forget_pif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/db_forget_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/db_introduce_pif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/db_introduce_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/declare_dead_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/designate_new_master_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/destroy_record.rb +11 -0
- data/lib/fog/xenserver/compute/requests/detect_nonhomogeneous_external_auth_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/disable_database_replication_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/disable_external_auth_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/disable_external_auth_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/disable_ha_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/disable_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/disable_local_storage_caching_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/disable_local_storage_caching_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/disable_redo_log_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/dmesg_clear_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/dmesg_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/eject_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/eject_vbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/emergency_ha_disable_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/emergency_reset_master_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/emergency_transition_to_master_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/enable_database_replication_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/enable_external_auth_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/enable_external_auth_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/enable_ha_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/enable_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/enable_local_storage_caching_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/enable_local_storage_caching_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/enable_redo_log_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/evacuate_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/forget_data_source_archives_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/forget_data_source_archives_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/forget_pif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/forget_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/forget_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/from_event.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_allowed_vbd_devices_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/get_allowed_vif_devices_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/get_boot_record_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/get_current_id_event.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_data_sources_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_data_sources_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/get_license_state_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_log_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_management_interface_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_possible_hosts_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/get_record.rb +23 -0
- data/lib/fog/xenserver/compute/requests/get_records.rb +13 -0
- data/lib/fog/xenserver/compute/requests/get_server_certificate_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_server_localtime_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_servertime_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_supported_types_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_system_status_capabilities_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/get_vms_which_prevent_evacuation_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/ha_compute_hypothetical_max_host_failures_to_tolerate_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/ha_compute_max_host_failures_to_tolerate_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/ha_compute_vm_failover_plan_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/ha_failover_plan_exists_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/ha_prevent_restarts_for_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/hard_reboot_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/hard_shutdown_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/import_convert_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/inject_event.rb +11 -0
- data/lib/fog/xenserver/compute/requests/insert_vbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/introduce_pif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/introduce_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/introduce_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/join_force_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/join_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/list_methods_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/local_management_reconfigure_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/management_disable_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/management_reconfigure_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/maximise_memory_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/migrate_receive_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/migrate_send_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/next_event.rb +11 -0
- data/lib/fog/xenserver/compute/requests/open_database_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/pause_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/plug_pbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/plug_pif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/plug_vbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/plug_vif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/pool_migrate_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/pool_migrate_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/power_on_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/power_state_reset_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/probe_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/provision_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/query_data_source_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/query_data_source_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/query_services_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/read_database_pool_uuid_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/reboot_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/reboot_server.rb +25 -0
- data/lib/fog/xenserver/compute/requests/reconfigure_ip_pif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/reconfigure_ipv6_pif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/record_data_source_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/record_data_source_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/recover_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/recover_slaves_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/refresh_pack_info_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/register_event.rb +11 -0
- data/lib/fog/xenserver/compute/requests/remove_ipv4_allowed_vif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/remove_ipv6_allowed_vif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/reset_cpu_features_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/resize_online_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/resize_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/restart_agent_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/resume_on_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/resume_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/revert_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/revert_to_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/scan_pif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/scan_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/send_debug_keys_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/send_sysrq_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/send_test_post_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/send_trigger_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_affinity_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_allow_caching_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_appliance_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_attribute.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_cpu_features_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_default_locking_mode_network.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_device_config_pbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_ha_host_failures_to_tolerate_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_ha_restart_priority_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_hostname_live_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_hvm_shadow_multiplier_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_ipv4_allowed_vif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_ipv6_allowed_vif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_is_a_snapshot_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_locking_mode_vif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_managed_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_memory_dynamic_max_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_memory_dynamic_min_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_memory_dynamic_range_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_memory_limits_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_memory_static_max_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_memory_static_min_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_memory_static_range_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_metadata_of_pool_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_missing_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_name_description_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_name_description_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_name_label_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_name_label_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_on_boot_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_order_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_physical_size_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_physical_utilisation_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_physical_utilisation_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_power_on_mode_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_primary_address_type_pif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_protection_policy_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_read_only_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_shadow_multiplier_live_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_sharable_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_shared_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_shutdown_delay_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_snapshot_of_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_snapshot_time_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_start_delay_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_suspend_vdi_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_vcpus_at_startup_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_vcpus_max_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_vcpus_number_live_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/set_virtual_allocation_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_virtual_size_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/set_vswitch_controller_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/shutdown_agent_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/shutdown_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/shutdown_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/snapshot_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/snapshot_vdi.rb +11 -0
- data/lib/fog/xenserver/compute/requests/snapshot_with_quiesce_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/snapshots.rb +15 -0
- data/lib/fog/xenserver/compute/requests/start_on_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/start_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/suspend_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/sync_data_host.rb +11 -0
- data/lib/fog/xenserver/compute/requests/sync_database_pool.rb +11 -0
- data/lib/fog/xenserver/compute/requests/templates.rb +15 -0
- data/lib/fog/xenserver/compute/requests/unpause_server.rb +13 -0
- data/lib/fog/xenserver/compute/requests/unplug_force_vbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/unplug_pbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/unplug_vbd.rb +11 -0
- data/lib/fog/xenserver/compute/requests/unplug_vif.rb +11 -0
- data/lib/fog/xenserver/compute/requests/unregister_event.rb +11 -0
- data/lib/fog/xenserver/compute/requests/update_sr.rb +11 -0
- data/lib/fog/xenserver/compute/requests/update_vdi.rb +11 -0
- data/lib/fog/xenserver/connection.rb +72 -0
- data/lib/fog/{xen_server → xenserver}/invalid_login.rb +0 -0
- data/lib/fog/{xen_server → xenserver}/nokogiri_stream_parser.rb +0 -0
- data/lib/fog/{xen_server → xenserver}/not_found.rb +0 -0
- data/lib/fog/xenserver/parsers.rb +8 -0
- data/lib/fog/xenserver/parsers/base.rb +37 -0
- data/lib/fog/xenserver/parsers/get_records.rb +16 -0
- data/lib/fog/{xen_server → xenserver}/request_failed.rb +0 -0
- data/lib/fog/xenserver/version.rb +1 -1
- data/spec/fog/xenserver/compute/models/blob_spec.rb +63 -0
- data/spec/fog/xenserver/compute/models/blobs_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/bond_spec.rb +63 -0
- data/spec/fog/xenserver/compute/models/bonds_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/console_spec.rb +57 -0
- data/spec/fog/xenserver/compute/models/consoles_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/crash_dump_spec.rb +56 -0
- data/spec/fog/xenserver/compute/models/crash_dumps_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/dr_task_spec.rb +51 -0
- data/spec/fog/xenserver/compute/models/dr_tasks_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/event_spec.rb +56 -0
- data/spec/fog/xenserver/compute/models/events_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/gpu_group_spec.rb +65 -0
- data/spec/fog/xenserver/compute/models/gpu_groups_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/guest_metrics_spec.rb +71 -0
- data/spec/fog/xenserver/compute/models/guests_metrics_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/host_cpu_spec.rb +73 -0
- data/spec/fog/xenserver/compute/models/host_cpus_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/host_crash_dump_spec.rb +57 -0
- data/spec/fog/xenserver/compute/models/host_crash_dumps_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/host_metrics_spec.rb +72 -0
- data/spec/fog/xenserver/compute/models/host_patch_spec.rb +68 -0
- data/spec/fog/xenserver/compute/models/host_patchs_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/host_spec.rb +231 -0
- data/spec/fog/xenserver/compute/models/hosts_metrics_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/hosts_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/network_spec.rb +79 -0
- data/spec/fog/xenserver/compute/models/networks_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/pbd_spec.rb +67 -0
- data/spec/fog/xenserver/compute/models/pbds_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/pci_spec.rb +61 -0
- data/spec/fog/xenserver/compute/models/pcis_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/pgpu_spec.rb +58 -0
- data/spec/fog/xenserver/compute/models/pgpus_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/pif_metrics_spec.rb +74 -0
- data/spec/fog/xenserver/compute/models/pif_spec.rb +118 -0
- data/spec/fog/xenserver/compute/models/pifs_metrics_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/pifs_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/pool_patch_spec.rb +66 -0
- data/spec/fog/xenserver/compute/models/pool_patchs_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/pool_spec.rb +106 -0
- data/spec/fog/xenserver/compute/models/pools_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/role_spec.rb +56 -0
- data/spec/fog/xenserver/compute/models/roles_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/server_appliance_spec.rb +61 -0
- data/spec/fog/xenserver/compute/models/server_appliances_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/server_metrics_spec.rb +76 -0
- data/spec/fog/xenserver/compute/models/server_spec.rb +554 -0
- data/spec/fog/xenserver/compute/models/servers_metrics_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/servers_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/storage_manager_spec.rb +75 -0
- data/spec/fog/xenserver/compute/models/storage_managers_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/storage_repositories_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/storage_repository_spec.rb +92 -0
- data/spec/fog/xenserver/compute/models/tunnel_spec.rb +57 -0
- data/spec/fog/xenserver/compute/models/tunnels_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/vbd_metrics_spec.rb +70 -0
- data/spec/fog/xenserver/compute/models/vbd_spec.rb +194 -0
- data/spec/fog/xenserver/compute/models/vbds_metrics_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/vbds_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/vdi_spec.rb +162 -0
- data/spec/fog/xenserver/compute/models/vdis_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/vif_metrics_spec.rb +58 -0
- data/spec/fog/xenserver/compute/models/vif_spec.rb +141 -0
- data/spec/fog/xenserver/compute/models/vifs_metrics_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/vifs_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/vlan_spec.rb +58 -0
- data/spec/fog/xenserver/compute/models/vlans_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/vmpp_spec.rb +89 -0
- data/spec/fog/xenserver/compute/models/vmpps_spec.rb +9 -0
- data/spec/fog/xenserver/compute/models/vtpm_spec.rb +53 -0
- data/spec/fog/xenserver/compute/models/vtpms_spec.rb +9 -0
- data/spec/fog/xenserver/compute/requests/builtin_templates_spec.rb +20 -0
- data/spec/fog/xenserver/compute/requests/clone_server_spec.rb +38 -0
- data/spec/fog/xenserver/compute/requests/create_network_spec.rb +26 -0
- data/spec/fog/xenserver/compute/requests/create_server_spec.rb +32 -0
- data/spec/fog/xenserver/compute/requests/create_vbd_spec.rb +47 -0
- data/spec/fog/xenserver/compute/requests/create_vdi_spec.rb +29 -0
- data/spec/fog/xenserver/compute/requests/create_vif_spec.rb +48 -0
- data/spec/fog/xenserver/compute_spec.rb +13 -0
- data/spec/minitest_helper.rb +3 -0
- metadata +512 -504
- data/lib/fog/compute/xen_server.rb +0 -365
- data/lib/fog/compute/xen_server/mock.rb +0 -31
- data/lib/fog/compute/xen_server/models.rb +0 -84
- data/lib/fog/compute/xen_server/models/blob.rb +0 -25
- data/lib/fog/compute/xen_server/models/blobs.rb +0 -11
- data/lib/fog/compute/xen_server/models/bond.rb +0 -27
- data/lib/fog/compute/xen_server/models/bonds.rb +0 -11
- data/lib/fog/compute/xen_server/models/class_methods.rb +0 -24
- data/lib/fog/compute/xen_server/models/collection.rb +0 -45
- data/lib/fog/compute/xen_server/models/console.rb +0 -24
- data/lib/fog/compute/xen_server/models/consoles.rb +0 -11
- data/lib/fog/compute/xen_server/models/crash_dump.rb +0 -23
- data/lib/fog/compute/xen_server/models/crash_dumps.rb +0 -11
- data/lib/fog/compute/xen_server/models/dr_task.rb +0 -21
- data/lib/fog/compute/xen_server/models/dr_tasks.rb +0 -11
- data/lib/fog/compute/xen_server/models/event.rb +0 -32
- data/lib/fog/compute/xen_server/models/events.rb +0 -11
- data/lib/fog/compute/xen_server/models/gpu_group.rb +0 -26
- data/lib/fog/compute/xen_server/models/gpu_groups.rb +0 -11
- data/lib/fog/compute/xen_server/models/guest_metrics.rb +0 -29
- data/lib/fog/compute/xen_server/models/guests_metrics.rb +0 -11
- data/lib/fog/compute/xen_server/models/host.rb +0 -92
- data/lib/fog/compute/xen_server/models/host_cpu.rb +0 -32
- data/lib/fog/compute/xen_server/models/host_cpus.rb +0 -11
- data/lib/fog/compute/xen_server/models/host_crash_dump.rb +0 -24
- data/lib/fog/compute/xen_server/models/host_crash_dumps.rb +0 -11
- data/lib/fog/compute/xen_server/models/host_metrics.rb +0 -24
- data/lib/fog/compute/xen_server/models/host_patch.rb +0 -29
- data/lib/fog/compute/xen_server/models/host_patchs.rb +0 -11
- data/lib/fog/compute/xen_server/models/hosts.rb +0 -11
- data/lib/fog/compute/xen_server/models/hosts_metrics.rb +0 -11
- data/lib/fog/compute/xen_server/models/instance_methods.rb +0 -54
- data/lib/fog/compute/xen_server/models/model.rb +0 -12
- data/lib/fog/compute/xen_server/models/network.rb +0 -34
- data/lib/fog/compute/xen_server/models/networks.rb +0 -11
- data/lib/fog/compute/xen_server/models/pbd.rb +0 -27
- data/lib/fog/compute/xen_server/models/pbds.rb +0 -11
- data/lib/fog/compute/xen_server/models/pci.rb +0 -26
- data/lib/fog/compute/xen_server/models/pcis.rb +0 -11
- data/lib/fog/compute/xen_server/models/pgpu.rb +0 -24
- data/lib/fog/compute/xen_server/models/pgpus.rb +0 -11
- data/lib/fog/compute/xen_server/models/pif.rb +0 -60
- data/lib/fog/compute/xen_server/models/pif_metrics.rb +0 -31
- data/lib/fog/compute/xen_server/models/pifs.rb +0 -11
- data/lib/fog/compute/xen_server/models/pifs_metrics.rb +0 -11
- data/lib/fog/compute/xen_server/models/pool.rb +0 -65
- data/lib/fog/compute/xen_server/models/pool_patch.rb +0 -28
- data/lib/fog/compute/xen_server/models/pool_patchs.rb +0 -11
- data/lib/fog/compute/xen_server/models/pools.rb +0 -11
- data/lib/fog/compute/xen_server/models/role.rb +0 -23
- data/lib/fog/compute/xen_server/models/roles.rb +0 -11
- data/lib/fog/compute/xen_server/models/server.rb +0 -171
- data/lib/fog/compute/xen_server/models/server_appliance.rb +0 -25
- data/lib/fog/compute/xen_server/models/server_appliances.rb +0 -11
- data/lib/fog/compute/xen_server/models/server_metrics.rb +0 -30
- data/lib/fog/compute/xen_server/models/servers.rb +0 -38
- data/lib/fog/compute/xen_server/models/servers_metrics.rb +0 -11
- data/lib/fog/compute/xen_server/models/storage_manager.rb +0 -31
- data/lib/fog/compute/xen_server/models/storage_managers.rb +0 -11
- data/lib/fog/compute/xen_server/models/storage_repositories.rb +0 -11
- data/lib/fog/compute/xen_server/models/storage_repository.rb +0 -50
- data/lib/fog/compute/xen_server/models/tunnel.rb +0 -24
- data/lib/fog/compute/xen_server/models/tunnels.rb +0 -11
- data/lib/fog/compute/xen_server/models/vbd.rb +0 -65
- data/lib/fog/compute/xen_server/models/vbd_metrics.rb +0 -23
- data/lib/fog/compute/xen_server/models/vbds.rb +0 -11
- data/lib/fog/compute/xen_server/models/vbds_metrics.rb +0 -11
- data/lib/fog/compute/xen_server/models/vdi.rb +0 -63
- data/lib/fog/compute/xen_server/models/vdis.rb +0 -11
- data/lib/fog/compute/xen_server/models/vif.rb +0 -50
- data/lib/fog/compute/xen_server/models/vif_metrics.rb +0 -23
- data/lib/fog/compute/xen_server/models/vifs.rb +0 -11
- data/lib/fog/compute/xen_server/models/vifs_metrics.rb +0 -11
- data/lib/fog/compute/xen_server/models/vlan.rb +0 -26
- data/lib/fog/compute/xen_server/models/vlans.rb +0 -11
- data/lib/fog/compute/xen_server/models/vmpp.rb +0 -39
- data/lib/fog/compute/xen_server/models/vmpps.rb +0 -11
- data/lib/fog/compute/xen_server/models/vtpm.rb +0 -22
- data/lib/fog/compute/xen_server/models/vtpms.rb +0 -11
- data/lib/fog/compute/xen_server/real.rb +0 -50
- data/lib/fog/compute/xen_server/requests/add_ipv4_allowed_vif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/add_ipv6_allowed_vif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/add_to_vcpus_params_live_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/apply_edition_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/apply_edition_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/assert_agile_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/assert_attachable_vbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/assert_can_be_recovered_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/assert_can_boot_here_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/assert_can_evacuate_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/assert_can_host_ha_statefile_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/assert_can_migrate_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/assert_operation_valid_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/assert_supports_database_replication_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/backup_rrds_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/bugreport_upload_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/builtin_templates.rb +0 -15
- data/lib/fog/compute/xen_server/requests/call_plugin_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/certificate_install_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/certificate_list_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/certificate_sync_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/certificate_uninstall_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/checkpoint_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/clean_reboot_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/clean_shutdown_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/clone_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/clone_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/compute_free_memory_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/compute_memory_overhead_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/compute_memory_overhead_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/copy_bios_strings_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/copy_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/copy_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_network.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_new_blob_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_new_blob_network.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_new_blob_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_new_blob_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/create_new_blob_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_pbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/create_sr.rb +0 -14
- data/lib/fog/compute/xen_server/requests/create_vbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_vif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_vlan.rb +0 -12
- data/lib/fog/compute/xen_server/requests/create_vlan_from_pif_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/create_vlan_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/crl_install_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/crl_list_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/crl_uninstall_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/custom_templates.rb +0 -15
- data/lib/fog/compute/xen_server/requests/db_forget_pif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/db_forget_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/db_introduce_pif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/db_introduce_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/declare_dead_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/designate_new_master_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/destroy_record.rb +0 -11
- data/lib/fog/compute/xen_server/requests/detect_nonhomogeneous_external_auth_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/disable_database_replication_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/disable_external_auth_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/disable_external_auth_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/disable_ha_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/disable_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/disable_local_storage_caching_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/disable_local_storage_caching_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/disable_redo_log_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/dmesg_clear_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/dmesg_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/eject_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/eject_vbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/emergency_ha_disable_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/emergency_reset_master_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/emergency_transition_to_master_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/enable_database_replication_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/enable_external_auth_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/enable_external_auth_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/enable_ha_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/enable_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/enable_local_storage_caching_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/enable_local_storage_caching_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/enable_redo_log_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/evacuate_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/forget_data_source_archives_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/forget_data_source_archives_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/forget_pif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/forget_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/forget_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/from_event.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_allowed_vbd_devices_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/get_allowed_vif_devices_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/get_boot_record_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/get_current_id_event.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_data_sources_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_data_sources_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/get_license_state_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_log_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_management_interface_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_possible_hosts_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/get_record.rb +0 -23
- data/lib/fog/compute/xen_server/requests/get_records.rb +0 -13
- data/lib/fog/compute/xen_server/requests/get_server_certificate_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_server_localtime_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_servertime_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_supported_types_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_system_status_capabilities_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/get_vms_which_prevent_evacuation_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/ha_compute_hypothetical_max_host_failures_to_tolerate_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/ha_compute_max_host_failures_to_tolerate_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/ha_compute_vm_failover_plan_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/ha_failover_plan_exists_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/ha_prevent_restarts_for_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/hard_reboot_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/hard_shutdown_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/import_convert_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/inject_event.rb +0 -11
- data/lib/fog/compute/xen_server/requests/insert_vbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/introduce_pif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/introduce_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/introduce_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/join_force_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/join_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/list_methods_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/local_management_reconfigure_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/management_disable_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/management_reconfigure_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/maximise_memory_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/migrate_receive_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/migrate_send_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/next_event.rb +0 -11
- data/lib/fog/compute/xen_server/requests/open_database_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/pause_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/plug_pbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/plug_pif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/plug_vbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/plug_vif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/pool_migrate_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/pool_migrate_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/power_on_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/power_state_reset_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/probe_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/provision_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/query_data_source_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/query_data_source_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/query_services_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/read_database_pool_uuid_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/reboot_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/reboot_server.rb +0 -25
- data/lib/fog/compute/xen_server/requests/reconfigure_ip_pif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/reconfigure_ipv6_pif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/record_data_source_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/record_data_source_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/recover_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/recover_slaves_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/refresh_pack_info_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/register_event.rb +0 -11
- data/lib/fog/compute/xen_server/requests/remove_ipv4_allowed_vif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/remove_ipv6_allowed_vif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/reset_cpu_features_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/resize_online_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/resize_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/restart_agent_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/resume_on_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/resume_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/revert_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/revert_to_server.rb +0 -18
- data/lib/fog/compute/xen_server/requests/scan_pif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/scan_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/send_debug_keys_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/send_sysrq_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/send_test_post_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/send_trigger_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_affinity_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_allow_caching_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_appliance_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_attribute.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_cpu_features_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_default_locking_mode_network.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_device_config_pbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_ha_host_failures_to_tolerate_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_ha_restart_priority_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_hostname_live_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_hvm_shadow_multiplier_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_ipv4_allowed_vif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_ipv6_allowed_vif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_is_a_snapshot_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_locking_mode_vif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_managed_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_memory_dynamic_max_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_memory_dynamic_min_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_memory_dynamic_range_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_memory_limits_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_memory_static_max_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_memory_static_min_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_memory_static_range_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_metadata_of_pool_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_missing_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_name_description_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_name_description_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_name_label_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_name_label_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_on_boot_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_order_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_physical_size_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_physical_utilisation_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_physical_utilisation_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_power_on_mode_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_primary_address_type_pif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_protection_policy_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_read_only_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_shadow_multiplier_live_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_sharable_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_shared_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_shutdown_delay_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_snapshot_of_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_snapshot_time_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_start_delay_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_suspend_vdi_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_vcpus_at_startup_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_vcpus_max_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_vcpus_number_live_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/set_virtual_allocation_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_virtual_size_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/set_vswitch_controller_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/shutdown_agent_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/shutdown_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/shutdown_server.rb +0 -14
- data/lib/fog/compute/xen_server/requests/snapshot_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/snapshot_vdi.rb +0 -11
- data/lib/fog/compute/xen_server/requests/snapshot_with_quiesce_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/snapshots.rb +0 -15
- data/lib/fog/compute/xen_server/requests/start_on_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/start_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/suspend_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/sync_data_host.rb +0 -11
- data/lib/fog/compute/xen_server/requests/sync_database_pool.rb +0 -11
- data/lib/fog/compute/xen_server/requests/templates.rb +0 -15
- data/lib/fog/compute/xen_server/requests/unpause_server.rb +0 -13
- data/lib/fog/compute/xen_server/requests/unplug_force_vbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/unplug_pbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/unplug_vbd.rb +0 -11
- data/lib/fog/compute/xen_server/requests/unplug_vif.rb +0 -11
- data/lib/fog/compute/xen_server/requests/unregister_event.rb +0 -11
- data/lib/fog/compute/xen_server/requests/update_sr.rb +0 -11
- data/lib/fog/compute/xen_server/requests/update_vdi.rb +0 -11
- data/lib/fog/parsers/xen_server.rb +0 -8
- data/lib/fog/parsers/xen_server/base.rb +0 -34
- data/lib/fog/parsers/xen_server/get_records.rb +0 -16
- data/lib/fog/utilities.rb +0 -8
- data/lib/fog/xen_server/connection.rb +0 -49
- data/spec/cassettes/sync_database_pool.yml +0 -129
- data/spec/fog/compute/xen_server/models/blob_spec.rb +0 -63
- data/spec/fog/compute/xen_server/models/blobs_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/bond_spec.rb +0 -63
- data/spec/fog/compute/xen_server/models/bonds_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/console_spec.rb +0 -57
- data/spec/fog/compute/xen_server/models/consoles_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/crash_dump_spec.rb +0 -56
- data/spec/fog/compute/xen_server/models/crash_dumps_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/dr_task_spec.rb +0 -51
- data/spec/fog/compute/xen_server/models/dr_tasks_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/event_spec.rb +0 -56
- data/spec/fog/compute/xen_server/models/events_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/gpu_group_spec.rb +0 -65
- data/spec/fog/compute/xen_server/models/gpu_groups_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/guest_metrics_spec.rb +0 -71
- data/spec/fog/compute/xen_server/models/guests_metrics_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/host_cpu_spec.rb +0 -73
- data/spec/fog/compute/xen_server/models/host_cpus_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/host_crash_dump_spec.rb +0 -57
- data/spec/fog/compute/xen_server/models/host_crash_dumps_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/host_metrics_spec.rb +0 -72
- data/spec/fog/compute/xen_server/models/host_patch_spec.rb +0 -68
- data/spec/fog/compute/xen_server/models/host_patchs_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/host_spec.rb +0 -231
- data/spec/fog/compute/xen_server/models/hosts_metrics_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/hosts_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/network_spec.rb +0 -79
- data/spec/fog/compute/xen_server/models/networks_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/pbd_spec.rb +0 -67
- data/spec/fog/compute/xen_server/models/pbds_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/pci_spec.rb +0 -61
- data/spec/fog/compute/xen_server/models/pcis_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/pgpu_spec.rb +0 -58
- data/spec/fog/compute/xen_server/models/pgpus_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/pif_metrics_spec.rb +0 -74
- data/spec/fog/compute/xen_server/models/pif_spec.rb +0 -118
- data/spec/fog/compute/xen_server/models/pifs_metrics_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/pifs_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/pool_patch_spec.rb +0 -66
- data/spec/fog/compute/xen_server/models/pool_patchs_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/pool_spec.rb +0 -106
- data/spec/fog/compute/xen_server/models/pools_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/role_spec.rb +0 -56
- data/spec/fog/compute/xen_server/models/roles_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/server_appliance_spec.rb +0 -61
- data/spec/fog/compute/xen_server/models/server_appliances_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/server_metrics_spec.rb +0 -76
- data/spec/fog/compute/xen_server/models/server_spec.rb +0 -554
- data/spec/fog/compute/xen_server/models/servers_metrics_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/servers_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/storage_manager_spec.rb +0 -75
- data/spec/fog/compute/xen_server/models/storage_managers_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/storage_repositories_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/storage_repository_spec.rb +0 -92
- data/spec/fog/compute/xen_server/models/tunnel_spec.rb +0 -57
- data/spec/fog/compute/xen_server/models/tunnels_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/vbd_metrics_spec.rb +0 -70
- data/spec/fog/compute/xen_server/models/vbd_spec.rb +0 -194
- data/spec/fog/compute/xen_server/models/vbds_metrics_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/vbds_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/vdi_spec.rb +0 -162
- data/spec/fog/compute/xen_server/models/vdis_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/vif_metrics_spec.rb +0 -58
- data/spec/fog/compute/xen_server/models/vif_spec.rb +0 -141
- data/spec/fog/compute/xen_server/models/vifs_metrics_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/vifs_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/vlan_spec.rb +0 -58
- data/spec/fog/compute/xen_server/models/vlans_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/vmpp_spec.rb +0 -89
- data/spec/fog/compute/xen_server/models/vmpps_spec.rb +0 -9
- data/spec/fog/compute/xen_server/models/vtpm_spec.rb +0 -53
- data/spec/fog/compute/xen_server/models/vtpms_spec.rb +0 -9
- data/spec/fog/compute/xen_server/requests/builtin_templates_spec.rb +0 -18
- data/spec/fog/compute/xen_server/requests/clone_server_spec.rb +0 -36
- data/spec/fog/compute/xen_server/requests/create_network_spec.rb +0 -24
- data/spec/fog/compute/xen_server/requests/create_server_spec.rb +0 -30
- data/spec/fog/compute/xen_server/requests/create_vbd_spec.rb +0 -45
- data/spec/fog/compute/xen_server/requests/create_vdi_spec.rb +0 -27
- data/spec/fog/compute/xen_server/requests/create_vif_spec.rb +0 -46
- data/spec/fog/compute/xen_server/requests/sync_database_pool_spec.rb +0 -16
- data/spec/fog/compute/xen_server_spec.rb +0 -13
@@ -1,72 +0,0 @@
|
|
1
|
-
require 'minitest_helper'
|
2
|
-
require 'xmlrpc/datetime'
|
3
|
-
|
4
|
-
describe Fog::Compute::XenServer::Models::HostMetrics do
|
5
|
-
let(:host_metrics_class) do
|
6
|
-
class Fog::Compute::XenServer::Models::HostMetrics
|
7
|
-
def self.read_identity
|
8
|
-
instance_variable_get('@identity')
|
9
|
-
end
|
10
|
-
end
|
11
|
-
Fog::Compute::XenServer::Models::HostMetrics
|
12
|
-
end
|
13
|
-
let(:host_metrics) { Fog::Compute::XenServer::Models::HostMetrics.new }
|
14
|
-
|
15
|
-
it 'should associate to a provider class' do
|
16
|
-
host_metrics_class.provider_class.must_equal('host_metrics')
|
17
|
-
end
|
18
|
-
|
19
|
-
it 'should have a collection name' do
|
20
|
-
host_metrics_class.collection_name.must_equal(:hosts_metrics)
|
21
|
-
end
|
22
|
-
|
23
|
-
it 'should have an unique id' do
|
24
|
-
host_metrics_class.read_identity.must_equal(:reference)
|
25
|
-
end
|
26
|
-
|
27
|
-
it 'should have 7 attributes' do
|
28
|
-
host_metrics_class.attributes.must_equal([ :reference,
|
29
|
-
:last_updated,
|
30
|
-
:live,
|
31
|
-
:memory_free,
|
32
|
-
:memory_total,
|
33
|
-
:other_config,
|
34
|
-
:uuid ])
|
35
|
-
end
|
36
|
-
|
37
|
-
it "shouldn't have associations" do
|
38
|
-
host_metrics_class.associations.must_equal({})
|
39
|
-
end
|
40
|
-
|
41
|
-
it 'should have 7 masks' do
|
42
|
-
host_metrics_class.masks.must_equal(:reference => :reference,
|
43
|
-
:last_updated => :last_updated,
|
44
|
-
:live => :live,
|
45
|
-
:memory_free => :memory_free,
|
46
|
-
:memory_total => :memory_total,
|
47
|
-
:other_config => :other_config,
|
48
|
-
:uuid => :uuid)
|
49
|
-
end
|
50
|
-
|
51
|
-
it "shouldn't have aliases" do
|
52
|
-
host_metrics_class.aliases.must_equal({})
|
53
|
-
end
|
54
|
-
|
55
|
-
it "shouldn't have default values" do
|
56
|
-
host_metrics_class.default_values.must_equal({})
|
57
|
-
end
|
58
|
-
|
59
|
-
it "shouldn't require attributes before save" do
|
60
|
-
host_metrics_class.require_before_save.must_equal([])
|
61
|
-
end
|
62
|
-
|
63
|
-
describe '#last_updated' do
|
64
|
-
before :each do
|
65
|
-
host_metrics.last_updated = XMLRPC::DateTime.new(2000, 7, 8, 10, 20, 34)
|
66
|
-
end
|
67
|
-
|
68
|
-
it 'should be an instance of Time' do
|
69
|
-
host_metrics.last_updated.must_be_instance_of(Time)
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
@@ -1,68 +0,0 @@
|
|
1
|
-
require 'minitest_helper'
|
2
|
-
|
3
|
-
describe Fog::Compute::XenServer::Models::HostPatch do
|
4
|
-
let(:host_patch_class) do
|
5
|
-
class Fog::Compute::XenServer::Models::HostPatch
|
6
|
-
def self.read_identity
|
7
|
-
instance_variable_get('@identity')
|
8
|
-
end
|
9
|
-
end
|
10
|
-
Fog::Compute::XenServer::Models::HostPatch
|
11
|
-
end
|
12
|
-
|
13
|
-
it 'should associate to a provider class' do
|
14
|
-
host_patch_class.provider_class.must_equal('host_patch')
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'should have a collection name' do
|
18
|
-
host_patch_class.collection_name.must_equal(:host_patchs)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should have an unique id' do
|
22
|
-
host_patch_class.read_identity.must_equal(:reference)
|
23
|
-
end
|
24
|
-
|
25
|
-
it 'should have 9 attributes' do
|
26
|
-
host_patch_class.attributes.must_equal([ :reference,
|
27
|
-
:applied,
|
28
|
-
:description,
|
29
|
-
:name,
|
30
|
-
:other_config,
|
31
|
-
:size,
|
32
|
-
:timestamp_applied,
|
33
|
-
:uuid,
|
34
|
-
:version ])
|
35
|
-
end
|
36
|
-
|
37
|
-
it 'should have 2 associations' do
|
38
|
-
host_patch_class.associations.must_equal(:host => :hosts,
|
39
|
-
:pool_patch => :pool_patchs)
|
40
|
-
end
|
41
|
-
|
42
|
-
it 'should have 11 masks' do
|
43
|
-
host_patch_class.masks.must_equal(:reference => :reference,
|
44
|
-
:applied => :applied,
|
45
|
-
:description => :description,
|
46
|
-
:name => :name,
|
47
|
-
:other_config => :other_config,
|
48
|
-
:size => :size,
|
49
|
-
:timestamp_applied => :timestamp_applied,
|
50
|
-
:uuid => :uuid,
|
51
|
-
:version => :version,
|
52
|
-
:host => :host,
|
53
|
-
:pool_patch => :pool_patch)
|
54
|
-
end
|
55
|
-
|
56
|
-
it 'should have 2 aliases' do
|
57
|
-
host_patch_class.aliases.must_equal(:name_description => :description,
|
58
|
-
:name_label => :name)
|
59
|
-
end
|
60
|
-
|
61
|
-
it "shouldn't have default values" do
|
62
|
-
host_patch_class.default_values.must_equal({})
|
63
|
-
end
|
64
|
-
|
65
|
-
it "shouldn't require attributes before save" do
|
66
|
-
host_patch_class.require_before_save.must_equal([])
|
67
|
-
end
|
68
|
-
end
|
@@ -1,9 +0,0 @@
|
|
1
|
-
require 'minitest_helper'
|
2
|
-
|
3
|
-
describe Fog::Compute::XenServer::Models::HostPatchs do
|
4
|
-
let(:host_patchs_class) { Fog::Compute::XenServer::Models::HostPatchs }
|
5
|
-
|
6
|
-
it 'should be a collection of HostPatchs' do
|
7
|
-
host_patchs_class.model.must_equal(Fog::Compute::XenServer::Models::HostPatch)
|
8
|
-
end
|
9
|
-
end
|
@@ -1,231 +0,0 @@
|
|
1
|
-
require 'minitest_helper'
|
2
|
-
|
3
|
-
describe Fog::Compute::XenServer::Models::Host do
|
4
|
-
let(:host_class) do
|
5
|
-
class Fog::Compute::XenServer::Models::Host
|
6
|
-
def self.read_identity
|
7
|
-
instance_variable_get('@identity')
|
8
|
-
end
|
9
|
-
end
|
10
|
-
Fog::Compute::XenServer::Models::Host
|
11
|
-
end
|
12
|
-
let(:host) { Fog::Compute::XenServer::Models::Host.new }
|
13
|
-
let(:service) { Object.new }
|
14
|
-
|
15
|
-
it 'should associate to a provider class' do
|
16
|
-
host_class.provider_class.must_equal('host')
|
17
|
-
end
|
18
|
-
|
19
|
-
it 'should have a collection name' do
|
20
|
-
host_class.collection_name.must_equal(:hosts)
|
21
|
-
end
|
22
|
-
|
23
|
-
it 'should have an unique id' do
|
24
|
-
host_class.read_identity.must_equal(:reference)
|
25
|
-
end
|
26
|
-
|
27
|
-
it 'should have 39 attributes' do
|
28
|
-
host_class.attributes.must_equal([ :reference,
|
29
|
-
:address,
|
30
|
-
:allowed_operations,
|
31
|
-
:api_version_major,
|
32
|
-
:api_version_minor,
|
33
|
-
:api_version_vendor,
|
34
|
-
:api_version_vendor_implementation,
|
35
|
-
:bios_strings,
|
36
|
-
:blobs,
|
37
|
-
:capabilities,
|
38
|
-
:chipset_info,
|
39
|
-
:cpu_configuration,
|
40
|
-
:cpu_info,
|
41
|
-
:current_operations,
|
42
|
-
:description,
|
43
|
-
:edition,
|
44
|
-
:enabled,
|
45
|
-
:external_auth_configuration,
|
46
|
-
:external_auth_service_name,
|
47
|
-
:external_auth_type,
|
48
|
-
:guest_vcpus_params,
|
49
|
-
:ha_network_peers,
|
50
|
-
:ha_statefiles,
|
51
|
-
:hostname,
|
52
|
-
:license_params,
|
53
|
-
:license_server,
|
54
|
-
:logging,
|
55
|
-
:memory_overhead,
|
56
|
-
:name,
|
57
|
-
:other_config,
|
58
|
-
:patches,
|
59
|
-
:power_on_config,
|
60
|
-
:power_on_mode,
|
61
|
-
:sched_policy,
|
62
|
-
:software_version,
|
63
|
-
:supported_bootloaders,
|
64
|
-
:suspend_image_sr,
|
65
|
-
:tags,
|
66
|
-
:uuid ])
|
67
|
-
end
|
68
|
-
|
69
|
-
it 'should have 10 associations' do
|
70
|
-
host_class.associations.must_equal(:crashdumps => :crash_dumps,
|
71
|
-
:crash_dump_sr => :storage_repositories,
|
72
|
-
:host_cpus => :host_cpus,
|
73
|
-
:local_cache_sr => :storage_repositories,
|
74
|
-
:metrics => :hosts_metrics,
|
75
|
-
:pbds => :pbds,
|
76
|
-
:pcis => :pcis,
|
77
|
-
:pgpus => :pgpus,
|
78
|
-
:pifs => :pifs,
|
79
|
-
:resident_vms => :servers)
|
80
|
-
end
|
81
|
-
|
82
|
-
it 'should have 49 masks' do
|
83
|
-
host_class.masks.must_equal(:reference => :reference,
|
84
|
-
:address => :address,
|
85
|
-
:allowed_operations => :allowed_operations,
|
86
|
-
:api_version_major => :API_version_major,
|
87
|
-
:api_version_minor => :API_version_minor,
|
88
|
-
:api_version_vendor => :API_version_vendor,
|
89
|
-
:api_version_vendor_implementation => :API_version_vendor_implementation,
|
90
|
-
:bios_strings => :bios_strings,
|
91
|
-
:blobs => :blobs,
|
92
|
-
:capabilities => :capabilities,
|
93
|
-
:chipset_info => :chipset_info,
|
94
|
-
:cpu_configuration => :cpu_configuration,
|
95
|
-
:cpu_info => :cpu_info,
|
96
|
-
:current_operations => :current_operations,
|
97
|
-
:description => :description,
|
98
|
-
:edition => :edition,
|
99
|
-
:enabled => :enabled,
|
100
|
-
:external_auth_configuration => :external_auth_configuration,
|
101
|
-
:external_auth_service_name => :external_auth_service_name,
|
102
|
-
:external_auth_type => :external_auth_type,
|
103
|
-
:guest_vcpus_params => :guest_VCPUs_params,
|
104
|
-
:ha_network_peers => :ha_network_peers,
|
105
|
-
:ha_statefiles => :ha_statefiles,
|
106
|
-
:hostname => :hostname,
|
107
|
-
:license_params => :license_params,
|
108
|
-
:license_server => :license_server,
|
109
|
-
:logging => :logging,
|
110
|
-
:memory_overhead => :memory_overhead,
|
111
|
-
:name => :name,
|
112
|
-
:other_config => :other_config,
|
113
|
-
:patches => :patches,
|
114
|
-
:power_on_config => :power_on_config,
|
115
|
-
:power_on_mode => :power_on_mode,
|
116
|
-
:sched_policy => :sched_policy,
|
117
|
-
:software_version => :software_version,
|
118
|
-
:supported_bootloaders => :supported_bootloaders,
|
119
|
-
:suspend_image_sr => :suspend_image_sr,
|
120
|
-
:tags => :tags,
|
121
|
-
:uuid => :uuid,
|
122
|
-
:crashdumps => :crashdumps,
|
123
|
-
:crash_dump_sr => :crash_dump_sr,
|
124
|
-
:host_cpus => :host_CPUs,
|
125
|
-
:local_cache_sr => :local_cache_sr,
|
126
|
-
:metrics => :metrics,
|
127
|
-
:pbds => :PBDs,
|
128
|
-
:pcis => :PCIs,
|
129
|
-
:pgpus => :PGPUs,
|
130
|
-
:pifs => :PIFs,
|
131
|
-
:resident_vms => :resident_VMs)
|
132
|
-
end
|
133
|
-
|
134
|
-
it 'should have 13 aliases' do
|
135
|
-
host_class.aliases.must_equal(:name_label => :name,
|
136
|
-
:API_version_major => :api_version_major,
|
137
|
-
:API_version_minor => :api_version_minor,
|
138
|
-
:API_version_vendor => :api_version_vendor,
|
139
|
-
:API_version_vendor_implementation => :api_version_vendor_implementation,
|
140
|
-
:guest_VCPUs_params => :guest_vcpus_params,
|
141
|
-
:name_description => :description,
|
142
|
-
:host_CPUs => :host_cpus,
|
143
|
-
:PBDs => :pbds,
|
144
|
-
:PCIs => :pcis,
|
145
|
-
:PGPUs => :pgpus,
|
146
|
-
:PIFs => :pifs,
|
147
|
-
:resident_VMs => :resident_vms)
|
148
|
-
end
|
149
|
-
|
150
|
-
it "shouldn't have default values" do
|
151
|
-
host_class.default_values.must_equal({})
|
152
|
-
end
|
153
|
-
|
154
|
-
it "shouldn't require attributes before save" do
|
155
|
-
host_class.require_before_save.must_equal([])
|
156
|
-
end
|
157
|
-
|
158
|
-
describe '#shutdown' do
|
159
|
-
describe 'with auto_disable equal true' do
|
160
|
-
before :each do
|
161
|
-
def service.disable_host(reference); @disabled = true end
|
162
|
-
def service.shutdown_host(reference); @halted = true end
|
163
|
-
host.stub(:service, service) do
|
164
|
-
host.shutdown
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
|
-
it 'should disable the host' do
|
169
|
-
service.instance_variable_get(:@disabled).must_equal(true)
|
170
|
-
end
|
171
|
-
|
172
|
-
it 'should shutdown the host' do
|
173
|
-
service.instance_variable_get(:@halted).must_equal(true)
|
174
|
-
end
|
175
|
-
end
|
176
|
-
|
177
|
-
describe 'with auto_disable equal false' do
|
178
|
-
before :each do
|
179
|
-
def service.shutdown_host(reference); @halted = true end
|
180
|
-
host.stub(:service, service) do
|
181
|
-
host.shutdown(false)
|
182
|
-
end
|
183
|
-
end
|
184
|
-
|
185
|
-
it 'should not disable the host' do
|
186
|
-
service.instance_variable_get(:@disabled).must_equal(nil)
|
187
|
-
end
|
188
|
-
|
189
|
-
it 'should shutdown the host' do
|
190
|
-
service.instance_variable_get(:@halted).must_equal(true)
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
describe '#reboot' do
|
196
|
-
describe 'with auto_disable equal true' do
|
197
|
-
before :each do
|
198
|
-
def service.disable_host(reference); @disabled = true end
|
199
|
-
def service.reboot_host(reference); @rebooted = true end
|
200
|
-
host.stub(:service, service) do
|
201
|
-
host.reboot
|
202
|
-
end
|
203
|
-
end
|
204
|
-
|
205
|
-
it 'should disable the host' do
|
206
|
-
service.instance_variable_get(:@disabled).must_equal(true)
|
207
|
-
end
|
208
|
-
|
209
|
-
it 'should shutdown the host' do
|
210
|
-
service.instance_variable_get(:@rebooted).must_equal(true)
|
211
|
-
end
|
212
|
-
end
|
213
|
-
|
214
|
-
describe 'with auto_disable equal false' do
|
215
|
-
before :each do
|
216
|
-
def service.reboot_host(reference); @rebooted = true end
|
217
|
-
host.stub(:service, service) do
|
218
|
-
host.reboot(false)
|
219
|
-
end
|
220
|
-
end
|
221
|
-
|
222
|
-
it 'should not disable the host' do
|
223
|
-
service.instance_variable_get(:@disabled).must_equal(nil)
|
224
|
-
end
|
225
|
-
|
226
|
-
it 'should shutdown the host' do
|
227
|
-
service.instance_variable_get(:@rebooted).must_equal(true)
|
228
|
-
end
|
229
|
-
end
|
230
|
-
end
|
231
|
-
end
|
@@ -1,9 +0,0 @@
|
|
1
|
-
require 'minitest_helper'
|
2
|
-
|
3
|
-
describe Fog::Compute::XenServer::Models::HostsMetrics do
|
4
|
-
let(:hosts_metrics_class) { Fog::Compute::XenServer::Models::HostsMetrics }
|
5
|
-
|
6
|
-
it 'should be a collection of HostsMetrics' do
|
7
|
-
hosts_metrics_class.model.must_equal(Fog::Compute::XenServer::Models::HostMetrics)
|
8
|
-
end
|
9
|
-
end
|
@@ -1,9 +0,0 @@
|
|
1
|
-
require 'minitest_helper'
|
2
|
-
|
3
|
-
describe Fog::Compute::XenServer::Models::Hosts do
|
4
|
-
let(:hosts_class) { Fog::Compute::XenServer::Models::Hosts }
|
5
|
-
|
6
|
-
it 'should be a collection of Hosts' do
|
7
|
-
hosts_class.model.must_equal(Fog::Compute::XenServer::Models::Host)
|
8
|
-
end
|
9
|
-
end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
require 'minitest_helper'
|
2
|
-
|
3
|
-
describe Fog::Compute::XenServer::Models::Network do
|
4
|
-
let(:network_class) do
|
5
|
-
class Fog::Compute::XenServer::Models::Network
|
6
|
-
def self.read_identity
|
7
|
-
instance_variable_get('@identity')
|
8
|
-
end
|
9
|
-
end
|
10
|
-
Fog::Compute::XenServer::Models::Network
|
11
|
-
end
|
12
|
-
|
13
|
-
it 'should associate to a provider class' do
|
14
|
-
network_class.provider_class.must_equal('network')
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'should have a collection name' do
|
18
|
-
network_class.collection_name.must_equal(:networks)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should have an unique id' do
|
22
|
-
network_class.read_identity.must_equal(:reference)
|
23
|
-
end
|
24
|
-
|
25
|
-
it 'should have 12 attributes' do
|
26
|
-
network_class.attributes.must_equal([ :reference,
|
27
|
-
:allowed_operations,
|
28
|
-
:blobs,
|
29
|
-
:bridge,
|
30
|
-
:current_operations,
|
31
|
-
:default_locking_mode,
|
32
|
-
:description,
|
33
|
-
:mtu,
|
34
|
-
:name,
|
35
|
-
:other_config,
|
36
|
-
:tags,
|
37
|
-
:uuid ])
|
38
|
-
end
|
39
|
-
|
40
|
-
it 'should have 2 associations' do
|
41
|
-
network_class.associations.must_equal(:pifs => :pifs,
|
42
|
-
:vifs => :vifs)
|
43
|
-
end
|
44
|
-
|
45
|
-
it 'should have 14 masks' do
|
46
|
-
network_class.masks.must_equal(:reference => :reference,
|
47
|
-
:allowed_operations => :allowed_operations,
|
48
|
-
:blobs => :blobs,
|
49
|
-
:bridge => :bridge,
|
50
|
-
:current_operations => :current_operations,
|
51
|
-
:default_locking_mode => :default_locking_mode,
|
52
|
-
:description => :name_description,
|
53
|
-
:mtu => :MTU,
|
54
|
-
:name => :name_label,
|
55
|
-
:other_config => :other_config,
|
56
|
-
:tags => :tags,
|
57
|
-
:uuid => :uuid,
|
58
|
-
:pifs => :PIFs,
|
59
|
-
:vifs => :VIFs)
|
60
|
-
end
|
61
|
-
|
62
|
-
it 'should have 5 aliases' do
|
63
|
-
network_class.aliases.must_equal(:MTU => :mtu,
|
64
|
-
:name_description => :description,
|
65
|
-
:name_label => :name,
|
66
|
-
:PIFs => :pifs,
|
67
|
-
:VIFs => :vifs)
|
68
|
-
end
|
69
|
-
|
70
|
-
it 'should have 3 default values' do
|
71
|
-
network_class.default_values.must_equal(:description => '',
|
72
|
-
:name => '',
|
73
|
-
:other_config => {})
|
74
|
-
end
|
75
|
-
|
76
|
-
it 'should require 1 attribute before save' do
|
77
|
-
network_class.require_before_save.must_equal([ :name ])
|
78
|
-
end
|
79
|
-
end
|