mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Ensure the acceptance tests are actually executed and resolve any issues that have crept in since they were not running as expected. Call the ResolveDiskSettings on reload to ensure that the start domain action will have all of the necessary configuration for any additional storage disks added. Tidy up create domain output when disks are attached. Fixes: #1678
30 lines
816 B
Ruby
30 lines
816 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative '../spec_helper'
|
|
|
|
describe 'additional storage configured', acceptance: true do
|
|
include_context 'libvirt_acceptance'
|
|
|
|
before do
|
|
environment.skeleton('additional_storage')
|
|
end
|
|
|
|
after do
|
|
assert_execute('vagrant', 'destroy', '--force')
|
|
end
|
|
|
|
it 'should succeed' do
|
|
status('Test: machine is created successfully')
|
|
result = environment.execute('vagrant', 'up')
|
|
expect(result).to exit_with(0)
|
|
|
|
status('Test: additional storage configured')
|
|
expect(result.stdout).to match(/\(vda\).*work_default.img/)
|
|
expect(result.stdout).to match(/\(vdb\).*work_default-vdb\.qcow2/)
|
|
|
|
status('Test: reload handles additional storage correctly')
|
|
result = environment.execute('vagrant', 'reload')
|
|
expect(result).to exit_with(0)
|
|
end
|
|
end
|