2 Documentation Test suite tests procedures related to Group resource and its child resources according
3 ... to OneM2M specifications:
4 ... <group>: (TS-0001: 10.2.7 Group Management Procedures; TS-0004: 7.4.13 Resource Type <group>)
5 ... <fanOutPoint>: (TS-0001: 10.2.7.6 <fanOutPoint> Management Procedures; TS-0004: 7.4.14 Resource Type <fanOutPoint>)
6 ... <semanticFanOutPoint>: (TS-0001: 10.2.7.14 Retrieve <semanticFanOutPoint>; TS-0004: 7.4.35 Resource Type <semanticFanOutPoint>)
7 ... <semanticDescriptor>: (TS-0001: 10.2.32 <semanticDescriptor> Resource Procedures; TS-0004: 7.4.34 Resource Type <semanticDescriptor>)
8 Suite Setup Create Session session http://${ODL_SYSTEM_1_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
9 Suite Teardown Delete All Sessions
10 Library RequestsLibrary
11 Library ../../../libraries/Common.py
12 Resource ../../../libraries/Utils.robot
13 Resource ../../../variables/Variables.robot
18 1.00 C/R valid Group resource without child resources
19 [Documentation] Create simple Group resource without child resources and verify by Retrieve operation and
20 ... check the received resource representation of includes all expected attributes.
21 [Tags] not-implemented exclude
24 1.01 C/R Group resource: valid memberIDs
25 [Documentation] Positive TC related to this Group resource Create handling step:
26 ... "TS-0001: Validate that there are no duplicate members present in the memberIDs attribute"
27 [Tags] not-implemented exclude
30 1.02 C/R Group resource: invalid memberIDs
31 [Documentation] Negative TC related to this Group resource Create handling step:
32 ... "TS-0001: Validate that there are no duplicate members present in the memberIDs attribute"
33 [Tags] not-implemented exclude
36 1.03 C/R Group resource: valid memberTypes
37 [Documentation] Positive TC related to this Group resource Create handling step:
38 ... "TS-0001: Validate that the resource type of every member on each member Hosting CSE
39 ... conforms to the memberType attribute in the request, if the memberType attribute of the <group>
40 ... resource is not 'mixed'. Set the memberTypeValidated attribute to TRUE upon successful validation."
41 [Tags] not-implemented exclude
44 1.04 C/R Group resource: invalid memberTypes
45 [Documentation] Negative TC related to this Group resource Create handling step:
46 ... "TS-0001: Validate that the resource type of every member on each member Hosting CSE
47 ... conforms to the memberType attribute in the request, if the memberType attribute of the <group>
48 ... resource is not 'mixed'. Set the memberTypeValidated attribute to TRUE upon successful validation."
49 [Tags] not-implemented exclude
52 1.05 C/R Group resource: Verify <fanOutPoint> and <semanticFanOutPoint> child resources
53 [Documentation] Test all possible scenarios related to this Group resource Create handling step:
54 ... "TS-0001: Upon successful validation of the provided attributes, create a new group resource
55 ... including the <fanOutPoint> child-resource in the Hosting CSE. If the CSE supports semantic
56 ... discovery functionality, the Hosting CSE shall also set the semanticSupportIndicator attribute
57 ... to TRUE and create the <semanticFanOutPoint> child-resource"
58 [Tags] not-implemented exclude
61 1.06 C/R Group resource: Verify memberTypeValidated attribute
62 [Documentation] Test all possible scenarios related to this Group resource Create handling steps:
63 ... "TS-0001: Conditionally, in the case that the group resource contains temporarily unreachable
64 ... Hosting CSE of sub-group resources as member resource, set the memberTypeValidated attribute
65 ... of the <group> resource to FALSE"
66 ... "TS-0001: Respond to the Originator with the appropriate generic Response with the
67 ... representation of the <group> resource if the memberTypeValidated attribute is FALSE, and the
68 ... address of the created <group> resource if the CREATE was successful"
69 [Tags] not-implemented exclude
72 1.07 C/R Group resource: resource become reachable
73 [Documentation] Test all possible scenarios related to this Group resource Create handling step:
74 ... "TS-0001: As soon as any Hosting CSE that hosts the unreachable resource becomes reachable,
75 ... the memberType validation procedure shall be performed. If the memberType validation fails,
76 ... the Hosting CSE shall deal with the <group> resource according to the policy defined by the
77 ... consistencyStrategy attribute of the <group> resource provided in the request or by default if
78 ... the attribute is not provided"
79 [Tags] not-implemented exclude
82 2.01 U/R Group resource: valid memberIDs
83 [Documentation] Positive TC related to this Group resource Create handling step:
84 ... "TS-0001: Validate that there are no duplicate members present in the memberIDs attribute"
85 [Tags] not-implemented exclude
88 2.02 U/R Group resource: invalid memberIDs
89 [Documentation] Negative TC related to this Group resource Create handling step:
90 ... "TS-0001: Validate that there are no duplicate members present in the memberIDs attribute"
91 [Tags] not-implemented exclude
94 2.03 U/R Group resource: valid memberTypes
95 [Documentation] Positive TC related to this Group resource Create handling step:
96 ... "TS-0001: Validate that the resource type of every member on each member Hosting CSE
97 ... conforms to the memberType attribute in the request, if the memberType attribute of the <group>
98 ... resource is not 'mixed'. Set the memberTypeValidated attribute to TRUE upon successful validation."
99 [Tags] not-implemented exclude
102 2.04 U/R Group resource: invalid memberTypes
103 [Documentation] Negative TC related to this Group resource Create handling step:
104 ... "TS-0001: Validate that the resource type of every member on each member Hosting CSE
105 ... conforms to the memberType attribute in the request, if the memberType attribute of the <group>
106 ... resource is not 'mixed'. Set the memberTypeValidated attribute to TRUE upon successful validation."
107 [Tags] not-implemented exclude
110 2.05 U/R Group resource: Verify memberTypeValidated attribute
111 [Documentation] Test all possible scenarios related to this Group resource Create handling steps:
112 ... "TS-0001: Conditionally, in the case that the <group> resource contains temporarily unreachable
113 ... Hosting CSE of sub-group resources as members resource set the memberTypeValidated attribute of
114 ... the <group> resource to FALSE"
115 ... "TS-0001: Respond to the Originator with the appropriate generic response with the
116 ... representation of the <group> resource if the memberTypeValidated attribute is FALSE, and the
117 ... address of the created <group> resource if the UPDATE is successful"
118 [Tags] not-implemented exclude
121 2.06 U/R Group resource: resource become reachable
122 [Documentation] Test all possible scenarios related to this Group resource Create handling step:
123 ... "TS-0001: As soon as any Hosting CSE that hosts unreachable resource becomes reachable, the
124 ... memberType validation procedure shall be performed. If the memberType validation fails, the
125 ... Hosting CSE shall deal with the <group> resource according to the policy defined by the
126 ... consistencyStrategy attribute of the <group> resource provided in the request, or by default if
127 ... the attribute is not provided"
128 [Tags] not-implemented exclude
131 3. CRUD fanOutPoint resource
132 [Documentation] Test CRUD operations targetted to fanOutPoint child resource of Group resource.
133 ... TODO: Split this TC if needed
134 [Tags] not-implemented exclude
137 4. CRUD semanticFanOutPoint and semanticDescriptor resources
138 [Documentation] Test CRUD operations targetted to semanticFanOutPoint and semanticDescriptor resources.
139 ... TODO: Split this TC if needed
140 [Tags] not-implemented exclude
145 Fail "Not implemented"