vagrant-libvirt 0.8.2 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +51 -2079
  3. data/lib/vagrant-libvirt/action/create_domain.rb +57 -94
  4. data/lib/vagrant-libvirt/action/create_network_interfaces.rb +1 -1
  5. data/lib/vagrant-libvirt/action/create_networks.rb +3 -3
  6. data/lib/vagrant-libvirt/action/destroy_domain.rb +21 -5
  7. data/lib/vagrant-libvirt/action/destroy_networks.rb +2 -2
  8. data/lib/vagrant-libvirt/action/handle_box_image.rb +3 -1
  9. data/lib/vagrant-libvirt/action/package_domain.rb +1 -5
  10. data/lib/vagrant-libvirt/action/remove_libvirt_image.rb +3 -1
  11. data/lib/vagrant-libvirt/action/resolve_disk_settings.rb +181 -0
  12. data/lib/vagrant-libvirt/action/snapshot_delete.rb +26 -0
  13. data/lib/vagrant-libvirt/action/snapshot_restore.rb +22 -0
  14. data/lib/vagrant-libvirt/action/snapshot_save.rb +27 -0
  15. data/lib/vagrant-libvirt/action/start_domain.rb +80 -11
  16. data/lib/vagrant-libvirt/action.rb +53 -1
  17. data/lib/vagrant-libvirt/cap/snapshots.rb +12 -0
  18. data/lib/vagrant-libvirt/cap/synced_folder_9p.rb +4 -4
  19. data/lib/vagrant-libvirt/cap/synced_folder_virtiofs.rb +4 -4
  20. data/lib/vagrant-libvirt/config.rb +104 -6
  21. data/lib/vagrant-libvirt/driver.rb +108 -46
  22. data/lib/vagrant-libvirt/errors.rb +23 -3
  23. data/lib/vagrant-libvirt/plugin.rb +7 -3
  24. data/lib/vagrant-libvirt/provider.rb +1 -1
  25. data/lib/vagrant-libvirt/templates/domain.xml.erb +32 -6
  26. data/lib/vagrant-libvirt/util/byte_number.rb +0 -1
  27. data/lib/vagrant-libvirt/util/compat.rb +23 -0
  28. data/lib/vagrant-libvirt/util/domain_flags.rb +15 -0
  29. data/lib/vagrant-libvirt/util/unindent.rb +7 -0
  30. data/lib/vagrant-libvirt/util.rb +1 -0
  31. data/lib/vagrant-libvirt/version +1 -1
  32. data/locales/en.yml +28 -4
  33. data/spec/acceptance/additional_storage_spec.rb +32 -0
  34. data/spec/acceptance/package_domain_spec.rb +90 -0
  35. data/spec/acceptance/provider_settings_spec.rb +54 -0
  36. data/spec/acceptance/simple_vm_provision_via_shell_spec.rb +31 -0
  37. data/spec/acceptance/snapshots_spec.rb +41 -0
  38. data/spec/acceptance/support-skeletons/package_complex/Vagrantfile.testbox +14 -0
  39. data/spec/acceptance/support-skeletons/package_complex/scripts/sysprep.sh +32 -0
  40. data/spec/acceptance/support-skeletons/package_simple/Vagrantfile.testbox +10 -0
  41. data/spec/acceptance/two_disks_spec.rb +29 -0
  42. data/spec/acceptance/use_qemu_agent_for_connectivity_spec.rb +35 -0
  43. data/spec/spec_helper.rb +3 -0
  44. data/spec/support/acceptance/configuration.rb +21 -0
  45. data/spec/support/acceptance/context.rb +70 -0
  46. data/spec/support/acceptance/isolated_environment.rb +41 -0
  47. data/spec/support/libvirt_acceptance_context.rb +64 -0
  48. data/spec/support/libvirt_context.rb +4 -0
  49. data/spec/support/sharedcontext.rb +1 -0
  50. data/spec/unit/action/cleanup_on_failure_spec.rb +0 -2
  51. data/spec/unit/action/create_domain_spec/sysinfo.xml +66 -0
  52. data/spec/unit/action/create_domain_spec/sysinfo_only_required.xml +49 -0
  53. data/spec/unit/action/create_domain_spec.rb +188 -140
  54. data/spec/unit/action/create_domain_volume_spec.rb +0 -3
  55. data/spec/unit/action/destroy_domain_spec.rb +43 -10
  56. data/spec/unit/action/forward_ports_spec.rb +0 -1
  57. data/spec/unit/action/handle_box_image_spec.rb +31 -14
  58. data/spec/unit/action/package_domain_spec.rb +0 -5
  59. data/spec/unit/action/remove_libvirt_image_spec.rb +43 -0
  60. data/spec/unit/action/resolve_disk_settings_spec/default_domain.xml +43 -0
  61. data/spec/unit/action/resolve_disk_settings_spec/default_no_aliases.xml +42 -0
  62. data/spec/unit/action/{create_domain_spec → resolve_disk_settings_spec}/default_system_storage_pool.xml +0 -0
  63. data/spec/unit/action/resolve_disk_settings_spec/multi_volume_box.xml +55 -0
  64. data/spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_and_custom_no_aliases.xml +67 -0
  65. data/spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_storage.xml +67 -0
  66. data/spec/unit/action/resolve_disk_settings_spec.rb +385 -0
  67. data/spec/unit/action/start_domain_spec/clock_timer_removed.xml +38 -0
  68. data/spec/unit/action/start_domain_spec/clock_timer_rtc_tsc.xml +39 -0
  69. data/spec/unit/action/start_domain_spec/existing_added_nvram.xml +62 -0
  70. data/spec/unit/action/start_domain_spec/nvram_domain.xml +64 -0
  71. data/spec/unit/action/start_domain_spec/nvram_domain_other_setting.xml +64 -0
  72. data/spec/unit/action/start_domain_spec/nvram_domain_removed.xml +64 -0
  73. data/spec/unit/action/start_domain_spec.rb +122 -22
  74. data/spec/unit/action/wait_till_up_spec.rb +0 -2
  75. data/spec/unit/action_spec.rb +88 -3
  76. data/spec/unit/cap/synced_folder_9p_spec.rb +120 -0
  77. data/spec/unit/cap/synced_folder_virtiofs_spec.rb +120 -0
  78. data/spec/unit/config_spec.rb +153 -6
  79. data/spec/unit/driver_spec.rb +3 -1
  80. data/spec/unit/plugin_spec.rb +42 -0
  81. data/spec/unit/templates/domain_all_settings.xml +15 -6
  82. data/spec/unit/templates/domain_scsi_bus_storage.xml +44 -0
  83. data/spec/unit/templates/domain_scsi_device_storage.xml +44 -0
  84. data/spec/unit/templates/domain_scsi_multiple_controllers_storage.xml +130 -0
  85. data/spec/unit/templates/domain_spec.rb +105 -21
  86. data/spec/unit/util/byte_number_spec.rb +1 -1
  87. metadata +169 -79
  88. data/spec/unit/provider_spec.rb +0 -11
@@ -16,13 +16,33 @@ describe 'templates/domain' do
16
16
  def initialize
17
17
  super
18
18
  @domain_volumes = []
19
+ @sysinfo_blocks = {
20
+ 'bios' => {:section => "BIOS", :xml => "bios"},
21
+ 'system' => {:section => "System", :xml => "system"},
22
+ 'base board' => {:section => "Base Board", :xml => "baseBoard"},
23
+ 'chassis' => {:section => "Chassis", :xml => "chassis"},
24
+ 'oem strings' => {:section => "OEM Strings", :xml => "oemStrings"},
25
+ }
19
26
  end
20
27
 
21
28
  def finalize!
22
29
  super
30
+
31
+ disks.each do |disk|
32
+ disk[:absolute_path] = '/var/lib/libvirt/images/' + disk[:path]
33
+ end
23
34
  end
24
35
  end
25
36
 
37
+ def resolve
38
+ # resolving is now done during create domain, so need to recreate
39
+ # the same behaviour before calling the template until that
40
+ # is separated out from create domain.
41
+ resolver = ::VagrantPlugins::ProviderLibvirt::Util::DiskDeviceResolver.new(prefix=domain.disk_device[0..1])
42
+ resolver.resolve!(domain.domain_volumes.dup.each { |volume| volume[:device] = volume[:dev] })
43
+ resolver.resolve!(domain.disks)
44
+ end
45
+
26
46
  let(:domain) { DomainTemplateHelper.new }
27
47
  let(:xml_expected) { File.read(File.join(File.dirname(__FILE__), test_file)) }
28
48
 
@@ -58,23 +78,8 @@ describe 'templates/domain' do
58
78
  domain.disk_bus = 'ide'
59
79
  domain.disk_device = 'vda'
60
80
  domain.disk_driver(:cache => 'unsafe', :io => 'threads', :copy_on_read => 'on', :discard => 'unmap', :detect_zeroes => 'on')
61
- domain.domain_volumes.push({
62
- :dev => 'vda',
63
- :cache => 'unsafe',
64
- :bus => domain.disk_bus,
65
- :path => '/var/lib/libvirt/images/test.qcow2'
66
- })
67
- domain.domain_volumes.push({
68
- :dev => 'vdb',
69
- :cache => 'unsafe',
70
- :bus => domain.disk_bus,
71
- :path => '/var/lib/libvirt/images/test2.qcow2'
72
- })
73
81
  domain.storage(:file, path: 'test-disk1.qcow2')
74
82
  domain.storage(:file, path: 'test-disk2.qcow2', io: 'threads', copy_on_read: 'on', discard: 'unmap', detect_zeroes: 'on')
75
- domain.disks.each do |disk|
76
- disk[:absolute_path] = '/var/lib/libvirt/images/' + disk[:path]
77
- end
78
83
  domain.storage(:file, device: :cdrom)
79
84
  domain.storage(:file, device: :cdrom)
80
85
  domain.channel(type: 'unix',
@@ -102,6 +107,15 @@ describe 'templates/domain' do
102
107
  domain.smartcard(mode: 'passthrough')
103
108
  domain.tpm_path = '/dev/tpm0'
104
109
 
110
+ domain.sysinfo = {
111
+ 'system' => {
112
+ 'serial' => 'AAAAAAAA',
113
+ },
114
+ 'oem strings' => [
115
+ 'AAAAAAAA',
116
+ ],
117
+ }
118
+
105
119
  domain.qemuargs(value: '-device')
106
120
  domain.qemuargs(value: 'dummy-device')
107
121
 
@@ -119,12 +133,18 @@ describe 'templates/domain' do
119
133
  let(:test_file) { 'domain_all_settings.xml' }
120
134
  it 'renders template' do
121
135
  domain.finalize!
122
- # resolving is now done during create domain, so need to recreate
123
- # the same behaviour before calling the template until that
124
- # is separated out from create domain.
125
- resolver = ::VagrantPlugins::ProviderLibvirt::Util::DiskDeviceResolver.new(prefix=domain.disk_device[0..1])
126
- resolver.resolve!(domain.domain_volumes.dup.each { |volume| volume[:device] = volume[:dev] })
127
- resolver.resolve!(domain.disks)
136
+
137
+ domain.domain_volumes.push({
138
+ :cache => 'unsafe',
139
+ :bus => domain.disk_bus,
140
+ :absolute_path => '/var/lib/libvirt/images/test.qcow2'
141
+ })
142
+ domain.domain_volumes.push({
143
+ :cache => 'unsafe',
144
+ :bus => domain.disk_bus,
145
+ :absolute_path => '/var/lib/libvirt/images/test2.qcow2'
146
+ })
147
+ resolve
128
148
 
129
149
  expect(domain.to_xml('domain')).to eq xml_expected
130
150
  end
@@ -231,4 +251,68 @@ describe 'templates/domain' do
231
251
  end
232
252
  end
233
253
  end
254
+
255
+ context 'scsi controller' do
256
+ context 'when disk device suggests scsi' do
257
+ let(:test_file) { 'domain_scsi_device_storage.xml' }
258
+
259
+ before do
260
+ domain.disk_device = 'sda'
261
+ end
262
+
263
+ it 'renders scsi controller in template' do
264
+ domain.finalize!
265
+ domain.domain_volumes.push({
266
+ :cache => 'unsafe',
267
+ :bus => domain.disk_bus,
268
+ :absolute_path => '/var/lib/libvirt/images/test.qcow2'
269
+ })
270
+
271
+ resolve
272
+ expect(domain.to_xml('domain')).to eq xml_expected
273
+ end
274
+ end
275
+
276
+ context 'when disk bus is scsi' do
277
+ let(:test_file) { 'domain_scsi_bus_storage.xml' }
278
+
279
+ before do
280
+ domain.disk_bus = 'scsi'
281
+ end
282
+
283
+ it 'renders scsi controller in template based on bus' do
284
+ domain.finalize!
285
+ domain.domain_volumes.push({
286
+ :dev => 'vda',
287
+ :cache => 'unsafe',
288
+ :bus => domain.disk_bus,
289
+ :absolute_path => '/var/lib/libvirt/images/test.qcow2'
290
+ })
291
+ resolve
292
+ expect(domain.to_xml('domain')).to eq xml_expected
293
+ end
294
+ end
295
+
296
+ context 'when enough scsi disks are added' do
297
+ let(:test_file) { 'domain_scsi_multiple_controllers_storage.xml' }
298
+
299
+ before do
300
+ domain.disk_bus = 'scsi'
301
+ domain.disk_controller_model = 'virtio-scsi'
302
+ end
303
+
304
+ it 'should render with multiple scsi controllers' do
305
+ domain.finalize!
306
+ for idx in 1..15 do
307
+ domain.domain_volumes.push({
308
+ :cache => 'unsafe',
309
+ :bus => domain.disk_bus,
310
+ :absolute_path => "/var/lib/libvirt/images/test-#{idx}.img"
311
+ })
312
+ end
313
+ resolve
314
+ expect(domain.to_xml('domain')).to eq xml_expected
315
+ end
316
+ end
317
+ end
234
318
  end
@@ -25,4 +25,4 @@ describe ByteNumber do
25
25
  expect( ByteNumber.new(5).pow(5).to_i).to eq(5**5)
26
26
  end
27
27
  end
28
- end
28
+ end
metadata CHANGED
@@ -1,96 +1,96 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-libvirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Stanek
8
8
  - Dima Vasilets
9
9
  - Brian Pitts
10
10
  - Darragh Bailey
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-05-04 00:00:00.000000000 Z
14
+ date: 2022-08-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: rspec-core
17
+ name: fog-libvirt
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '3.5'
23
- type: :development
22
+ version: 0.6.0
23
+ type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '3.5'
29
+ version: 0.6.0
30
30
  - !ruby/object:Gem::Dependency
31
- name: rspec-expectations
31
+ name: fog-core
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ">="
34
+ - - "~>"
35
35
  - !ruby/object:Gem::Version
36
- version: '3.5'
37
- type: :development
36
+ version: '2'
37
+ type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ">="
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: '3.5'
43
+ version: '2'
44
44
  - !ruby/object:Gem::Dependency
45
- name: rspec-mocks
45
+ name: rexml
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: '3.5'
51
- type: :development
50
+ version: '0'
51
+ type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
- version: '3.5'
57
+ version: '0'
58
58
  - !ruby/object:Gem::Dependency
59
- name: fog-libvirt
59
+ name: diffy
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - ">="
63
63
  - !ruby/object:Gem::Version
64
- version: 0.6.0
64
+ version: '0'
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: 0.6.0
71
+ version: '0'
72
72
  - !ruby/object:Gem::Dependency
73
- name: fog-core
73
+ name: nokogiri
74
74
  requirement: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - "~>"
77
77
  - !ruby/object:Gem::Version
78
- version: '2'
78
+ version: '1.6'
79
79
  type: :runtime
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - "~>"
84
84
  - !ruby/object:Gem::Version
85
- version: '2'
85
+ version: '1.6'
86
86
  - !ruby/object:Gem::Dependency
87
- name: rexml
87
+ name: rake
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
- type: :runtime
93
+ type: :development
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
@@ -98,33 +98,47 @@ dependencies:
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  - !ruby/object:Gem::Dependency
101
- name: nokogiri
101
+ name: rspec-core
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - "~>"
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: '1.6'
107
- type: :runtime
106
+ version: '3.5'
107
+ type: :development
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - "~>"
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
- version: '1.6'
113
+ version: '3.5'
114
114
  - !ruby/object:Gem::Dependency
115
- name: rake
115
+ name: rspec-expectations
116
116
  requirement: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
- version: '0'
120
+ version: '3.5'
121
121
  type: :development
122
122
  prerelease: false
123
123
  version_requirements: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - ">="
126
126
  - !ruby/object:Gem::Version
127
- version: '0'
127
+ version: '3.5'
128
+ - !ruby/object:Gem::Dependency
129
+ name: rspec-mocks
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '3.5'
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '3.5'
128
142
  description: libvirt provider for Vagrant.
129
143
  email:
130
144
  - ls@elostech.cz
@@ -166,11 +180,15 @@ files:
166
180
  - lib/vagrant-libvirt/action/read_mac_addresses.rb
167
181
  - lib/vagrant-libvirt/action/remove_libvirt_image.rb
168
182
  - lib/vagrant-libvirt/action/remove_stale_volume.rb
183
+ - lib/vagrant-libvirt/action/resolve_disk_settings.rb
169
184
  - lib/vagrant-libvirt/action/resume_domain.rb
170
185
  - lib/vagrant-libvirt/action/set_boot_order.rb
171
186
  - lib/vagrant-libvirt/action/set_name_of_domain.rb
172
187
  - lib/vagrant-libvirt/action/share_folders.rb
173
188
  - lib/vagrant-libvirt/action/shutdown_domain.rb
189
+ - lib/vagrant-libvirt/action/snapshot_delete.rb
190
+ - lib/vagrant-libvirt/action/snapshot_restore.rb
191
+ - lib/vagrant-libvirt/action/snapshot_save.rb
174
192
  - lib/vagrant-libvirt/action/start_domain.rb
175
193
  - lib/vagrant-libvirt/action/suspend_domain.rb
176
194
  - lib/vagrant-libvirt/action/wait_till_up.rb
@@ -178,6 +196,7 @@ files:
178
196
  - lib/vagrant-libvirt/cap/mount_virtiofs.rb
179
197
  - lib/vagrant-libvirt/cap/nic_mac_addresses.rb
180
198
  - lib/vagrant-libvirt/cap/public_address.rb
199
+ - lib/vagrant-libvirt/cap/snapshots.rb
181
200
  - lib/vagrant-libvirt/cap/synced_folder_9p.rb
182
201
  - lib/vagrant-libvirt/cap/synced_folder_virtiofs.rb
183
202
  - lib/vagrant-libvirt/config.rb
@@ -192,6 +211,8 @@ files:
192
211
  - lib/vagrant-libvirt/util.rb
193
212
  - lib/vagrant-libvirt/util/byte_number.rb
194
213
  - lib/vagrant-libvirt/util/collection.rb
214
+ - lib/vagrant-libvirt/util/compat.rb
215
+ - lib/vagrant-libvirt/util/domain_flags.rb
195
216
  - lib/vagrant-libvirt/util/erb_template.rb
196
217
  - lib/vagrant-libvirt/util/error_codes.rb
197
218
  - lib/vagrant-libvirt/util/network_util.rb
@@ -200,12 +221,27 @@ files:
200
221
  - lib/vagrant-libvirt/util/storage_util.rb
201
222
  - lib/vagrant-libvirt/util/timer.rb
202
223
  - lib/vagrant-libvirt/util/ui.rb
224
+ - lib/vagrant-libvirt/util/unindent.rb
203
225
  - lib/vagrant-libvirt/version
204
226
  - lib/vagrant-libvirt/version.rb
205
227
  - locales/en.yml
228
+ - spec/acceptance/additional_storage_spec.rb
229
+ - spec/acceptance/package_domain_spec.rb
230
+ - spec/acceptance/provider_settings_spec.rb
231
+ - spec/acceptance/simple_vm_provision_via_shell_spec.rb
232
+ - spec/acceptance/snapshots_spec.rb
233
+ - spec/acceptance/support-skeletons/package_complex/Vagrantfile.testbox
234
+ - spec/acceptance/support-skeletons/package_complex/scripts/sysprep.sh
235
+ - spec/acceptance/support-skeletons/package_simple/Vagrantfile.testbox
236
+ - spec/acceptance/two_disks_spec.rb
237
+ - spec/acceptance/use_qemu_agent_for_connectivity_spec.rb
206
238
  - spec/spec_helper.rb
239
+ - spec/support/acceptance/configuration.rb
240
+ - spec/support/acceptance/context.rb
241
+ - spec/support/acceptance/isolated_environment.rb
207
242
  - spec/support/binding_proc.rb
208
243
  - spec/support/environment_helper.rb
244
+ - spec/support/libvirt_acceptance_context.rb
209
245
  - spec/support/libvirt_context.rb
210
246
  - spec/support/matchers/have_file_content.rb
211
247
  - spec/support/sharedcontext.rb
@@ -216,8 +252,9 @@ files:
216
252
  - spec/unit/action/create_domain_spec/additional_disks_domain.xml
217
253
  - spec/unit/action/create_domain_spec/custom_disk_settings.xml
218
254
  - spec/unit/action/create_domain_spec/default_domain.xml
219
- - spec/unit/action/create_domain_spec/default_system_storage_pool.xml
220
255
  - spec/unit/action/create_domain_spec/default_user_storage_pool.xml
256
+ - spec/unit/action/create_domain_spec/sysinfo.xml
257
+ - spec/unit/action/create_domain_spec/sysinfo_only_required.xml
221
258
  - spec/unit/action/create_domain_spec/two_disk_settings.xml
222
259
  - spec/unit/action/create_domain_volume_spec.rb
223
260
  - spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml
@@ -236,23 +273,42 @@ files:
236
273
  - spec/unit/action/handle_box_image_spec.rb
237
274
  - spec/unit/action/package_domain_spec.rb
238
275
  - spec/unit/action/prepare_nfs_settings_spec.rb
276
+ - spec/unit/action/remove_libvirt_image_spec.rb
277
+ - spec/unit/action/resolve_disk_settings_spec.rb
278
+ - spec/unit/action/resolve_disk_settings_spec/default_domain.xml
279
+ - spec/unit/action/resolve_disk_settings_spec/default_no_aliases.xml
280
+ - spec/unit/action/resolve_disk_settings_spec/default_system_storage_pool.xml
281
+ - spec/unit/action/resolve_disk_settings_spec/multi_volume_box.xml
282
+ - spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_and_custom_no_aliases.xml
283
+ - spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_storage.xml
239
284
  - spec/unit/action/set_name_of_domain_spec.rb
240
285
  - spec/unit/action/shutdown_domain_spec.rb
241
286
  - spec/unit/action/start_domain_spec.rb
287
+ - spec/unit/action/start_domain_spec/clock_timer_removed.xml
242
288
  - spec/unit/action/start_domain_spec/clock_timer_rtc.xml
289
+ - spec/unit/action/start_domain_spec/clock_timer_rtc_tsc.xml
243
290
  - spec/unit/action/start_domain_spec/default.xml
244
291
  - spec/unit/action/start_domain_spec/default_added_tpm_path.xml
245
292
  - spec/unit/action/start_domain_spec/default_added_tpm_version.xml
246
293
  - spec/unit/action/start_domain_spec/existing.xml
294
+ - spec/unit/action/start_domain_spec/existing_added_nvram.xml
295
+ - spec/unit/action/start_domain_spec/nvram_domain.xml
296
+ - spec/unit/action/start_domain_spec/nvram_domain_other_setting.xml
297
+ - spec/unit/action/start_domain_spec/nvram_domain_removed.xml
247
298
  - spec/unit/action/wait_till_up_spec.rb
248
299
  - spec/unit/action_spec.rb
300
+ - spec/unit/cap/synced_folder_9p_spec.rb
301
+ - spec/unit/cap/synced_folder_virtiofs_spec.rb
249
302
  - spec/unit/config_spec.rb
250
303
  - spec/unit/driver_spec.rb
251
- - spec/unit/provider_spec.rb
304
+ - spec/unit/plugin_spec.rb
252
305
  - spec/unit/templates/domain_all_settings.xml
253
306
  - spec/unit/templates/domain_cpu_mode_passthrough.xml
254
307
  - spec/unit/templates/domain_custom_cpu_model.xml
255
308
  - spec/unit/templates/domain_defaults.xml
309
+ - spec/unit/templates/domain_scsi_bus_storage.xml
310
+ - spec/unit/templates/domain_scsi_device_storage.xml
311
+ - spec/unit/templates/domain_scsi_multiple_controllers_storage.xml
256
312
  - spec/unit/templates/domain_spec.rb
257
313
  - spec/unit/templates/tpm/version_1.2.xml
258
314
  - spec/unit/templates/tpm/version_2.0.xml
@@ -263,7 +319,7 @@ licenses:
263
319
  - MIT
264
320
  metadata:
265
321
  source_code_uri: https://github.com/vagrant-libvirt/vagrant-libvirt
266
- post_install_message:
322
+ post_install_message:
267
323
  rdoc_options: []
268
324
  require_paths:
269
325
  - lib
@@ -279,62 +335,96 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
335
  version: '0'
280
336
  requirements: []
281
337
  rubygems_version: 3.0.9
282
- signing_key:
338
+ signing_key:
283
339
  specification_version: 4
284
340
  summary: libvirt provider for Vagrant.
285
341
  test_files:
286
- - spec/support/matchers/have_file_content.rb
287
- - spec/support/binding_proc.rb
288
- - spec/support/environment_helper.rb
289
- - spec/support/libvirt_context.rb
290
- - spec/support/sharedcontext.rb
291
- - spec/support/temporary_dir.rb
292
- - spec/unit/action/create_domain_spec/default_system_storage_pool.xml
293
- - spec/unit/action/create_domain_spec/default_user_storage_pool.xml
294
- - spec/unit/action/create_domain_spec/additional_disks_domain.xml
295
- - spec/unit/action/create_domain_spec/custom_disk_settings.xml
296
- - spec/unit/action/create_domain_spec/default_domain.xml
297
- - spec/unit/action/create_domain_spec/two_disk_settings.xml
298
- - spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml
342
+ - spec/unit/config_spec.rb
343
+ - spec/unit/action_spec.rb
344
+ - spec/unit/action/forward_ports_spec.rb
345
+ - spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_and_custom_disks.xml
346
+ - spec/unit/action/destroy_domain_spec/box_multiple_disks.xml
347
+ - spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_and_custom_disks_no_aliases.xml
348
+ - spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_disks.xml
349
+ - spec/unit/action/destroy_domain_spec/cdrom_domain.xml
350
+ - spec/unit/action/destroy_domain_spec/additional_disks_domain.xml
351
+ - spec/unit/action/cleanup_on_failure_spec.rb
352
+ - spec/unit/action/create_domain_spec.rb
353
+ - spec/unit/action/resolve_disk_settings_spec/default_system_storage_pool.xml
354
+ - spec/unit/action/resolve_disk_settings_spec/default_no_aliases.xml
355
+ - spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_and_custom_no_aliases.xml
356
+ - spec/unit/action/resolve_disk_settings_spec/multi_volume_box_additional_storage.xml
357
+ - spec/unit/action/resolve_disk_settings_spec/multi_volume_box.xml
358
+ - spec/unit/action/resolve_disk_settings_spec/default_domain.xml
359
+ - spec/unit/action/start_domain_spec/existing.xml
360
+ - spec/unit/action/start_domain_spec/nvram_domain_removed.xml
361
+ - spec/unit/action/start_domain_spec/default.xml
362
+ - spec/unit/action/start_domain_spec/default_added_tpm_version.xml
363
+ - spec/unit/action/start_domain_spec/nvram_domain_other_setting.xml
364
+ - spec/unit/action/start_domain_spec/clock_timer_rtc.xml
365
+ - spec/unit/action/start_domain_spec/clock_timer_removed.xml
366
+ - spec/unit/action/start_domain_spec/clock_timer_rtc_tsc.xml
367
+ - spec/unit/action/start_domain_spec/nvram_domain.xml
368
+ - spec/unit/action/start_domain_spec/default_added_tpm_path.xml
369
+ - spec/unit/action/start_domain_spec/existing_added_nvram.xml
370
+ - spec/unit/action/prepare_nfs_settings_spec.rb
371
+ - spec/unit/action/package_domain_spec.rb
372
+ - spec/unit/action/handle_box_image_spec.rb
299
373
  - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_0.xml
300
374
  - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml
301
375
  - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_2.xml
302
- - spec/unit/action/start_domain_spec/clock_timer_rtc.xml
303
- - spec/unit/action/start_domain_spec/default.xml
304
- - spec/unit/action/start_domain_spec/default_added_tpm_path.xml
305
- - spec/unit/action/start_domain_spec/default_added_tpm_version.xml
306
- - spec/unit/action/start_domain_spec/existing.xml
376
+ - spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml
377
+ - spec/unit/action/start_domain_spec.rb
307
378
  - spec/unit/action/clean_machine_folder_spec.rb
308
- - spec/unit/action/cleanup_on_failure_spec.rb
309
379
  - spec/unit/action/destroy_domain_spec.rb
310
- - spec/unit/action/destroy_domain_spec/additional_disks_domain.xml
311
- - spec/unit/action/destroy_domain_spec/box_multiple_disks.xml
312
- - spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_and_custom_disks.xml
313
- - spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_and_custom_disks_no_aliases.xml
314
- - spec/unit/action/destroy_domain_spec/box_multiple_disks_and_additional_disks.xml
315
- - spec/unit/action/destroy_domain_spec/cdrom_domain.xml
380
+ - spec/unit/action/wait_till_up_spec.rb
381
+ - spec/unit/action/create_domain_volume_spec.rb
316
382
  - spec/unit/action/halt_domain_spec.rb
317
- - spec/unit/action/handle_box_image_spec.rb
318
- - spec/unit/action/package_domain_spec.rb
319
- - spec/unit/action/prepare_nfs_settings_spec.rb
320
383
  - spec/unit/action/set_name_of_domain_spec.rb
384
+ - spec/unit/action/resolve_disk_settings_spec.rb
385
+ - spec/unit/action/remove_libvirt_image_spec.rb
321
386
  - spec/unit/action/shutdown_domain_spec.rb
322
- - spec/unit/action/start_domain_spec.rb
323
- - spec/unit/action/create_domain_spec.rb
324
- - spec/unit/action/create_domain_volume_spec.rb
325
- - spec/unit/action/wait_till_up_spec.rb
326
- - spec/unit/action/forward_ports_spec.rb
327
- - spec/unit/templates/tpm/version_1.2.xml
387
+ - spec/unit/action/create_domain_spec/custom_disk_settings.xml
388
+ - spec/unit/action/create_domain_spec/two_disk_settings.xml
389
+ - spec/unit/action/create_domain_spec/default_user_storage_pool.xml
390
+ - spec/unit/action/create_domain_spec/sysinfo_only_required.xml
391
+ - spec/unit/action/create_domain_spec/default_domain.xml
392
+ - spec/unit/action/create_domain_spec/sysinfo.xml
393
+ - spec/unit/action/create_domain_spec/additional_disks_domain.xml
394
+ - spec/unit/templates/domain_scsi_multiple_controllers_storage.xml
395
+ - spec/unit/templates/domain_scsi_bus_storage.xml
396
+ - spec/unit/templates/domain_scsi_device_storage.xml
397
+ - spec/unit/templates/domain_all_settings.xml
398
+ - spec/unit/templates/domain_spec.rb
328
399
  - spec/unit/templates/tpm/version_2.0.xml
400
+ - spec/unit/templates/tpm/version_1.2.xml
329
401
  - spec/unit/templates/domain_cpu_mode_passthrough.xml
330
- - spec/unit/templates/domain_custom_cpu_model.xml
331
402
  - spec/unit/templates/domain_defaults.xml
332
- - spec/unit/templates/domain_all_settings.xml
333
- - spec/unit/templates/domain_spec.rb
403
+ - spec/unit/templates/domain_custom_cpu_model.xml
404
+ - spec/unit/cap/synced_folder_virtiofs_spec.rb
405
+ - spec/unit/cap/synced_folder_9p_spec.rb
406
+ - spec/unit/plugin_spec.rb
407
+ - spec/unit/driver_spec.rb
334
408
  - spec/unit/util/byte_number_spec.rb
335
409
  - spec/unit/util/resolvers_spec.rb
336
- - spec/unit/provider_spec.rb
337
- - spec/unit/action_spec.rb
338
- - spec/unit/config_spec.rb
339
- - spec/unit/driver_spec.rb
410
+ - spec/support/temporary_dir.rb
411
+ - spec/support/environment_helper.rb
412
+ - spec/support/sharedcontext.rb
413
+ - spec/support/matchers/have_file_content.rb
414
+ - spec/support/libvirt_acceptance_context.rb
415
+ - spec/support/acceptance/configuration.rb
416
+ - spec/support/acceptance/isolated_environment.rb
417
+ - spec/support/acceptance/context.rb
418
+ - spec/support/libvirt_context.rb
419
+ - spec/support/binding_proc.rb
420
+ - spec/acceptance/provider_settings_spec.rb
421
+ - spec/acceptance/two_disks_spec.rb
422
+ - spec/acceptance/package_domain_spec.rb
423
+ - spec/acceptance/snapshots_spec.rb
424
+ - spec/acceptance/additional_storage_spec.rb
425
+ - spec/acceptance/simple_vm_provision_via_shell_spec.rb
426
+ - spec/acceptance/use_qemu_agent_for_connectivity_spec.rb
427
+ - spec/acceptance/support-skeletons/package_simple/Vagrantfile.testbox
428
+ - spec/acceptance/support-skeletons/package_complex/Vagrantfile.testbox
429
+ - spec/acceptance/support-skeletons/package_complex/scripts/sysprep.sh
340
430
  - spec/spec_helper.rb
@@ -1,11 +0,0 @@
1
- require 'spec_helper'
2
- require 'support/sharedcontext'
3
-
4
- describe 'VagrantPlugins::ProviderLibvirt::Provider' do
5
- require 'vagrant-libvirt/provider'
6
-
7
- include_context 'unit'
8
-
9
- describe '#ssh_info' do
10
- end
11
- end