コード例 #1
0
def clear_config_caches(monkeypatch):
    from cmk.base.caching import config_cache as _config_cache, runtime_cache as _runtime_cache
    _config_cache.reset()
    _runtime_cache.reset()

    ts = Scenario()
    ts.add_host("non-existent-testhost")
    ts.apply(monkeypatch)
コード例 #2
0
ファイル: test_ip_lookup.py プロジェクト: tboerger/checkmk
def clear_config_caches_ip_lookup(monkeypatch):
    from cmk.base.caching import config_cache as _config_cache, runtime_cache as _runtime_cache  # pylint: disable=import-outside-toplevel
    _config_cache.reset()
    _runtime_cache.reset()
コード例 #3
0
ファイル: conftest.py プロジェクト: bsmr/tribe29-checkmk
def clear_config_caches(monkeypatch):
    from cmk.base.caching import config_cache as _config_cache, runtime_cache as _runtime_cache
    _config_cache.reset()
    _runtime_cache.reset()