From 6209b9c9f77af5f7ca0618a44bfd0b5955d7d678 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 23 Jun 2020 20:07:41 -0500 Subject: hscript: Implement runlevel support in svcenable key --- tests/spec/validator_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/spec/validator_spec.rb') diff --git a/tests/spec/validator_spec.rb b/tests/spec/validator_spec.rb index a5e11e6..8fb6c95 100644 --- a/tests/spec/validator_spec.rb +++ b/tests/spec/validator_spec.rb @@ -687,6 +687,12 @@ RSpec.describe 'HorizonScript validation', :type => :aruba do run_validate expect(last_command_started).to have_output(/error: .*svcenable.*invalid/) end + it "succeeds with a runlevel specified" do + use_fixture '0239-svcenable-runlevel.installfile' + run_validate + expect(last_command_started).to have_output(PARSER_SUCCESS) + expect(last_command_started).to have_output(VALIDATOR_SUCCESS) + end end context "for 'diskid' key" do it "succeeds with basic disk identification" do -- cgit v1.2.3-60-g2f50