From 90af50f912e38e30f266fc28e8892cd1fd33a5f6 Mon Sep 17 00:00:00 2001
From: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org>
Date: Thu, 6 Mar 2025 09:39:59 +0000
Subject: [PATCH] Add example 4 of grid table

---
 TS-Example.md | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 80 insertions(+)

diff --git a/TS-Example.md b/TS-Example.md
index 4befacd..1772aff 100644
--- a/TS-Example.md
+++ b/TS-Example.md
@@ -96,6 +96,86 @@ Example Grid Table 3
 |Note:* with population density of 100 or fewer persons per square mile                         |
 +-----------------------------------------------------------------------------------------------+
 
+Example grid table 4
+
++--------------------+-------------------+------------------+-------------------------+---------------------------------------+----------------------------------------+
+|Ut Control Primitive|Mapping to oneM2M  |Description       |Reference                |Triggering Message                     |HTTP                                    |
+|message             |data types         |                  |                         |                                       |                                        |
++:===================+:==================+:=================+:========================+:======================================+:=======================================+
+|_UtTrigger_         |_requestPrimitive_ |ONLY essential    |oneM2M TS-0004           |**EXAMPLE** **1:** If the test objective is to test **_"Test                    |
+|_Primitive_         |                   |parameters        |<a href="#_ref_2">[2]</a>|triggers_ _IUT_ _to execute a test case for creation of &lt;_ _AE_ _>           |
+|                    |                   |included for      |                         |with abels attribute under a_ _CSEBase_ _resource_\"**, then                    |
+|                    |                   |certain test      |                         |triggering message would be serialized as following.                            |
+|                    |                   |case \            |                         |                                                                                |
+|                    |                   |See NOTE 1        |                         |                                                                                |
+|                    |                   |                  |                         +---------------------------------------+----------------------------------------+
+|                    |                   |                  |                         |**Request** \                          |**Request** \                           |
+|                    |                   |                  |                         |{ \                                    |**POST**  /{SUT\_UT\_APPLICATION\_URL}  |
+|                    |                   |                  |                         |"m2m:rqp" :{ \                         |HTTP/1.1 \                              |
+|                    |                   |                  |                         |"op": 1, //indicate CREATE operation \ |**Host**: {SUT\_IP\_ADDRESS:PORT} \     |
+|                    |                   |                  |                         |"ty": 2, //indicate AE resource type \ |**Content-Length**: {PAYLOAD\_LENGTH} \ |
+|                    |                   |                  |                         |"to": {TEST\_SYSTEM\_ADDRESS}, \       |**Content-Type**: **application/json** \|
+|                    |                   |                  |                         |"pc": { \                              | \                                      |
+|                    |                   |                  |                         |"m2m:ae": { \                          |{"m2m:rqp" :{ \                         |
+|                    |                   |                  |                         |"lbl":"UNINITIALIZED" //indicate that  |"op": 1, //indicate CREATE operation \  |
+|                    |                   |                  |                         |attribute labels needs to be included \|"ty": 2, //indicate AE resource type \  |
+|                    |                   |                  |                         |}, \                                   |"to": {TEST\_SYSTEM\_ADDRESS}, \        |
+|                    |                   |                  |                         |} \                                    |"pc": { \                               |
+|                    |                   |                  |                         |"rvi": "2a" \ }                        |"m2m:ae": { \                           |
+|                    |                   |                  |                         |} \                                    |"lbl":"UNINITIALIZED" //indicate that   |
+|                    |                   |                  |                         |}                                      |attribute labels needs to be included \ |
+|                    |                   |                  |                         |                                       |} \                                     |
+|                    |                   |                  |                         |                                       |}, \                                    | 
+|                    |                   |                  |                         |                                       |"rvi": "2a" \                           |
+|                    |                   |                  |                         |                                       |} \                                     |
+|                    |                   |                  |                         |                                       |} \                                     | 
+|                    |                   |                  |                         +---------------------------------------+----------------------------------------+
+|                    |                   |                  |                         |**EXAMPLE** **2:** If the test objective is to test **_"Test System             |
+|                    |                   |                  |                         |triggers_ _IUT_ _to execute a test case for delete of &lt;_ _AE_ _>             |
+|                    |                   |                  |                         |_resource_\"**, then triggering message would be serialized as following.       |
+|                    |                   |                  |                         +---------------------------------------+----------------------------------------+
+|                    |                   |                  |                         |**Request** \                          |**Request** \                           |
+|                    |                   |                  |                         |{ \                                    |**POST**  /{SUT\_UT\_APPLICATION\_URL}  |
+|                    |                   |                  |                         |"m2m:rqp" :{ \                         |HTTP/1.1 \                              |
+|                    |                   |                  |                         |"op": 4, //indicate DELETE operation \ |**Host**: {SUT\_IP\_ADDRESS:PORT} \     |
+|                    |                   |                  |                         |"to":{TARGET\_AE\_RESOURCE\_ADDRESS}, \|**Content-Length**: {PAYLOAD\_LENGTH} \ |
+|                    |                   |                  |                         |//indicate Target AE resource address  |**Content-Type**: **application/json** \|
+|                    |                   |                  |                         |"rvi": "2a" \                          | \                                      |
+|                    |                   |                  |                         |} \                                    |{"m2m:rqp" :{ \                         |
+|                    |                   |                  |                         |}                                      |"op": 4, //indicate DELETE peration\    |
+|                    |                   |                  |                         |                                       |"to":{TARGET\_AE\_RESOURCE\_ADDRESS}, \ |
+|                    |                   |                  |                         |                                       |//indicate Target AE resource address \ |
+|                    |                   |                  |                         |                                       |"rvi": "2a" \                           |
+|                    |                   |                  |                         |                                       |} \                                     |
+|                    |                   |                  |                         |                                       |} \                                     | 
+|                    +-------------------+------------------+-------------------------+---------------------------------------+----------------------------------------+
+|                    |N/A                |Special upper     |N/A                      |**"RESET"**                            |**Request** \                           |
+|                    |                   |tester            |                         |                                       |**POST** /{SUT\_UT\_APPLICATION\_URL}   |
+|                    |                   |commands          |                         |                                       |HTTP/1.1 \                              |
+|                    |                   |                  |                         |                                       |**Host** : {SUT\_IP\_ADDRESS:PORT} \    |
+|                    |                   |                  |                         |                                       |**X-M2M-UTCMD: Reset** \                |
++--------------------+-------------------+------------------+-------------------------+---------------------------------------+----------------------------------------+
+|_UtTrigger_         |_responsePrimitive_|ONLY              |oneM2M TS-0004           |**Response** \                         |**Response** \                          |
+|_Ack_ _Primitive_   |                   |responseStatusCode|<a href="#_ref_2">[2]</a>|{ \                                    |HTTP/1.1 200 OK \                       |
+|                    |                   |attribute         |                         |"m2m:rsp": { \                         |X-M2M-RSC: 2000 \                       |
+|                    |                   | included \       |                         |"rsc": 2000 \                          |                                        |
+|                    |                   | \                |                         |} \                                    |                                        |  
+|                    |                   | See Note 2.      |                         |} \                                    |                                        |  
+|                    |                   |                  |                         | \                                     |                                        | 
+|                    |                   |                  |                         |For any triggering response, it only   |                                        | 
+|                    |                   |                  |                         |contains aresponse status code, and the|                                        | 
+|                    |                   |                  |                         |response status code for the triggering|                                        | 
+|                    |                   |                  |                         |operation can only be set to either    |                                        | 
+|                    |                   |                  |                         |either 2000 (OK) or 4000 (BAD\_REQUEST)|                                        | 
+|                    |                   |                  |                         |according to the rules for triggering  |                                        | 
+|                    |                   |                  |                         | operations.                           |                                        | 
++--------------------+-------------------+------------------+-------------------------+---------------------------------------+----------------------------------------+
+|NOTE 1: Additional rules defined in table 5.4.4.2.2-3 are also applied. \                                                                                             |
+|NOTE 2: Attribute response status code is defined at table 5.4.4.2.2-3.                                                                                               |
++----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+
+
+
 # 2 Pipe table examples
 
 
-- 
GitLab