OneM2M_Pixits.ttcn 9.69 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
			 * @desc Test System settings
			 */
112 113 114 115
			modulepar AeSimuComponentDesc PX_TS_AE1 := { // AE1 component settings
				mcaPort := {
					binding := {
						coapBindingDesc := {
116
								bindingProtocol := e_coap,
117 118
								bindingDesc := {
									tsAddress  := "192.168.56.102",
119 120
									remotePort := 9010,														// SUT CoAP/HTTP port
									localPort  := 3031,														// Test Adapter client port (for debug purpose only)
121
									sutAddress := "192.168.56.103"
122
								}
123 124 125
						}
					},
					serialization := e_xml
126
				},
127 128 129 130 131 132 133 134 135
				mcaPortIn := {
					binding := {
						coapBindingDesc := {
							bindingProtocol := e_coap,
							bindingDesc := {
								tsAddress  := "192.168.56.102",
								remotePort := 9010,
								localPort  := 3041,															// Test Adapter listener port (AeSimu acts as server)
								sutAddress := "192.168.56.103"
136
							}
137
						}
138
					},
139 140 141 142 143 144 145
					serialization := e_xml
				}
			};
			modulepar AeSimuComponentDesc PX_TS_AE2 := { // AE2 component settings
				mcaPort := {
					binding := {
						coapBindingDesc := {
146 147 148
								bindingProtocol := e_coap,
								bindingDesc := {
									tsAddress  := "192.168.56.102",
149 150
									remotePort := 9010,														// SUT CoAP/HTTP port
									localPort  := 3032,														// Test Adapter client port (for debug purpose only)
151
									sutAddress := "192.168.56.103"
152
								}
153 154 155
						}
					},
					serialization := e_xml
156
				},
157 158 159 160 161 162 163 164 165
				mcaPortIn := {
					binding := {
						coapBindingDesc := {
							bindingProtocol := e_coap,
							bindingDesc := {
								tsAddress  := "192.168.56.102",
								remotePort := omit,
								localPort  := 3042,														// Test Adapter listener port (AeSimu acts as server)
								sutAddress := "192.168.56.103"
166
							}
167
						}
168
					},
169 170 171 172 173 174 175 176 177 178 179 180 181
					serialization := e_xml
				}
			};
			modulepar CseSimuComponentDesc PX_TS_CSE1 := { // CSE1 component settings
				mcaPort := {
					binding := {
						coapBindingDesc := {
							bindingProtocol := e_coap,
							bindingDesc := {
								tsAddress := "192.168.56.102",
								remotePort:= 9010,
								localPort := 3131,
								sutAddress := "192.168.56.103"
182
							}
183
						}
184
					},
185 186 187 188 189 190 191 192 193 194 195
					serialization := e_xml
				},
				mcaPortIn := {
					binding := {
						coapBindingDesc := {
							bindingProtocol := e_coap,
							bindingDesc := {
								tsAddress := "192.168.56.102",
								remotePort:= omit,
								localPort  := 3141,
								sutAddress := "192.168.56.103"
196
							}
197
						}
198
					},
199 200 201 202 203 204 205 206 207 208 209
					serialization := e_xml
				},
				mccPort := {
					binding := {
						httpBindingDesc := {
							bindingProtocol := e_http,
							bindingDesc := {
								tsAddress := "192.168.56.102",
								remotePort:= 9011,
								localPort := 4131,
								sutAddress := "192.168.56.103"
210
							}
211 212 213
						}
					},
					serialization := e_xml
214
				},
215 216 217 218 219 220 221 222 223 224 225 226 227 228
				mccPortIn := {
					binding := {
						httpBindingDesc := {
							bindingProtocol := e_http ,
							bindingDesc := {
								tsAddress := "192.168.56.102",
								remotePort:= 9011,
								localPort  := 4141,
								sutAddress := "192.168.56.103"
							}
						}
					},
					serialization := e_xml
				}
229
			};
230
			modulepar UtDesc PX_TS_UT := { url := "http://192.168.55.103:43000/" };
231
			
232 233 234 235 236
			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
237 238 239
			/**
			 * @desc Namespace composed of "prefix" = "xml namespace" to use during test execution 
			 */			
240 241
			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
242 243 244
			/**
			 * @desc Character to indicate "all originators" for AccessControlOriginators element 
			 */			
245
			modulepar ListOfURIs PX_ACOR 					:= {"all"};
246
			
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
247 248 249
			/**
			 * @desc Time given for configuring IUT when required (i.e. when UT not implemented) 
			 */			
250
			modulepar float PX_TCONFIG_IUT					:= 10.0;
251
			
252 253 254
		}
		
		group TesterParameters {
255
	
256 257 258 259 260
			/**
			 * @desc Test System CSE1 Name
			 */	
			modulepar XSD.ID PX_CSE1_NAME := "CSE1_NAME";
		
261 262 263
			/**
			 * @desc Test System CSE1-ID with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
			 */		
264 265 266 267 268 269
			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";
270 271 272 273 274
			
			/**
			 * @desc CSE1 Supported resource type
			 */	
			modulepar ResourceTypeList_1 PX_CSE1_SRT := {int1, int2, int3, int16};
275 276 277 278 279
			 
			/**
			 * @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";
280 281 282 283 284
		
			/**
			 * @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				:= "";
285

286 287 288 289 290 291 292 293 294
			/**
			 * @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";
295

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