示例#1
0
def test_provider_crud(provider_crud):
    """ Tests that a provider can be added """
    provider_crud.create()
    provider_crud.validate()

    old_name = provider_crud.name
    with update(provider_crud):
        provider_crud.name = str(uuid.uuid4())  # random uuid

    with update(provider_crud):
        provider_crud.name = old_name  # old name

    provider_crud.delete(cancel=False)
    provider.wait_for_provider_delete(provider_crud)
示例#2
0
def test_provider_crud(provider_crud):
    """ Tests that a provider can be added """
    provider_crud.create()
    provider_crud.validate()

    old_name = provider_crud.name
    with update(provider_crud):
        provider_crud.name = str(uuid.uuid4())  # random uuid

    with update(provider_crud):
        provider_crud.name = old_name  # old name

    provider_crud.delete(cancel=False)
    provider.wait_for_provider_delete(provider_crud)
示例#3
0
def test_provider_crud(provider_crud):
    """ Tests provider add with good credentials

    Metadata:
        test_flag: crud
    """
    provider_crud.create()
    provider_crud.validate(db=False)

    old_name = provider_crud.name
    with update(provider_crud):
        provider_crud.name = str(uuid.uuid4())  # random uuid

    with update(provider_crud):
        provider_crud.name = old_name  # old name

    provider_crud.delete(cancel=False)
    provider.wait_for_provider_delete(provider_crud)
示例#4
0
def test_provider_delete(provider_crud):
    provider_crud.delete(cancel=False)
    flash.assert_message_match('Delete initiated for 1 Cloud Provider from the CFME Database')
    provider.wait_for_provider_delete(provider_crud)