vagrant-libvirt 0.10.8 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +44 -7
- data/lib/vagrant-libvirt/action/create_domain.rb +45 -22
- data/lib/vagrant-libvirt/action/create_domain_volume.rb +3 -0
- data/lib/vagrant-libvirt/action/create_network_interfaces.rb +15 -6
- data/lib/vagrant-libvirt/action/create_networks.rb +2 -6
- data/lib/vagrant-libvirt/action/destroy_domain.rb +2 -10
- data/lib/vagrant-libvirt/action/forward_ports.rb +1 -1
- data/lib/vagrant-libvirt/action/is_suspended.rb +2 -2
- data/lib/vagrant-libvirt/action/prepare_nfs_settings.rb +7 -5
- data/lib/vagrant-libvirt/action/resolve_disk_settings.rb +2 -0
- data/lib/vagrant-libvirt/action/resume_domain.rb +3 -1
- data/lib/vagrant-libvirt/action/snapshot_delete.rb +1 -1
- data/lib/vagrant-libvirt/action/snapshot_restore.rb +1 -1
- data/lib/vagrant-libvirt/action/snapshot_save.rb +1 -2
- data/lib/vagrant-libvirt/action/start_domain.rb +149 -62
- data/lib/vagrant-libvirt/action/wait_till_up.rb +2 -2
- data/lib/vagrant-libvirt/action.rb +18 -13
- data/lib/vagrant-libvirt/cap/mount_9p.rb +9 -1
- data/lib/vagrant-libvirt/cap/snapshots.rb +1 -1
- data/lib/vagrant-libvirt/config.rb +198 -26
- data/lib/vagrant-libvirt/driver.rb +94 -55
- data/lib/vagrant-libvirt/provider.rb +4 -4
- data/lib/vagrant-libvirt/templates/domain.xml.erb +73 -27
- data/lib/vagrant-libvirt/templates/public_interface.xml.erb +6 -3
- data/lib/vagrant-libvirt/util/network_util.rb +5 -10
- data/lib/vagrant-libvirt/version +1 -1
- data/locales/en.yml +4 -0
- data/spec/acceptance/additional_storage_spec.rb +1 -4
- data/spec/acceptance/networking_spec.rb +41 -0
- data/spec/acceptance/package_domain_spec.rb +2 -2
- data/spec/acceptance/provider_settings_spec.rb +1 -1
- data/spec/acceptance/simple_vm_provision_via_shell_spec.rb +1 -1
- data/spec/acceptance/snapshots_spec.rb +1 -1
- data/spec/acceptance/two_disks_spec.rb +1 -1
- data/spec/acceptance/use_qemu_agent_for_connectivity_spec.rb +1 -1
- data/spec/spec_helper.rb +31 -8
- data/spec/support/acceptance/isolated_environment.rb +1 -1
- data/spec/support/environment_helper.rb +1 -1
- data/spec/support/libvirt_acceptance_context.rb +15 -1
- data/spec/support/{sharedcontext.rb → unit_context.rb} +20 -5
- data/spec/unit/action/clean_machine_folder_spec.rb +1 -2
- data/spec/unit/action/cleanup_on_failure_spec.rb +1 -2
- data/spec/unit/action/create_domain_spec/additional_disks_domain.xml +4 -2
- data/spec/unit/action/create_domain_spec/custom_disk_settings.xml +4 -2
- data/spec/unit/action/create_domain_spec/default_domain.xml +4 -2
- data/spec/unit/action/create_domain_spec/sysinfo.xml +4 -2
- data/spec/unit/action/create_domain_spec/sysinfo_only_required.xml +4 -2
- data/spec/unit/action/create_domain_spec/two_disk_settings.xml +4 -2
- data/spec/unit/action/create_domain_spec.rb +51 -3
- data/spec/unit/action/create_domain_volume_spec.rb +2 -4
- data/spec/unit/action/destroy_domain_spec/additional_disks_domain.xml +1 -0
- data/spec/unit/action/destroy_domain_spec/box_multiple_disks.xml +1 -0
- data/spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_and_custom_disks.xml +1 -0
- data/spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_and_custom_disks_no_aliases.xml +1 -0
- data/spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_disks.xml +1 -0
- data/spec/unit/action/destroy_domain_spec/cdrom_domain.xml +1 -0
- data/spec/unit/action/destroy_domain_spec.rb +1 -18
- data/spec/unit/action/forward_ports_spec.rb +1 -3
- data/spec/unit/action/halt_domain_spec.rb +2 -3
- data/spec/unit/action/handle_box_image_spec.rb +3 -4
- data/spec/unit/action/package_domain_spec.rb +2 -3
- data/spec/unit/action/prepare_nfs_settings_spec.rb +25 -9
- data/spec/unit/action/remove_libvirt_image_spec.rb +1 -2
- data/spec/unit/action/resolve_disk_settings_spec/default_domain.xml +1 -0
- data/spec/unit/action/resolve_disk_settings_spec/default_no_aliases.xml +1 -0
- data/spec/unit/action/resolve_disk_settings_spec/multi_volume_box.xml +1 -0
- data/spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_and_custom_no_aliases.xml +1 -0
- data/spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_storage.xml +1 -0
- data/spec/unit/action/resolve_disk_settings_spec.rb +1 -1
- data/spec/unit/action/resume_domain_spec.rb +66 -0
- data/spec/unit/action/set_boot_order_spec/default.xml +1 -0
- data/spec/unit/action/set_boot_order_spec/explicit_boot_order.xml +1 -0
- data/spec/unit/action/set_boot_order_spec.rb +1 -3
- data/spec/unit/action/set_name_of_domain_spec.rb +3 -1
- data/spec/unit/action/shutdown_domain_spec.rb +4 -3
- data/spec/unit/action/start_domain_spec/clock_timer_removed.xml +1 -1
- data/spec/unit/action/start_domain_spec/clock_timer_rtc.xml +1 -1
- data/spec/unit/action/start_domain_spec/clock_timer_rtc_tsc.xml +1 -1
- data/spec/unit/action/start_domain_spec/default.xml +1 -1
- data/spec/unit/action/start_domain_spec/default_added_tpm_path.xml +1 -1
- data/spec/unit/action/start_domain_spec/default_added_tpm_version.xml +1 -1
- data/spec/unit/action/start_domain_spec/default_with_different_formatting.xml +1 -1
- data/spec/unit/action/start_domain_spec/existing.xml +2 -1
- data/spec/unit/action/start_domain_spec/existing_added_nvram.xml +2 -1
- data/spec/unit/action/start_domain_spec/existing_reordered.xml +2 -1
- data/spec/unit/action/start_domain_spec/nvram_domain.xml +1 -0
- data/spec/unit/action/start_domain_spec/nvram_domain_other_setting.xml +2 -1
- data/spec/unit/action/start_domain_spec/nvram_domain_removed.xml +2 -1
- data/spec/unit/action/start_domain_spec.rb +192 -3
- data/spec/unit/action/wait_till_up_spec.rb +3 -5
- data/spec/unit/action_spec.rb +403 -10
- data/spec/unit/cap/mount_9p_spec.rb +75 -0
- data/spec/unit/cap/synced_folder_9p_spec.rb +1 -2
- data/spec/unit/cap/synced_folder_virtiofs_spec.rb +1 -2
- data/spec/unit/config_spec.rb +365 -25
- data/spec/unit/driver_spec.rb +217 -80
- data/spec/unit/plugin_spec.rb +6 -3
- data/spec/unit/templates/domain_all_settings.xml +26 -4
- data/spec/unit/templates/domain_cpu_mode_passthrough.xml +4 -2
- data/spec/unit/templates/domain_custom_cpu_model.xml +4 -2
- data/spec/unit/templates/domain_defaults.xml +4 -2
- data/spec/unit/templates/domain_scsi_bus_storage.xml +4 -2
- data/spec/unit/templates/domain_scsi_device_storage.xml +4 -2
- data/spec/unit/templates/domain_scsi_multiple_controllers_storage.xml +4 -2
- data/spec/unit/templates/domain_spec.rb +11 -3
- data/spec/unit/templates/tpm/version_1.2.xml +4 -2
- data/spec/unit/templates/tpm/version_2.0.xml +4 -2
- data/spec/unit/util/byte_number_spec.rb +1 -1
- data/spec/unit/util/network_util_spec/default.xml +16 -0
- data/spec/unit/util/network_util_spec/hostdev.xml +6 -0
- data/spec/unit/util/network_util_spec/vagrant-libvirt.xml +16 -0
- data/spec/unit/util/network_util_spec.rb +59 -0
- data/spec/unit/util/resolvers_spec.rb +1 -1
- metadata +87 -73
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative '../../spec_helper'
|
4
4
|
|
5
5
|
require 'vagrant-libvirt/config'
|
6
6
|
require 'vagrant-libvirt/util/erb_template'
|
@@ -67,6 +67,9 @@ describe 'templates/domain' do
|
|
67
67
|
domain.clock_timer(name: 't2', track: 'b', tickpolicy: 'c', frequency: 'd', mode: 'e', present: 'yes')
|
68
68
|
domain.hyperv_feature(name: 'spinlocks', state: 'on', retries: '4096')
|
69
69
|
domain.cputopology(sockets: '1', cores: '3', threads: '2')
|
70
|
+
domain.memtune(type: 'hard_limit', value: '250000')
|
71
|
+
domain.memtune(type: 'soft_limit', value: '200000')
|
72
|
+
domain.cpuaffinitiy(0 => '0')
|
70
73
|
domain.machine_type = 'pc-compatible'
|
71
74
|
domain.machine_arch = 'x86_64'
|
72
75
|
domain.loader = '/efi/loader'
|
@@ -77,9 +80,12 @@ describe 'templates/domain' do
|
|
77
80
|
domain.instance_variable_set('@domain_volume_cache', 'deprecated')
|
78
81
|
domain.disk_bus = 'ide'
|
79
82
|
domain.disk_device = 'vda'
|
83
|
+
domain.disk_address_type = 'virtio-mmio'
|
80
84
|
domain.disk_driver(:cache => 'unsafe', :io => 'threads', :copy_on_read => 'on', :discard => 'unmap', :detect_zeroes => 'on')
|
81
85
|
domain.storage(:file, path: 'test-disk1.qcow2')
|
82
86
|
domain.storage(:file, path: 'test-disk2.qcow2', io: 'threads', copy_on_read: 'on', discard: 'unmap', detect_zeroes: 'on')
|
87
|
+
domain.storage(:file, path: 'test-disk3.qcow2', address_type: 'pci')
|
88
|
+
domain.storage(:file, device: :floppy)
|
83
89
|
domain.storage(:file, device: :cdrom)
|
84
90
|
domain.storage(:file, device: :cdrom)
|
85
91
|
domain.channel(type: 'unix',
|
@@ -137,12 +143,14 @@ describe 'templates/domain' do
|
|
137
143
|
domain.domain_volumes.push({
|
138
144
|
:cache => 'unsafe',
|
139
145
|
:bus => domain.disk_bus,
|
140
|
-
:absolute_path => '/var/lib/libvirt/images/test.qcow2'
|
146
|
+
:absolute_path => '/var/lib/libvirt/images/test.qcow2',
|
147
|
+
:address_type => 'virtio-mmio',
|
141
148
|
})
|
142
149
|
domain.domain_volumes.push({
|
143
150
|
:cache => 'unsafe',
|
144
151
|
:bus => domain.disk_bus,
|
145
|
-
:absolute_path => '/var/lib/libvirt/images/test2.qcow2'
|
152
|
+
:absolute_path => '/var/lib/libvirt/images/test2.qcow2',
|
153
|
+
:address_type => 'virtio-mmio',
|
146
154
|
})
|
147
155
|
resolve
|
148
156
|
|
@@ -10,6 +10,7 @@
|
|
10
10
|
</cpu>
|
11
11
|
<os>
|
12
12
|
<type>hvm</type>
|
13
|
+
<bootmenu enable='no'/>
|
13
14
|
<kernel></kernel>
|
14
15
|
<initrd></initrd>
|
15
16
|
<cmdline></cmdline>
|
@@ -28,8 +29,9 @@
|
|
28
29
|
<console type='pty'>
|
29
30
|
<target port='0'/>
|
30
31
|
</console>
|
31
|
-
<input type='mouse' bus='ps2'
|
32
|
-
|
32
|
+
<input type='mouse' bus='ps2'>
|
33
|
+
</input>
|
34
|
+
<graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='127.0.0.1' keymap='en-us'/>
|
33
35
|
<video>
|
34
36
|
<model type='cirrus' vram='16384' heads='1'/>
|
35
37
|
</video>
|
@@ -10,6 +10,7 @@
|
|
10
10
|
</cpu>
|
11
11
|
<os>
|
12
12
|
<type>hvm</type>
|
13
|
+
<bootmenu enable='no'/>
|
13
14
|
<kernel></kernel>
|
14
15
|
<initrd></initrd>
|
15
16
|
<cmdline></cmdline>
|
@@ -28,8 +29,9 @@
|
|
28
29
|
<console type='pty'>
|
29
30
|
<target port='0'/>
|
30
31
|
</console>
|
31
|
-
<input type='mouse' bus='ps2'
|
32
|
-
|
32
|
+
<input type='mouse' bus='ps2'>
|
33
|
+
</input>
|
34
|
+
<graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='127.0.0.1' keymap='en-us'/>
|
33
35
|
<video>
|
34
36
|
<model type='cirrus' vram='16384' heads='1'/>
|
35
37
|
</video>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<network>
|
2
|
+
<name>default</name>
|
3
|
+
<uuid>39e02111-c66c-4653-86a9-8d20673a4eb1</uuid>
|
4
|
+
<forward mode='nat'>
|
5
|
+
<nat>
|
6
|
+
<port start='1024' end='65535'/>
|
7
|
+
</nat>
|
8
|
+
</forward>
|
9
|
+
<bridge name='virbr0' stp='on' delay='0'/>
|
10
|
+
<mac address='74-c3-fd-27-a8-c9'/>
|
11
|
+
<ip address='192.168.122.1' netmask='255.255.255.0'>
|
12
|
+
<dhcp>
|
13
|
+
<range start='192.168.122.2' end='192.168.122.254'/>
|
14
|
+
</dhcp>
|
15
|
+
</ip>
|
16
|
+
</network>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<network connections='1' ipv6='yes'>
|
2
|
+
<name>vagrant-libvirt</name>
|
3
|
+
<uuid>7347e8a9-bd25-409c-b4c3-ebf8744322bc</uuid>
|
4
|
+
<forward mode='nat'>
|
5
|
+
<nat>
|
6
|
+
<port start='1024' end='65535'/>
|
7
|
+
</nat>
|
8
|
+
</forward>
|
9
|
+
<bridge name='virbr1' stp='on' delay='0'/>
|
10
|
+
<mac address='52:54:00:d1:56:08'/>
|
11
|
+
<ip address='192.168.121.1' netmask='255.255.255.0'>
|
12
|
+
<dhcp>
|
13
|
+
<range start='192.168.121.1' end='192.168.121.254'/>
|
14
|
+
</dhcp>
|
15
|
+
</ip>
|
16
|
+
</network>
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../../spec_helper'
|
4
|
+
|
5
|
+
require 'vagrant-libvirt/util/network_util'
|
6
|
+
|
7
|
+
describe 'VagrantPlugins::ProviderLibvirt::Util::NetworkUtil' do
|
8
|
+
include_context 'libvirt'
|
9
|
+
|
10
|
+
subject do
|
11
|
+
Class.new {
|
12
|
+
include VagrantPlugins::ProviderLibvirt::Util::NetworkUtil
|
13
|
+
|
14
|
+
def initialize
|
15
|
+
@logger = Log4r::Logger.new('test-logger')
|
16
|
+
end
|
17
|
+
}.new
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_libvirt_network(name, attrs={})
|
21
|
+
default_attrs = {
|
22
|
+
:active? => true,
|
23
|
+
:autostart? => true,
|
24
|
+
}
|
25
|
+
network_xml = File.read(File.join(File.dirname(__FILE__), File.basename(__FILE__, '.rb'), name + '.xml'))
|
26
|
+
double = instance_double(::Libvirt::Network)
|
27
|
+
allow(double).to receive(:xml_desc).and_return(network_xml)
|
28
|
+
allow(double).to receive(:name).and_return(name)
|
29
|
+
|
30
|
+
xml = REXML::Document.new(network_xml)
|
31
|
+
bridge = REXML::XPath.first(xml, '/network/bridge')
|
32
|
+
default_attrs[:bridge_name] = !bridge.nil? ? bridge.attributes['name'] : Libvirt::Error.new("network #{name} does not have attribute bridge_name")
|
33
|
+
|
34
|
+
default_attrs.merge(attrs).each do |aname, avalue|
|
35
|
+
if avalue.is_a?(Exception)
|
36
|
+
allow(double).to receive(aname).and_raise(avalue)
|
37
|
+
else
|
38
|
+
allow(double).to receive(aname).and_return(avalue)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
double
|
43
|
+
end
|
44
|
+
|
45
|
+
describe '#libvirt_networks' do
|
46
|
+
let(:default_network) { create_libvirt_network('default') }
|
47
|
+
let(:additional_network) { create_libvirt_network('vagrant-libvirt') }
|
48
|
+
|
49
|
+
it 'should retrieve the list of networks' do
|
50
|
+
expect(logger).to_not receive(:debug)
|
51
|
+
expect(driver).to receive(:list_all_networks).and_return([default_network, additional_network])
|
52
|
+
|
53
|
+
expect(subject.libvirt_networks(driver)).to match_array([
|
54
|
+
hash_including(:name => 'default'),
|
55
|
+
hash_including(:name => 'vagrant-libvirt'),
|
56
|
+
])
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
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.
|
4
|
+
version: 0.11.2
|
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-
|
14
|
+
date: 2022-12-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: fog-libvirt
|
@@ -241,6 +241,7 @@ files:
|
|
241
241
|
- lib/vagrant-libvirt/version.rb
|
242
242
|
- locales/en.yml
|
243
243
|
- spec/acceptance/additional_storage_spec.rb
|
244
|
+
- spec/acceptance/networking_spec.rb
|
244
245
|
- spec/acceptance/package_domain_spec.rb
|
245
246
|
- spec/acceptance/provider_settings_spec.rb
|
246
247
|
- spec/acceptance/simple_vm_provision_via_shell_spec.rb
|
@@ -259,8 +260,8 @@ files:
|
|
259
260
|
- spec/support/libvirt_acceptance_context.rb
|
260
261
|
- spec/support/libvirt_context.rb
|
261
262
|
- spec/support/matchers/have_file_content.rb
|
262
|
-
- spec/support/sharedcontext.rb
|
263
263
|
- spec/support/temporary_dir.rb
|
264
|
+
- spec/support/unit_context.rb
|
264
265
|
- spec/unit/action/clean_machine_folder_spec.rb
|
265
266
|
- spec/unit/action/cleanup_on_failure_spec.rb
|
266
267
|
- spec/unit/action/create_domain_spec.rb
|
@@ -296,6 +297,7 @@ files:
|
|
296
297
|
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box.xml
|
297
298
|
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_and_custom_no_aliases.xml
|
298
299
|
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_storage.xml
|
300
|
+
- spec/unit/action/resume_domain_spec.rb
|
299
301
|
- spec/unit/action/set_boot_order_spec.rb
|
300
302
|
- spec/unit/action/set_boot_order_spec/default.xml
|
301
303
|
- spec/unit/action/set_boot_order_spec/explicit_boot_order.xml
|
@@ -317,6 +319,7 @@ files:
|
|
317
319
|
- spec/unit/action/start_domain_spec/nvram_domain_removed.xml
|
318
320
|
- spec/unit/action/wait_till_up_spec.rb
|
319
321
|
- spec/unit/action_spec.rb
|
322
|
+
- spec/unit/cap/mount_9p_spec.rb
|
320
323
|
- spec/unit/cap/synced_folder_9p_spec.rb
|
321
324
|
- spec/unit/cap/synced_folder_virtiofs_spec.rb
|
322
325
|
- spec/unit/config_spec.rb
|
@@ -333,6 +336,10 @@ files:
|
|
333
336
|
- spec/unit/templates/tpm/version_1.2.xml
|
334
337
|
- spec/unit/templates/tpm/version_2.0.xml
|
335
338
|
- spec/unit/util/byte_number_spec.rb
|
339
|
+
- spec/unit/util/network_util_spec.rb
|
340
|
+
- spec/unit/util/network_util_spec/default.xml
|
341
|
+
- spec/unit/util/network_util_spec/hostdev.xml
|
342
|
+
- spec/unit/util/network_util_spec/vagrant-libvirt.xml
|
336
343
|
- spec/unit/util/resolvers_spec.rb
|
337
344
|
homepage: https://github.com/vagrant-libvirt/vagrant-libvirt
|
338
345
|
licenses:
|
@@ -354,102 +361,109 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
354
361
|
- !ruby/object:Gem::Version
|
355
362
|
version: '0'
|
356
363
|
requirements: []
|
357
|
-
rubygems_version: 3.
|
364
|
+
rubygems_version: 3.3.7
|
358
365
|
signing_key:
|
359
366
|
specification_version: 4
|
360
367
|
summary: libvirt provider for Vagrant.
|
361
368
|
test_files:
|
369
|
+
- spec/acceptance/additional_storage_spec.rb
|
370
|
+
- spec/acceptance/networking_spec.rb
|
362
371
|
- spec/acceptance/package_domain_spec.rb
|
363
372
|
- spec/acceptance/provider_settings_spec.rb
|
364
|
-
- spec/acceptance/
|
365
|
-
- spec/acceptance/
|
373
|
+
- spec/acceptance/simple_vm_provision_via_shell_spec.rb
|
374
|
+
- spec/acceptance/snapshots_spec.rb
|
366
375
|
- spec/acceptance/support-skeletons/package_complex/Vagrantfile.testbox
|
367
376
|
- spec/acceptance/support-skeletons/package_complex/scripts/sysprep.sh
|
368
377
|
- spec/acceptance/support-skeletons/package_simple/Vagrantfile.testbox
|
369
|
-
- spec/acceptance/
|
370
|
-
- spec/acceptance/snapshots_spec.rb
|
378
|
+
- spec/acceptance/two_disks_spec.rb
|
371
379
|
- spec/acceptance/use_qemu_agent_for_connectivity_spec.rb
|
372
|
-
- spec/
|
373
|
-
- spec/support/binding_proc.rb
|
374
|
-
- spec/support/acceptance/context.rb
|
380
|
+
- spec/spec_helper.rb
|
375
381
|
- spec/support/acceptance/configuration.rb
|
382
|
+
- spec/support/acceptance/context.rb
|
376
383
|
- spec/support/acceptance/isolated_environment.rb
|
384
|
+
- spec/support/binding_proc.rb
|
377
385
|
- spec/support/environment_helper.rb
|
386
|
+
- spec/support/libvirt_acceptance_context.rb
|
378
387
|
- spec/support/libvirt_context.rb
|
388
|
+
- spec/support/matchers/have_file_content.rb
|
379
389
|
- spec/support/temporary_dir.rb
|
380
|
-
- spec/support/
|
381
|
-
- spec/
|
382
|
-
- spec/unit/
|
383
|
-
- spec/unit/action_spec.rb
|
384
|
-
- spec/unit/cap/synced_folder_9p_spec.rb
|
385
|
-
- spec/unit/cap/synced_folder_virtiofs_spec.rb
|
386
|
-
- spec/unit/plugin_spec.rb
|
387
|
-
- spec/unit/driver_spec.rb
|
388
|
-
- spec/unit/templates/domain_custom_cpu_model.xml
|
389
|
-
- spec/unit/templates/domain_all_settings.xml
|
390
|
-
- spec/unit/templates/domain_spec.rb
|
391
|
-
- spec/unit/templates/domain_defaults.xml
|
392
|
-
- spec/unit/templates/domain_scsi_multiple_controllers_storage.xml
|
393
|
-
- spec/unit/templates/domain_cpu_mode_passthrough.xml
|
394
|
-
- spec/unit/templates/domain_scsi_bus_storage.xml
|
395
|
-
- spec/unit/templates/domain_scsi_device_storage.xml
|
396
|
-
- spec/unit/templates/tpm/version_1.2.xml
|
397
|
-
- spec/unit/templates/tpm/version_2.0.xml
|
398
|
-
- spec/unit/util/byte_number_spec.rb
|
399
|
-
- spec/unit/util/resolvers_spec.rb
|
400
|
-
- spec/unit/action/package_domain_spec.rb
|
401
|
-
- spec/unit/action/set_boot_order_spec.rb
|
402
|
-
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml
|
403
|
-
- spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml
|
404
|
-
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_2.xml
|
405
|
-
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_0.xml
|
406
|
-
- spec/unit/action/destroy_domain_spec.rb
|
407
|
-
- spec/unit/action/set_name_of_domain_spec.rb
|
408
|
-
- spec/unit/action/remove_libvirt_image_spec.rb
|
409
|
-
- spec/unit/action/halt_domain_spec.rb
|
410
|
-
- spec/unit/action/set_boot_order_spec/explicit_boot_order.xml
|
411
|
-
- spec/unit/action/set_boot_order_spec/default.xml
|
390
|
+
- spec/support/unit_context.rb
|
391
|
+
- spec/unit/action/clean_machine_folder_spec.rb
|
392
|
+
- spec/unit/action/cleanup_on_failure_spec.rb
|
412
393
|
- spec/unit/action/create_domain_spec/additional_disks_domain.xml
|
394
|
+
- spec/unit/action/create_domain_spec/custom_disk_settings.xml
|
413
395
|
- spec/unit/action/create_domain_spec/default_domain.xml
|
414
|
-
- spec/unit/action/create_domain_spec/sysinfo.xml
|
415
396
|
- spec/unit/action/create_domain_spec/default_user_storage_pool.xml
|
416
|
-
- spec/unit/action/create_domain_spec/
|
397
|
+
- spec/unit/action/create_domain_spec/sysinfo.xml
|
417
398
|
- spec/unit/action/create_domain_spec/sysinfo_only_required.xml
|
418
399
|
- spec/unit/action/create_domain_spec/two_disk_settings.xml
|
400
|
+
- spec/unit/action/create_domain_spec.rb
|
401
|
+
- spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml
|
402
|
+
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_0.xml
|
403
|
+
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml
|
404
|
+
- spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_2.xml
|
419
405
|
- spec/unit/action/create_domain_volume_spec.rb
|
406
|
+
- spec/unit/action/destroy_domain_spec/additional_disks_domain.xml
|
407
|
+
- spec/unit/action/destroy_domain_spec/box_multiple_disks.xml
|
408
|
+
- spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_and_custom_disks.xml
|
409
|
+
- spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_and_custom_disks_no_aliases.xml
|
410
|
+
- spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_disks.xml
|
411
|
+
- spec/unit/action/destroy_domain_spec/cdrom_domain.xml
|
412
|
+
- spec/unit/action/destroy_domain_spec.rb
|
413
|
+
- spec/unit/action/forward_ports_spec.rb
|
414
|
+
- spec/unit/action/halt_domain_spec.rb
|
415
|
+
- spec/unit/action/handle_box_image_spec.rb
|
416
|
+
- spec/unit/action/package_domain_spec.rb
|
417
|
+
- spec/unit/action/prepare_nfs_settings_spec.rb
|
418
|
+
- spec/unit/action/remove_libvirt_image_spec.rb
|
420
419
|
- spec/unit/action/resolve_disk_settings_spec/default_domain.xml
|
421
|
-
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box.xml
|
422
420
|
- spec/unit/action/resolve_disk_settings_spec/default_no_aliases.xml
|
423
|
-
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_storage.xml
|
424
|
-
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_and_custom_no_aliases.xml
|
425
421
|
- spec/unit/action/resolve_disk_settings_spec/default_system_storage_pool.xml
|
426
|
-
- spec/unit/action/
|
427
|
-
- spec/unit/action/
|
428
|
-
- spec/unit/action/
|
429
|
-
- spec/unit/action/clean_machine_folder_spec.rb
|
422
|
+
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box.xml
|
423
|
+
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_and_custom_no_aliases.xml
|
424
|
+
- spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_storage.xml
|
430
425
|
- spec/unit/action/resolve_disk_settings_spec.rb
|
431
|
-
- spec/unit/action/
|
426
|
+
- spec/unit/action/resume_domain_spec.rb
|
427
|
+
- spec/unit/action/set_boot_order_spec/default.xml
|
428
|
+
- spec/unit/action/set_boot_order_spec/explicit_boot_order.xml
|
429
|
+
- spec/unit/action/set_boot_order_spec.rb
|
430
|
+
- spec/unit/action/set_name_of_domain_spec.rb
|
431
|
+
- spec/unit/action/shutdown_domain_spec.rb
|
432
|
+
- spec/unit/action/start_domain_spec/clock_timer_removed.xml
|
433
|
+
- spec/unit/action/start_domain_spec/clock_timer_rtc.xml
|
434
|
+
- spec/unit/action/start_domain_spec/clock_timer_rtc_tsc.xml
|
435
|
+
- spec/unit/action/start_domain_spec/default.xml
|
432
436
|
- spec/unit/action/start_domain_spec/default_added_tpm_path.xml
|
433
|
-
- spec/unit/action/start_domain_spec/nvram_domain.xml
|
434
437
|
- spec/unit/action/start_domain_spec/default_added_tpm_version.xml
|
435
|
-
- spec/unit/action/start_domain_spec/
|
436
|
-
- spec/unit/action/start_domain_spec/
|
437
|
-
- spec/unit/action/start_domain_spec/
|
438
|
+
- spec/unit/action/start_domain_spec/default_with_different_formatting.xml
|
439
|
+
- spec/unit/action/start_domain_spec/existing.xml
|
440
|
+
- spec/unit/action/start_domain_spec/existing_added_nvram.xml
|
438
441
|
- spec/unit/action/start_domain_spec/existing_reordered.xml
|
442
|
+
- spec/unit/action/start_domain_spec/nvram_domain.xml
|
439
443
|
- spec/unit/action/start_domain_spec/nvram_domain_other_setting.xml
|
440
|
-
- spec/unit/action/start_domain_spec/
|
441
|
-
- spec/unit/action/start_domain_spec
|
442
|
-
- spec/unit/action/
|
443
|
-
- spec/unit/
|
444
|
-
- spec/unit/
|
445
|
-
- spec/unit/
|
446
|
-
- spec/unit/
|
447
|
-
- spec/unit/
|
448
|
-
- spec/unit/
|
449
|
-
- spec/unit/
|
450
|
-
- spec/unit/
|
451
|
-
- spec/unit/
|
452
|
-
- spec/unit/
|
453
|
-
- spec/unit/
|
454
|
-
- spec/unit/
|
455
|
-
- spec/
|
444
|
+
- spec/unit/action/start_domain_spec/nvram_domain_removed.xml
|
445
|
+
- spec/unit/action/start_domain_spec.rb
|
446
|
+
- spec/unit/action/wait_till_up_spec.rb
|
447
|
+
- spec/unit/action_spec.rb
|
448
|
+
- spec/unit/cap/mount_9p_spec.rb
|
449
|
+
- spec/unit/cap/synced_folder_9p_spec.rb
|
450
|
+
- spec/unit/cap/synced_folder_virtiofs_spec.rb
|
451
|
+
- spec/unit/config_spec.rb
|
452
|
+
- spec/unit/driver_spec.rb
|
453
|
+
- spec/unit/plugin_spec.rb
|
454
|
+
- spec/unit/templates/domain_all_settings.xml
|
455
|
+
- spec/unit/templates/domain_cpu_mode_passthrough.xml
|
456
|
+
- spec/unit/templates/domain_custom_cpu_model.xml
|
457
|
+
- spec/unit/templates/domain_defaults.xml
|
458
|
+
- spec/unit/templates/domain_scsi_bus_storage.xml
|
459
|
+
- spec/unit/templates/domain_scsi_device_storage.xml
|
460
|
+
- spec/unit/templates/domain_scsi_multiple_controllers_storage.xml
|
461
|
+
- spec/unit/templates/domain_spec.rb
|
462
|
+
- spec/unit/templates/tpm/version_1.2.xml
|
463
|
+
- spec/unit/templates/tpm/version_2.0.xml
|
464
|
+
- spec/unit/util/byte_number_spec.rb
|
465
|
+
- spec/unit/util/network_util_spec/default.xml
|
466
|
+
- spec/unit/util/network_util_spec/hostdev.xml
|
467
|
+
- spec/unit/util/network_util_spec/vagrant-libvirt.xml
|
468
|
+
- spec/unit/util/network_util_spec.rb
|
469
|
+
- spec/unit/util/resolvers_spec.rb
|