Ensure updating loader tag supported (#1494)

The loader tag is required when nvram is being enabled. Ensure it is
marked as a requirement of validation and also support it's
configuration during the start domain action.
This commit is contained in:
Darragh Bailey
2022-05-17 15:03:55 +01:00
committed by GitHub
parent 9cda25a384
commit f498f102e1
8 changed files with 53 additions and 6 deletions

View File

@@ -66,6 +66,7 @@ describe VagrantPlugins::ProviderLibvirt::Action::StartDomain do
context 'when being added to existing' do
let(:vagrantfile_providerconfig) do
<<-EOF
libvirt.loader = "/path/to/loader/file"
libvirt.nvram = "/path/to/nvram/file"
EOF
end
@@ -85,6 +86,7 @@ describe VagrantPlugins::ProviderLibvirt::Action::StartDomain do
context 'when it was already in use' do
let(:vagrantfile_providerconfig) do
<<-EOF
libvirt.loader = "/path/to/loader/file"
libvirt.nvram = "/path/to/nvram/file"
# change another setting to trigger the undefine/create
libvirt.cpus = 4