summaryrefslogtreecommitdiff
path: root/tests/spec/simulator_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/simulator_spec.rb')
-rw-r--r--tests/spec/simulator_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb
index 161fd12..bded726 100644
--- a/tests/spec/simulator_spec.rb
+++ b/tests/spec/simulator_spec.rb
@@ -32,7 +32,7 @@ RSpec.describe 'HorizonScript Simulator', :type => :aruba do
end
end
it "handles validation failures correctly" do
- use_fixture '0024-numeric-hostname.installfile'
+ use_fixture '0240-bootloader-invalid.installfile'
run_simulate
expect(last_command_started.stderr).to include("Script failed. Stop.")
end
@@ -280,6 +280,11 @@ printf '%s\\t%s\\t%s\\t%s\\t0\\t0\\n' /dev/gwyn/source /usr/src auto noatime >>
run_simulate
expect(last_command_started.stdout).to include("ln -s /etc/init.d/sshd /target/etc/runlevels/default/sshd")
end
+ it "handles runlevels correctly" do
+ use_fixture '0239-svcenable-runlevel.installfile'
+ run_simulate
+ expect(last_command_started.stdout).to include("ln -s /etc/init.d/udev /target/etc/runlevels/boot/udev")
+ end
end
context "simulating 'pkginstall' execution" do
# Runner.Execute.pkginstall.APKDB