def _create_dashboard(widgets):
     return Dashboard(
         fauxfactory.gen_alphanumeric(),
         "EvmGroup-super_administrator",
         fauxfactory.gen_alphanumeric(),
         locked=False,
         widgets=widgets
     )
Exemple #2
0
def test_dashboard_crud():
    d = Dashboard(
        fauxfactory.gen_alphanumeric(),
        "EvmGroup-administrator",
        title=fauxfactory.gen_alphanumeric(),
        locked=False,
        widgets=["Top CPU Consumers (weekly)", "Vendor and Guest OS Chart"])
    d.create()
    with update(d):
        d.locked = True
    with update(d):
        d.locked = False
    with update(d):
        d.widgets = "Top Storage Consumers"
    d.delete()
def test_dashboard_crud():
    d = Dashboard(
        generate_random_string(),
        "EvmGroup-administrator",
        generate_random_string(),
        locked=False,
        widgets=["Top CPU Consumers (weekly)", "Vendor and Guest OS Chart"]
    )
    d.create()
    with update(d):
        d.locked = True
    with update(d):
        d.locked = False
    with update(d):
        d.widgets = "Top Storage Consumers"
    d.delete()
Exemple #4
0
def test_dashboard_crud():
    d = Dashboard(
        fauxfactory.gen_alphanumeric(),
        "EvmGroup-administrator",
        fauxfactory.gen_alphanumeric(),
        locked=False,
        widgets=["Top CPU Consumers (weekly)", "Vendor and Guest OS Chart"]
    )
    d.create()
    with update(d):
        d.locked = True
    with update(d):
        d.locked = False
    with update(d):
        d.widgets = "Top Storage Consumers"
    d.delete()
Exemple #5
0
 def _create_dashboard(widgets):
     return Dashboard(generate_random_string(),
                      "EvmGroup-super_administrator",
                      generate_random_string(),
                      locked=False,
                      widgets=widgets)