diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-06 16:53:03 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-06 16:53:03 -0600 |
commit | 980aa145efd22d51781c59cc3c4245659db0ea47 (patch) | |
tree | 79670e2a04b11e8f9fefa3072e5790e5ce8d40e7 /tests/spec/validator_spec.rb | |
parent | e4d2dfda526402b1cd4623ea473ab655ea421de5 (diff) | |
download | horizon-980aa145efd22d51781c59cc3c4245659db0ea47.tar.gz horizon-980aa145efd22d51781c59cc3c4245659db0ea47.tar.bz2 horizon-980aa145efd22d51781c59cc3c4245659db0ea47.tar.xz horizon-980aa145efd22d51781c59cc3c4245659db0ea47.zip |
tests: Add duplicate value tests for keymap, timezone, fs
Diffstat (limited to 'tests/spec/validator_spec.rb')
-rw-r--r-- | tests/spec/validator_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/spec/validator_spec.rb b/tests/spec/validator_spec.rb index a0b67df..ba5559f 100644 --- a/tests/spec/validator_spec.rb +++ b/tests/spec/validator_spec.rb @@ -976,6 +976,11 @@ RSpec.describe 'HorizonScript validation', :type => :aruba do run_validate expect(last_command_started).to have_output(/error: .*fs.*type/) end + it "fails with a duplicate block device" do + use_fixture '0206-fs-duplicate.installfile' + run_validate + expect(last_command_started).to have_output(/error: .*fs.*already/) + end end context "for 'keymap' key" do it "succeeds with a simple value" do @@ -1022,6 +1027,16 @@ RSpec.describe 'HorizonScript validation', :type => :aruba do run_validate expect(last_command_started).to have_output(/error: .*duplicate.*language/) end + it "fails with a duplicate 'keymap' key" do + use_fixture '0204-keymap-duplicate.installfile' + run_validate + expect(last_command_started).to have_output(/error: .*duplicate.*keymap/) + end + it "fails with a duplicate 'timezone' key" do + use_fixture '0205-timezone-duplicate.installfile' + run_validate + expect(last_command_started).to have_output(/error: .*duplicate.*timezone/) + end end context "user account keys:" do context "'username'" do |