Merge "Add the robot based CSIT tool with the base edition"
[integration/test.git] / test / tools / Robot_Tool / suites / base / container_manager.txt
1 *** Settings ***
2 Documentation     Test suite for the container manager bundle.
3 Library           Collections
4 Library           RequestsLibrary
5 Library           ../../libraries/Common.py
6 Library           ../../libraries/ContainerManager.py
7 Variables         ../../variables/Variables.py
8
9 *** Variables ***
10 ${name}           test_container1
11 @{nodeconnectors}    OF|1@OF|00:00:00:00:00:00:00:01    OF|23@OF|00:00:00:00:00:00:20:21
12 ${key}            container-config
13
14 *** Test Cases ***
15 Add and remove a container
16     [Documentation]    Add and remove a container. After each operation, list to validate the result.
17     [Tags]    add_remove_info
18     ${flowspecs}    Convert To List    ${EMPTY}
19     Log Variables
20     ${body}    Create Dictionary    container    ${name}    flowSpecs    ${flowspecs}    staticVlan
21     ...    10    nodeConnectors    ${nodeconnectors}
22     Add Container    ${name}    ${body}
23     ${result}    Get Containers
24     Dictionary Should Contain Key    ${result}    ${key}
25     ${content}    Get From Dictionary    ${result}    ${key}
26     List Should Contain Value    ${content}    ${body}
27     Remove Container    ${name}
28     ${result}    Get Containers
29     Dictionary Should Contain Key    ${result}    ${key}
30     ${content}    Get From Dictionary    ${result}    ${key}
31     List Should Not Contain Value    ${content}    ${body}