Adapt robot files to RFC 8040 (controller)
[integration/test.git] / basic / 101_ProceduresLatestOldest.robot
1 *** Settings ***
2 Documentation     Test suite tests resource specific operations of the oldest and latest resources according to
3 ...               OneM2M specifications:
4 ...               <oldest>: (TS-0001: 10.2.23 <oldest> Resource Procedure; TS-0004: 7.4.28.2 <oldest> Resource Specific Procedure on CRUD Operations)
5 ...               <latest>: (TS-0001: 10.2.22 <latest> Resource Procedures; TS-0004: 7.4.27.2 <latest> Resource Specific Procedure on CRUD Operations)
6 Suite Setup       Create Session    session    http://${ODL_SYSTEM_1_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
7 Suite Teardown    Delete All Sessions
8 Library           RequestsLibrary
9 Library           ../../../libraries/Common.py
10 Resource          ../../../libraries/Utils.robot
11 Resource          ../../../variables/Variables.robot
12
13 *** Variables ***
14
15 *** Test Cases ***
16 1.00 Retrieve Oldest and Latest resources
17     [Documentation]    Test retrieve operation of Oldest and Latest resources of containers:
18     ...    1. Container without any content instance.
19     ...    2. Container with single contentInstance, Oldest and Latest resources should be the same.
20     ...    3. Container with more than one contentInstnce, verify that the expected oldest and latest
21     ...    contentInstances has been returned.
22     [Tags]    not-implemented    exclude
23     TODO
24
25 1.01 C/R Oldest and Latest: Verify that Create operation is not allowed
26     [Documentation]    Try to create Oldest and Latest resources of containers with and without contentInstance
27     ...    resources. Verify the error response and check if the container has not been changed.
28     [Tags]    not-implemented    exclude
29     TODO
30
31 1.02 U/R Oldest and Latest: Verify that Update operation is not allowed
32     [Documentation]    Try to update Oldest and Latest resources of containers with and without contentInstance
33     ...    resources. Verify the error response and check if the container has not been changed.
34     [Tags]    not-implemented    exclude
35     TODO
36
37 1.03 Delete Oldest and Latest resources
38     [Documentation]    Delete Oldest and Latest resources of containers:
39     ...    1. Container without any content instance.
40     ...    2. Container with single contentInstance and verify the Oldest, Latest and parent container.
41     ...    3. Container with more than one contentInstance and verify the Oldest, Latest and parent container.
42     ...    Delete util the parent container will include only one contentInstance and verify if the
43     ...    Oldest and Latest are the same.
44     ...    Delete also the last contentInstance and verify Oldest, Latest and parent container.
45     [Tags]    not-implemented    exclude
46     TODO
47
48 2.01 C/R ContentInstance: Create contentInstance and verify Oldest and Latest
49     [Documentation]    Create contentInstances resource and verify Oldest and Latest in case of one contentInstance and
50     ...    multiple contentInstances.
51     [Tags]    not-implemented    exclude
52     TODO
53
54 2.02 C/R ContentInstance: Create contentInstance which violates policy - positive
55     [Documentation]    Create such contentInstance resource which trigers delete of Oldest and verify.
56     [Tags]    not-implemented    exclude
57     TODO
58
59 2.03 C/R ContentInstance: Create contentInstance which violates policy - negative
60     [Documentation]    Create such contentInstance resource which results with NOT_ACCEPTABLE error and verify if
61     ...    Oldest and Latest has not changed.
62     [Tags]    not-implemented    exclude
63     TODO
64
65 *** Keywords ***
66 TODO
67     Fail    "Not implemented"