OneM2M_Pixits.ttcn 9.73 KB
Newer Older
1 2 3 4 5 6 7
/**
 *  Copyright Notification
 *  No part of this document may be reproduced, in an electronic retrieval system or otherwise, except as authorized by written permission.
 *  The copyright and the foregoing restriction extend to reproduction in all media.
 *  © 2016, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC).
 *  All rights reserved.
 *  
8 9 10
 *  @author     ETSI
 *  @version    $URL: https://oldforge.etsi.org/svn/oneM2M/branches/Release1/ttcn/LibOneM2M/OneM2M_Pixits.ttcn $
 *              $Id: OneM2M_Pixits.ttcn 347 2017-08-11 08:48:20Z reinaortega $
11 12 13 14 15 16
 *  @desc       Module containing Pixits for oneM2M
 *
 */
module OneM2M_Pixits {
	
	import from XSD all;
17
	import from OneM2M_Types all;
18
	
19
	group TestAdapterParameters {}
20 21

	
22 23
		group IutParameters {
			
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
24 25 26
			/**
			 * @desc IUT CSE IN role 
			 */
27
			modulepar boolean PX_IN_CSE	:= true; 
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
28 29 30 31

			/**
			 * @desc IUT CSE MN role 
			 */			
32
			modulepar boolean PX_MN_CSE	:= false; 
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
33 34 35 36

			/**
			 * @desc IUT CSE ASN role 
			 */						
37
			modulepar boolean PX_ASN_CSE:= false; 
38
		
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
39 40 41
			/**
			 * @desc IUT Upper Tester interface support 
			 */
42 43
			modulepar boolean PX_UT_IMPLEMENTED := false;
			
44 45 46
			/**
			 * @desc IUT CSE Name
			 */	
47
			modulepar XSD.ID PX_CSE_NAME := "oneMPOWER-IN-CSE";
48 49 50 51
		
			/**
			 * @desc IUT CSE-ID with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
			 */		
52
			modulepar XSD.ID PX_CSE_ID := "/ID-CSE-01";
53 54 55 56
			
			/**
			 * @desc IUT CSE resource ID with Unstructured-CSE-relative-Resource-ID (relative) format according to TS-0001-7.2-1
			 */			
57
			modulepar XSD.ID PX_CSE_RESOURCE_ID	:= "ID-CSE-01";
58 59 60 61
			 
			/**
			 * @desc IUT M2M-SP-ID with M2M-SP-ID format (absolute) according to TS-0001-7.2-1 Unstructured-CSE-relative -Resource-ID
			 */
62
			modulepar XSD.ID PX_SP_ID := "//idcc.com";
63 64 65 66

			/**
			 * @desc AE-ID with privileges to CREATE at the IUT CSEBase with AE-ID-Stem format (relative) according to TS-0001-7.2-1
			 */	
67
			modulepar XSD.ID PX_SUPER_AE_ID				:= "CsuperAE1";
68 69 70 71
	
			/**
			 * @desc CSE-ID with privileges to CREATE at the IUT CSEBase with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
			 */	
72
			modulepar XSD.ID PX_SUPER_CSE_ID				:= "admin:admin";	
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
73 74 75 76

			/**
			 * @desc Allowed AE-IDs starting with C 
			 */			
77
			modulepar XSD.IDREFS PX_ALLOWED_C_AE_IDS := {"C-AllowedAeId"};
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
78 79 80 81

			/**
			 * @desc Not allowed AE-IDs starting with C 
			 */			
82
			modulepar XSD.IDREFS PX_NOT_ALLOWED_C_AE_IDS := {"C-NotAllowedAeId"};
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
83 84 85 86

			/**
			 * @desc Allowed AE-IDs starting with S 
			 */			
87
			modulepar XSD.IDREFS PX_ALLOWED_S_AE_IDS := {"S-AllowedAeId"};
88
			
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
89 90 91
			/**
			 * @desc Not allowed AE-IDs starting with S 
			 */			
92
			modulepar XSD.IDREFS PX_NOT_ALLOWED_S_AE_IDS := {"S-NotAllowedAeId"};
93
			
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
94 95 96
			/**
			 * @desc Not allowed App-ID 
			 */			
97 98
			modulepar XSD.ID PX_NOT_ALLOWED_APP_ID := "NotAllowedAppId";
			
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
99 100 101
			/**
			 * @desc Addressing method to use during test execution 
			 */			
102 103
			modulepar AddressingMethod PX_ADDRESSING_METHOD := e_hierarchical;
	
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
104 105 106
			/**
			 * @desc Primitive scope to use during test execution 
			 */			
107
			modulepar PrimitiveScope PX_PRIMITIVE_SCOPE 	:= e_cseRelative;
108 109
			
			/**
110 111 112 113 114 115 116 117 118 119 120 121 122 123
			 * @desc Test System settings
			 */
			modulepar TestSystemSettingsDesc PX_TS_SETTINGS := {
				AE1 := {																									// AE1 component settings
					mcaPort := {
						binding := {
							httpBindingDesc := {
									bindingProtocol := e_http,
									bindingDesc := {
										tsAddress  := "192.168.56.102",
										remotePort := 9011,														// SUT CoAP/HTTP port
										localPort  := 3131,														// Test Adapter client port (for debug purpose only)
										sutAddress := omit
									}
124
							}
125
						},
126 127
						serialization := e_xml
					},
128 129 130 131 132 133 134
					mcaPortIn := {
						binding := {
							httpBindingDesc := {
								bindingProtocol := e_http,
								bindingDesc := {
									tsAddress  := "192.168.56.102",
									remotePort := omit,
Yann Garcia's avatar
Yann Garcia committed
135
									localPort  := 3141,															// Test Adapter listener port (AeSimu acts as server)
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
									sutAddress := omit
								}
							}
						},
						serialization := e_xml
					}
				},
				AE2 := {																									// AE2 component settings
					mcaPort := {
						binding := {
							coapBindingDesc := {
									bindingProtocol := e_coap,
									bindingDesc := {
										tsAddress  := "192.168.56.102",
										remotePort := 9010,														// SUT CoAP/HTTP port
										localPort  := 3132,														// Test Adapter client port (for debug purpose only)
										sutAddress := omit
									}
154
							}
155
						},
156 157
						serialization := e_xml
					},
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
					mcaPortIn := {
						binding := {
							coapBindingDesc := {
								bindingProtocol := e_coap,
								bindingDesc := {
									tsAddress  := "192.168.56.102",
									remotePort := omit,
									localPort  := 3142,														// Test Adapter listener port (AeSimu acts as server)
									sutAddress := omit
								}
							}
						},
						serialization := e_xml
					}
				},
				CSE1 := {																								// CSE1 component settings
					mcaPort := {
						binding := {
							coapBindingDesc := {
177 178 179 180 181 182
								bindingProtocol := e_coap,
								bindingDesc := {
									tsAddress := "192.168.56.102",
									remotePort:= 9010,
									localPort := 3031,
									sutAddress := omit
183
								}
184
							}
185
						},
186 187
						serialization := e_xml
					},
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
					mcaPortIn := {
						binding := {
							coapBindingDesc := {
								bindingProtocol := e_coap,
								bindingDesc := {
									tsAddress := "192.168.56.102",
									remotePort:= omit,
									localPort  := 3041,
									sutAddress := omit
								}
							}
						},
						serialization := e_xml
					},
					mccPort := {
						binding := {
							httpBindingDesc := {
205 206 207 208 209
								bindingProtocol := e_http,
								bindingDesc := {
									tsAddress := "192.168.56.102",
									remotePort:= 9011,
									localPort := 4031,
210 211
									sutAddress := omit
								}
212
							}
213
						},
214 215
						serialization := e_xml
					},
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
					mccPortIn := {
						binding := {
							coapBindingDesc := {
								bindingProtocol := e_coap ,
								bindingDesc := {
									tsAddress := "192.168.56.102",
									remotePort:= omit,
									localPort  := 4041,
									sutAddress := omit
								}
							}
						},
						serialization := e_xml
					}
				},
				SUT := { sutAddress := "192.168.56.103" },
				UT := omit
			};
234
			
235 236 237 238 239
			modulepar charstring PX_WS_PROTOCOL    := "oneM2M.R2.0.xml";
			modulepar charstring PX_HOSTING_CSE_ID := "CSE-Dekra-ID";
			modulepar charstring PX_CREDENTIAL_ID  := "admin:admin";
			modulepar charstring PX_REQUEST_URI    := "/";
			    
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
240 241 242
			/**
			 * @desc Namespace composed of "prefix" = "xml namespace" to use during test execution 
			 */			
243 244
			modulepar charstring PX_XML_NAMESPACE 			:= "m2m=""http://www.onem2m.org/xml/protocols""";
			
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
245 246 247
			/**
			 * @desc Character to indicate "all originators" for AccessControlOriginators element 
			 */			
248
			modulepar ListOfURIs PX_ACOR 					:= {"all"};
249
			
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
250 251 252
			/**
			 * @desc Time given for configuring IUT when required (i.e. when UT not implemented) 
			 */			
253
			modulepar float PX_TCONFIG_IUT					:= 10.0;
254
			
255 256 257
		}
		
		group TesterParameters {
258
	
259 260 261 262 263
			/**
			 * @desc Test System CSE1 Name
			 */	
			modulepar XSD.ID PX_CSE1_NAME := "CSE1_NAME";
		
264 265 266
			/**
			 * @desc Test System CSE1-ID with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
			 */		
267 268 269 270 271 272
			modulepar XSD.ID PX_CSE1_ID := "/CSE1_ID";
			
			/**
			 * @desc Test System CSE1 resource ID with Unstructured-CSE-relative-Resource-ID (relative) format according to TS-0001-7.2-1
			 */			
			modulepar XSD.ID PX_CSE1_RESOURCE_ID	:= "CSE1_RESOURCE_ID";
273 274 275 276 277
			
			/**
			 * @desc CSE1 Supported resource type
			 */	
			modulepar ResourceTypeList_1 PX_CSE1_SRT := {int1, int2, int3, int16};
278 279 280 281 282
			 
			/**
			 * @desc Test System M2M-SP1-ID with M2M-SP-ID format (absolute) according to TS-0001-7.2-1 Unstructured-CSE-relative -Resource-ID
			 */
			modulepar XSD.ID PX_SP1_ID := "//onem2m.org";
283 284 285 286 287
		
			/**
			 * @desc Test System AE1-ID with AE-ID-Stem format (relative) according to TS-0001-7.2-1
			 */			
			modulepar XSD.ID PX_AE1_ID_STEM				:= "";
288

289 290 291 292 293 294 295 296 297
			/**
			 * @desc Test System AE2-ID with AE-ID-Stem format (relative) according to TS-0001-7.2-1
			 */		
			modulepar XSD.ID PX_AE2_ID_STEM				:= "";
			
			/**
			 * @desc Test System APP-ID with App-ID format according to TS-0001-7.2-1
			 */		
			modulepar XSD.ID PX_APP_ID 					:= "NMyAppId";
298

299 300 301 302
		}
		
		group ExecutionParameters {
		
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
303 304 305
			/**
			 * @desc Resources to be deleted by TC_DELETE_RESOURCES 
			 */			
306
			modulepar XSD.IDREFS PX_RESOURCES_TO_BE_DELETED := { "MyAe", "MyAccessControlPolicyResource", "SubscriptionVerificationAcp", "MyAcp", "MyRemoteCSEResource" };
307
	
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
308 309 310
			/**
			 * @desc To enable run postamble (for debugging) 
			 */			
311 312
			modulepar boolean PX_RUN_POSTAMBLE 				:= true;		
		}
313
	
314
	//constant parameters for LOC  
315
	modulepar LocationTargetID PX_LOCATION_TARGET_ID				:= {alt_ := "{LOCATION-TARGET-ID}"}; //SUPPOSE TO BE RECEIVED FROM LOCATION SERVER
316 317
	modulepar XSD.AnyURI PX_LOCATION_SERVER_ADDRESS		:= "{LOCATION-SERVER-ADDRESS}";
	
oneM2MTester Develop Team's avatar
oneM2MTester Develop Team committed
318
	modulepar charstring PX_LOCATION_UPDATE_PERIOD			:= "PT10M10S" ;//10 Minute 10 Seconds
319
	modulepar charstring PX_LOCATION_CONTAINER_NAME		:= "myLoContainer";
320
	
321
	modulepar Labels PX_LABELS := {"VALUE_1"}; 	
322
	modulepar boolean PX_IS_LOC_CONTAINER	:= false;//default //set it to true when the container is created to store location information
323
	
324
	modulepar PoaList PX_POA := {""};
325
	modulepar ResourceTypeList_1 PX_SRT := {int1, int2, int3, int4};
326
	
327
}  // end of module
328