Commit 3c8708bb authored by Matous Holinka's avatar Matous Holinka Committed by Ondřej Zajíček
Browse files

mh-ospf-vrf: new test-suite added

parent 2ddb69da
import os
import sys
import pytest
import tests.kernel as tk
_LIMIT = 60
@pytest.mark.skipif(tk.cf.save == False, reason="mode: save")
def test_wait():
"""Wait until the time (limit) runs out"""
tk.wait(_LIMIT)
@pytest.mark.skipif(tk.cf.save == True, reason="mode: check")
def test_checking_wait():
"""
Temporary solution. Test are failing without this function.
The state of specific protocols return "Alone". They need a while for connection
"""
tk.wait(10)
@pytest.mark.parametrize(
"expected_device", ["m1", "m2", "m3", "m4", "m5", "m6", "m7", "m8", "m9", "m10"],
)
def test_krt_routes(expected_device):
"""Testing of kernel route tables"""
tk.test_krt_routes("krt", expected_device, "ospf")
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