Add testcase for Vswitch Hosting Subnet Route Restart
[integration/test.git] / csit / suites / iotdm / basic / 025_ResourceAttributesNode.robot
1 *** Settings ***
2 Documentation     Tests for Node resource attributes
3 Suite Setup       IOTDM Basic Suite Setup    ${ODL_SYSTEM_1_IP}    ${ODL_RESTCONF_USER}    ${ODL_RESTCONF_PASSWORD}
4 Suite Teardown    Kill The Tree    ${ODL_SYSTEM_1_IP}    InCSE1    admin    admin
5 Resource          ../../../libraries/SubStrings.robot
6 Library           ../../../libraries/IoTDM/criotdm.py
7 Library           Collections
8 Resource          ../../../variables/Variables.robot
9 Resource          ../../../libraries/IoTDM/IoTDMKeywords.robot
10
11 *** Variables ***
12 ${rt_ae}          2
13 ${rt_container}    3
14 ${rt_contentInstance}    4
15 ${rt_acp}         1
16 ${rt_node}        14
17
18 *** Test Cases ***
19 TODO Refactor test suite and implement TCs
20     [Documentation]    Refactor this test suite and implement next TCs according to 000_ResourceAttributesNotes.txt
21     ...    Example of changes is in 024_ResourceAttributesAE.robot
22     [Tags]    not-implemented    exclude
23     TODO
24
25 1.1 After Created, test whether all the mandatory attribtues exist.
26     [Documentation]    After Created, test whether all the mandatory attribtues exist.
27     ${attr} =    Set Variable    "rn":"Container1"
28     ${r}=    Create Resource With Command    ${iserver}    InCSE1    ${rt_container}    rcn=3    ${attr}
29     ${container} =    Location    ${r}
30     ${status_code} =    Status Code    ${r}
31     Should Be Equal As Integers    ${status_code}    201
32     ${text} =    Convert To String    ${r.text}
33     Should Contain All Sub Strings    ${text}    "ri":    "rn":    "cni"    "lt":    "pi":
34     ...    "st":    "ct":    "ty":3    cbs"
35     Should Not Contain Any Sub Strings    ${text}    "lbl"    "creator"    "or"
36
37 *** Keywords ***
38 TODO
39     Fail    "Not implemented"