Exemplo n.º 1
0
def test_refresh_snapins():
    expected_refresh_snapins = [
        'admin',
        'admin_mini',
        'performance',
        'hostmatrix',
        'mkeventd_performance',
        'nagvis_maps',
        'problem_hosts',
        'sitestatus',
        'tactical_overview',
        'tag_tree',
        'time',
    ]

    if not cmk_version.is_raw_edition():
        expected_refresh_snapins += [
            'cmc_stats',
        ]

    refresh_snapins = [
        s.type_name() for s in snapin_registry.values()
        if s.refresh_regularly()
    ]
    assert sorted(refresh_snapins) == sorted(expected_refresh_snapins)
Exemplo n.º 2
0
def test_refresh_snapins():
    expected_refresh_snapins = [
        "admin",
        "admin_mini",
        "performance",
        "hostmatrix",
        "mkeventd_performance",
        "problem_hosts",
        "sitestatus",
        "tactical_overview",
        "tag_tree",
        "time",
    ]

    if not cmk_version.is_raw_edition():
        expected_refresh_snapins += [
            "cmc_stats",
        ]

    refresh_snapins = [s.type_name() for s in snapin_registry.values() if s.refresh_regularly()]
    assert sorted(refresh_snapins) == sorted(expected_refresh_snapins)