From 36199bc708785688306bf6c027ea3eb0f7a4d88b Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 31 Oct 2019 13:50:28 -0500 Subject: hscript: Implement stub Keymap key, add simple test --- tests/fixtures/0178-keymap-basic.installfile | 6 ++++++ tests/spec/validator_spec.rb | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/fixtures/0178-keymap-basic.installfile (limited to 'tests') 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. -- cgit v1.2.3-60-g2f50