Add Flow Condition RestConfig for Vtn Manager
[integration/test.git] / csit / suites / vtn / VTN_Mgr_OF13 / 010__restconfig_vtn_manager.robot
1 *** Settings ***
2 Documentation     Test suite for VTN Manager using OF13
3 Suite Setup       Start SuiteVtnMaRestConfTest
4 Suite Teardown    Stop SuiteVtnMaTest
5 Resource          ../../../libraries/VtnMaKeywords.robot
6
7 *** Test Cases ***
8 Check if switch1 detected
9     [Documentation]    Check if openflow:1 is detected
10     BuiltIn.Wait_Until_Keyword_Succeeds    12    3    Fetch vtn switch inventory    openflow:1
11
12 Check if switch2 detected
13     [Documentation]    Check if openflow:2 is detected
14     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:2
15
16 Check if switch3 detected
17     [Documentation]    Check if openflow:3 is detected
18     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:3
19
20 Add a flowcondition in restconfig
21     [Documentation]    Create a flowcondition cond_1 using restconfig api
22     Add a flowcondition In Restconfig
23
24 Get flowcondition
25     [Documentation]    Retrieve the flowcondition by name
26     Get flowcondition In Restconfig    cond_1    retrieve
27
28 Get flowconditions
29     [Documentation]    Retrieve the list of flowconditions
30     Get flowconditions In Restconfig
31
32 Remove flowcondition
33     [Documentation]    Remove the flowcondition by name
34     Remove flowcondition In Restconfig    cond_1
35
36 Get flowcondition After Remove
37     [Documentation]    Verify the removed flowcondition
38     Get flowcondition In Restconfig    cond_1    retrieve_after_remove