diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-12 05:20:20 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-12 05:20:20 -0500 |
commit | a833356c754c2a6f5adcf0da1d024259cb8be96e (patch) | |
tree | b61d180e59884ff42fd7bb074f70968af103dd7c | |
parent | 62a0a9691097f9adadff76612402184b55096ef3 (diff) | |
download | horizon-a833356c754c2a6f5adcf0da1d024259cb8be96e.tar.gz horizon-a833356c754c2a6f5adcf0da1d024259cb8be96e.tar.bz2 horizon-a833356c754c2a6f5adcf0da1d024259cb8be96e.tar.xz horizon-a833356c754c2a6f5adcf0da1d024259cb8be96e.zip |
tests: More specifity on netaddress test messages
-rw-r--r-- | tests/spec/validator.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/spec/validator.rb b/tests/spec/validator.rb index fac4b9f..4ba83cf 100644 --- a/tests/spec/validator.rb +++ b/tests/spec/validator.rb @@ -222,7 +222,7 @@ RSpec.describe 'HorizonScript Validation Utility', :type => :aruba do it "requires 'netaddress' to have at least two elements" do use_fixture '0036-netaddress-too-few.installfile' run_validate - expect(last_command_started).to have_output(/error: .*netaddress.*/) + expect(last_command_started).to have_output(/error: .*netaddress.*require/) end # Runner.Validate.netaddress.Validity.Type. it "fails on invalid address type" do @@ -234,19 +234,19 @@ RSpec.describe 'HorizonScript Validation Utility', :type => :aruba do it "fails on extraneous elements in DHCP mode" do use_fixture '0038-netaddress-invalid-dhcp.installfile' run_validate - expect(last_command_started).to have_output(/error: .*netaddress.*/) + expect(last_command_started).to have_output(/error: .*netaddress.*dhcp/) end # Runner.Validate.netaddress.Validity.Static. it "fails on extraneous elements in static mode" do use_fixture '0039-netaddress-static-too-many.installfile' run_validate - expect(last_command_started).to have_output(/error: .*netaddress.*/) + expect(last_command_started).to have_output(/error: .*netaddress.*too many/) end # Runner.Validate.netaddress.Validity.Static. it "fails on too few elements in static mode" do use_fixture '0040-netaddress-static-too-few.installfile' run_validate - expect(last_command_started).to have_output(/error: .*netaddress.*/) + expect(last_command_started).to have_output(/error: .*netaddress.*require/) end # Runner.Validate.netaddress.Validity.Address. it "succeeds with valid IPv4 address specification" do |