Step 1: Move vm scripts to the right place
[integration/test.git] / test / csit / suites / nic / vtn_renderer / vtn_renderer_nic_rest_test.robot
1 *** Settings ***
2 Documentation     Test suite for NIC VTN Renderer
3 Suite Setup       Start NIC VTN Rest Test Suite
4 Suite Teardown    Stop NIC Vtn Rest Test Suite
5 Resource          ../../../libraries/NicKeywords.robot
6
7 *** Test Cases ***
8 Add Intent
9     [Documentation]    Create a new intent .
10     Add Intent Using RestConf    ${INTENT_ID}    { "intent:intent" : { "intent:id": ${INTENT_ID} , "intent:actions" : [ { "order" : 1, "block" : {} } ],"intent:subjects" : [ { "order":1 , "end-point-group" : {name:"10.0.0.1"} }, { "order":2 , "end-point-group" : {name:"10.0.0.2"}} ] } }
11
12 Verify Intent
13     [Documentation]    Verify the Intent created.
14     Verify Intent Using RestConf    ${INTENT_ID}
15
16 Update Intent
17     [Documentation]    Update the Intent created.
18     Update Intent Using RestConf    ${INTENT_ID}    { "intent:intent" : { "intent:id": ${INTENT_ID} , "intent:actions" : [ { "order" : 2, "allow" : {} } ],"intent:subjects" : [ { "order":1 , "end-point-group" : {name:"10.0.0.1"} }, { "order":2 , "end-point-group" : {name:"10.0.0.2"}} ] } }
19
20 Verify Ping
21     [Documentation]    Ping h1 to h2, to verify no packet loss
22     Mininet Ping Should Succeed    h1    h2
23
24 Delete Intent
25     [Documentation]    Delete the intent created.
26     Delete Intent Using RestConf    ${INTENT_ID}
27     Mininet Ping Should Not Succeed    h1    h2