Fix the test to check for systemctl restart NetworkManager.service too.

This commit is contained in:
Joe Doss 2018-09-18 13:16:12 -05:00 committed by Chris Roberts
parent 19aa9578c7
commit 86ab4533b1
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ describe "VagrantPlugins::GuestRedHat::Cap::ChangeHostName" do
expect(comm.received_commands[1]).to match(/\/etc\/sysconfig\/network-scripts\/ifcfg/)
expect(comm.received_commands[1]).to match(/hostnamectl set-hostname --static '#{name}'/)
expect(comm.received_commands[1]).to match(/hostnamectl set-hostname --transient '#{name}'/)
expect(comm.received_commands[1]).to match(/service network restart/)
expect(comm.received_commands[1]).to match(/service network restart|systemctl restart NetworkManager.service/)
end
it "does not change the hostname if already set" do