Exemple #1
0
def test_basic_faulty(check: str):
    configuration = CONFIG_DIR / (check + "_faulty.conf")
    method = get_method(check, cisco_nxos)
    if not method:
        return
    bad_result = method(configuration)
    assert bad_result is not None
Exemple #2
0
def test_basic_good(check: str):
    configuration = CONFIG_DIR / (check + "_good.conf")
    method = get_method(check, cisco_nxos)
    if not method:
        return
    good_result = method(configuration)
    assert good_result is None
Exemple #3
0
def test_basic_good(check: str):
    configuration = CONFIG_DIR / (check + "_good.conf")
    assert configuration.is_file(), f"You need to add a file called {configuration}."
    method = get_method(check, cisco_ios)
    if not method:
        return
    good_result = method(configuration)
    assert good_result is None