Modify CSIT tests for VTN Coordinator of audit feature
[integration/test.git] / csit / suites / vtn / VTN_C_OF13 / 040__vtn_vbrif_audit.robot
1 *** Settings ***
2 Documentation     Test suite for VTN Coordinator
3 Suite Setup       Start SuiteVtnCoTest
4 Suite Teardown    Stop SuiteVtnCoTest
5 Resource          ../../../libraries/VtnCoKeywords.robot
6 Resource          ../../../libraries/WaitForFailure.robot
7
8 *** Test Cases ***
9 Add a ODL Controller with Invalid IP
10     [Documentation]    Add a Controller
11     Add a Controller    odc_test    10.0.0.1
12
13 Verify the Controller Status is down
14     [Documentation]    Check Controller status
15     WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    12s    1s    Check Controller Status    odc_test    down
16
17 Add a Vtn Tenant1
18     [Documentation]    Create Vtn Tenant1
19     Add a VTN    Tenant1    VTN_TEST
20
21 Create VBR in VTN Tenant1
22     [Documentation]    Create a VBR in Tenant1 as Vbr_audit
23     Create VBR in VTN    Tenant1    Vbr_audit    odc_test
24
25 Create VBRIF in VBRIDGE Vbr_audit Interface1
26     [Documentation]    Create an interface to Vbr_audit
27     Create VBRIF in VBR    Tenant1    Vbr_audit    Interface1    Interface1    202
28
29 Create VBRIF in VBRIDGE Vbr_audit Interface2
30     [Documentation]    Create an interface to Vbr_audit
31     Create VBRIF in VBR    Tenant1    Vbr_audit    Interface2    Interface2    202
32
33 Update controller to Valid IP
34     [Documentation]    Update Controller ip to valid from invalid
35     Update Controller    odc_test    ${CONTROLLER}    valid_IP
36
37 Verify the Controller State is in waiting_audit
38     [Documentation]    Check Controller status
39     Wait Until Keyword Succeeds    12s    2s    Check Controller Status    odc_test    waiting_audit
40
41 Audit a controller manually
42     [Documentation]    Trigger update audit
43     Audit Controller    odc_test
44
45 Define Portmap for Interface1
46     [Documentation]    Map Interface1 to a logical port
47     Define Portmap for VBRIF    Tenant1    Vbr_audit    Interface1    PP-OF:openflow:2-s2-eth1
48
49 Define Portmap for Interface2
50     [Documentation]    Map Interface2 to a logical port
51     Define Portmap for VBRIF    Tenant1    Vbr_audit    Interface2    PP-OF:openflow:2-s2-eth2
52
53 Test Ping for Configuration1
54     [Documentation]    ping between hosts in mininet
55     Wait Until Keyword Succeeds    20s    1s    Test Ping    h1    h2
56
57 Delete a VTN Tenant1
58     [Documentation]    Delete Vtn Tenant1
59     Delete a VTN    Tenant1
60
61 Delete a Controller odc1
62     [Documentation]    Delete Controller odc1
63     Remove Controller    odc_test