vagrant-libvirt 0.10.6 → 0.10.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/vagrant-libvirt/action/create_domain.rb +2 -0
- data/lib/vagrant-libvirt/action/destroy_domain.rb +4 -5
- data/lib/vagrant-libvirt/action/forward_ports.rb +16 -15
- data/lib/vagrant-libvirt/action/handle_box_image.rb +2 -0
- data/lib/vagrant-libvirt/action/package_domain.rb +1 -0
- data/lib/vagrant-libvirt/action/resolve_disk_settings.rb +2 -5
- data/lib/vagrant-libvirt/action/set_boot_order.rb +44 -42
- data/lib/vagrant-libvirt/action/start_domain.rb +382 -379
- data/lib/vagrant-libvirt/cap/synced_folder_9p.rb +2 -0
- data/lib/vagrant-libvirt/cap/synced_folder_virtiofs.rb +3 -1
- data/lib/vagrant-libvirt/config.rb +1 -2
- data/lib/vagrant-libvirt/errors.rb +4 -0
- data/lib/vagrant-libvirt/util/compat.rb +1 -1
- data/lib/vagrant-libvirt/util/network_util.rb +1 -1
- data/lib/vagrant-libvirt/version +1 -1
- data/locales/en.yml +2 -0
- data/spec/spec_helper.rb +13 -6
- data/spec/unit/action/set_boot_order_spec/default.xml +76 -0
- data/spec/unit/action/set_boot_order_spec/explicit_boot_order.xml +77 -0
- data/spec/unit/action/set_boot_order_spec.rb +67 -0
- data/spec/unit/action/start_domain_spec.rb +7 -4
- data/spec/unit/plugin_spec.rb +1 -0
- metadata +80 -74
@@ -5,9 +5,11 @@ require 'ostruct'
|
|
5
5
|
require 'nokogiri'
|
6
6
|
require 'digest/md5'
|
7
7
|
|
8
|
-
require 'vagrant/util/subprocess'
|
9
8
|
require 'vagrant/errors'
|
9
|
+
require 'vagrant/util/subprocess'
|
10
|
+
|
10
11
|
require 'vagrant-libvirt/errors'
|
12
|
+
require 'vagrant-libvirt/util/erb_template'
|
11
13
|
|
12
14
|
module VagrantPlugins
|
13
15
|
module SyncedFolderVirtioFS
|
@@ -896,8 +896,7 @@ module VagrantPlugins
|
|
896
896
|
@initrd = '' if @initrd == UNSET_VALUE
|
897
897
|
@dtb = nil if @dtb == UNSET_VALUE
|
898
898
|
@graphics_type = 'vnc' if @graphics_type == UNSET_VALUE
|
899
|
-
@graphics_autoport =
|
900
|
-
@graphics_autoport = 'no' if @graphics_port != UNSET_VALUE
|
899
|
+
@graphics_autoport = @graphics_port == UNSET_VALUE ? 'yes' : nil
|
901
900
|
if (@graphics_type != 'vnc' && @graphics_type != 'spice') ||
|
902
901
|
@graphics_passwd == UNSET_VALUE
|
903
902
|
@graphics_passwd = nil
|
@@ -178,6 +178,10 @@ module VagrantPlugins
|
|
178
178
|
error_key(:no_domain_error)
|
179
179
|
end
|
180
180
|
|
181
|
+
class DomainStartError < VagrantLibvirtError
|
182
|
+
error_key(:domain_start_error)
|
183
|
+
end
|
184
|
+
|
181
185
|
class AttachDeviceError < VagrantLibvirtError
|
182
186
|
error_key(:attach_device_error)
|
183
187
|
end
|
@@ -11,7 +11,7 @@ module VagrantPlugins
|
|
11
11
|
module Compat
|
12
12
|
def self.action_hook_args(name, action)
|
13
13
|
# handle different number of arguments for action_hook depending on vagrant version
|
14
|
-
if Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new('2.2.
|
14
|
+
if Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new('2.2.6')
|
15
15
|
return name, action
|
16
16
|
end
|
17
17
|
|
@@ -120,7 +120,7 @@ module VagrantPlugins
|
|
120
120
|
logger.debug "In config found network type #{type} options #{original_options}"
|
121
121
|
# Options can be specified in Vagrantfile in short format (:ip => ...),
|
122
122
|
# or provider format # (:libvirt__network_name => ...).
|
123
|
-
# https://github.com/mitchellh/vagrant/blob/
|
123
|
+
# https://github.com/mitchellh/vagrant/blob/main/lib/vagrant/util/scoped_hash_override.rb
|
124
124
|
options = scoped_hash_override(original_options, :libvirt)
|
125
125
|
# store type in options
|
126
126
|
# use default values if not already set
|
data/lib/vagrant-libvirt/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.7
|
data/locales/en.yml
CHANGED
@@ -153,6 +153,8 @@ en:
|
|
153
153
|
Error while downloading volume '%{volume_name}' from storage pool '%{pool_name}': %{error_message}
|
154
154
|
no_domain_error: |-
|
155
155
|
No domain found. %{error_message}
|
156
|
+
domain_start_error: |-
|
157
|
+
Failed to start domain: %{error_message}
|
156
158
|
attach_device_error: |-
|
157
159
|
Error while attaching new device to domain. %{error_message}
|
158
160
|
detach_device_error: |-
|
data/spec/spec_helper.rb
CHANGED
@@ -38,13 +38,12 @@ rescue LoadError
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
|
42
|
-
require 'vagrant-libvirt'
|
43
|
-
require 'vagrant-spec/unit'
|
44
|
-
|
45
|
-
Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each { |f| require f }
|
46
|
-
|
47
41
|
RSpec.configure do |config|
|
42
|
+
# set VAGRANT_HOME before any thing that requires vagrant is loaded to prevent
|
43
|
+
# the global plugin manager from trying to use the default VAGRANT_HOME.
|
44
|
+
temp_dir = Dir.mktmpdir("rspec-")
|
45
|
+
ENV['VAGRANT_HOME'] = temp_dir
|
46
|
+
|
48
47
|
# ensure that setting of LIBVIRT_DEFAULT_URI in the environment is not picked
|
49
48
|
# up directly by tests, instead they must set as needed. Some build envs will
|
50
49
|
# may have it set to 'qemu:///session'.
|
@@ -52,6 +51,10 @@ RSpec.configure do |config|
|
|
52
51
|
ENV.delete('LIBVIRT_DEFAULT_URI')
|
53
52
|
end
|
54
53
|
|
54
|
+
config.after(:suite) do
|
55
|
+
FileUtils.remove_entry temp_dir
|
56
|
+
end
|
57
|
+
|
55
58
|
config.mock_with :rspec do |mocks|
|
56
59
|
mocks.verify_partial_doubles = true
|
57
60
|
end
|
@@ -59,3 +62,7 @@ RSpec.configure do |config|
|
|
59
62
|
# don't run acceptance tests by default
|
60
63
|
config.filter_run_excluding :acceptance => true
|
61
64
|
end
|
65
|
+
|
66
|
+
require 'vagrant-spec/unit'
|
67
|
+
|
68
|
+
Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each { |f| require f }
|
@@ -0,0 +1,76 @@
|
|
1
|
+
<domain type="qemu">
|
2
|
+
<name>vagrant-libvirt_default</name>
|
3
|
+
<uuid>881a931b-0110-4d10-81aa-47a1a19f5726</uuid>
|
4
|
+
<description>Source: /home/test/vagrant-libvirt/Vagrantfile</description>
|
5
|
+
<memory unit="KiB">2097152</memory>
|
6
|
+
<currentMemory unit="KiB">2097152</currentMemory>
|
7
|
+
<vcpu placement="static">2</vcpu>
|
8
|
+
<os>
|
9
|
+
<type arch="x86_64" machine="pc-i440fx-6.0">hvm</type>
|
10
|
+
<boot dev="hd"/>
|
11
|
+
</os>
|
12
|
+
<features>
|
13
|
+
<acpi/>
|
14
|
+
<apic/>
|
15
|
+
<pae/>
|
16
|
+
</features>
|
17
|
+
<cpu mode="host-model" check="partial"/>
|
18
|
+
<clock offset="utc"/>
|
19
|
+
<on_poweroff>destroy</on_poweroff>
|
20
|
+
<on_reboot>restart</on_reboot>
|
21
|
+
<on_crash>destroy</on_crash>
|
22
|
+
<devices>
|
23
|
+
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
24
|
+
<disk type="file" device="disk">
|
25
|
+
<driver name="qemu" type="qcow2"/>
|
26
|
+
<source file="/var/lib/libvirt/images/vagrant-libvirt_default.img"/>
|
27
|
+
<target dev="vda" bus="virtio"/>
|
28
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"/>
|
29
|
+
</disk>
|
30
|
+
<disk type="file" device="cdrom">
|
31
|
+
<driver name="qemu" type="raw"/>
|
32
|
+
<source file=""/>
|
33
|
+
<target dev="hda" bus="ide"/>
|
34
|
+
<readonly/>
|
35
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x0"/>
|
36
|
+
</disk>
|
37
|
+
<disk type="file" device="cdrom">
|
38
|
+
<driver name="qemu" type="raw"/>
|
39
|
+
<source file=""/>
|
40
|
+
<target dev="hdb" bus="ide"/>
|
41
|
+
<readonly/>
|
42
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
|
43
|
+
</disk>
|
44
|
+
<controller type="usb" index="0" model="piix3-uhci">
|
45
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x2"/>
|
46
|
+
</controller>
|
47
|
+
<controller type="pci" index="0" model="pci-root"/>
|
48
|
+
<interface type="network">
|
49
|
+
<mac address="52:54:00:7d:14:0e"/>
|
50
|
+
<source network="vagrant-libvirt"/>
|
51
|
+
<model type="virtio"/>
|
52
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0"/>
|
53
|
+
</interface>
|
54
|
+
<serial type="pty">
|
55
|
+
<target type="isa-serial" port="0">
|
56
|
+
<model name="isa-serial"/>
|
57
|
+
</target>
|
58
|
+
</serial>
|
59
|
+
<console type="pty">
|
60
|
+
<target type="serial" port="0"/>
|
61
|
+
</console>
|
62
|
+
<input type="mouse" bus="ps2"/>
|
63
|
+
<input type="keyboard" bus="ps2"/>
|
64
|
+
<graphics type="vnc" port="-1" autoport="yes" listen="127.0.0.1" keymap="en-us">
|
65
|
+
<listen type="address" address="127.0.0.1"/>
|
66
|
+
</graphics>
|
67
|
+
<audio id="1" type="none"/>
|
68
|
+
<video>
|
69
|
+
<model type="cirrus" vram="16384" heads="1" primary="yes"/>
|
70
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
|
71
|
+
</video>
|
72
|
+
<memballoon model="virtio">
|
73
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
|
74
|
+
</memballoon>
|
75
|
+
</devices>
|
76
|
+
</domain>
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<domain type="qemu">
|
3
|
+
<name>vagrant-libvirt_default</name>
|
4
|
+
<uuid>881a931b-0110-4d10-81aa-47a1a19f5726</uuid>
|
5
|
+
<description>Source: /home/test/vagrant-libvirt/Vagrantfile</description>
|
6
|
+
<memory unit="KiB">2097152</memory>
|
7
|
+
<currentMemory unit="KiB">2097152</currentMemory>
|
8
|
+
<vcpu placement="static">2</vcpu>
|
9
|
+
<os>
|
10
|
+
<type arch="x86_64" machine="pc-i440fx-6.0">hvm</type>
|
11
|
+
|
12
|
+
</os>
|
13
|
+
<features>
|
14
|
+
<acpi/>
|
15
|
+
<apic/>
|
16
|
+
<pae/>
|
17
|
+
</features>
|
18
|
+
<cpu mode="host-model" check="partial"/>
|
19
|
+
<clock offset="utc"/>
|
20
|
+
<on_poweroff>destroy</on_poweroff>
|
21
|
+
<on_reboot>restart</on_reboot>
|
22
|
+
<on_crash>destroy</on_crash>
|
23
|
+
<devices>
|
24
|
+
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
25
|
+
<disk type="file" device="disk">
|
26
|
+
<driver name="qemu" type="qcow2"/>
|
27
|
+
<source file="/var/lib/libvirt/images/vagrant-libvirt_default.img"/>
|
28
|
+
<target dev="vda" bus="virtio"/>
|
29
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"/>
|
30
|
+
<boot order="1"/></disk>
|
31
|
+
<disk type="file" device="cdrom">
|
32
|
+
<driver name="qemu" type="raw"/>
|
33
|
+
<source file=""/>
|
34
|
+
<target dev="hda" bus="ide"/>
|
35
|
+
<readonly/>
|
36
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x0"/>
|
37
|
+
<boot order="2"/></disk>
|
38
|
+
<disk type="file" device="cdrom">
|
39
|
+
<driver name="qemu" type="raw"/>
|
40
|
+
<source file=""/>
|
41
|
+
<target dev="hdb" bus="ide"/>
|
42
|
+
<readonly/>
|
43
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
|
44
|
+
<boot order="3"/></disk>
|
45
|
+
<controller type="usb" index="0" model="piix3-uhci">
|
46
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x2"/>
|
47
|
+
</controller>
|
48
|
+
<controller type="pci" index="0" model="pci-root"/>
|
49
|
+
<interface type="network">
|
50
|
+
<mac address="52:54:00:7d:14:0e"/>
|
51
|
+
<source network="vagrant-libvirt"/>
|
52
|
+
<model type="virtio"/>
|
53
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0"/>
|
54
|
+
<boot order="4"/></interface>
|
55
|
+
<serial type="pty">
|
56
|
+
<target type="isa-serial" port="0">
|
57
|
+
<model name="isa-serial"/>
|
58
|
+
</target>
|
59
|
+
</serial>
|
60
|
+
<console type="pty">
|
61
|
+
<target type="serial" port="0"/>
|
62
|
+
</console>
|
63
|
+
<input type="mouse" bus="ps2"/>
|
64
|
+
<input type="keyboard" bus="ps2"/>
|
65
|
+
<graphics type="vnc" port="-1" autoport="yes" listen="127.0.0.1" keymap="en-us">
|
66
|
+
<listen type="address" address="127.0.0.1"/>
|
67
|
+
</graphics>
|
68
|
+
<audio id="1" type="none"/>
|
69
|
+
<video>
|
70
|
+
<model type="cirrus" vram="16384" heads="1" primary="yes"/>
|
71
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
|
72
|
+
</video>
|
73
|
+
<memballoon model="virtio">
|
74
|
+
<address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
|
75
|
+
</memballoon>
|
76
|
+
</devices>
|
77
|
+
</domain>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'support/sharedcontext'
|
5
|
+
require 'support/libvirt_context'
|
6
|
+
|
7
|
+
require 'vagrant-libvirt/action/set_boot_order'
|
8
|
+
|
9
|
+
describe VagrantPlugins::ProviderLibvirt::Action::SetBootOrder do
|
10
|
+
subject { described_class.new(app, env) }
|
11
|
+
|
12
|
+
include_context 'unit'
|
13
|
+
include_context 'libvirt'
|
14
|
+
|
15
|
+
#before do
|
16
|
+
# allow(driver).to receive(:created?).and_return(true)
|
17
|
+
#end
|
18
|
+
|
19
|
+
describe '#call' do
|
20
|
+
it 'should return early' do
|
21
|
+
expect(connection).to_not receive(:client)
|
22
|
+
|
23
|
+
expect(subject.call(env)).to be_nil
|
24
|
+
end
|
25
|
+
|
26
|
+
context 'with boot_order defined' do
|
27
|
+
let(:domain_xml) { File.read(File.join(File.dirname(__FILE__), File.basename(__FILE__, '.rb'), test_file)) }
|
28
|
+
let(:updated_domain_xml) { File.read(File.join(File.dirname(__FILE__), File.basename(__FILE__, '.rb'), updated_test_file)) }
|
29
|
+
let(:test_file) { 'default.xml' }
|
30
|
+
let(:updated_test_file) { 'explicit_boot_order.xml' }
|
31
|
+
let(:vagrantfile_providerconfig) do
|
32
|
+
<<-EOF
|
33
|
+
libvirt.boot "hd"
|
34
|
+
libvirt.boot "cdrom"
|
35
|
+
libvirt.boot "network" => 'vagrant-libvirt'
|
36
|
+
EOF
|
37
|
+
end
|
38
|
+
|
39
|
+
before do
|
40
|
+
allow(connection).to receive(:client).and_return(libvirt_client)
|
41
|
+
allow(libvirt_client).to receive(:lookup_domain_by_uuid).and_return(libvirt_domain)
|
42
|
+
allow(libvirt_domain).to receive(:xml_desc).and_return(domain_xml)
|
43
|
+
allow(logger).to receive(:debug)
|
44
|
+
end
|
45
|
+
|
46
|
+
it 'should configure the boot order' do
|
47
|
+
expect(libvirt_client).to receive(:define_domain_xml).with(updated_domain_xml)
|
48
|
+
expect(subject.call(env)).to be_nil
|
49
|
+
end
|
50
|
+
|
51
|
+
context 'with multiple networks in bootorder' do
|
52
|
+
let(:vagrantfile_providerconfig) do
|
53
|
+
<<-EOF
|
54
|
+
libvirt.boot "hd"
|
55
|
+
libvirt.boot "cdrom"
|
56
|
+
libvirt.boot "network" => 'vagrant-libvirt'
|
57
|
+
libvirt.boot "network" => 'vagrant-libvirt'
|
58
|
+
EOF
|
59
|
+
end
|
60
|
+
|
61
|
+
it 'should raise an exception' do
|
62
|
+
expect { subject.call(env) }.to raise_error('Defined only for 1 network for boot')
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -88,13 +88,16 @@ describe VagrantPlugins::ProviderLibvirt::Action::StartDomain do
|
|
88
88
|
end
|
89
89
|
|
90
90
|
it 'should error and revert the update' do
|
91
|
-
expect(ui).to receive(:
|
91
|
+
expect(ui).to receive(:warn).with(/\+ <cpu mode="host-passthrough" \/>.*Typically this means there is a bug in the XML being sent, please log an issue/m)
|
92
92
|
expect(connection).to receive(:define_domain).and_return(libvirt_domain)
|
93
|
-
expect(connection).to receive(:define_domain).with(domain_xml) # undo
|
93
|
+
#expect(connection).to receive(:define_domain).with(domain_xml) # undo
|
94
94
|
expect(libvirt_domain).to receive(:xml_desc).and_return(domain_xml, updated_domain_xml)
|
95
|
-
expect(domain).to_not receive(:start)
|
95
|
+
#expect(domain).to_not receive(:start)
|
96
96
|
|
97
|
-
expect { subject.call(env) }.to raise_error(VagrantPlugins::ProviderLibvirt::Errors::
|
97
|
+
#expect { subject.call(env) }.to raise_error(VagrantPlugins::ProviderLibvirt::Errors::UpdateServerError)
|
98
|
+
expect(libvirt_domain).to receive(:autostart=)
|
99
|
+
expect(domain).to receive(:start)
|
100
|
+
expect(subject.call(env)).to be_nil
|
98
101
|
end
|
99
102
|
end
|
100
103
|
|
data/spec/unit/plugin_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-libvirt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Stanek
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2022-08
|
14
|
+
date: 2022-09-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: fog-libvirt
|
@@ -296,6 +296,9 @@ files:
|
|
296
296
|
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box.xml
|
297
297
|
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_and_custom_no_aliases.xml
|
298
298
|
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_storage.xml
|
299
|
+
- spec/unit/action/set_boot_order_spec.rb
|
300
|
+
- spec/unit/action/set_boot_order_spec/default.xml
|
301
|
+
- spec/unit/action/set_boot_order_spec/explicit_boot_order.xml
|
299
302
|
- spec/unit/action/set_name_of_domain_spec.rb
|
300
303
|
- spec/unit/action/shutdown_domain_spec.rb
|
301
304
|
- spec/unit/action/start_domain_spec.rb
|
@@ -350,98 +353,101 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
350
353
|
- !ruby/object:Gem::Version
|
351
354
|
version: '0'
|
352
355
|
requirements: []
|
353
|
-
rubygems_version: 3.
|
356
|
+
rubygems_version: 3.0.9
|
354
357
|
signing_key:
|
355
358
|
specification_version: 4
|
356
359
|
summary: libvirt provider for Vagrant.
|
357
360
|
test_files:
|
358
|
-
- spec/
|
359
|
-
- spec/
|
360
|
-
- spec/
|
361
|
-
- spec/acceptance/simple_vm_provision_via_shell_spec.rb
|
362
|
-
- spec/acceptance/snapshots_spec.rb
|
363
|
-
- spec/acceptance/support-skeletons/package_complex/Vagrantfile.testbox
|
364
|
-
- spec/acceptance/support-skeletons/package_complex/scripts/sysprep.sh
|
365
|
-
- spec/acceptance/support-skeletons/package_simple/Vagrantfile.testbox
|
366
|
-
- spec/acceptance/two_disks_spec.rb
|
367
|
-
- spec/acceptance/use_qemu_agent_for_connectivity_spec.rb
|
368
|
-
- spec/spec_helper.rb
|
369
|
-
- spec/support/acceptance/configuration.rb
|
370
|
-
- spec/support/acceptance/context.rb
|
371
|
-
- spec/support/acceptance/isolated_environment.rb
|
372
|
-
- spec/support/binding_proc.rb
|
373
|
-
- spec/support/environment_helper.rb
|
374
|
-
- spec/support/libvirt_acceptance_context.rb
|
375
|
-
- spec/support/libvirt_context.rb
|
376
|
-
- spec/support/matchers/have_file_content.rb
|
377
|
-
- spec/support/sharedcontext.rb
|
378
|
-
- spec/support/temporary_dir.rb
|
379
|
-
- spec/unit/action/clean_machine_folder_spec.rb
|
380
|
-
- spec/unit/action/cleanup_on_failure_spec.rb
|
381
|
-
- spec/unit/action/create_domain_spec/additional_disks_domain.xml
|
382
|
-
- spec/unit/action/create_domain_spec/custom_disk_settings.xml
|
383
|
-
- spec/unit/action/create_domain_spec/default_domain.xml
|
384
|
-
- spec/unit/action/create_domain_spec/default_user_storage_pool.xml
|
385
|
-
- spec/unit/action/create_domain_spec/sysinfo.xml
|
386
|
-
- spec/unit/action/create_domain_spec/sysinfo_only_required.xml
|
387
|
-
- spec/unit/action/create_domain_spec/two_disk_settings.xml
|
388
|
-
- spec/unit/action/create_domain_spec.rb
|
389
|
-
- spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml
|
390
|
-
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_0.xml
|
391
|
-
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml
|
392
|
-
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_2.xml
|
393
|
-
- spec/unit/action/create_domain_volume_spec.rb
|
394
|
-
- spec/unit/action/destroy_domain_spec/additional_disks_domain.xml
|
395
|
-
- spec/unit/action/destroy_domain_spec/box_multiple_disks.xml
|
361
|
+
- spec/unit/config_spec.rb
|
362
|
+
- spec/unit/action_spec.rb
|
363
|
+
- spec/unit/action/forward_ports_spec.rb
|
396
364
|
- spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_and_custom_disks.xml
|
365
|
+
- spec/unit/action/destroy_domain_spec/box_multiple_disks.xml
|
397
366
|
- spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_and_custom_disks_no_aliases.xml
|
398
367
|
- spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_disks.xml
|
399
368
|
- spec/unit/action/destroy_domain_spec/cdrom_domain.xml
|
400
|
-
- spec/unit/action/destroy_domain_spec.
|
401
|
-
- spec/unit/action/
|
402
|
-
- spec/unit/action/
|
403
|
-
- spec/unit/action/
|
404
|
-
- spec/unit/action/
|
405
|
-
- spec/unit/action/prepare_nfs_settings_spec.rb
|
406
|
-
- spec/unit/action/remove_libvirt_image_spec.rb
|
407
|
-
- spec/unit/action/resolve_disk_settings_spec/default_domain.xml
|
408
|
-
- spec/unit/action/resolve_disk_settings_spec/default_no_aliases.xml
|
369
|
+
- spec/unit/action/destroy_domain_spec/additional_disks_domain.xml
|
370
|
+
- spec/unit/action/cleanup_on_failure_spec.rb
|
371
|
+
- spec/unit/action/create_domain_spec.rb
|
372
|
+
- spec/unit/action/set_boot_order_spec/default.xml
|
373
|
+
- spec/unit/action/set_boot_order_spec/explicit_boot_order.xml
|
409
374
|
- spec/unit/action/resolve_disk_settings_spec/default_system_storage_pool.xml
|
410
|
-
- spec/unit/action/resolve_disk_settings_spec/
|
375
|
+
- spec/unit/action/resolve_disk_settings_spec/default_no_aliases.xml
|
411
376
|
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_and_custom_no_aliases.xml
|
412
377
|
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_storage.xml
|
413
|
-
- spec/unit/action/resolve_disk_settings_spec.
|
414
|
-
- spec/unit/action/
|
415
|
-
- spec/unit/action/
|
416
|
-
- spec/unit/action/start_domain_spec/
|
417
|
-
- spec/unit/action/start_domain_spec/clock_timer_rtc.xml
|
418
|
-
- spec/unit/action/start_domain_spec/clock_timer_rtc_tsc.xml
|
378
|
+
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box.xml
|
379
|
+
- spec/unit/action/resolve_disk_settings_spec/default_domain.xml
|
380
|
+
- spec/unit/action/start_domain_spec/existing.xml
|
381
|
+
- spec/unit/action/start_domain_spec/nvram_domain_removed.xml
|
419
382
|
- spec/unit/action/start_domain_spec/default.xml
|
420
|
-
- spec/unit/action/start_domain_spec/default_added_tpm_path.xml
|
421
383
|
- spec/unit/action/start_domain_spec/default_added_tpm_version.xml
|
422
384
|
- spec/unit/action/start_domain_spec/default_with_different_formatting.xml
|
423
|
-
- spec/unit/action/start_domain_spec/existing.xml
|
424
|
-
- spec/unit/action/start_domain_spec/existing_added_nvram.xml
|
425
|
-
- spec/unit/action/start_domain_spec/nvram_domain.xml
|
426
385
|
- spec/unit/action/start_domain_spec/nvram_domain_other_setting.xml
|
427
|
-
- spec/unit/action/start_domain_spec/
|
386
|
+
- spec/unit/action/start_domain_spec/clock_timer_rtc.xml
|
387
|
+
- spec/unit/action/start_domain_spec/clock_timer_removed.xml
|
388
|
+
- spec/unit/action/start_domain_spec/clock_timer_rtc_tsc.xml
|
389
|
+
- spec/unit/action/start_domain_spec/nvram_domain.xml
|
390
|
+
- spec/unit/action/start_domain_spec/default_added_tpm_path.xml
|
391
|
+
- spec/unit/action/start_domain_spec/existing_added_nvram.xml
|
392
|
+
- spec/unit/action/prepare_nfs_settings_spec.rb
|
393
|
+
- spec/unit/action/package_domain_spec.rb
|
394
|
+
- spec/unit/action/set_boot_order_spec.rb
|
395
|
+
- spec/unit/action/handle_box_image_spec.rb
|
396
|
+
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_0.xml
|
397
|
+
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml
|
398
|
+
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_2.xml
|
399
|
+
- spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml
|
428
400
|
- spec/unit/action/start_domain_spec.rb
|
401
|
+
- spec/unit/action/clean_machine_folder_spec.rb
|
402
|
+
- spec/unit/action/destroy_domain_spec.rb
|
429
403
|
- spec/unit/action/wait_till_up_spec.rb
|
430
|
-
- spec/unit/
|
431
|
-
- spec/unit/
|
432
|
-
- spec/unit/
|
433
|
-
- spec/unit/
|
434
|
-
- spec/unit/
|
435
|
-
- spec/unit/
|
436
|
-
- spec/unit/
|
437
|
-
- spec/unit/
|
438
|
-
- spec/unit/
|
439
|
-
- spec/unit/
|
404
|
+
- spec/unit/action/create_domain_volume_spec.rb
|
405
|
+
- spec/unit/action/halt_domain_spec.rb
|
406
|
+
- spec/unit/action/set_name_of_domain_spec.rb
|
407
|
+
- spec/unit/action/resolve_disk_settings_spec.rb
|
408
|
+
- spec/unit/action/remove_libvirt_image_spec.rb
|
409
|
+
- spec/unit/action/shutdown_domain_spec.rb
|
410
|
+
- spec/unit/action/create_domain_spec/custom_disk_settings.xml
|
411
|
+
- spec/unit/action/create_domain_spec/two_disk_settings.xml
|
412
|
+
- spec/unit/action/create_domain_spec/default_user_storage_pool.xml
|
413
|
+
- spec/unit/action/create_domain_spec/sysinfo_only_required.xml
|
414
|
+
- spec/unit/action/create_domain_spec/default_domain.xml
|
415
|
+
- spec/unit/action/create_domain_spec/sysinfo.xml
|
416
|
+
- spec/unit/action/create_domain_spec/additional_disks_domain.xml
|
417
|
+
- spec/unit/templates/domain_scsi_multiple_controllers_storage.xml
|
440
418
|
- spec/unit/templates/domain_scsi_bus_storage.xml
|
441
419
|
- spec/unit/templates/domain_scsi_device_storage.xml
|
442
|
-
- spec/unit/templates/
|
420
|
+
- spec/unit/templates/domain_all_settings.xml
|
443
421
|
- spec/unit/templates/domain_spec.rb
|
444
|
-
- spec/unit/templates/tpm/version_1.2.xml
|
445
422
|
- spec/unit/templates/tpm/version_2.0.xml
|
423
|
+
- spec/unit/templates/tpm/version_1.2.xml
|
424
|
+
- spec/unit/templates/domain_cpu_mode_passthrough.xml
|
425
|
+
- spec/unit/templates/domain_defaults.xml
|
426
|
+
- spec/unit/templates/domain_custom_cpu_model.xml
|
427
|
+
- spec/unit/cap/synced_folder_virtiofs_spec.rb
|
428
|
+
- spec/unit/cap/synced_folder_9p_spec.rb
|
429
|
+
- spec/unit/plugin_spec.rb
|
430
|
+
- spec/unit/driver_spec.rb
|
446
431
|
- spec/unit/util/byte_number_spec.rb
|
447
432
|
- spec/unit/util/resolvers_spec.rb
|
433
|
+
- spec/support/temporary_dir.rb
|
434
|
+
- spec/support/environment_helper.rb
|
435
|
+
- spec/support/sharedcontext.rb
|
436
|
+
- spec/support/matchers/have_file_content.rb
|
437
|
+
- spec/support/libvirt_acceptance_context.rb
|
438
|
+
- spec/support/acceptance/configuration.rb
|
439
|
+
- spec/support/acceptance/isolated_environment.rb
|
440
|
+
- spec/support/acceptance/context.rb
|
441
|
+
- spec/support/libvirt_context.rb
|
442
|
+
- spec/support/binding_proc.rb
|
443
|
+
- spec/acceptance/provider_settings_spec.rb
|
444
|
+
- spec/acceptance/two_disks_spec.rb
|
445
|
+
- spec/acceptance/package_domain_spec.rb
|
446
|
+
- spec/acceptance/snapshots_spec.rb
|
447
|
+
- spec/acceptance/additional_storage_spec.rb
|
448
|
+
- spec/acceptance/simple_vm_provision_via_shell_spec.rb
|
449
|
+
- spec/acceptance/use_qemu_agent_for_connectivity_spec.rb
|
450
|
+
- spec/acceptance/support-skeletons/package_simple/Vagrantfile.testbox
|
451
|
+
- spec/acceptance/support-skeletons/package_complex/Vagrantfile.testbox
|
452
|
+
- spec/acceptance/support-skeletons/package_complex/scripts/sysprep.sh
|
453
|
+
- spec/spec_helper.rb
|