Topoprocessing - corrected tests for filtration and unification
[integration/test.git] / csit / suites / ovsdb / Ovsdb_Net-virt / 020_Ovsdb_Southbound_Net-Virt.robot
1 *** Settings ***
2 Documentation     Test suite for Ovsdb Southbound Cluster
3 Suite Setup       Create Controller Sessions
4 Suite Teardown    Delete All Sessions
5 Library           RequestsLibrary
6 Resource          ../../../libraries/ClusterOvsdb.robot
7 Resource          ../../../libraries/ClusterKeywords.robot
8 Resource          ../../../libraries/MininetKeywords.robot
9 Variables         ../../../variables/Variables.py
10 Library           ../../../libraries/Common.py
11 Resource          ../../../libraries/Utils.robot
12 Resource          ../../../libraries/OVSDB.robot
13
14 *** Variables ***
15 @{FLOW_TABLE_LIST}    actions=goto_table:20    actions=CONTROLLER:65535    actions=goto_table:30    actions=goto_table:40    actions=goto_table:50    actions=goto_table:60    actions=goto_table:70
16 ...               actions=goto_table:80    actions=goto_table:90    actions=goto_table:100    actions=goto_table:110    actions=drop
17
18 *** Test Cases ***
19 Create Original Cluster List
20     [Documentation]    Create original cluster list.
21     ${original_cluster_list}    Create Controller Index List
22     Set Suite Variable    ${original_cluster_list}
23     Log    ${original_cluster_list}
24
25 Check Shards Status Before Fail
26     [Documentation]    Check Status for all shards in Ovsdb application.
27     Check Ovsdb Shards Status    ${original_cluster_list}
28
29 Start Mininet Multiple Connections
30     [Documentation]    Start mininet with connection to all cluster instances.
31     ${mininet_conn_id}    Add Multiple Managers to OVS    ${TOOLS_SYSTEM_IP}    ${original_cluster_list}
32     Set Suite Variable    ${mininet_conn_id}
33     Log    ${mininet_conn_id}
34
35 Get bridge setup
36     [Documentation]    This request is verifying that the br-int bridge has been created
37     [Tags]    OVSDB netvirt
38     ${output}    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl show
39     Log    ${output}
40     Should Contain    ${output}    Bridge br-int
41
42 Get port setup
43     [Documentation]    This will check the port br-int has been created
44     [Tags]    OVSDB netvirt
45     ${output}    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl show
46     Log    ${output}
47     Should Contain    ${output}    Port br-int
48
49 Get interface setup
50     [Documentation]    This verify the interface br-int has been created
51     [Tags]    OVSDB netvirt
52     ${output}    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-vsctl show
53     Log    ${output}
54     Should Contain    ${output}    Interface br-int
55
56 Get the bridge flows
57     [Documentation]    This request fetch the OF13 flow tables to verify the flows are correctly added
58     [Tags]    OVSDB netvirt
59     ${output}    Run Command On Remote System    ${TOOLS_SYSTEM_IP}    sudo ovs-ofctl -O Openflow13 dump-flows br-int
60     Log    ${output}
61     : FOR    ${flows}    IN    @{FLOW_TABLE_LIST}
62     \    Should Contain    ${output}    ${flows}