Update iotdm library and tests.
[integration/test.git] / csit / suites / iotdm / basic / 100_NodeTest.robot
1 *** Settings ***
2 Suite Teardown    Kill The Tree    ${ODL_SYSTEM_IP}    InCSE1    admin    admin
3 Library           ../../../libraries/criotdm.py
4 Library           Collections
5
6 *** Variables ***
7 ${httphost}       ${ODL_SYSTEM_IP}
8 ${httpuser}       admin
9 ${httppass}       admin
10 ${rt_ae}          2
11 ${rt_container}    3
12 ${rt_contentInstance}    4
13 ${rt_acp}    1
14 ${rt_node}    14
15
16 *** Test Cases ***
17 Set Suite Variable
18     [Documentation]    set a suite variable ${iserver}
19     ${iserver} =    Connect To Iotdm    ${httphost}    ${httpuser}    ${httppass}    http
20     Set Suite Variable    ${iserver}
21     #==================================================
22     #    Container Mandatory Attribute Test
23     #==================================================
24     # For Creation, there are no mandatory input attribute
25
26 1.1 After Created, test whether all the mandatory attribtues are exist.
27     [Documentation]    After Created, test whether all the mandatory attribtues are exist.
28     ${attr} =    Set Variable    "rn":"Container1"
29     ${r}=    Create Resource    ${iserver}    InCSE1    ${rt_container}    ${attr}
30     ${container} =    Location    ${r}
31     ${status_code} =    Status Code    ${r}
32     Should Be Equal As Integers    ${status_code}    201
33     ${text} =    Text    ${r}
34     Should Contain    ${text}    "ri":    "rn":    "cni"
35     Should Contain    ${text}    "lt":    "pi":    "st":
36     Should Contain    ${text}    "ct":    "rty":3    "cbs"
37     Should Not Contain    S{text}    "lbl"    "creator"    "or"