-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes for freeport issues #533
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,15 +112,20 @@ def test_addrs | |
assert_equal(val, a.src_addr) | ||
assert_equal(val, a.dst_addr) | ||
|
||
config_no_warn('object-group ip address my_addrgroup_ipv4') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did we get confirmation that this object being present is intended/expected behavior in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will send email shortly |
||
config_no_warn('object-group ipv6 address my_addrgroup_ipv6') | ||
%w(ipv4 ipv6).each do |afi| | ||
val = "addrgroup my_addrgroup_#{afi}" | ||
a = ace_helper(afi, src_addr: val, dst_addr: val) | ||
assert_equal(val, a.src_addr) | ||
assert_equal(val, a.dst_addr) | ||
end | ||
config_no_warn('no object-group ip address my_addrgroup_ipv4') | ||
config_no_warn('no object-group ipv6 address my_addrgroup_ipv6') | ||
end | ||
|
||
def test_ports | ||
config_no_warn('object-group ip port my_pg') | ||
%w(ipv4 ipv6).each do |afi| | ||
['eq 2', 'neq 2', 'gt 2', 'lt 2', | ||
'portgroup my_pg'].each do |val| | ||
|
@@ -129,6 +134,7 @@ def test_ports | |
assert_equal(val, a.dst_port) | ||
end | ||
end | ||
config_no_warn('no object-group ip port my_pg') | ||
end | ||
|
||
def test_dscp | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,7 +207,7 @@ def test_state_valid | |
|
||
def test_shutdown_extended | ||
v = Vlan.new(2000) | ||
assert_raises(RuntimeError, 'vlan misconfig did not raise RuntimeError') do | ||
assert_raises(CliError, 'vlan misconfig did not raise RuntimeError') do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The message should reference |
||
v.shutdown = 'shutdown' | ||
end | ||
v.destroy | ||
|
@@ -338,7 +338,7 @@ def test_another_vlan_as_fabric_control | |
assert(vlan.fabric_control) | ||
another_vlan = Vlan.new(101) | ||
|
||
assert_raises(RuntimeError, | ||
assert_raises(CliError, | ||
'VLAN misconfig did not raise CliError') do | ||
another_vlan.fabric_control = true | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -381,7 +381,7 @@ def test_association_failure | |
assert_equal(result, v1.pvlan_association) | ||
|
||
pv_type = 'isolated' | ||
assert_raises(RuntimeError, 'vlan misconf did not raise RuntimeError') do | ||
assert_raises(CliError, 'vlan misconf did not raise RuntimeError') do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This message needs to be updated. |
||
v3.pvlan_type = pv_type | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not realize this until now, but we loose granularity. We still need to bubble the actual error message
result[2]['body']
up so that puppet users see the specific error message.