diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-24 20:35:14 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-24 20:35:14 -0500 |
commit | 9c9e400b68f9cfb2270434fb8a16cc0df906ab8b (patch) | |
tree | 051470d7c3d29401462e3563bca34b11e58af5c5 /tests/spec/simulator_spec.rb | |
parent | b9980223dd469f24359d969ab24c3694507897e5 (diff) | |
download | horizon-9c9e400b68f9cfb2270434fb8a16cc0df906ab8b.tar.gz horizon-9c9e400b68f9cfb2270434fb8a16cc0df906ab8b.tar.bz2 horizon-9c9e400b68f9cfb2270434fb8a16cc0df906ab8b.tar.xz horizon-9c9e400b68f9cfb2270434fb8a16cc0df906ab8b.zip |
hscript: Implement 'svcenable' key and tests
Diffstat (limited to 'tests/spec/simulator_spec.rb')
-rw-r--r-- | tests/spec/simulator_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb index ab77782..2e63009 100644 --- a/tests/spec/simulator_spec.rb +++ b/tests/spec/simulator_spec.rb @@ -274,6 +274,13 @@ printf '%s\\t%s\\t%s\\t%s\\t0\\t0\\n' /dev/gwyn/source /usr/src auto noatime >> expect(last_command_started.stdout).to include("cp /etc/apk/keys/packages@adelielinux.org.pub /target/etc/apk/keys/packages@adelielinux.org.pub") end end + context "simulating 'svcenable' execution" do + it "enables the service correctly" do + use_fixture '0229-svcenable-basic.installfile' + run_simulate + expect(last_command_started.stdout).to include("ln -s /etc/init.d/sshd /target/etc/runlevels/default/sshd") + end + end context "simulating 'pkginstall' execution" do # Runner.Execute.pkginstall.APKDB it "initialises the APK database" do |