Update iotdm library and tests.
[integration/test.git] / csit / suites / iotdm / basic / 100_NodeTest.robot
diff --git a/csit/suites/iotdm/basic/100_NodeTest.robot b/csit/suites/iotdm/basic/100_NodeTest.robot
new file mode 100644 (file)
index 0000000..e578c63
--- /dev/null
@@ -0,0 +1,37 @@
+*** Settings ***
+Suite Teardown    Kill The Tree    ${ODL_SYSTEM_IP}    InCSE1    admin    admin
+Library           ../../../libraries/criotdm.py
+Library           Collections
+
+*** Variables ***
+${httphost}       ${ODL_SYSTEM_IP}
+${httpuser}       admin
+${httppass}       admin
+${rt_ae}          2
+${rt_container}    3
+${rt_contentInstance}    4
+${rt_acp}    1
+${rt_node}    14
+
+*** Test Cases ***
+Set Suite Variable
+    [Documentation]    set a suite variable ${iserver}
+    ${iserver} =    Connect To Iotdm    ${httphost}    ${httpuser}    ${httppass}    http
+    Set Suite Variable    ${iserver}
+    #==================================================
+    #    Container Mandatory Attribute Test
+    #==================================================
+    # For Creation, there are no mandatory input attribute
+
+1.1 After Created, test whether all the mandatory attribtues are exist.
+    [Documentation]    After Created, test whether all the mandatory attribtues are exist.
+    ${attr} =    Set Variable    "rn":"Container1"
+    ${r}=    Create Resource    ${iserver}    InCSE1    ${rt_container}    ${attr}
+    ${container} =    Location    ${r}
+    ${status_code} =    Status Code    ${r}
+    Should Be Equal As Integers    ${status_code}    201
+    ${text} =    Text    ${r}
+    Should Contain    ${text}    "ri":    "rn":    "cni"
+    Should Contain    ${text}    "lt":    "pi":    "st":
+    Should Contain    ${text}    "ct":    "rty":3    "cbs"
+    Should Not Contain    S{text}    "lbl"    "creator"    "or"
\ No newline at end of file