def _create_dashboard(widgets): return Dashboard( fauxfactory.gen_alphanumeric(), "EvmGroup-super_administrator", fauxfactory.gen_alphanumeric(), locked=False, widgets=widgets )
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()
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()
def _create_dashboard(widgets): return Dashboard(generate_random_string(), "EvmGroup-super_administrator", generate_random_string(), locked=False, widgets=widgets)