Пример #1
0
        "generic_worker_threshold": "1.5 GB",
        "cu_data_collector_worker_threshold": "1.5 GB",
        "event_monitor_worker_threshold": "10 GB",
        "connection_broker_worker_threshold": "10 GB",
        "reporting_worker_threshold": "1.5 GB",
        "web_service_worker_threshold": "1.5 GB",
        "priority_worker_threshold": "1.5 GB",
        "cu_data_processor_worker_threshold": "1.5 GB",
        "refresh_worker_threshold": "10 GB",
        "vm_analysis_collectors_worker_threshold": "1.5 GB"
    })
    view.workers.save.click()


@pytest.mark.usefixtures('generate_version_files')
@pytest.mark.parametrize('scenario', get_memory_leak_scenarios())
def test_workload_memory_leak(request, scenario, appliance, provider):
    """Runs through provider based scenarios setting one worker instance and maximum threshold and
    running for a set period of time. Memory Monitor creates graphs and summary info.

    Polarion:
        assignee: None
        initialEstimate: None
    """
    from_ts = int(time.time() * 1000)
    logger.debug('Scenario: {}'.format(scenario['name']))

    appliance.clean_appliance()

    quantifiers = {}
    scenario_data = {'appliance_ip': appliance.hostname,
        "generic_worker_threshold": "1.5 GB",
        "cu_data_collector_worker_threshold": "1.5 GB",
        "event_monitor_worker_threshold": "10 GB",
        "connection_broker_worker_threshold": "10 GB",
        "reporting_worker_threshold": "1.5 GB",
        "web_service_worker_threshold": "1.5 GB",
        "priority_worker_threshold": "1.5 GB",
        "cu_data_processor_worker_threshold": "1.5 GB",
        "refresh_worker_threshold": "10 GB",
        "vm_analysis_collectors_worker_threshold": "1.5 GB"
    })
    view.workers.save.click()


@pytest.mark.usefixtures('generate_version_files')
@pytest.mark.parametrize('scenario', get_memory_leak_scenarios())
def test_workload_memory_leak(request, scenario, appliance, provider):
    """Runs through provider based scenarios setting one worker instance and maximum threshold and
    running for a set period of time. Memory Monitor creates graphs and summary info.

    Polarion:
        assignee: rhcf3_machine
        initialEstimate: 1/4h
    """
    from_ts = int(time.time() * 1000)
    logger.debug('Scenario: {}'.format(scenario['name']))

    appliance.clean_appliance()

    quantifiers = {}
    scenario_data = {'appliance_ip': appliance.hostname,