diff options
-rw-r--r-- | tests/fixtures/0178-keymap-basic.installfile | 6 | ||||
-rw-r--r-- | tests/spec/validator_spec.rb | 8 |
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. |