summaryrefslogtreecommitdiff
path: root/tests
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
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')
-rw-r--r--tests/fixtures/0178-keymap-basic.installfile6
-rw-r--r--tests/spec/validator_spec.rb8
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/fixtures/0178-keymap-basic.installfile b/tests/fixtures/0178-keymap-basic.installfile
new file mode 100644
index 0000000..a51a578
--- /dev/null
+++ b/tests/fixtures/0178-keymap-basic.installfile
@@ -0,0 +1,6 @@
+network false
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
+keymap us
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.