Commit e95bf9f3 authored by Matous Holinka's avatar Matous Holinka Committed by Ondřej Zajíček

Netlab: Ignore transient log warning in BGP configs

parent f39cad91
......@@ -24,6 +24,8 @@ EXPECTED_DEVICES = (
"m44",
)
LOG_OPT = ["<WARN> Next hop address .* resolvable through recursive route"]
@pytest.mark.skipif(cf.save == False, reason="mode: save")
def test_wait():
......@@ -58,4 +60,4 @@ def test_bird_routes_ipv6(exp_devs: str):
@pytest.mark.parametrize("exp_devs", EXPECTED_DEVICES)
def test_logging(exp_devs: str):
"""Check the log files. There should only DBG, INFO and TRACE messages"""
tk.test_logs(exp_devs, [], [])
tk.test_logs(exp_devs, LOG_OPT, [])
......@@ -24,6 +24,8 @@ EXPECTED_DEVICES = (
"m44",
)
LOG_OPT = ["<WARN> Next hop address .* resolvable through recursive route"]
@pytest.mark.skipif(cf.save == False, reason="mode: save")
def test_wait():
......@@ -58,4 +60,4 @@ def test_bird_routes_ipv6(exp_devs: str):
@pytest.mark.parametrize("exp_devs", EXPECTED_DEVICES)
def test_logging(exp_devs: str):
"""Check the log files. There should only DBG, INFO and TRACE messages"""
tk.test_logs(exp_devs, [], [])
tk.test_logs(exp_devs, LOG_OPT, [])
......@@ -24,6 +24,8 @@ EXPECTED_DEVICES = (
"m44",
)
LOG_OPT = ["<WARN> Next hop address .* resolvable through recursive route"]
@pytest.mark.skipif(cf.save == False, reason="mode: save")
def test_wait():
......@@ -58,4 +60,4 @@ def test_bird_routes_ipv6(exp_devs: str):
@pytest.mark.parametrize("exp_devs", EXPECTED_DEVICES)
def test_logging(exp_devs: str):
"""Check the log files. There should only DBG, INFO and TRACE messages"""
tk.test_logs(exp_devs, [], [])
tk.test_logs(exp_devs, LOG_OPT, [])
......@@ -24,6 +24,8 @@ EXPECTED_DEVICES = (
"m44",
)
LOG_OPT = ["<WARN> Next hop address .* resolvable through recursive route"]
@pytest.mark.skipif(cf.save == False, reason="mode: save")
def test_wait():
......@@ -58,4 +60,4 @@ def test_bird_routes_ipv6(exp_devs: str):
@pytest.mark.parametrize("exp_devs", EXPECTED_DEVICES)
def test_logging(exp_devs: str):
"""Check the log files. There should only DBG, INFO and TRACE messages"""
tk.test_logs(exp_devs, [], [])
tk.test_logs(exp_devs, LOG_OPT, [])
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