Ejemplo n.º 1
0
 def from_config(cls, **kwargs):
     host = cfme_performance.get("sprout", {}).get("hostname", "localhost")
     port = cfme_performance.get("sprout", {}).get("port", 8000)
     user = cfme_performance.get("sprout", {}).get("username", None)
     password = cfme_performance.get("sprout", {}).get("password", None)
     if user and password:
         auth = user, password
     else:
         auth = None
     return cls(host=host, port=port, auth=auth, **kwargs)
Ejemplo n.º 2
0
 def from_config(cls, **kwargs):
     host = cfme_performance.get("sprout", {}).get("hostname", "localhost")
     port = cfme_performance.get("sprout", {}).get("port", 8000)
     user = cfme_performance.get("sprout", {}).get("username", None)
     password = cfme_performance.get("sprout", {}).get("password", None)
     if user and password:
         auth = user, password
     else:
         auth = None
     return cls(host=host, port=port, auth=auth, **kwargs)
Ejemplo n.º 3
0
def get_refresh_providers_scenarios():
    if 'test_refresh_providers' in cfme_performance.get('tests', {}).get('workloads', []):
        if (cfme_performance['tests']['workloads']['test_refresh_providers']['scenarios'] and
            len(
                cfme_performance['tests']['workloads']['test_refresh_providers']['scenarios']) > 0):
            return cfme_performance['tests']['workloads']['test_refresh_providers']['scenarios']
    return []
Ejemplo n.º 4
0
def get_idle_scenarios():
    if 'test_idle' in cfme_performance.get('tests', {}).get('workloads', []):
        if (cfme_performance['tests']['workloads']['test_idle']['scenarios']
                and len(cfme_performance['tests']['workloads']['test_idle']
                        ['scenarios']) > 0):
            return cfme_performance['tests']['workloads']['test_idle'][
                'scenarios']
    return []
Ejemplo n.º 5
0
def get_smartstate_analysis_scenarios():
    if 'test_smartstate' in cfme_performance.get('tests',
                                                 {}).get('workloads', []):
        if (cfme_performance['tests']['workloads']['test_smartstate']
            ['scenarios'] and len(cfme_performance['tests']['workloads']
                                  ['test_smartstate']['scenarios']) > 0):
            return cfme_performance['tests']['workloads']['test_smartstate'][
                'scenarios']
    return []
Ejemplo n.º 6
0
def get_capacity_and_utilization_scenarios():
    if 'test_cap_and_util' in cfme_performance.get('tests',
                                                   {}).get('workloads', []):
        if (cfme_performance['tests']['workloads']['test_cap_and_util']
            ['scenarios'] and len(cfme_performance['tests']['workloads']
                                  ['test_cap_and_util']['scenarios']) > 0):
            return cfme_performance['tests']['workloads']['test_cap_and_util'][
                'scenarios']
    return []
Ejemplo n.º 7
0
def get_refresh_providers_scenarios():
    if 'test_refresh_providers' in cfme_performance.get('tests', {}).get(
            'workloads', []):
        if (cfme_performance['tests']['workloads']['test_refresh_providers']
            ['scenarios']
                and len(cfme_performance['tests']['workloads']
                        ['test_refresh_providers']['scenarios']) > 0):
            return cfme_performance['tests']['workloads'][
                'test_refresh_providers']['scenarios']
    return []
Ejemplo n.º 8
0
def get_capacity_and_utilization_replication_scenarios():
    if 'test_cap_and_util_rep' in cfme_performance.get('tests', {}).get('workloads', []):
        if (cfme_performance['tests']['workloads']['test_cap_and_util_rep']['scenarios'] and
                len(
                cfme_performance['tests']['workloads']['test_cap_and_util_rep']['scenarios']) > 0):
            # Add Replication Master into Scenario(s):
            for scn in cfme_performance['tests']['workloads']['test_cap_and_util_rep']['scenarios']:
                scn['replication_master'] = cfme_performance['replication_master']
            return cfme_performance['tests']['workloads']['test_cap_and_util_rep']['scenarios']
    return []
Ejemplo n.º 9
0
def get_capacity_and_utilization_replication_scenarios():
    if 'test_cap_and_util_rep' in cfme_performance.get('tests', {}).get(
            'workloads', []):
        if (cfme_performance['tests']['workloads']['test_cap_and_util_rep']
            ['scenarios'] and len(cfme_performance['tests']['workloads']
                                  ['test_cap_and_util_rep']['scenarios']) > 0):
            # Add Replication Master into Scenario(s):
            for scn in cfme_performance['tests']['workloads'][
                    'test_cap_and_util_rep']['scenarios']:
                scn['replication_master'] = cfme_performance[
                    'replication_master']
            return cfme_performance['tests']['workloads'][
                'test_cap_and_util_rep']['scenarios']
    return []
Ejemplo n.º 10
0
def get_ui_single_page_scenarios():
    if 'test_ui_single_page' in cfme_performance.get('tests', {}).get('ui_workloads', []):
        if(cfme_performance['tests']['ui_workloads']['test_ui_single_page']['scenarios'] and
           len(cfme_performance['tests']['ui_workloads']['test_ui_single_page']['scenarios']) > 0):
            return cfme_performance['tests']['ui_workloads']['test_ui_single_page']['scenarios']
    return []
Ejemplo n.º 11
0
def get_smartstate_analysis_scenarios():
    if 'test_smartstate' in cfme_performance.get('tests', {}).get('workloads', []):
        if(cfme_performance['tests']['workloads']['test_smartstate']['scenarios'] and
                len(cfme_performance['tests']['workloads']['test_smartstate']['scenarios']) > 0):
            return cfme_performance['tests']['workloads']['test_smartstate']['scenarios']
    return []
Ejemplo n.º 12
0
def get_provisioning_scenarios():
    if 'test_provisioning' in cfme_performance.get('tests', {}).get('workloads', []):
        if(cfme_performance['tests']['workloads']['test_provisioning']['scenarios'] and
                len(cfme_performance['tests']['workloads']['test_provisioning']['scenarios']) > 0):
            return cfme_performance['tests']['workloads']['test_provisioning']['scenarios']
    return []
Ejemplo n.º 13
0
def get_capacity_and_utilization_scenarios():
    if 'test_cap_and_util' in cfme_performance.get('tests', {}).get('workloads', []):
        if (cfme_performance['tests']['workloads']['test_cap_and_util']['scenarios'] and
                len(cfme_performance['tests']['workloads']['test_cap_and_util']['scenarios']) > 0):
            return cfme_performance['tests']['workloads']['test_cap_and_util']['scenarios']
    return []