summaryrefslogtreecommitdiff
path: root/tests/spec/validator_spec.rb
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-31 13:50:28 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-31 13:50:28 -0500
commit36199bc708785688306bf6c027ea3eb0f7a4d88b (patch)
tree6190fc4f2de0a03f2e91526a8fb5594817202491 /tests/spec/validator_spec.rb
parent0d626d668ba6c14022ca88611aff2365cbe4f30c (diff)
downloadhorizon-36199bc708785688306bf6c027ea3eb0f7a4d88b.tar.gz
horizon-36199bc708785688306bf6c027ea3eb0f7a4d88b.tar.bz2
horizon-36199bc708785688306bf6c027ea3eb0f7a4d88b.tar.xz
horizon-36199bc708785688306bf6c027ea3eb0f7a4d88b.zip
hscript: Implement stub Keymap key, add simple test
Diffstat (limited to 'tests/spec/validator_spec.rb')
-rw-r--r--tests/spec/validator_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/spec/validator_spec.rb b/tests/spec/validator_spec.rb
index 21def58..c4e5ac2 100644
--- a/tests/spec/validator_spec.rb
+++ b/tests/spec/validator_spec.rb
@@ -873,6 +873,14 @@ RSpec.describe 'HorizonScript validation', :type => :aruba do
expect(last_command_started).to have_output(/error: .*lvm_lv.*volume group/)
end
end
+ context "for 'keymap' key" do
+ it "succeeds with a simple value" do
+ use_fixture '0178-keymap-basic.installfile'
+ run_validate
+ expect(last_command_started).to have_output(PARSER_SUCCESS)
+ expect(last_command_started).to have_output(VALIDATOR_SUCCESS)
+ end
+ end
end
context "unique keys" do
# Runner.Validate.network.