diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-24 01:29:29 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-24 01:29:29 -0500 |
commit | 725e3f9f0c401aa34bb0d3d01bb8119797d038f7 (patch) | |
tree | b0c50230f073208d9c31e9e181c50deee74a4d72 /tests/spec/validator_spec.rb | |
parent | 240ff8c1d9e5b03d27804490767c15b7877305a2 (diff) | |
download | horizon-725e3f9f0c401aa34bb0d3d01bb8119797d038f7.tar.gz horizon-725e3f9f0c401aa34bb0d3d01bb8119797d038f7.tar.bz2 horizon-725e3f9f0c401aa34bb0d3d01bb8119797d038f7.tar.xz horizon-725e3f9f0c401aa34bb0d3d01bb8119797d038f7.zip |
hscript: Ensure netaddress iface name is < IFNAMSIZ
Diffstat (limited to 'tests/spec/validator_spec.rb')
-rw-r--r-- | tests/spec/validator_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/spec/validator_spec.rb b/tests/spec/validator_spec.rb index 624eaa2..b07e383 100644 --- a/tests/spec/validator_spec.rb +++ b/tests/spec/validator_spec.rb @@ -293,6 +293,11 @@ RSpec.describe 'HorizonScript validation', :type => :aruba do run_validate expect(last_command_started).to have_output(/error: .*netaddress.*require/) end + it "fails with invalid interface name" do + use_fixture '0130-netaddress-invalid-iface.installfile' + run_validate + expect(last_command_started).to have_output(/error: .*netaddress.*interface/) + end # Runner.Validate.netaddress.Validity.Type. it "fails on invalid address type" do use_fixture '0037-netaddress-invalid-type.installfile' |