fog-libvirt 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fog-libvirt.gemspec +1 -1
- data/lib/fog/bin/libvirt.rb +1 -1
- data/lib/fog/libvirt.rb +1 -3
- data/lib/fog/libvirt/compute.rb +4 -4
- data/lib/fog/libvirt/models/compute/interface.rb +2 -2
- data/lib/fog/libvirt/models/compute/interfaces.rb +3 -3
- data/lib/fog/libvirt/models/compute/network.rb +3 -3
- data/lib/fog/libvirt/models/compute/networks.rb +3 -3
- data/lib/fog/libvirt/models/compute/nic.rb +2 -2
- data/lib/fog/libvirt/models/compute/nics.rb +3 -3
- data/lib/fog/libvirt/models/compute/node.rb +2 -2
- data/lib/fog/libvirt/models/compute/nodes.rb +3 -3
- data/lib/fog/libvirt/models/compute/pool.rb +2 -2
- data/lib/fog/libvirt/models/compute/pools.rb +3 -3
- data/lib/fog/libvirt/models/compute/server.rb +3 -3
- data/lib/fog/libvirt/models/compute/servers.rb +3 -3
- data/lib/fog/libvirt/models/compute/templates/volume.xml.erb +4 -4
- data/lib/fog/libvirt/models/compute/util/uri.rb +2 -2
- data/lib/fog/libvirt/models/compute/util/util.rb +2 -2
- data/lib/fog/libvirt/models/compute/volume.rb +7 -3
- data/lib/fog/libvirt/models/compute/volumes.rb +3 -3
- data/lib/fog/libvirt/requests/compute/clone_volume.rb +3 -3
- data/lib/fog/libvirt/requests/compute/create_domain.rb +2 -2
- data/lib/fog/libvirt/requests/compute/create_volume.rb +2 -2
- data/lib/fog/libvirt/requests/compute/define_domain.rb +2 -2
- data/lib/fog/libvirt/requests/compute/define_pool.rb +2 -2
- data/lib/fog/libvirt/requests/compute/destroy_interface.rb +2 -2
- data/lib/fog/libvirt/requests/compute/destroy_network.rb +2 -2
- data/lib/fog/libvirt/requests/compute/dhcp_leases.rb +2 -2
- data/lib/fog/libvirt/requests/compute/get_node_info.rb +2 -2
- data/lib/fog/libvirt/requests/compute/libversion.rb +2 -2
- data/lib/fog/libvirt/requests/compute/list_domains.rb +2 -2
- data/lib/fog/libvirt/requests/compute/list_interfaces.rb +2 -2
- data/lib/fog/libvirt/requests/compute/list_networks.rb +2 -2
- data/lib/fog/libvirt/requests/compute/list_pool_volumes.rb +2 -2
- data/lib/fog/libvirt/requests/compute/list_pools.rb +2 -2
- data/lib/fog/libvirt/requests/compute/list_volumes.rb +2 -2
- data/lib/fog/libvirt/requests/compute/pool_action.rb +2 -2
- data/lib/fog/libvirt/requests/compute/update_display.rb +2 -2
- data/lib/fog/libvirt/requests/compute/upload_volume.rb +2 -2
- data/lib/fog/libvirt/requests/compute/vm_action.rb +2 -2
- data/lib/fog/libvirt/requests/compute/volume_action.rb +2 -2
- data/lib/fog/libvirt/version.rb +1 -1
- data/minitests/server/server_test.rb +1 -1
- data/minitests/server/user_data_iso_test.rb +8 -8
- data/tests/libvirt/models/compute/interface_tests.rb +1 -1
- data/tests/libvirt/models/compute/interfaces_tests.rb +1 -1
- data/tests/libvirt/models/compute/network_tests.rb +1 -1
- data/tests/libvirt/models/compute/networks_tests.rb +1 -1
- data/tests/libvirt/models/compute/nic_tests.rb +1 -1
- data/tests/libvirt/models/compute/pool_tests.rb +1 -1
- data/tests/libvirt/models/compute/pools_tests.rb +1 -1
- data/tests/libvirt/models/compute/server_tests.rb +1 -1
- data/tests/libvirt/models/compute/servers_tests.rb +1 -1
- data/tests/libvirt/models/compute/volume_tests.rb +1 -1
- data/tests/libvirt/models/compute/volumes_tests.rb +1 -1
- metadata +3 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d3e03b125cb0f12ce53c57d60771ca49907477e
|
4
|
+
data.tar.gz: 7ace802207daa028a1bfbc94a0c182ffe7f51e2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 983092becd604cceed9072b7a26ae8970a1f078bd5e0af97ebdf7f09ea11c3ac01cc7af6ce68be46303c8a11be1b101fa01501d4f31af16ac11ec61030b9fc4c
|
7
|
+
data.tar.gz: 59c5488a0938ac843c8a6405e868b11cba9e027e32782de9d12be7bd7b6ec7964d3e42dc068be636f58a1d12eed53dd7ab925d9b788aa75b93f0b48b1fd073ad
|
data/fog-libvirt.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
|
26
26
|
s.required_ruby_version = '>= 2.0.0'
|
27
27
|
|
28
|
-
s.add_dependency("fog-core", "
|
28
|
+
s.add_dependency("fog-core", ">= 1.27.4")
|
29
29
|
s.add_dependency("fog-json")
|
30
30
|
s.add_dependency("fog-xml", "~> 0.1.1")
|
31
31
|
s.add_dependency('ruby-libvirt','>= 0.7.0')
|
data/lib/fog/bin/libvirt.rb
CHANGED
data/lib/fog/libvirt.rb
CHANGED
@@ -9,9 +9,7 @@ module Fog
|
|
9
9
|
module Libvirt
|
10
10
|
extend Fog::Provider
|
11
11
|
|
12
|
-
|
13
|
-
autoload :Libvirt, File.expand_path('../libvirt/compute', __FILE__)
|
14
|
-
end
|
12
|
+
autoload :Compute, File.expand_path('../libvirt/compute', __FILE__)
|
15
13
|
|
16
14
|
service(:compute, 'Compute')
|
17
15
|
end
|
data/lib/fog/libvirt/compute.rb
CHANGED
@@ -2,8 +2,8 @@ require 'fog/libvirt/models/compute/util/util'
|
|
2
2
|
require 'fog/libvirt/models/compute/util/uri'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Libvirt
|
6
|
+
class Compute < Fog::Service
|
7
7
|
requires :libvirt_uri
|
8
8
|
recognizes :libvirt_username, :libvirt_password
|
9
9
|
recognizes :libvirt_ip_command
|
@@ -48,7 +48,7 @@ module Fog
|
|
48
48
|
request :libversion
|
49
49
|
|
50
50
|
module Shared
|
51
|
-
include Fog::
|
51
|
+
include Fog::Libvirt::Util
|
52
52
|
end
|
53
53
|
|
54
54
|
class Mock
|
@@ -78,7 +78,7 @@ module Fog
|
|
78
78
|
attr_reader :ip_command
|
79
79
|
|
80
80
|
def initialize(options={})
|
81
|
-
@uri = ::Fog::
|
81
|
+
@uri = ::Fog::Libvirt::Util::URI.new(enhance_uri(options[:libvirt_uri]))
|
82
82
|
@ip_command = options[:libvirt_ip_command]
|
83
83
|
|
84
84
|
# libvirt is part of the gem => ruby-libvirt
|
@@ -2,10 +2,10 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/libvirt/models/compute/interface'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Libvirt
|
6
|
+
class Compute
|
7
7
|
class Interfaces < Fog::Collection
|
8
|
-
model Fog::Compute::
|
8
|
+
model Fog::Libvirt::Compute::Interface
|
9
9
|
|
10
10
|
def all(filter={})
|
11
11
|
load(service.list_interfaces(filter))
|
@@ -2,10 +2,10 @@ require 'fog/core/model'
|
|
2
2
|
require 'fog/libvirt/models/compute/util/util'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Libvirt
|
6
|
+
class Compute
|
7
7
|
class Network < Fog::Model
|
8
|
-
include Fog::
|
8
|
+
include Fog::Libvirt::Util
|
9
9
|
|
10
10
|
identity :uuid
|
11
11
|
attribute :name
|
@@ -2,10 +2,10 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/libvirt/models/compute/network'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Libvirt
|
6
|
+
class Compute
|
7
7
|
class Networks < Fog::Collection
|
8
|
-
model Fog::Compute::
|
8
|
+
model Fog::Libvirt::Compute::Network
|
9
9
|
|
10
10
|
def all(filter={})
|
11
11
|
load(service.list_networks(filter))
|
@@ -2,10 +2,10 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/libvirt/models/compute/nic'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Libvirt
|
6
|
+
class Compute
|
7
7
|
class Nics < Fog::Collection
|
8
|
-
model Fog::Compute::
|
8
|
+
model Fog::Libvirt::Compute::Nic
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -2,10 +2,10 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/libvirt/models/compute/node'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Libvirt
|
6
|
+
class Compute
|
7
7
|
class Nodes < Fog::Collection
|
8
|
-
model Fog::Compute::
|
8
|
+
model Fog::Libvirt::Compute::Node
|
9
9
|
|
10
10
|
def all(filter={ })
|
11
11
|
load(service.get_node_info)
|
@@ -2,10 +2,10 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/libvirt/models/compute/pool'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Libvirt
|
6
|
+
class Compute
|
7
7
|
class Pools < Fog::Collection
|
8
|
-
model Fog::Compute::
|
8
|
+
model Fog::Libvirt::Compute::Pool
|
9
9
|
|
10
10
|
def all(filter = {})
|
11
11
|
load(service.list_pools(filter))
|
@@ -3,10 +3,10 @@ require 'fog/libvirt/models/compute/util/util'
|
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
5
|
module Fog
|
6
|
-
module
|
7
|
-
class
|
6
|
+
module Libvirt
|
7
|
+
class Compute
|
8
8
|
class Server < Fog::Compute::Server
|
9
|
-
include Fog::
|
9
|
+
include Fog::Libvirt::Util
|
10
10
|
attr_reader :xml
|
11
11
|
|
12
12
|
identity :id, :aliases => 'uuid'
|
@@ -2,10 +2,10 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/libvirt/models/compute/server'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Libvirt
|
6
|
+
class Compute
|
7
7
|
class Servers < Fog::Collection
|
8
|
-
model Fog::Compute::
|
8
|
+
model Fog::Libvirt::Compute::Server
|
9
9
|
|
10
10
|
def all(filter={})
|
11
11
|
load(service.list_domains(filter))
|
@@ -5,8 +5,8 @@
|
|
5
5
|
<target>
|
6
6
|
<format type="<%= format_type %>"/>
|
7
7
|
<permissions>
|
8
|
-
<owner
|
9
|
-
<group
|
8
|
+
<owner><%= owner %></owner>
|
9
|
+
<group><%= group %></group>
|
10
10
|
<mode>0744</mode>
|
11
11
|
<label>virt_image_t</label>
|
12
12
|
</permissions>
|
@@ -16,8 +16,8 @@
|
|
16
16
|
<path><%= backing_volume.path %></path>
|
17
17
|
<format type="<%= backing_volume.format_type %>"/>
|
18
18
|
<permissions>
|
19
|
-
<owner
|
20
|
-
<group
|
19
|
+
<owner><%= owner %></owner>
|
20
|
+
<group><%= group %></group>
|
21
21
|
<mode>0744</mode>
|
22
22
|
<label>virt_image_t</label>
|
23
23
|
</permissions>
|
@@ -4,8 +4,8 @@ require 'ostruct'
|
|
4
4
|
require 'securerandom'
|
5
5
|
|
6
6
|
module Fog
|
7
|
-
module
|
8
|
-
module
|
7
|
+
module Libvirt
|
8
|
+
module Util
|
9
9
|
def xml_element(xml, path, attribute=nil)
|
10
10
|
xml = Nokogiri::XML(xml)
|
11
11
|
attribute.nil? ? (xml/path).first.text : (xml/path).first[attribute.to_sym]
|
@@ -2,11 +2,11 @@ require 'fog/core/model'
|
|
2
2
|
require 'fog/libvirt/models/compute/util/util'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Libvirt
|
6
|
+
class Compute
|
7
7
|
class Volume < Fog::Model
|
8
8
|
attr_reader :xml
|
9
|
-
include Fog::
|
9
|
+
include Fog::Libvirt::Util
|
10
10
|
|
11
11
|
identity :id, :aliases => 'key'
|
12
12
|
|
@@ -16,6 +16,8 @@ module Fog
|
|
16
16
|
attribute :path
|
17
17
|
attribute :capacity
|
18
18
|
attribute :allocation
|
19
|
+
attribute :owner
|
20
|
+
attribute :group
|
19
21
|
attribute :format_type
|
20
22
|
attribute :backing_volume
|
21
23
|
|
@@ -106,6 +108,8 @@ module Fog
|
|
106
108
|
:name => randomized_name,
|
107
109
|
:capacity => "10G",
|
108
110
|
:allocation => "1G",
|
111
|
+
:owner => "0",
|
112
|
+
:group => "0",
|
109
113
|
}
|
110
114
|
end
|
111
115
|
|
@@ -2,10 +2,10 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/libvirt/models/compute/volume'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module Libvirt
|
6
|
+
class Compute
|
7
7
|
class Volumes < Fog::Collection
|
8
|
-
model Fog::Compute::
|
8
|
+
model Fog::Libvirt::Compute::Volume
|
9
9
|
|
10
10
|
def all(filter = {})
|
11
11
|
load(service.list_volumes(filter))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Libvirt
|
3
|
+
class Compute
|
4
4
|
class Real
|
5
5
|
def clone_volume (pool_name, xml, name)
|
6
6
|
vol = client.lookup_storage_pool_by_name(pool_name).lookup_volume_by_name(name)
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
|
11
11
|
class Mock
|
12
12
|
def clone_volume(pool_name, xml, name)
|
13
|
-
Fog::Compute::
|
13
|
+
Fog::Libvirt::Compute::Volume.new({:pool_name => pool_name, :xml => xml})
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/fog/libvirt/version.rb
CHANGED
@@ -41,7 +41,7 @@ class ServerTest < Minitest::Test
|
|
41
41
|
result.expect(:status, 0)
|
42
42
|
result.expect(:stdout, "any_ip")
|
43
43
|
fog_ssh.expect(:run, [result], [String])
|
44
|
-
uri = ::Fog::
|
44
|
+
uri = ::Fog::Libvirt::Util::URI.new('qemu+ssh://localhost:22?keyfile=nofile')
|
45
45
|
Fog::SSH.stub(:new, fog_ssh) do
|
46
46
|
@server.send(:ssh_ip_command, "test command", uri)
|
47
47
|
end
|
@@ -34,10 +34,10 @@ class UserDataIsoTest < Minitest::Test
|
|
34
34
|
def test_volume_is_created_during_user_data_iso_generation
|
35
35
|
iso_path = "iso_file_path"
|
36
36
|
@server.stubs(:system).returns(true)
|
37
|
-
Fog::Compute::
|
37
|
+
Fog::Libvirt::Compute::Volumes.any_instance.expects(:create).
|
38
38
|
with(has_entries(:name => @server.cloud_init_volume_name)).
|
39
39
|
returns(@compute.volumes.new)
|
40
|
-
Fog::Compute::
|
40
|
+
Fog::Libvirt::Compute::Volume.any_instance.stubs(:upload_image)
|
41
41
|
|
42
42
|
@server.create_user_data_iso
|
43
43
|
end
|
@@ -45,8 +45,8 @@ class UserDataIsoTest < Minitest::Test
|
|
45
45
|
def test_volume_is_uploaded_during_user_data_iso_generation
|
46
46
|
iso_path = "iso_file_path"
|
47
47
|
@server.stubs(:system).returns(true)
|
48
|
-
Fog::Compute::
|
49
|
-
Fog::Compute::
|
48
|
+
Fog::Libvirt::Compute::Volumes.any_instance.stubs(:create).returns(@compute.volumes.new)
|
49
|
+
Fog::Libvirt::Compute::Volume.any_instance.expects(:upload_image).returns(true)
|
50
50
|
|
51
51
|
@server.create_user_data_iso
|
52
52
|
end
|
@@ -54,8 +54,8 @@ class UserDataIsoTest < Minitest::Test
|
|
54
54
|
def test_iso_file_is_set_during_user_data_iso_generation
|
55
55
|
iso_path = "iso_file_path"
|
56
56
|
@server.stubs(:system).returns(true)
|
57
|
-
Fog::Compute::
|
58
|
-
Fog::Compute::
|
57
|
+
Fog::Libvirt::Compute::Volumes.any_instance.stubs(:create).returns(@compute.volumes.new)
|
58
|
+
Fog::Libvirt::Compute::Volume.any_instance.stubs(:upload_image)
|
59
59
|
|
60
60
|
@server.create_user_data_iso
|
61
61
|
assert_equal @server.cloud_init_volume_name, @server.iso_file
|
@@ -65,8 +65,8 @@ class UserDataIsoTest < Minitest::Test
|
|
65
65
|
@server.stubs(:system).returns(true)
|
66
66
|
volume = @compute.volumes.new
|
67
67
|
volume.stubs(:path).returns("/srv/libvirt/#{@server.cloud_init_volume_name}")
|
68
|
-
Fog::Compute::
|
69
|
-
Fog::Compute::
|
68
|
+
Fog::Libvirt::Compute::Volumes.any_instance.stubs(:create).returns(volume)
|
69
|
+
Fog::Libvirt::Compute::Volume.any_instance.stubs(:upload_image)
|
70
70
|
|
71
71
|
@server.create_user_data_iso
|
72
72
|
assert_equal '/srv/libvirt', @server.iso_dir
|
@@ -21,7 +21,7 @@ Shindo.tests('Fog::Compute[:libvirt] | interface model', ['libvirt']) do
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
|
-
test('be a kind of Fog::Compute::
|
24
|
+
test('be a kind of Fog::Libvirt::Compute::Interface') { interface.kind_of? Fog::Libvirt::Compute::Interface }
|
25
25
|
end
|
26
26
|
|
27
27
|
end
|
@@ -4,7 +4,7 @@ Shindo.tests('Fog::Compute[:libvirt] | interfaces collection', ['libvirt']) do
|
|
4
4
|
|
5
5
|
tests('The interfaces collection') do
|
6
6
|
test('should not be empty') { not interfaces.empty? }
|
7
|
-
test('should be a kind of Fog::Compute::
|
7
|
+
test('should be a kind of Fog::Libvirt::Compute::Interfaces') { interfaces.kind_of? Fog::Libvirt::Compute::Interfaces }
|
8
8
|
tests('should be able to reload itself').succeeds { interfaces.reload }
|
9
9
|
tests('should be able to get a model') do
|
10
10
|
tests('by instance name').succeeds { interfaces.get interfaces.first.name }
|
@@ -25,7 +25,7 @@ Shindo.tests('Fog::Compute[:libvirt] | network model', ['libvirt']) do
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
28
|
-
test('be a kind of Fog::Compute::
|
28
|
+
test('be a kind of Fog::Libvirt::Compute::Network') { network.kind_of? Fog::Libvirt::Compute::Network }
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
@@ -3,7 +3,7 @@ Shindo.tests('Fog::Compute[:libvirt] | networks collection', ['libvirt']) do
|
|
3
3
|
networks = Fog::Compute[:libvirt].networks
|
4
4
|
|
5
5
|
tests('The networks collection') do
|
6
|
-
test('should be a kind of Fog::Compute::
|
6
|
+
test('should be a kind of Fog::Libvirt::Compute::Networks') { networks.kind_of? Fog::Libvirt::Compute::Networks }
|
7
7
|
tests('should be able to reload itself').succeeds { networks.reload }
|
8
8
|
tests('should be able to get a model') do
|
9
9
|
tests('by instance id').succeeds { networks.get networks.first.uuid }
|
@@ -25,7 +25,7 @@ Shindo.tests('Fog::Compute[:libvirt] | nic model', ['libvirt']) do
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
28
|
-
test('be a kind of Fog::Compute::
|
28
|
+
test('be a kind of Fog::Libvirt::Compute::Nic') { nic.kind_of? Fog::Libvirt::Compute::Nic }
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
@@ -21,7 +21,7 @@ Shindo.tests('Fog::Compute[:libvirt] | interface model', ['libvirt']) do
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
|
-
test('be a kind of Fog::Compute::
|
24
|
+
test('be a kind of Fog::Libvirt::Compute::Pool') { pool.kind_of? Fog::Libvirt::Compute::Pool }
|
25
25
|
end
|
26
26
|
|
27
27
|
end
|
@@ -4,7 +4,7 @@ Shindo.tests('Fog::Compute[:libvirt] | pools request', ['libvirt']) do
|
|
4
4
|
|
5
5
|
tests('The pools collection') do
|
6
6
|
test('should not be empty') { not pools.empty? }
|
7
|
-
test('should be a kind of Fog::Compute::
|
7
|
+
test('should be a kind of Fog::Libvirt::Compute::Pools') { pools.kind_of? Fog::Libvirt::Compute::Pools }
|
8
8
|
tests('should be able to reload itself').succeeds { pools.reload }
|
9
9
|
tests('should be able to get a model') do
|
10
10
|
tests('by instance id').succeeds { pools.get pools.first.uuid }
|
@@ -55,6 +55,6 @@ Shindo.tests('Fog::Compute[:libvirt] | server model', ['libvirt']) do
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
58
|
-
test('be a kind of Fog::Compute::
|
58
|
+
test('be a kind of Fog::Libvirt::Compute::Server') { server.kind_of? Fog::Libvirt::Compute::Server }
|
59
59
|
end
|
60
60
|
end
|
@@ -4,7 +4,7 @@ Shindo.tests('Fog::Compute[:libvirt] | servers collection', ['libvirt']) do
|
|
4
4
|
|
5
5
|
tests('The servers collection') do
|
6
6
|
test('should not be empty') { not servers.empty? }
|
7
|
-
test('should be a kind of Fog::Compute::
|
7
|
+
test('should be a kind of Fog::Libvirt::Compute::Servers') { servers.kind_of? Fog::Libvirt::Compute::Servers }
|
8
8
|
tests('should be able to reload itself').succeeds { servers.reload }
|
9
9
|
tests('should be able to get a model') do
|
10
10
|
tests('by instance uuid').succeeds { servers.get servers.first.id }
|
@@ -24,7 +24,7 @@ Shindo.tests('Fog::Compute[:libvirt] | volume model', ['libvirt']) do
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
27
|
-
test('be a kind of Fog::Compute::
|
27
|
+
test('be a kind of Fog::Libvirt::Compute::Volume') { volume.kind_of? Fog::Libvirt::Compute::Volume }
|
28
28
|
end
|
29
29
|
|
30
30
|
tests('Cloning volumes should') do
|
@@ -4,7 +4,7 @@ Shindo.tests('Fog::Compute[:libvirt] | volumes collection', ['libvirt']) do
|
|
4
4
|
|
5
5
|
tests('The volumes collection') do
|
6
6
|
test('should not be empty') { not volumes.empty? }
|
7
|
-
test('should be a kind of Fog::Compute::
|
7
|
+
test('should be a kind of Fog::Libvirt::Compute::Volumes') { volumes.kind_of? Fog::Libvirt::Compute::Volumes }
|
8
8
|
tests('should be able to reload itself').succeeds { volumes.reload }
|
9
9
|
tests('should be able to get a model') do
|
10
10
|
tests('by instance uuid').succeeds { volumes.get volumes.first.id }
|
metadata
CHANGED
@@ -1,22 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-libvirt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- geemus (Wesley Beary)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.27'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: 1.27.4
|
@@ -24,9 +21,6 @@ dependencies:
|
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.27'
|
30
24
|
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
26
|
version: 1.27.4
|
@@ -333,7 +327,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
333
327
|
version: '0'
|
334
328
|
requirements: []
|
335
329
|
rubyforge_project:
|
336
|
-
rubygems_version: 2.6.
|
330
|
+
rubygems_version: 2.6.14.1
|
337
331
|
signing_key:
|
338
332
|
specification_version: 2
|
339
333
|
summary: Module for the 'fog' gem to support libvirt
|