Ejemplo n.º 1
0
def assert_rule_is_updated(context):

    assert context.req.ok, context.req.content

    response = Utils.assert_json_format(context.req)
    Rule_Utils.assert_rule_information(response=response, rule_id=context.rule_id, name=context.rule_name,
                                       cpu=context.cpu, mem=context.mem, hdd=context.hdd, net=context.net,
                                       action=context.rule_action)
Ejemplo n.º 2
0
def assert_rule_information(step):

    assert_true(
        world.req.ok,
        HTTP_CODE_NOT_OK.format(world.req.status_code, world.req.content))
    response = Utils.assert_json_format(world.req)
    Rule_Utils.assert_rule_information(response=response,
                                       rule_id=world.rule_id,
                                       body=world.rule_body)
Ejemplo n.º 3
0
def assert_rule_information(context):

    assert_true(
        context.req.ok,
        HTTP_CODE_NOT_OK.format(context.req.status_code, context.req.content))

    response = Utils.assert_json_format(context.req)
    Rule_Utils.assert_rule_information(response=response,
                                       rule_id=context.rule_id,
                                       body=context.rule_body)
Ejemplo n.º 4
0
def assert_rule_is_updated(step):

    assert world.req.ok, world.req.content
    response = Utils.assert_json_format(world.req)
    Rule_Utils.assert_rule_information(response=response,
                                       rule_id=world.rule_id,
                                       name=world.rule_name,
                                       cpu=world.cpu,
                                       mem=world.mem,
                                       hdd=world.hdd,
                                       net=world.net,
                                       action=world.rule_action)
Ejemplo n.º 5
0
def assert_rule_is_updated(context):

    assert context.req.ok, context.req.content

    response = Utils.assert_json_format(context.req)
    Rule_Utils.assert_rule_information(response=response,
                                       rule_id=context.rule_id,
                                       name=context.rule_name,
                                       cpu=context.cpu,
                                       mem=context.mem,
                                       hdd=context.hdd,
                                       net=context.net,
                                       action=context.rule_action)
Ejemplo n.º 6
0
def assert_rule_is_updated(step):

    assert world.req.ok, world.req.content
    response = Utils.assert_json_format(world.req)
    Rule_Utils.assert_rule_information(response=response, rule_id=world.rule_id, name=world.rule_name, cpu=world.cpu,
                                  mem=world.mem, hdd=world.hdd, net=world.net, action=world.rule_action)
Ejemplo n.º 7
0
def assert_rule_information(step):

    assert_true(world.req.ok, HTTP_CODE_NOT_OK.format(world.req.status_code, world.req.content))
    response = Utils.assert_json_format(world.req)
    Rule_Utils.assert_rule_information(response=response, rule_id=world.rule_id, body=world.rule_body)
Ejemplo n.º 8
0
def assert_rule_information(context):

    assert_true(context.req.ok, HTTP_CODE_NOT_OK.format(context.req.status_code, context.req.content))

    response = Utils.assert_json_format(context.req)
    Rule_Utils.assert_rule_information(response=response, rule_id=context.rule_id, body=context.rule_body)