fog-ovirt 1.1.6 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +12 -5
  3. data/lib/fog/bin/ovirt.rb +3 -3
  4. data/lib/fog/ovirt.rb +2 -4
  5. data/lib/fog/ovirt/compute.rb +12 -12
  6. data/lib/fog/ovirt/compute/v3.rb +2 -2
  7. data/lib/fog/ovirt/compute/v4.rb +4 -2
  8. data/lib/fog/ovirt/models/compute/affinity_group.rb +2 -2
  9. data/lib/fog/ovirt/models/compute/affinity_groups.rb +3 -3
  10. data/lib/fog/ovirt/models/compute/cluster.rb +2 -2
  11. data/lib/fog/ovirt/models/compute/clusters.rb +3 -3
  12. data/lib/fog/ovirt/models/compute/instance_type.rb +2 -2
  13. data/lib/fog/ovirt/models/compute/instance_types.rb +3 -3
  14. data/lib/fog/ovirt/models/compute/interface.rb +2 -2
  15. data/lib/fog/ovirt/models/compute/interfaces.rb +5 -5
  16. data/lib/fog/ovirt/models/compute/operating_system.rb +2 -2
  17. data/lib/fog/ovirt/models/compute/operating_systems.rb +3 -3
  18. data/lib/fog/ovirt/models/compute/quota.rb +2 -2
  19. data/lib/fog/ovirt/models/compute/quotas.rb +3 -3
  20. data/lib/fog/ovirt/models/compute/server.rb +4 -4
  21. data/lib/fog/ovirt/models/compute/servers.rb +3 -3
  22. data/lib/fog/ovirt/models/compute/template.rb +4 -4
  23. data/lib/fog/ovirt/models/compute/templates.rb +3 -3
  24. data/lib/fog/ovirt/models/compute/volume.rb +4 -4
  25. data/lib/fog/ovirt/models/compute/volumes.rb +5 -5
  26. data/lib/fog/ovirt/requests/compute/v3/activate_volume.rb +2 -2
  27. data/lib/fog/ovirt/requests/compute/v3/add_interface.rb +2 -2
  28. data/lib/fog/ovirt/requests/compute/v3/add_to_affinity_group.rb +2 -2
  29. data/lib/fog/ovirt/requests/compute/v3/add_volume.rb +2 -2
  30. data/lib/fog/ovirt/requests/compute/v3/attach_volume.rb +2 -2
  31. data/lib/fog/ovirt/requests/compute/v3/create_affinity_group.rb +2 -2
  32. data/lib/fog/ovirt/requests/compute/v3/create_vm.rb +2 -2
  33. data/lib/fog/ovirt/requests/compute/v3/datacenters.rb +2 -2
  34. data/lib/fog/ovirt/requests/compute/v3/deactivate_volume.rb +2 -2
  35. data/lib/fog/ovirt/requests/compute/v3/destroy_affinity_group.rb +2 -2
  36. data/lib/fog/ovirt/requests/compute/v3/destroy_interface.rb +2 -2
  37. data/lib/fog/ovirt/requests/compute/v3/destroy_vm.rb +2 -2
  38. data/lib/fog/ovirt/requests/compute/v3/destroy_volume.rb +2 -2
  39. data/lib/fog/ovirt/requests/compute/v3/detach_volume.rb +2 -2
  40. data/lib/fog/ovirt/requests/compute/v3/get_affinity_group.rb +2 -2
  41. data/lib/fog/ovirt/requests/compute/v3/get_api_version.rb +2 -2
  42. data/lib/fog/ovirt/requests/compute/v3/get_cluster.rb +2 -2
  43. data/lib/fog/ovirt/requests/compute/v3/get_instance_type.rb +2 -2
  44. data/lib/fog/ovirt/requests/compute/v3/get_quota.rb +2 -2
  45. data/lib/fog/ovirt/requests/compute/v3/get_template.rb +2 -2
  46. data/lib/fog/ovirt/requests/compute/v3/get_virtual_machine.rb +2 -2
  47. data/lib/fog/ovirt/requests/compute/v3/list_affinity_group_vms.rb +2 -2
  48. data/lib/fog/ovirt/requests/compute/v3/list_affinity_groups.rb +2 -2
  49. data/lib/fog/ovirt/requests/compute/v3/list_clusters.rb +2 -2
  50. data/lib/fog/ovirt/requests/compute/v3/list_instance_types.rb +2 -2
  51. data/lib/fog/ovirt/requests/compute/v3/list_networks.rb +2 -2
  52. data/lib/fog/ovirt/requests/compute/v3/list_operating_systems.rb +2 -2
  53. data/lib/fog/ovirt/requests/compute/v3/list_quotas.rb +3 -3
  54. data/lib/fog/ovirt/requests/compute/v3/list_template_interfaces.rb +2 -2
  55. data/lib/fog/ovirt/requests/compute/v3/list_template_volumes.rb +2 -2
  56. data/lib/fog/ovirt/requests/compute/v3/list_templates.rb +2 -2
  57. data/lib/fog/ovirt/requests/compute/v3/list_virtual_machines.rb +2 -2
  58. data/lib/fog/ovirt/requests/compute/v3/list_vm_interfaces.rb +2 -2
  59. data/lib/fog/ovirt/requests/compute/v3/list_vm_volumes.rb +2 -2
  60. data/lib/fog/ovirt/requests/compute/v3/list_volumes.rb +2 -2
  61. data/lib/fog/ovirt/requests/compute/v3/remove_from_affinity_group.rb +2 -2
  62. data/lib/fog/ovirt/requests/compute/v3/storage_domains.rb +2 -2
  63. data/lib/fog/ovirt/requests/compute/v3/update_interface.rb +4 -4
  64. data/lib/fog/ovirt/requests/compute/v3/update_vm.rb +2 -2
  65. data/lib/fog/ovirt/requests/compute/v3/update_volume.rb +4 -4
  66. data/lib/fog/ovirt/requests/compute/v3/vm_action.rb +2 -2
  67. data/lib/fog/ovirt/requests/compute/v3/vm_start_with_cloudinit.rb +2 -2
  68. data/lib/fog/ovirt/requests/compute/v3/vm_ticket.rb +2 -2
  69. data/lib/fog/ovirt/requests/compute/v4/add_interface.rb +2 -2
  70. data/lib/fog/ovirt/requests/compute/v4/add_volume.rb +6 -7
  71. data/lib/fog/ovirt/requests/compute/v4/create_vm.rb +3 -3
  72. data/lib/fog/ovirt/requests/compute/v4/datacenters.rb +2 -2
  73. data/lib/fog/ovirt/requests/compute/v4/destroy_interface.rb +2 -2
  74. data/lib/fog/ovirt/requests/compute/v4/destroy_vm.rb +2 -2
  75. data/lib/fog/ovirt/requests/compute/v4/destroy_volume.rb +2 -2
  76. data/lib/fog/ovirt/requests/compute/v4/get_api_version.rb +2 -2
  77. data/lib/fog/ovirt/requests/compute/v4/get_cluster.rb +2 -2
  78. data/lib/fog/ovirt/requests/compute/v4/get_instance_type.rb +2 -2
  79. data/lib/fog/ovirt/requests/compute/v4/get_quota.rb +2 -2
  80. data/lib/fog/ovirt/requests/compute/v4/get_template.rb +2 -2
  81. data/lib/fog/ovirt/requests/compute/v4/get_virtual_machine.rb +2 -2
  82. data/lib/fog/ovirt/requests/compute/v4/list_clusters.rb +2 -2
  83. data/lib/fog/ovirt/requests/compute/v4/list_instance_types.rb +2 -2
  84. data/lib/fog/ovirt/requests/compute/v4/list_networks.rb +2 -2
  85. data/lib/fog/ovirt/requests/compute/v4/list_operating_systems.rb +2 -2
  86. data/lib/fog/ovirt/requests/compute/v4/list_quotas.rb +2 -2
  87. data/lib/fog/ovirt/requests/compute/v4/list_template_interfaces.rb +2 -2
  88. data/lib/fog/ovirt/requests/compute/v4/list_template_volumes.rb +2 -2
  89. data/lib/fog/ovirt/requests/compute/v4/list_templates.rb +2 -2
  90. data/lib/fog/ovirt/requests/compute/v4/list_virtual_machines.rb +2 -2
  91. data/lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb +2 -2
  92. data/lib/fog/ovirt/requests/compute/v4/list_vm_volumes.rb +2 -2
  93. data/lib/fog/ovirt/requests/compute/v4/list_volumes.rb +2 -2
  94. data/lib/fog/ovirt/requests/compute/v4/storage_domains.rb +2 -2
  95. data/lib/fog/ovirt/requests/compute/v4/update_interface.rb +4 -4
  96. data/lib/fog/ovirt/requests/compute/v4/update_vm.rb +2 -2
  97. data/lib/fog/ovirt/requests/compute/v4/update_volume.rb +4 -4
  98. data/lib/fog/ovirt/requests/compute/v4/vm_action.rb +2 -2
  99. data/lib/fog/ovirt/requests/compute/v4/vm_start_with_cloudinit.rb +2 -2
  100. data/lib/fog/ovirt/requests/compute/v4/vm_ticket.rb +2 -2
  101. data/lib/fog/ovirt/version.rb +1 -1
  102. data/tests/ovirt/compute_tests.rb +2 -2
  103. data/tests/ovirt/models/compute/cluster_tests.rb +3 -3
  104. data/tests/ovirt/models/compute/clusters_tests.rb +3 -3
  105. data/tests/ovirt/models/compute/interface_tests.rb +3 -3
  106. data/tests/ovirt/models/compute/interfaces_tests.rb +3 -3
  107. data/tests/ovirt/models/compute/operating_system_tests.rb +3 -3
  108. data/tests/ovirt/models/compute/operating_systems_tests.rb +3 -3
  109. data/tests/ovirt/models/compute/server_tests.rb +3 -3
  110. data/tests/ovirt/models/compute/servers_tests.rb +3 -3
  111. data/tests/ovirt/models/compute/template_tests.rb +3 -3
  112. data/tests/ovirt/models/compute/templates_tests.rb +3 -3
  113. data/tests/ovirt/requests/compute/v3/client_tests.rb +2 -2
  114. data/tests/ovirt/requests/compute/v3/create_vm_tests.rb +2 -2
  115. data/tests/ovirt/requests/compute/v3/destroy_vm_tests.rb +2 -2
  116. data/tests/ovirt/requests/compute/v3/list_datacenters_tests.rb +2 -2
  117. data/tests/ovirt/requests/compute/v3/list_quotas_tests.rb +2 -2
  118. data/tests/ovirt/requests/compute/v3/list_storage_domains_tests.rb +2 -2
  119. data/tests/ovirt/requests/compute/v3/update_vm_tests.rb +2 -2
  120. data/tests/ovirt/requests/compute/v3/update_volume_tests.rb +2 -2
  121. data/tests/ovirt/requests/compute/v4/client_tests.rb +2 -2
  122. data/tests/ovirt/requests/compute/v4/create_vm_tests.rb +2 -2
  123. data/tests/ovirt/requests/compute/v4/destroy_vm_tests.rb +2 -2
  124. data/tests/ovirt/requests/compute/v4/list_datacenters_tests.rb +1 -1
  125. data/tests/ovirt/requests/compute/v4/list_quotas_tests.rb +1 -1
  126. data/tests/ovirt/requests/compute/v4/list_storage_domains_tests.rb +1 -1
  127. data/tests/ovirt/requests/compute/v4/update_volume_tests.rb +1 -1
  128. metadata +3 -3
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V3
5
5
  class Real
6
6
  def vm_start_with_cloudinit(options = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V3
5
5
  class Real
6
6
  def vm_ticket(id, options = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  # rubocop:disable Metrics/AbcSize
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def add_volume(id, options = {})
@@ -17,20 +17,19 @@ module Fog
17
17
  def add_options_defaults(options)
18
18
  options = options.dup
19
19
  options = convert_string_to_bool(options)
20
- search = options[:search] || format("datacenter=%<datacenter>s", :datacenter => datacenter)
21
20
  options[:bootable] = options.delete(:bootable)
22
21
  options[:interface] ||= OvirtSDK4::DiskInterface::VIRTIO
23
- options[:provisioned_size] = options[:size_gb].to_i * Fog::Compute::Ovirt::DISK_SIZE_TO_GB if options[:size_gb]
22
+ options[:provisioned_size] = options[:size_gb].to_i * Fog::Ovirt::Compute::DISK_SIZE_TO_GB if options[:size_gb]
24
23
  options[:sparse] = true if options[:sparse].nil?
25
- options[:storage_domain_id] = options[:storage_domain] || storagedomains(:role => "data", :search => search).first.id
24
+ options[:storage_domain_id] = options[:storage_domain] if options[:storage_domain]
26
25
  # If no size is given, default to a volume size of 8GB
27
- options[:provisioned_size] ||= 8 * Fog::Compute::Ovirt::DISK_SIZE_TO_GB
26
+ options[:provisioned_size] ||= 8 * Fog::Ovirt::Compute::DISK_SIZE_TO_GB
28
27
  options[:type] ||= OvirtSDK4::DiskType::DATA
29
28
  options[:format] ||= OvirtSDK4::DiskFormat::COW
30
29
  options[:quota] = options[:quota].present? ? client.system_service.data_centers_service.data_center_service(datacenter).quotas_service.quota_service(options[:quota]).get : nil
31
30
  options[:disk] ||= {}
32
31
  options[:disk][:sparse] = options.delete(:sparse) if options[:disk][:sparse].nil?
33
- options[:disk][:storage_domains] ||= [client.system_service.storage_domains_service.storage_domain_service(options[:storage_domain_id]).get]
32
+ options[:disk][:storage_domains] ||= [client.system_service.storage_domains_service.storage_domain_service(options[:storage_domain_id]).get] if options[:storage_domain_id]
34
33
  options[:disk][:provisioned_size] ||= options.delete(:provisioned_size)
35
34
  options[:disk][:format] ||= options.delete(:format)
36
35
  options[:disk][:wipe_after_delete] = options.delete(:wipe_after_delete) if options[:disk][:wipe_after_delete].nil?
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def create_disk_attachment_from_disk(disk_to_attachment)
@@ -55,7 +55,7 @@ module Fog
55
55
  cpu_topology = OvirtSDK4::CpuTopology.new(:cores => attrs.fetch(:cores, "1"), :sockets => attrs.fetch(:sockets, "1"))
56
56
  attrs[:cpu] = OvirtSDK4::Cpu.new(:topology => cpu_topology)
57
57
  end
58
- attrs[:memory_policy] = OvirtSDK4::MemoryPolicy.new(:guaranteed => attrs[:memory]) if attrs[:memory].to_i < Fog::Compute::Ovirt::DISK_SIZE_TO_GB
58
+ attrs[:memory_policy] = OvirtSDK4::MemoryPolicy.new(:guaranteed => attrs[:memory]) if attrs[:memory].to_i < Fog::Ovirt::Compute::DISK_SIZE_TO_GB
59
59
  attrs[:high_availability] = OvirtSDK4::HighAvailability.new(:enabled => attrs[:ha] == "1") if attrs[:ha].present?
60
60
 
61
61
  process_vm_disks(attrs) if attrs[:clone] == true && attrs[:disks].present?
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def datacenters(filter = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def destroy_interface(id, options)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def destroy_vm(options = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def destroy_volume(id, options)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def api_version
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def get_cluster(id)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def get_instance_type(id)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def get_quota(id)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def get_template(id)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def get_virtual_machine(id)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def list_clusters(opts = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def list_instance_types(filters = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def list_networks(cluster_id)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def list_operating_systems
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def list_quotas(filters = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def list_template_interfaces(vm_id)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  # rubocop:disable Metrics/AbcSize
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def list_templates(filters = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def list_virtual_machines(filters = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def list_vm_interfaces(vm_id)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  # rubocop:disable Metrics/AbcSize
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def list_volumes
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def storage_domains(filter = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  module Shared
6
6
  def check_arguments(id, options)
@@ -10,7 +10,7 @@ module Fog
10
10
  end
11
11
 
12
12
  class Real
13
- extend ::Fog::Compute::Ovirt::V4::Shared
13
+ extend ::Fog::Ovirt::Compute::V4::Shared
14
14
 
15
15
  def update_interface(id, options)
16
16
  options = convert_string_to_bool(options)
@@ -23,7 +23,7 @@ module Fog
23
23
  end
24
24
 
25
25
  class Mock
26
- extend ::Fog::Compute::Ovirt::V4::Shared
26
+ extend ::Fog::Ovirt::Compute::V4::Shared
27
27
 
28
28
  def update_interface(id, options)
29
29
  check_arguments(id, options)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  # rubocop:disable Metrics/AbcSize
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  module Shared
6
6
  def check_arguments(id, options)
@@ -10,7 +10,7 @@ module Fog
10
10
  end
11
11
 
12
12
  class Real
13
- extend ::Fog::Compute::Ovirt::V4::Shared
13
+ extend ::Fog::Ovirt::Compute::V4::Shared
14
14
 
15
15
  def update_volume(id, options)
16
16
  check_arguments(id, options)
@@ -23,7 +23,7 @@ module Fog
23
23
  end
24
24
 
25
25
  class Mock
26
- extend ::Fog::Compute::Ovirt::V4::Shared
26
+ extend ::Fog::Ovirt::Compute::V4::Shared
27
27
 
28
28
  def update_volume(id, options)
29
29
  check_arguments(id, options)
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def vm_action(options = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def vm_start_with_cloudinit(options = {})
@@ -1,6 +1,6 @@
1
1
  module Fog
2
- module Compute
3
- class Ovirt
2
+ module Ovirt
3
+ class Compute
4
4
  class V4
5
5
  class Real
6
6
  def vm_ticket(id, options = {})
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Ovirt
3
- VERSION = "1.1.6".freeze
3
+ VERSION = "1.2.0".freeze
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
- Shindo.tests("Fog::Compute[:ovirt]", ["ovirt"]) do
2
- compute = Fog::Compute[:ovirt]
1
+ Shindo.tests("Fog::Ovirt::Compute.new", ["ovirt"]) do
2
+ compute = Fog::Ovirt::Compute.new
3
3
 
4
4
  tests("Compute attributes") do
5
5
  %w[ovirt_attrs].each do |attr|
@@ -1,5 +1,5 @@
1
- Shindo.tests("Fog::Compute[:ovirt] | cluster model", ["ovirt"]) do
2
- clusters = Fog::Compute[:ovirt].clusters
1
+ Shindo.tests("Fog::Ovirt::Compute.new | cluster model", ["ovirt"]) do
2
+ clusters = Fog::Ovirt::Compute.new.clusters
3
3
  cluster = clusters.last
4
4
 
5
5
  tests("The cluster model should") do
@@ -23,6 +23,6 @@ Shindo.tests("Fog::Compute[:ovirt] | cluster model", ["ovirt"]) do
23
23
  end
24
24
  end
25
25
  end
26
- test("be a kind of Fog::Compute::Ovirt::Cluster") { cluster.is_a? Fog::Compute::Ovirt::Cluster }
26
+ test("be a kind of Fog::Ovirt::Compute::Cluster") { cluster.is_a? Fog::Ovirt::Compute::Cluster }
27
27
  end
28
28
  end
@@ -1,7 +1,7 @@
1
- Shindo.tests("Fog::Compute[:ovirt] | clusters collection", ["ovirt"]) do
2
- clusters = Fog::Compute[:ovirt].clusters
1
+ Shindo.tests("Fog::Ovirt::Compute.new | clusters collection", ["ovirt"]) do
2
+ clusters = Fog::Ovirt::Compute.new.clusters
3
3
 
4
4
  tests("The clusters collection") do
5
- test("should be a kind of Fog::Compute::Ovirt::Clusters") { clusters.is_a? Fog::Compute::Ovirt::Clusters }
5
+ test("should be a kind of Fog::Ovirt::Compute::Clusters") { clusters.is_a? Fog::Ovirt::Compute::Clusters }
6
6
  end
7
7
  end