Skip to content

Commit b6896f1

Browse files
ctlonggeofffranks
authored andcommitted
fix(spec): add missing ports to expected ports
When I added new ports to the reserved ports list in gorouter in 807f95e, I forgot to update the specs appropriately and they were failing. This fixes that.
1 parent a72e150 commit b6896f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/gorouter_templates_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,15 +1300,15 @@
13001300
context 'ip_local_reserved_ports' do
13011301
it 'contains reserved ports in order' do
13021302
rendered_template = template.render(properties)
1303-
ports = '81,442,2822,2825,3458,3459,3460,3461,7070,8081,8853,17003,53080'
1303+
ports = '81,442,2822,2825,3457,3458,3459,3460,3461,7070,8081,8853,14726,14727,14821,14822,14823,14824,14829,14830,15821,17003,53035,53080'
13041304
expect(rendered_template).to include("\"#{ports}\" > /proc/sys/net/ipv4/ip_local_reserved_ports")
13051305
end
13061306

13071307
context 'when prometheus port is not set' do
13081308
it 'skips that port' do
13091309
properties['router'].delete('prometheus')
13101310
rendered_template = template.render(properties)
1311-
ports = '81,442,2822,2825,3458,3459,3460,3461,8081,8853,17003,53080'
1311+
ports = '81,442,2822,2825,3457,3458,3459,3460,3461,8081,8853,14726,14727,14821,14822,14823,14824,14829,14830,15821,17003,53035,53080'
13121312
expect(rendered_template).to include("\"#{ports}\" > /proc/sys/net/ipv4/ip_local_reserved_ports")
13131313
end
13141314
end
@@ -1317,7 +1317,7 @@
13171317
it 'skips that port' do
13181318
properties['router']['debug_address'] = 'meow'
13191319
rendered_template = template.render(properties)
1320-
ports = '81,442,2822,2825,3458,3459,3460,3461,7070,8081,8853,53080'
1320+
ports = '81,442,2822,2825,3457,3458,3459,3460,3461,7070,8081,8853,14726,14727,14821,14822,14823,14824,14829,14830,15821,53035,53080'
13211321
expect(rendered_template).to include("\"#{ports}\" > /proc/sys/net/ipv4/ip_local_reserved_ports")
13221322
end
13231323
end

0 commit comments

Comments
 (0)