Add the robot based CSIT tool with the base edition
[integration/test.git] / test / tools / Robot_Tool / suites / base / forwarding_rule_manager.txt
1 *** Settings ***
2 Documentation     Test suite for the arp handler bundle.
3 Library           Collections
4 Library           RequestsLibrary
5 Library           ../../libraries/Common.py
6 Library           ../../libraries/ForwardingRuleManager.py
7 Variables         ../../variables/Variables.py
8
9 *** Variables ***
10 ${name}           flow1
11 ${key}            flowConfig
12 ${node_id}        00:00:00:00:00:00:00:02
13
14 *** Test Cases ***
15 Add and remove a flow
16     [Documentation]    Add and remove a flow. After each operation, list to validate the result.
17     [Tags]    add_remove_info
18     ${node }    Create Dictionary    type    OF    id    ${node_id}
19     ${actions}    Create List    OUTPUT=1
20     ${body}    Create Dictionary    name    ${name}    installInHw    true    node
21     ...    ${node}    priority    1    etherType    0x800    nwDst
22     ...    10.0.0.1/32    actions    ${actions}
23     Add Flow To Node    OF    ${node_id}    ${name}    ${body}
24     Log Variables
25     ${result}    Get Flows
26     Dictionary Should Contain Key    ${result}    ${key}
27     ${content}    Get From Dictionary    ${result}    ${key}
28     List Should Contain Value    ${content}    ${body}
29     Remove Flow From Node    OF    ${node_id}    ${name}
30     ${result}    Get Flows
31     Dictionary Should Contain Key    ${result}    ${key}
32     ${content}    Get From Dictionary    ${result}    ${key}
33     List Should Not Contain Value    ${content}    ${body}