From 243ae0f368a5da961ac06793e6795e3d93d63762 Mon Sep 17 00:00:00 2001 From: Ladar Levison Date: Tue, 27 Aug 2019 21:07:58 +0530 Subject: [PATCH] Added service command to alt guest test. --- test/unit/plugins/guests/alt/cap/change_host_name_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/plugins/guests/alt/cap/change_host_name_test.rb b/test/unit/plugins/guests/alt/cap/change_host_name_test.rb index 4f82fc6e6..6b0c671ed 100644 --- a/test/unit/plugins/guests/alt/cap/change_host_name_test.rb +++ b/test/unit/plugins/guests/alt/cap/change_host_name_test.rb @@ -24,10 +24,12 @@ describe "VagrantPlugins::GuestALT::Cap::ChangeHostName" do let(:systemd) { true } let(:hostnamectl) { true } let(:networkd) { true } + let(:service) { true } let(:network_manager) { false } before do allow(cap).to receive(:systemd?).and_return(systemd) + allow(cap).to receive(:service?).and_return(service) allow(cap).to receive(:hostnamectl?).and_return(hostnamectl) allow(cap).to receive(:systemd_networkd?).and_return(networkd) allow(cap).to receive(:systemd_controlled?).with(anything, /NetworkManager/).and_return(network_manager)