Commit a4b108a3 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

test: filter-limit: interval

parent 093ab9d4
......@@ -30,23 +30,25 @@ function add(limit_type, filter)
local count = high_rate and 150 or 1
add_limit(count)
for _, log in ipairs{true, false, 'none'} do
local limit = {count=count}
if log ~= true then limit.log = log end
for _, interval in ipairs{false, 5} do
for _, log in ipairs{true, false, 'none'} do
local limit = {count=count, interval=interval or nil}
if log ~= true then limit.log = log end
add_limit(limit)
add_limit(limit)
if not high_rate then
limit.name = 'foo'
if not high_rate then
limit.name = 'foo'
for _, addr in ipairs{false, 'dest'} do
limit.addr = addr or nil
for _, addr in ipairs{false, 'dest'} do
limit.addr = addr or nil
limit.update = nil
add_limit(limit)
limit.update = nil
add_limit(limit)
limit.update = false
add_limit(limit)
limit.update = false
add_limit(limit)
end
end
end
end
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment