Esempio n. 1
0
def assert_subscription_is_deleted(context):

    assert_true(context.req.ok, HTTP_CODE_NOT_OK.format(context.req.status_code, context.req.content))
    req = api_utils.retrieve_subscription(tenant_id=context.tenant_id, server_id=context.server_id,
                                          subscription_id=context.subscription_id, headers=context.headers)
    Utils.assert_error_code_error(response=req, expected_error_code='404',
                                  expected_fault_element=ITEM_NOT_FOUND_ERROR)
Esempio n. 2
0
def assert_subscription_is_deleted(step):

    assert_true(world.req.ok, HTTP_CODE_NOT_OK.format(world.req.status_code, world.req.content))
    req = api_utils.retrieve_subscription(
        tenant_id=world.tenant_id,
        server_id=world.server_id,
        subscription_id=world.subscription_id,
        headers=world.headers,
    )
    Utils.assert_error_code_error(response=req, expected_error_code="404", expected_fault_element=ITEM_NOT_FOUND_ERROR)
Esempio n. 3
0
def assert_subscription_is_deleted(context):

    assert_true(
        context.req.ok,
        HTTP_CODE_NOT_OK.format(context.req.status_code, context.req.content))
    req = api_utils.retrieve_subscription(
        tenant_id=context.tenant_id,
        server_id=context.server_id,
        subscription_id=context.subscription_id,
        headers=context.headers)
    Utils.assert_error_code_error(response=req,
                                  expected_error_code='404',
                                  expected_fault_element=ITEM_NOT_FOUND_ERROR)
def assert_error_response(step, error_code, fault_element):

    Utils.assert_error_code_error(response=world.req, expected_error_code=error_code,
                                  expected_fault_element=fault_element)
Esempio n. 5
0
def assert_error_response(context, error_code, fault_element):

    Utils.assert_error_code_error(response=context.req,
                                  expected_error_code=error_code,
                                  expected_fault_element=fault_element)
def assert_error_response(step, error_code, fault_element):

    Utils.assert_error_code_error(response=world.req, expected_error_code=error_code,
                                  expected_fault_element=fault_element)
Esempio n. 7
0
def then_i_obtain_an_group1_and_the_group2(step, error_code, fault_element):

    Utils.assert_error_code_error(response=world.req, expected_error_code=error_code,
                                  expected_fault_element=fault_element)
Esempio n. 8
0
def assert_error_response(context, error_code, fault_element):

    Utils.assert_error_code_error(response=context.req, expected_error_code=error_code,
                                  expected_fault_element=fault_element)