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