Exemple #1
0
def clear_config_caches_ip_lookup(monkeypatch: MonkeyPatch) -> None:
    from cmk.utils.caching import (
        config_cache as _config_cache,  # pylint: disable=import-outside-toplevel
    )
    from cmk.utils.caching import runtime_cache as _runtime_cache

    _config_cache.clear()
    _runtime_cache.clear()
Exemple #2
0
def clear_config_caches(monkeypatch):
    from cmk.utils.caching import config_cache as _config_cache
    from cmk.utils.caching import runtime_cache as _runtime_cache
    _config_cache.clear()
    _runtime_cache.clear()

    ts = Scenario()
    ts.add_host("non-existent-testhost")
    ts.apply(monkeypatch)
Exemple #3
0
def clear_config_caches(monkeypatch):
    from cmk.utils.caching import config_cache as _config_cache
    from cmk.utils.caching import runtime_cache as _runtime_cache
    _config_cache.clear()
    _runtime_cache.clear()