summaryrefslogtreecommitdiff
path: root/tests/spec
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-06 00:57:00 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-06 00:57:00 -0600
commitada546b6002360169570a72c83fadc574b936c18 (patch)
tree85305bc68600abdfbbc743eea8622537b5379bad /tests/spec
parented351160f94bfff12fadbceb44a2f85604dfb957 (diff)
downloadhorizon-ada546b6002360169570a72c83fadc574b936c18.tar.gz
horizon-ada546b6002360169570a72c83fadc574b936c18.tar.bz2
horizon-ada546b6002360169570a72c83fadc574b936c18.tar.xz
horizon-ada546b6002360169570a72c83fadc574b936c18.zip
hscript: Implement Runner.Execute.netaddress.OpenRC
Diffstat (limited to 'tests/spec')
-rw-r--r--tests/spec/simulator_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb
index d46c87c..be684a1 100644
--- a/tests/spec/simulator_spec.rb
+++ b/tests/spec/simulator_spec.rb
@@ -174,6 +174,16 @@ printf '%s\\t%s\\t%s\\t%s\\t0\\t0\\n' /dev/gwyn/source /usr/src auto noatime >>
# The end quote is missing deliberately.
expect(last_command_started.stdout).to include('routes_eth0="default via 172.16.1.1')
end
+ it "doesn't perform OpenRC configuration when netifrc isn't installed" do
+ use_fixture '0042-netaddress-valid-static6.installfile'
+ run_simulate
+ expect(last_command_started.stdout).to_not include ("/target/etc/init.d/net")
+ end
+ it "performs OpenRC configuration when netifrc is installed" do
+ use_fixture '0200-netaddress-openrc.installfile'
+ run_simulate
+ expect(last_command_started.stdout).to include("ln -s /etc/init.d/net.lo /target/etc/init.d/net.eth0")
+ end
end
context "simulating 'nameserver' execution" do
it "configures nameservers correctly" do