Add the robot based CSIT tool with the base edition
[integration/test.git] / test / tools / Robot_Tool / suites / base / topology_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/TopologyManager.py
7 Variables         ../../variables/Variables.py
8
9 *** Variables ***
10 ${name}           test_userlink1
11 ${key}            userLinks
12
13 *** Test Cases ***
14 Add and remove a userlink
15     [Documentation]    Add and remove a userlink. After each operation, list to validate the result.
16     [Tags]    add_remove_info
17     ${body}    Create Dictionary    name    ${name}    status    Success    srcNodeConnector
18     ...    OF|1@OF|00:00:00:00:00:00:00:02    dstNodeConnector    OF|1@OF|00:00:00:00:00:00:00:03
19     Add Userlink    ${name}    ${body}
20     ${result}    Get Userlinks
21     Dictionary Should Contain Key    ${result}    ${key}
22     ${content}    Get From Dictionary    ${result}    ${key}
23     List Should Contain Value    ${content}    ${body}
24     Remove Userlink    ${name}
25     ${result}    Get Userlinks
26     Dictionary Should Contain Key    ${result}    ${key}
27     ${content}    Get From Dictionary    ${result}    ${key}
28     List Should Not Contain Value    ${content}    ${body}