fog-xenserver 0.0.1.alpha2 → 0.0.1.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +27 -0
- data/.travis.yml +19 -0
- data/CONTRIBUTING.md +6 -6
- data/Gemfile +1 -1
- data/LICENSE.md +1 -1
- data/README.md +3 -1
- data/Rakefile +10 -1
- data/fog-xenserver.gemspec +6 -4
- data/gemfiles/Gemfile.1.8.7 +7 -0
- data/gemfiles/Gemfile.1.9.2+ +6 -0
- data/lib/fog.rb +1 -1
- data/lib/fog/collection.rb +37 -0
- data/lib/fog/compute/xen_server.rb +132 -0
- data/lib/fog/compute/xen_server/mock.rb +27 -0
- data/lib/fog/compute/xen_server/models.rb +78 -0
- data/lib/fog/compute/xen_server/models/blob.rb +24 -0
- data/lib/fog/compute/xen_server/models/blobs.rb +11 -0
- data/lib/fog/compute/xen_server/models/bond.rb +26 -0
- data/lib/fog/compute/xen_server/models/bonds.rb +11 -0
- data/lib/fog/compute/xen_server/models/console.rb +23 -0
- data/lib/fog/compute/xen_server/models/consoles.rb +11 -0
- data/lib/fog/compute/xen_server/models/crash_dump.rb +22 -0
- data/lib/fog/compute/xen_server/models/crash_dumps.rb +11 -0
- data/lib/fog/compute/xen_server/models/dr_task.rb +20 -0
- data/lib/fog/compute/xen_server/models/dr_tasks.rb +11 -0
- data/lib/fog/compute/xen_server/models/gpu_group.rb +25 -0
- data/lib/fog/compute/xen_server/models/gpu_groups.rb +11 -0
- data/lib/fog/compute/xen_server/models/guest_metrics.rb +28 -0
- data/lib/fog/compute/xen_server/models/guests_metrics.rb +11 -0
- data/lib/fog/compute/xen_server/models/host.rb +121 -0
- data/lib/fog/compute/xen_server/models/host_cpu.rb +31 -0
- data/lib/fog/compute/xen_server/models/host_cpus.rb +11 -0
- data/lib/fog/compute/xen_server/models/host_crash_dump.rb +23 -0
- data/lib/fog/compute/xen_server/models/host_crash_dumps.rb +11 -0
- data/lib/fog/compute/xen_server/models/host_metrics.rb +28 -0
- data/lib/fog/compute/xen_server/models/host_patch.rb +28 -0
- data/lib/fog/compute/xen_server/models/host_patchs.rb +11 -0
- data/lib/fog/compute/xen_server/models/hosts.rb +11 -0
- data/lib/fog/compute/xen_server/models/hosts_metrics.rb +11 -0
- data/lib/fog/compute/xen_server/models/network.rb +65 -0
- data/lib/fog/compute/xen_server/models/networks.rb +11 -0
- data/lib/fog/compute/xen_server/models/pbd.rb +30 -0
- data/lib/fog/compute/xen_server/models/pbds.rb +11 -0
- data/lib/fog/compute/xen_server/models/pci.rb +25 -0
- data/lib/fog/compute/xen_server/models/pcis.rb +11 -0
- data/lib/fog/compute/xen_server/models/pgpu.rb +23 -0
- data/lib/fog/compute/xen_server/models/pgpus.rb +11 -0
- data/lib/fog/compute/xen_server/models/pif.rb +49 -0
- data/lib/fog/compute/xen_server/models/pif_metrics.rb +30 -0
- data/lib/fog/compute/xen_server/models/pifs.rb +11 -0
- data/lib/fog/compute/xen_server/models/pifs_metrics.rb +9 -0
- data/lib/fog/compute/xen_server/models/pool.rb +47 -0
- data/lib/fog/compute/xen_server/models/pool_patch.rb +27 -0
- data/lib/fog/compute/xen_server/models/pool_patchs.rb +11 -0
- data/lib/fog/compute/xen_server/models/pools.rb +11 -0
- data/lib/fog/compute/xen_server/models/role.rb +22 -0
- data/lib/fog/compute/xen_server/models/roles.rb +11 -0
- data/lib/fog/compute/xen_server/models/server.rb +203 -0
- data/lib/fog/compute/xen_server/models/server_appliance.rb +24 -0
- data/lib/fog/compute/xen_server/models/server_appliances.rb +11 -0
- data/lib/fog/compute/xen_server/models/server_metrics.rb +29 -0
- data/lib/fog/compute/xen_server/models/servers.rb +38 -0
- data/lib/fog/compute/xen_server/models/servers_metrics.rb +11 -0
- data/lib/fog/compute/xen_server/models/storage_manager.rb +30 -0
- data/lib/fog/compute/xen_server/models/storage_managers.rb +11 -0
- data/lib/fog/compute/xen_server/models/storage_repositories.rb +11 -0
- data/lib/fog/compute/xen_server/models/storage_repository.rb +77 -0
- data/lib/fog/compute/xen_server/models/tunnel.rb +23 -0
- data/lib/fog/compute/xen_server/models/tunnels.rb +11 -0
- data/lib/fog/compute/xen_server/models/vbd.rb +64 -0
- data/lib/fog/compute/xen_server/models/vbd_metrics.rb +27 -0
- data/lib/fog/compute/xen_server/models/vbds.rb +11 -0
- data/lib/fog/compute/xen_server/models/vbds_metrics.rb +11 -0
- data/lib/fog/compute/xen_server/models/vdi.rb +75 -0
- data/lib/fog/compute/xen_server/models/vdis.rb +11 -0
- data/lib/fog/compute/xen_server/models/vif.rb +53 -0
- data/lib/fog/compute/xen_server/models/vif_metrics.rb +22 -0
- data/lib/fog/compute/xen_server/models/vifs.rb +11 -0
- data/lib/fog/compute/xen_server/models/vifs_metrics.rb +11 -0
- data/lib/fog/compute/xen_server/models/vlan.rb +65 -0
- data/lib/fog/compute/xen_server/models/vlans.rb +11 -0
- data/lib/fog/compute/xen_server/models/vmpp.rb +38 -0
- data/lib/fog/compute/xen_server/models/vmpps.rb +11 -0
- data/lib/fog/compute/xen_server/models/vtpm.rb +21 -0
- data/lib/fog/compute/xen_server/models/vtpms.rb +11 -0
- data/lib/fog/compute/xen_server/real.rb +36 -0
- data/lib/fog/compute/xen_server/requests/builtin_templates.rb +21 -0
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/clone_server.rb +1 -5
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/create_network.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/create_server.rb +1 -14
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/create_sr.rb +1 -7
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/create_vbd.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/create_vdi.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/create_vif.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/create_vlan.rb +1 -6
- data/lib/fog/compute/xen_server/requests/custom_templates.rb +21 -0
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/destroy_network.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/destroy_server.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/destroy_sr.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/destroy_vdi.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/destroy_vif.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/destroy_vlan.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/disable_host.rb +1 -7
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/eject_vbd.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/enable_host.rb +1 -7
- data/lib/fog/compute/xen_server/requests/get_record.rb +41 -0
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/get_records.rb +1 -9
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/insert_vbd.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/provision_server.rb +1 -5
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/reboot_host.rb +2 -8
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/reboot_server.rb +2 -8
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/scan_sr.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/set_affinity.rb +1 -9
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/set_attribute.rb +1 -9
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/shutdown_host.rb +2 -8
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/shutdown_server.rb +2 -8
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/snapshot_revert.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/snapshot_server.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/start_server.rb +1 -7
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/start_vm.rb +2 -8
- data/lib/fog/compute/xen_server/requests/templates.rb +21 -0
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/unplug_pbd.rb +1 -6
- data/lib/fog/{xenserver/requests/compute → compute/xen_server/requests}/unplug_vbd.rb +1 -6
- data/lib/fog/model.rb +48 -0
- data/lib/fog/parsers/xen_server.rb +15 -0
- data/lib/fog/{xenserver/parser.rb → parsers/xen_server/base.rb} +1 -3
- data/lib/fog/{xenserver/parsers → parsers/xen_server}/get_hosts.rb +1 -4
- data/lib/fog/{xenserver/parsers → parsers/xen_server}/get_networks.rb +1 -4
- data/lib/fog/{xenserver/parsers → parsers/xen_server}/get_pools.rb +1 -4
- data/lib/fog/{xenserver/parsers → parsers/xen_server}/get_records.rb +1 -4
- data/lib/fog/{xenserver/parsers → parsers/xen_server}/get_storage_repositories.rb +1 -4
- data/lib/fog/{xenserver/parsers → parsers/xen_server}/get_vbds.rb +2 -5
- data/lib/fog/{xenserver/parsers → parsers/xen_server}/get_vifs.rb +2 -5
- data/lib/fog/{xenserver/parsers → parsers/xen_server}/get_vms.rb +1 -5
- data/lib/fog/{xenserver/utilities.rb → utilities.rb} +0 -0
- data/lib/fog/{xenserver/core.rb → xen_server/connection.rb} +2 -40
- data/lib/fog/xen_server/invalid_login.rb +5 -0
- data/lib/fog/xen_server/nokogiri_stream_parser.rb +20 -0
- data/lib/fog/xen_server/not_found.rb +5 -0
- data/lib/fog/xen_server/request_failed.rb +5 -0
- data/lib/fog/xen_server/version.rb +5 -0
- data/lib/fog/xenserver.rb +27 -1
- data/lib/fog/xenserver/compute.rb +0 -176
- data/test/fog/compute/xen_server/models/blob_test.rb +40 -0
- data/test/fog/compute/xen_server/models/bond_test.rb +42 -0
- data/test/fog/compute/xen_server/models/console_test.rb +38 -0
- data/test/fog/compute/xen_server/models/crash_dump_test.rb +39 -0
- data/test/fog/compute/xen_server/models/dr_task_test.rb +35 -0
- data/test/fog/compute/xen_server/models/gpu_group_test.rb +45 -0
- data/test/fog/compute/xen_server/models/guest_metrics_test.rb +44 -0
- data/test/fog/compute/xen_server/models/host_cpu_test.rb +46 -0
- data/test/fog/compute/xen_server/models/host_crash_dump_test.rb +37 -0
- data/test/fog/compute/xen_server/models/host_metrics_test.rb +38 -0
- data/test/fog/compute/xen_server/models/host_patch_test.rb +45 -0
- data/test/fog/compute/xen_server/models/host_test.rb +102 -0
- data/test/fog/compute/xen_server/models/network_test.rb +51 -0
- data/test/fog/compute/xen_server/models/pbd_test.rb +40 -0
- data/test/fog/compute/xen_server/models/pci_test.rb +40 -0
- data/test/fog/compute/xen_server/models/pgpu_test.rb +41 -0
- data/test/fog/compute/xen_server/models/pif_metrics_test.rb +45 -0
- data/test/fog/compute/xen_server/models/pif_test.rb +81 -0
- data/test/fog/compute/xen_server/models/pool_patch_test.rb +43 -0
- data/test/fog/compute/xen_server/models/pool_test.rb +69 -0
- data/test/fog/compute/xen_server/models/role_test.rb +38 -0
- data/test/fog/compute/xen_server/models/server_appliance_test.rb +41 -0
- data/test/fog/compute/xen_server/models/server_metrics_test.rb +48 -0
- data/test/fog/compute/xen_server/models/server_test.rb +149 -0
- data/test/fog/compute/xen_server/models/storage_manger_test.rb +46 -0
- data/test/fog/compute/xen_server/models/storage_repository_test.rb +56 -0
- data/test/fog/compute/xen_server/models/tunnel_test.rb +40 -0
- data/test/fog/compute/xen_server/models/vbd_metrics_test.rb +37 -0
- data/test/fog/compute/xen_server/models/vbd_test.rb +58 -0
- data/test/fog/compute/xen_server/models/vdi_test.rb +71 -0
- data/test/fog/compute/xen_server/models/vif_metrics_test.rb +37 -0
- data/test/fog/compute/xen_server/models/vif_test.rb +59 -0
- data/test/fog/compute/xen_server/models/vlan_test.rb +40 -0
- data/test/fog/compute/xen_server/models/vmpp_test.rb +55 -0
- data/test/fog/compute/xen_server/models/vtpm_test.rb +36 -0
- data/test/minitest_helper.rb +28 -0
- metadata +239 -120
- data/lib/fog/compute.rb +0 -7
- data/lib/fog/xenserver/examples/README.md +0 -11
- data/lib/fog/xenserver/examples/chage_default_storage_repository.md +0 -99
- data/lib/fog/xenserver/examples/creating_servers.md +0 -168
- data/lib/fog/xenserver/examples/getting_started.md +0 -163
- data/lib/fog/xenserver/examples/networks-and-vlans.rb +0 -45
- data/lib/fog/xenserver/examples/storage_repositories.md +0 -94
- data/lib/fog/xenserver/models/compute/blob.rb +0 -22
- data/lib/fog/xenserver/models/compute/blobs.rb +0 -25
- data/lib/fog/xenserver/models/compute/bond.rb +0 -23
- data/lib/fog/xenserver/models/compute/bonds.rb +0 -25
- data/lib/fog/xenserver/models/compute/console.rb +0 -29
- data/lib/fog/xenserver/models/compute/consoles.rb +0 -25
- data/lib/fog/xenserver/models/compute/crash_dump.rb +0 -19
- data/lib/fog/xenserver/models/compute/crash_dumps.rb +0 -25
- data/lib/fog/xenserver/models/compute/dr_task.rb +0 -17
- data/lib/fog/xenserver/models/compute/dr_tasks.rb +0 -25
- data/lib/fog/xenserver/models/compute/gpu_group.rb +0 -22
- data/lib/fog/xenserver/models/compute/gpu_groups.rb +0 -25
- data/lib/fog/xenserver/models/compute/guest_metrics.rb +0 -29
- data/lib/fog/xenserver/models/compute/host.rb +0 -159
- data/lib/fog/xenserver/models/compute/host_cpu.rb +0 -38
- data/lib/fog/xenserver/models/compute/host_crash_dump.rb +0 -20
- data/lib/fog/xenserver/models/compute/host_crash_dumps.rb +0 -25
- data/lib/fog/xenserver/models/compute/host_metrics.rb +0 -29
- data/lib/fog/xenserver/models/compute/host_patch.rb +0 -25
- data/lib/fog/xenserver/models/compute/host_patchs.rb +0 -25
- data/lib/fog/xenserver/models/compute/hosts.rb +0 -29
- data/lib/fog/xenserver/models/compute/network.rb +0 -92
- data/lib/fog/xenserver/models/compute/networks.rb +0 -33
- data/lib/fog/xenserver/models/compute/pbd.rb +0 -40
- data/lib/fog/xenserver/models/compute/pbds.rb +0 -33
- data/lib/fog/xenserver/models/compute/pci.rb +0 -22
- data/lib/fog/xenserver/models/compute/pcis.rb +0 -25
- data/lib/fog/xenserver/models/compute/pgpu.rb +0 -20
- data/lib/fog/xenserver/models/compute/pgpus.rb +0 -25
- data/lib/fog/xenserver/models/compute/pif.rb +0 -57
- data/lib/fog/xenserver/models/compute/pif_metrics.rb +0 -28
- data/lib/fog/xenserver/models/compute/pifs.rb +0 -33
- data/lib/fog/xenserver/models/compute/pifs_metrics.rb +0 -25
- data/lib/fog/xenserver/models/compute/pool.rb +0 -79
- data/lib/fog/xenserver/models/compute/pool_patch.rb +0 -24
- data/lib/fog/xenserver/models/compute/pool_patchs.rb +0 -25
- data/lib/fog/xenserver/models/compute/pools.rb +0 -33
- data/lib/fog/xenserver/models/compute/role.rb +0 -19
- data/lib/fog/xenserver/models/compute/roles.rb +0 -25
- data/lib/fog/xenserver/models/compute/server.rb +0 -250
- data/lib/fog/xenserver/models/compute/server_appliance.rb +0 -21
- data/lib/fog/xenserver/models/compute/server_appliances.rb +0 -25
- data/lib/fog/xenserver/models/compute/servers.rb +0 -68
- data/lib/fog/xenserver/models/compute/storage_manager.rb +0 -28
- data/lib/fog/xenserver/models/compute/storage_managers.rb +0 -25
- data/lib/fog/xenserver/models/compute/storage_repositories.rb +0 -31
- data/lib/fog/xenserver/models/compute/storage_repository.rb +0 -93
- data/lib/fog/xenserver/models/compute/tunnel.rb +0 -20
- data/lib/fog/xenserver/models/compute/tunnels.rb +0 -25
- data/lib/fog/xenserver/models/compute/vbd.rb +0 -91
- data/lib/fog/xenserver/models/compute/vbd_metrics.rb +0 -27
- data/lib/fog/xenserver/models/compute/vbds.rb +0 -33
- data/lib/fog/xenserver/models/compute/vdi.rb +0 -105
- data/lib/fog/xenserver/models/compute/vdis.rb +0 -29
- data/lib/fog/xenserver/models/compute/vif.rb +0 -60
- data/lib/fog/xenserver/models/compute/vifs.rb +0 -29
- data/lib/fog/xenserver/models/compute/vlan.rb +0 -81
- data/lib/fog/xenserver/models/compute/vlans.rb +0 -39
- data/lib/fog/xenserver/models/compute/vmpp.rb +0 -35
- data/lib/fog/xenserver/models/compute/vmpps.rb +0 -25
- data/lib/fog/xenserver/models/compute/vtpm.rb +0 -18
- data/lib/fog/xenserver/models/compute/vtpms.rb +0 -25
- data/lib/fog/xenserver/requests/compute/get_record.rb +0 -29
- data/lib/fog/xenserver/version.rb +0 -5
@@ -0,0 +1,71 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fog::Compute::XenServer::Models::Vdi do
|
4
|
+
let(:vdi_class) do
|
5
|
+
class Fog::Compute::XenServer::Models::Vdi
|
6
|
+
def self.read_identity
|
7
|
+
instance_variable_get('@identity')
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.read_provider_class
|
11
|
+
instance_variable_get('@provider_class')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
Fog::Compute::XenServer::Models::Vdi
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should associate to a provider class' do
|
18
|
+
vdi_class.read_provider_class.must_equal('VDI')
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should have an unique id' do
|
22
|
+
vdi_class.read_identity.must_equal(:reference)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should have 31 attributes' do
|
26
|
+
vdi_class.attributes.must_equal([ :reference,
|
27
|
+
:allowed_operations,
|
28
|
+
:allow_caching,
|
29
|
+
:current_operations,
|
30
|
+
:description,
|
31
|
+
:is_a_snapshot,
|
32
|
+
:location,
|
33
|
+
:managed,
|
34
|
+
:metadata_latest,
|
35
|
+
:metadata_of_pool,
|
36
|
+
:missing,
|
37
|
+
:name,
|
38
|
+
:on_boot,
|
39
|
+
:other_config,
|
40
|
+
:physical_utilisation,
|
41
|
+
:read_only,
|
42
|
+
:sharable,
|
43
|
+
:sm_config,
|
44
|
+
:snapshot_time,
|
45
|
+
:storage_lock,
|
46
|
+
:tags,
|
47
|
+
:type,
|
48
|
+
:uuid,
|
49
|
+
:virtual_size,
|
50
|
+
:xenstore_data,
|
51
|
+
:__crash_dumps,
|
52
|
+
:__parent,
|
53
|
+
:__snapshots,
|
54
|
+
:__snapshot_of,
|
55
|
+
:__sr,
|
56
|
+
:__vbds ])
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'should have 10 aliases' do
|
60
|
+
vdi_class.aliases.must_equal({ :name_label => :name,
|
61
|
+
:name_description => :description,
|
62
|
+
:parent => :__parent,
|
63
|
+
:VBDs => :__vbds,
|
64
|
+
:vbds => :__vbds,
|
65
|
+
:SR => :__sr,
|
66
|
+
:sr => :__sr,
|
67
|
+
:crash_dumps => :__crash_dumps,
|
68
|
+
:snapshots => :__snapshots,
|
69
|
+
:snapshot_of => :__snapshot_of })
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fog::Compute::XenServer::Models::VifMetrics do
|
4
|
+
let(:vif_metrics_class) do
|
5
|
+
class Fog::Compute::XenServer::Models::VifMetrics
|
6
|
+
def self.read_identity
|
7
|
+
instance_variable_get('@identity')
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.read_provider_class
|
11
|
+
instance_variable_get('@provider_class')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
Fog::Compute::XenServer::Models::VifMetrics
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should associate to a provider class' do
|
18
|
+
vif_metrics_class.read_provider_class.must_equal('VIF_metrics')
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should have an unique id' do
|
22
|
+
vif_metrics_class.read_identity.must_equal(:reference)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should have 6 attributes' do
|
26
|
+
vif_metrics_class.attributes.must_equal([ :reference,
|
27
|
+
:io_read_kbs,
|
28
|
+
:io_write_kbs,
|
29
|
+
:last_updated,
|
30
|
+
:other_config,
|
31
|
+
:uuid ])
|
32
|
+
end
|
33
|
+
|
34
|
+
it "should't have aliases" do
|
35
|
+
vif_metrics_class.aliases.must_equal({})
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fog::Compute::XenServer::Models::Vif do
|
4
|
+
let(:vif_class) do
|
5
|
+
class Fog::Compute::XenServer::Models::Vif
|
6
|
+
def self.read_identity
|
7
|
+
instance_variable_get('@identity')
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.read_provider_class
|
11
|
+
instance_variable_get('@provider_class')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
Fog::Compute::XenServer::Models::Vif
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should associate to a provider class' do
|
18
|
+
vif_class.read_provider_class.must_equal('VIF')
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should have an unique id' do
|
22
|
+
vif_class.read_identity.must_equal(:reference)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should have 22 attributes' do
|
26
|
+
vif_class.attributes.must_equal([ :reference,
|
27
|
+
:allowed_operations,
|
28
|
+
:current_operations,
|
29
|
+
:currently_attached,
|
30
|
+
:device,
|
31
|
+
:ipv4_allowed,
|
32
|
+
:ipv6_allowed,
|
33
|
+
:locking_mode,
|
34
|
+
:mac,
|
35
|
+
:mac_autogenerated,
|
36
|
+
:mtu,
|
37
|
+
:other_config,
|
38
|
+
:qos_algorithm_params,
|
39
|
+
:qos_algorithm_type,
|
40
|
+
:qos_supported_algorithms,
|
41
|
+
:runtime_properties,
|
42
|
+
:status_code,
|
43
|
+
:status_detail,
|
44
|
+
:uuid,
|
45
|
+
:__metrics,
|
46
|
+
:__network,
|
47
|
+
:__vm ])
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'should have 7 aliases' do
|
51
|
+
vif_class.aliases.must_equal({ :MAC => :mac,
|
52
|
+
:MAC_autogenerated => :mac_autogenerated,
|
53
|
+
:metrics => :__metrics,
|
54
|
+
:MTU => :mtu,
|
55
|
+
:network => :__network,
|
56
|
+
:VM => :__vm,
|
57
|
+
:vm => :__vm })
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fog::Compute::XenServer::Models::Vlan do
|
4
|
+
let(:vlan_class) do
|
5
|
+
class Fog::Compute::XenServer::Models::Vlan
|
6
|
+
def self.read_identity
|
7
|
+
instance_variable_get('@identity')
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.read_provider_class
|
11
|
+
instance_variable_get('@provider_class')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
Fog::Compute::XenServer::Models::Vlan
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should associate to a provider class' do
|
18
|
+
vlan_class.read_provider_class.must_equal('VLAN')
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should have an unique id' do
|
22
|
+
vlan_class.read_identity.must_equal(:reference)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should have 6 attributes' do
|
26
|
+
vlan_class.attributes.must_equal([ :reference,
|
27
|
+
:other_config,
|
28
|
+
:tag,
|
29
|
+
:uuid,
|
30
|
+
:__tagged_pif,
|
31
|
+
:__untagged_pif ])
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should have 4 aliases' do
|
35
|
+
vlan_class.aliases.must_equal({ :untagged_PIF => :__untagged_pif,
|
36
|
+
:untagged_pif => :__untagged_pif,
|
37
|
+
:tagged_PIF => :__tagged_pif,
|
38
|
+
:tagged_pif => :__tagged_pif })
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fog::Compute::XenServer::Models::Vmpp do
|
4
|
+
let(:vmpp_class) do
|
5
|
+
class Fog::Compute::XenServer::Models::Vmpp
|
6
|
+
def self.read_identity
|
7
|
+
instance_variable_get('@identity')
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.read_provider_class
|
11
|
+
instance_variable_get('@provider_class')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
Fog::Compute::XenServer::Models::Vmpp
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should associate to a provider class' do
|
18
|
+
vmpp_class.read_provider_class.must_equal('VMPP')
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should have an unique id' do
|
22
|
+
vmpp_class.read_identity.must_equal(:reference)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should have 21 attributes' do
|
26
|
+
vmpp_class.attributes.must_equal([ :reference,
|
27
|
+
:alarm_config,
|
28
|
+
:archive_frequency,
|
29
|
+
:archive_last_run_time,
|
30
|
+
:archive_schedule,
|
31
|
+
:archive_target_config,
|
32
|
+
:archive_target_type,
|
33
|
+
:backup_frequency,
|
34
|
+
:backup_last_run_time,
|
35
|
+
:backup_retention_value,
|
36
|
+
:backup_schedule,
|
37
|
+
:backup_type,
|
38
|
+
:description,
|
39
|
+
:is_alarm_enabled,
|
40
|
+
:is_archive_running,
|
41
|
+
:is_backup_running,
|
42
|
+
:is_policy_enabled,
|
43
|
+
:name,
|
44
|
+
:recent_alerts,
|
45
|
+
:uuid,
|
46
|
+
:__vms ])
|
47
|
+
end
|
48
|
+
|
49
|
+
it 'should have 4 aliases' do
|
50
|
+
vmpp_class.aliases.must_equal({ :name_description => :description,
|
51
|
+
:name_label => :name,
|
52
|
+
:VMs => :__vms,
|
53
|
+
:vms => :__vms })
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fog::Compute::XenServer::Models::Vtpm do
|
4
|
+
let(:vtpm_class) do
|
5
|
+
class Fog::Compute::XenServer::Models::Vtpm
|
6
|
+
def self.read_identity
|
7
|
+
instance_variable_get('@identity')
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.read_provider_class
|
11
|
+
instance_variable_get('@provider_class')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
Fog::Compute::XenServer::Models::Vtpm
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should associate to a provider class' do
|
18
|
+
vtpm_class.read_provider_class.must_equal('VTPM')
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should have an unique id' do
|
22
|
+
vtpm_class.read_identity.must_equal(:reference)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should have 4 attributes' do
|
26
|
+
vtpm_class.attributes.must_equal([ :reference,
|
27
|
+
:uuid,
|
28
|
+
:__backend,
|
29
|
+
:__vm ])
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'should have 2 aliases' do
|
33
|
+
vtpm_class.aliases.must_equal({ :backend => :__backend,
|
34
|
+
:vm => :__vm })
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'minitest/spec'
|
2
|
+
require 'minitest/autorun'
|
3
|
+
require 'simplecov'
|
4
|
+
require 'turn'
|
5
|
+
require 'coveralls'
|
6
|
+
|
7
|
+
Turn.config do |c|
|
8
|
+
# use one of output formats:
|
9
|
+
# :outline - turn's original case/test outline mode [default]
|
10
|
+
# :progress - indicates progress with progress bar
|
11
|
+
# :dotted - test/unit's traditional dot-progress mode
|
12
|
+
# :pretty - new pretty reporter
|
13
|
+
# :marshal - dump output as YAML (normal run mode only)
|
14
|
+
# :cue - interactive testing
|
15
|
+
# c.format = :outline
|
16
|
+
# turn on invoke/execute tracing, enable full backtrace
|
17
|
+
c.trace = 20
|
18
|
+
# use humanized test names (works only with :outline format)
|
19
|
+
c.natural = true
|
20
|
+
end
|
21
|
+
|
22
|
+
SimpleCov.start do
|
23
|
+
add_filter '/test/'
|
24
|
+
end
|
25
|
+
|
26
|
+
require File.join(File.dirname(__FILE__), '../lib/fog/xenserver.rb')
|
27
|
+
|
28
|
+
Coveralls.wear!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-xenserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo Henrique Lopes Ribeiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
@@ -53,7 +53,35 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: turn
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: coveralls
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
58
86
|
requirements:
|
59
87
|
- - ">="
|
@@ -73,8 +101,10 @@ extensions: []
|
|
73
101
|
extra_rdoc_files: []
|
74
102
|
files:
|
75
103
|
- ".gitignore"
|
104
|
+
- ".hound.yml"
|
76
105
|
- ".ruby-gemset"
|
77
106
|
- ".ruby-version"
|
107
|
+
- ".travis.yml"
|
78
108
|
- CONTRIBUTING.md
|
79
109
|
- CONTRIBUTORS.md
|
80
110
|
- Gemfile
|
@@ -82,125 +112,178 @@ files:
|
|
82
112
|
- README.md
|
83
113
|
- Rakefile
|
84
114
|
- fog-xenserver.gemspec
|
115
|
+
- gemfiles/Gemfile.1.8.7
|
116
|
+
- gemfiles/Gemfile.1.9.2+
|
85
117
|
- lib/fog.rb
|
86
|
-
- lib/fog/
|
118
|
+
- lib/fog/collection.rb
|
119
|
+
- lib/fog/compute/xen_server.rb
|
120
|
+
- lib/fog/compute/xen_server/mock.rb
|
121
|
+
- lib/fog/compute/xen_server/models.rb
|
122
|
+
- lib/fog/compute/xen_server/models/blob.rb
|
123
|
+
- lib/fog/compute/xen_server/models/blobs.rb
|
124
|
+
- lib/fog/compute/xen_server/models/bond.rb
|
125
|
+
- lib/fog/compute/xen_server/models/bonds.rb
|
126
|
+
- lib/fog/compute/xen_server/models/console.rb
|
127
|
+
- lib/fog/compute/xen_server/models/consoles.rb
|
128
|
+
- lib/fog/compute/xen_server/models/crash_dump.rb
|
129
|
+
- lib/fog/compute/xen_server/models/crash_dumps.rb
|
130
|
+
- lib/fog/compute/xen_server/models/dr_task.rb
|
131
|
+
- lib/fog/compute/xen_server/models/dr_tasks.rb
|
132
|
+
- lib/fog/compute/xen_server/models/gpu_group.rb
|
133
|
+
- lib/fog/compute/xen_server/models/gpu_groups.rb
|
134
|
+
- lib/fog/compute/xen_server/models/guest_metrics.rb
|
135
|
+
- lib/fog/compute/xen_server/models/guests_metrics.rb
|
136
|
+
- lib/fog/compute/xen_server/models/host.rb
|
137
|
+
- lib/fog/compute/xen_server/models/host_cpu.rb
|
138
|
+
- lib/fog/compute/xen_server/models/host_cpus.rb
|
139
|
+
- lib/fog/compute/xen_server/models/host_crash_dump.rb
|
140
|
+
- lib/fog/compute/xen_server/models/host_crash_dumps.rb
|
141
|
+
- lib/fog/compute/xen_server/models/host_metrics.rb
|
142
|
+
- lib/fog/compute/xen_server/models/host_patch.rb
|
143
|
+
- lib/fog/compute/xen_server/models/host_patchs.rb
|
144
|
+
- lib/fog/compute/xen_server/models/hosts.rb
|
145
|
+
- lib/fog/compute/xen_server/models/hosts_metrics.rb
|
146
|
+
- lib/fog/compute/xen_server/models/network.rb
|
147
|
+
- lib/fog/compute/xen_server/models/networks.rb
|
148
|
+
- lib/fog/compute/xen_server/models/pbd.rb
|
149
|
+
- lib/fog/compute/xen_server/models/pbds.rb
|
150
|
+
- lib/fog/compute/xen_server/models/pci.rb
|
151
|
+
- lib/fog/compute/xen_server/models/pcis.rb
|
152
|
+
- lib/fog/compute/xen_server/models/pgpu.rb
|
153
|
+
- lib/fog/compute/xen_server/models/pgpus.rb
|
154
|
+
- lib/fog/compute/xen_server/models/pif.rb
|
155
|
+
- lib/fog/compute/xen_server/models/pif_metrics.rb
|
156
|
+
- lib/fog/compute/xen_server/models/pifs.rb
|
157
|
+
- lib/fog/compute/xen_server/models/pifs_metrics.rb
|
158
|
+
- lib/fog/compute/xen_server/models/pool.rb
|
159
|
+
- lib/fog/compute/xen_server/models/pool_patch.rb
|
160
|
+
- lib/fog/compute/xen_server/models/pool_patchs.rb
|
161
|
+
- lib/fog/compute/xen_server/models/pools.rb
|
162
|
+
- lib/fog/compute/xen_server/models/role.rb
|
163
|
+
- lib/fog/compute/xen_server/models/roles.rb
|
164
|
+
- lib/fog/compute/xen_server/models/server.rb
|
165
|
+
- lib/fog/compute/xen_server/models/server_appliance.rb
|
166
|
+
- lib/fog/compute/xen_server/models/server_appliances.rb
|
167
|
+
- lib/fog/compute/xen_server/models/server_metrics.rb
|
168
|
+
- lib/fog/compute/xen_server/models/servers.rb
|
169
|
+
- lib/fog/compute/xen_server/models/servers_metrics.rb
|
170
|
+
- lib/fog/compute/xen_server/models/storage_manager.rb
|
171
|
+
- lib/fog/compute/xen_server/models/storage_managers.rb
|
172
|
+
- lib/fog/compute/xen_server/models/storage_repositories.rb
|
173
|
+
- lib/fog/compute/xen_server/models/storage_repository.rb
|
174
|
+
- lib/fog/compute/xen_server/models/tunnel.rb
|
175
|
+
- lib/fog/compute/xen_server/models/tunnels.rb
|
176
|
+
- lib/fog/compute/xen_server/models/vbd.rb
|
177
|
+
- lib/fog/compute/xen_server/models/vbd_metrics.rb
|
178
|
+
- lib/fog/compute/xen_server/models/vbds.rb
|
179
|
+
- lib/fog/compute/xen_server/models/vbds_metrics.rb
|
180
|
+
- lib/fog/compute/xen_server/models/vdi.rb
|
181
|
+
- lib/fog/compute/xen_server/models/vdis.rb
|
182
|
+
- lib/fog/compute/xen_server/models/vif.rb
|
183
|
+
- lib/fog/compute/xen_server/models/vif_metrics.rb
|
184
|
+
- lib/fog/compute/xen_server/models/vifs.rb
|
185
|
+
- lib/fog/compute/xen_server/models/vifs_metrics.rb
|
186
|
+
- lib/fog/compute/xen_server/models/vlan.rb
|
187
|
+
- lib/fog/compute/xen_server/models/vlans.rb
|
188
|
+
- lib/fog/compute/xen_server/models/vmpp.rb
|
189
|
+
- lib/fog/compute/xen_server/models/vmpps.rb
|
190
|
+
- lib/fog/compute/xen_server/models/vtpm.rb
|
191
|
+
- lib/fog/compute/xen_server/models/vtpms.rb
|
192
|
+
- lib/fog/compute/xen_server/real.rb
|
193
|
+
- lib/fog/compute/xen_server/requests/builtin_templates.rb
|
194
|
+
- lib/fog/compute/xen_server/requests/clone_server.rb
|
195
|
+
- lib/fog/compute/xen_server/requests/create_network.rb
|
196
|
+
- lib/fog/compute/xen_server/requests/create_server.rb
|
197
|
+
- lib/fog/compute/xen_server/requests/create_sr.rb
|
198
|
+
- lib/fog/compute/xen_server/requests/create_vbd.rb
|
199
|
+
- lib/fog/compute/xen_server/requests/create_vdi.rb
|
200
|
+
- lib/fog/compute/xen_server/requests/create_vif.rb
|
201
|
+
- lib/fog/compute/xen_server/requests/create_vlan.rb
|
202
|
+
- lib/fog/compute/xen_server/requests/custom_templates.rb
|
203
|
+
- lib/fog/compute/xen_server/requests/destroy_network.rb
|
204
|
+
- lib/fog/compute/xen_server/requests/destroy_server.rb
|
205
|
+
- lib/fog/compute/xen_server/requests/destroy_sr.rb
|
206
|
+
- lib/fog/compute/xen_server/requests/destroy_vdi.rb
|
207
|
+
- lib/fog/compute/xen_server/requests/destroy_vif.rb
|
208
|
+
- lib/fog/compute/xen_server/requests/destroy_vlan.rb
|
209
|
+
- lib/fog/compute/xen_server/requests/disable_host.rb
|
210
|
+
- lib/fog/compute/xen_server/requests/eject_vbd.rb
|
211
|
+
- lib/fog/compute/xen_server/requests/enable_host.rb
|
212
|
+
- lib/fog/compute/xen_server/requests/get_record.rb
|
213
|
+
- lib/fog/compute/xen_server/requests/get_records.rb
|
214
|
+
- lib/fog/compute/xen_server/requests/insert_vbd.rb
|
215
|
+
- lib/fog/compute/xen_server/requests/provision_server.rb
|
216
|
+
- lib/fog/compute/xen_server/requests/reboot_host.rb
|
217
|
+
- lib/fog/compute/xen_server/requests/reboot_server.rb
|
218
|
+
- lib/fog/compute/xen_server/requests/scan_sr.rb
|
219
|
+
- lib/fog/compute/xen_server/requests/set_affinity.rb
|
220
|
+
- lib/fog/compute/xen_server/requests/set_attribute.rb
|
221
|
+
- lib/fog/compute/xen_server/requests/shutdown_host.rb
|
222
|
+
- lib/fog/compute/xen_server/requests/shutdown_server.rb
|
223
|
+
- lib/fog/compute/xen_server/requests/snapshot_revert.rb
|
224
|
+
- lib/fog/compute/xen_server/requests/snapshot_server.rb
|
225
|
+
- lib/fog/compute/xen_server/requests/start_server.rb
|
226
|
+
- lib/fog/compute/xen_server/requests/start_vm.rb
|
227
|
+
- lib/fog/compute/xen_server/requests/templates.rb
|
228
|
+
- lib/fog/compute/xen_server/requests/unplug_pbd.rb
|
229
|
+
- lib/fog/compute/xen_server/requests/unplug_vbd.rb
|
230
|
+
- lib/fog/model.rb
|
231
|
+
- lib/fog/parsers/xen_server.rb
|
232
|
+
- lib/fog/parsers/xen_server/base.rb
|
233
|
+
- lib/fog/parsers/xen_server/get_hosts.rb
|
234
|
+
- lib/fog/parsers/xen_server/get_networks.rb
|
235
|
+
- lib/fog/parsers/xen_server/get_pools.rb
|
236
|
+
- lib/fog/parsers/xen_server/get_records.rb
|
237
|
+
- lib/fog/parsers/xen_server/get_storage_repositories.rb
|
238
|
+
- lib/fog/parsers/xen_server/get_vbds.rb
|
239
|
+
- lib/fog/parsers/xen_server/get_vifs.rb
|
240
|
+
- lib/fog/parsers/xen_server/get_vms.rb
|
241
|
+
- lib/fog/utilities.rb
|
242
|
+
- lib/fog/xen_server/connection.rb
|
243
|
+
- lib/fog/xen_server/invalid_login.rb
|
244
|
+
- lib/fog/xen_server/nokogiri_stream_parser.rb
|
245
|
+
- lib/fog/xen_server/not_found.rb
|
246
|
+
- lib/fog/xen_server/request_failed.rb
|
247
|
+
- lib/fog/xen_server/version.rb
|
87
248
|
- lib/fog/xenserver.rb
|
88
249
|
- lib/fog/xenserver/compute.rb
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
115
|
-
-
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
125
|
-
|
126
|
-
- lib/fog/xenserver/models/compute/pif_metrics.rb
|
127
|
-
- lib/fog/xenserver/models/compute/pifs.rb
|
128
|
-
- lib/fog/xenserver/models/compute/pifs_metrics.rb
|
129
|
-
- lib/fog/xenserver/models/compute/pool.rb
|
130
|
-
- lib/fog/xenserver/models/compute/pool_patch.rb
|
131
|
-
- lib/fog/xenserver/models/compute/pool_patchs.rb
|
132
|
-
- lib/fog/xenserver/models/compute/pools.rb
|
133
|
-
- lib/fog/xenserver/models/compute/role.rb
|
134
|
-
- lib/fog/xenserver/models/compute/roles.rb
|
135
|
-
- lib/fog/xenserver/models/compute/server.rb
|
136
|
-
- lib/fog/xenserver/models/compute/server_appliance.rb
|
137
|
-
- lib/fog/xenserver/models/compute/server_appliances.rb
|
138
|
-
- lib/fog/xenserver/models/compute/servers.rb
|
139
|
-
- lib/fog/xenserver/models/compute/storage_manager.rb
|
140
|
-
- lib/fog/xenserver/models/compute/storage_managers.rb
|
141
|
-
- lib/fog/xenserver/models/compute/storage_repositories.rb
|
142
|
-
- lib/fog/xenserver/models/compute/storage_repository.rb
|
143
|
-
- lib/fog/xenserver/models/compute/tunnel.rb
|
144
|
-
- lib/fog/xenserver/models/compute/tunnels.rb
|
145
|
-
- lib/fog/xenserver/models/compute/vbd.rb
|
146
|
-
- lib/fog/xenserver/models/compute/vbd_metrics.rb
|
147
|
-
- lib/fog/xenserver/models/compute/vbds.rb
|
148
|
-
- lib/fog/xenserver/models/compute/vdi.rb
|
149
|
-
- lib/fog/xenserver/models/compute/vdis.rb
|
150
|
-
- lib/fog/xenserver/models/compute/vif.rb
|
151
|
-
- lib/fog/xenserver/models/compute/vifs.rb
|
152
|
-
- lib/fog/xenserver/models/compute/vlan.rb
|
153
|
-
- lib/fog/xenserver/models/compute/vlans.rb
|
154
|
-
- lib/fog/xenserver/models/compute/vmpp.rb
|
155
|
-
- lib/fog/xenserver/models/compute/vmpps.rb
|
156
|
-
- lib/fog/xenserver/models/compute/vtpm.rb
|
157
|
-
- lib/fog/xenserver/models/compute/vtpms.rb
|
158
|
-
- lib/fog/xenserver/parser.rb
|
159
|
-
- lib/fog/xenserver/parsers/get_hosts.rb
|
160
|
-
- lib/fog/xenserver/parsers/get_networks.rb
|
161
|
-
- lib/fog/xenserver/parsers/get_pools.rb
|
162
|
-
- lib/fog/xenserver/parsers/get_records.rb
|
163
|
-
- lib/fog/xenserver/parsers/get_storage_repositories.rb
|
164
|
-
- lib/fog/xenserver/parsers/get_vbds.rb
|
165
|
-
- lib/fog/xenserver/parsers/get_vifs.rb
|
166
|
-
- lib/fog/xenserver/parsers/get_vms.rb
|
167
|
-
- lib/fog/xenserver/requests/compute/clone_server.rb
|
168
|
-
- lib/fog/xenserver/requests/compute/create_network.rb
|
169
|
-
- lib/fog/xenserver/requests/compute/create_server.rb
|
170
|
-
- lib/fog/xenserver/requests/compute/create_sr.rb
|
171
|
-
- lib/fog/xenserver/requests/compute/create_vbd.rb
|
172
|
-
- lib/fog/xenserver/requests/compute/create_vdi.rb
|
173
|
-
- lib/fog/xenserver/requests/compute/create_vif.rb
|
174
|
-
- lib/fog/xenserver/requests/compute/create_vlan.rb
|
175
|
-
- lib/fog/xenserver/requests/compute/destroy_network.rb
|
176
|
-
- lib/fog/xenserver/requests/compute/destroy_server.rb
|
177
|
-
- lib/fog/xenserver/requests/compute/destroy_sr.rb
|
178
|
-
- lib/fog/xenserver/requests/compute/destroy_vdi.rb
|
179
|
-
- lib/fog/xenserver/requests/compute/destroy_vif.rb
|
180
|
-
- lib/fog/xenserver/requests/compute/destroy_vlan.rb
|
181
|
-
- lib/fog/xenserver/requests/compute/disable_host.rb
|
182
|
-
- lib/fog/xenserver/requests/compute/eject_vbd.rb
|
183
|
-
- lib/fog/xenserver/requests/compute/enable_host.rb
|
184
|
-
- lib/fog/xenserver/requests/compute/get_record.rb
|
185
|
-
- lib/fog/xenserver/requests/compute/get_records.rb
|
186
|
-
- lib/fog/xenserver/requests/compute/insert_vbd.rb
|
187
|
-
- lib/fog/xenserver/requests/compute/provision_server.rb
|
188
|
-
- lib/fog/xenserver/requests/compute/reboot_host.rb
|
189
|
-
- lib/fog/xenserver/requests/compute/reboot_server.rb
|
190
|
-
- lib/fog/xenserver/requests/compute/scan_sr.rb
|
191
|
-
- lib/fog/xenserver/requests/compute/set_affinity.rb
|
192
|
-
- lib/fog/xenserver/requests/compute/set_attribute.rb
|
193
|
-
- lib/fog/xenserver/requests/compute/shutdown_host.rb
|
194
|
-
- lib/fog/xenserver/requests/compute/shutdown_server.rb
|
195
|
-
- lib/fog/xenserver/requests/compute/snapshot_revert.rb
|
196
|
-
- lib/fog/xenserver/requests/compute/snapshot_server.rb
|
197
|
-
- lib/fog/xenserver/requests/compute/start_server.rb
|
198
|
-
- lib/fog/xenserver/requests/compute/start_vm.rb
|
199
|
-
- lib/fog/xenserver/requests/compute/unplug_pbd.rb
|
200
|
-
- lib/fog/xenserver/requests/compute/unplug_vbd.rb
|
201
|
-
- lib/fog/xenserver/utilities.rb
|
202
|
-
- lib/fog/xenserver/version.rb
|
203
|
-
homepage: https://github.com/zertico/fog-xenserver
|
250
|
+
- test/fog/compute/xen_server/models/blob_test.rb
|
251
|
+
- test/fog/compute/xen_server/models/bond_test.rb
|
252
|
+
- test/fog/compute/xen_server/models/console_test.rb
|
253
|
+
- test/fog/compute/xen_server/models/crash_dump_test.rb
|
254
|
+
- test/fog/compute/xen_server/models/dr_task_test.rb
|
255
|
+
- test/fog/compute/xen_server/models/gpu_group_test.rb
|
256
|
+
- test/fog/compute/xen_server/models/guest_metrics_test.rb
|
257
|
+
- test/fog/compute/xen_server/models/host_cpu_test.rb
|
258
|
+
- test/fog/compute/xen_server/models/host_crash_dump_test.rb
|
259
|
+
- test/fog/compute/xen_server/models/host_metrics_test.rb
|
260
|
+
- test/fog/compute/xen_server/models/host_patch_test.rb
|
261
|
+
- test/fog/compute/xen_server/models/host_test.rb
|
262
|
+
- test/fog/compute/xen_server/models/network_test.rb
|
263
|
+
- test/fog/compute/xen_server/models/pbd_test.rb
|
264
|
+
- test/fog/compute/xen_server/models/pci_test.rb
|
265
|
+
- test/fog/compute/xen_server/models/pgpu_test.rb
|
266
|
+
- test/fog/compute/xen_server/models/pif_metrics_test.rb
|
267
|
+
- test/fog/compute/xen_server/models/pif_test.rb
|
268
|
+
- test/fog/compute/xen_server/models/pool_patch_test.rb
|
269
|
+
- test/fog/compute/xen_server/models/pool_test.rb
|
270
|
+
- test/fog/compute/xen_server/models/role_test.rb
|
271
|
+
- test/fog/compute/xen_server/models/server_appliance_test.rb
|
272
|
+
- test/fog/compute/xen_server/models/server_metrics_test.rb
|
273
|
+
- test/fog/compute/xen_server/models/server_test.rb
|
274
|
+
- test/fog/compute/xen_server/models/storage_manger_test.rb
|
275
|
+
- test/fog/compute/xen_server/models/storage_repository_test.rb
|
276
|
+
- test/fog/compute/xen_server/models/tunnel_test.rb
|
277
|
+
- test/fog/compute/xen_server/models/vbd_metrics_test.rb
|
278
|
+
- test/fog/compute/xen_server/models/vbd_test.rb
|
279
|
+
- test/fog/compute/xen_server/models/vdi_test.rb
|
280
|
+
- test/fog/compute/xen_server/models/vif_metrics_test.rb
|
281
|
+
- test/fog/compute/xen_server/models/vif_test.rb
|
282
|
+
- test/fog/compute/xen_server/models/vlan_test.rb
|
283
|
+
- test/fog/compute/xen_server/models/vmpp_test.rb
|
284
|
+
- test/fog/compute/xen_server/models/vtpm_test.rb
|
285
|
+
- test/minitest_helper.rb
|
286
|
+
homepage: https://github.com/fog/fog-xenserver
|
204
287
|
licenses:
|
205
288
|
- MIT
|
206
289
|
metadata: {}
|
@@ -225,4 +308,40 @@ signing_key:
|
|
225
308
|
specification_version: 4
|
226
309
|
summary: This library can be used as a module for `fog` or as standalone provider
|
227
310
|
to use the XENSERVER in applications.
|
228
|
-
test_files:
|
311
|
+
test_files:
|
312
|
+
- test/fog/compute/xen_server/models/blob_test.rb
|
313
|
+
- test/fog/compute/xen_server/models/bond_test.rb
|
314
|
+
- test/fog/compute/xen_server/models/console_test.rb
|
315
|
+
- test/fog/compute/xen_server/models/crash_dump_test.rb
|
316
|
+
- test/fog/compute/xen_server/models/dr_task_test.rb
|
317
|
+
- test/fog/compute/xen_server/models/gpu_group_test.rb
|
318
|
+
- test/fog/compute/xen_server/models/guest_metrics_test.rb
|
319
|
+
- test/fog/compute/xen_server/models/host_cpu_test.rb
|
320
|
+
- test/fog/compute/xen_server/models/host_crash_dump_test.rb
|
321
|
+
- test/fog/compute/xen_server/models/host_metrics_test.rb
|
322
|
+
- test/fog/compute/xen_server/models/host_patch_test.rb
|
323
|
+
- test/fog/compute/xen_server/models/host_test.rb
|
324
|
+
- test/fog/compute/xen_server/models/network_test.rb
|
325
|
+
- test/fog/compute/xen_server/models/pbd_test.rb
|
326
|
+
- test/fog/compute/xen_server/models/pci_test.rb
|
327
|
+
- test/fog/compute/xen_server/models/pgpu_test.rb
|
328
|
+
- test/fog/compute/xen_server/models/pif_metrics_test.rb
|
329
|
+
- test/fog/compute/xen_server/models/pif_test.rb
|
330
|
+
- test/fog/compute/xen_server/models/pool_patch_test.rb
|
331
|
+
- test/fog/compute/xen_server/models/pool_test.rb
|
332
|
+
- test/fog/compute/xen_server/models/role_test.rb
|
333
|
+
- test/fog/compute/xen_server/models/server_appliance_test.rb
|
334
|
+
- test/fog/compute/xen_server/models/server_metrics_test.rb
|
335
|
+
- test/fog/compute/xen_server/models/server_test.rb
|
336
|
+
- test/fog/compute/xen_server/models/storage_manger_test.rb
|
337
|
+
- test/fog/compute/xen_server/models/storage_repository_test.rb
|
338
|
+
- test/fog/compute/xen_server/models/tunnel_test.rb
|
339
|
+
- test/fog/compute/xen_server/models/vbd_metrics_test.rb
|
340
|
+
- test/fog/compute/xen_server/models/vbd_test.rb
|
341
|
+
- test/fog/compute/xen_server/models/vdi_test.rb
|
342
|
+
- test/fog/compute/xen_server/models/vif_metrics_test.rb
|
343
|
+
- test/fog/compute/xen_server/models/vif_test.rb
|
344
|
+
- test/fog/compute/xen_server/models/vlan_test.rb
|
345
|
+
- test/fog/compute/xen_server/models/vmpp_test.rb
|
346
|
+
- test/fog/compute/xen_server/models/vtpm_test.rb
|
347
|
+
- test/minitest_helper.rb
|