コード例 #1
0
 def _create_dashboard(widgets):
     return Dashboard(
         fauxfactory.gen_alphanumeric(),
         "EvmGroup-super_administrator",
         fauxfactory.gen_alphanumeric(),
         locked=False,
         widgets=widgets
     )
コード例 #2
0
ファイル: test_crud.py プロジェクト: jdemon519/cfme_tests
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()
コード例 #3
0
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()
コード例 #4
0
ファイル: test_crud.py プロジェクト: akrzos/cfme_tests
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()
コード例 #5
0
 def _create_dashboard(widgets):
     return Dashboard(generate_random_string(),
                      "EvmGroup-super_administrator",
                      generate_random_string(),
                      locked=False,
                      widgets=widgets)