OneM2M_Pixits.ttcn 9.08 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
 *  @author     oneM2M/ETSI
9 10 11 12 13 14
 *  @desc       Module containing Pixits for oneM2M
 *
 */
module OneM2M_Pixits {
	
	import from XSD all;
15
	import from OneM2M_Types all;
16
	
17
	group TestAdapterParameters {}
18 19

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

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

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

			/**
			 * @desc AE-ID with privileges to CREATE at the IUT CSEBase with AE-ID-Stem format (relative) according to TS-0001-7.2-1
			 */	
65
			modulepar XSD.ID PX_SUPER_AE_ID				:= "admin:admin";
66 67 68 69
	
			/**
			 * @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
			 */	
70
			modulepar XSD.ID PX_SUPER_CSE_ID				:= "admin:admin";	
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
71 72 73 74

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

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

			/**
			 * @desc Allowed AE-IDs starting with S 
			 */			
85
			modulepar XSD.IDREFS PX_ALLOWED_S_AE_IDS := {"S-AllowedAeId"};
86
			
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
87 88 89
			/**
			 * @desc Not allowed AE-IDs starting with S 
			 */			
90
			modulepar XSD.IDREFS PX_NOT_ALLOWED_S_AE_IDS := {"S-NotAllowedAeId"};
91
			
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
92 93 94
			/**
			 * @desc Not allowed App-ID 
			 */			
95 96
			modulepar XSD.ID PX_NOT_ALLOWED_APP_ID := "NotAllowedAppId";
			
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
97 98 99
			/**
			 * @desc Addressing method to use during test execution 
			 */			
100 101
			modulepar AddressingMethod PX_ADDRESSING_METHOD := e_hierarchical;
	
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
102 103 104
			/**
			 * @desc Primitive scope to use during test execution 
			 */			
105
			modulepar PrimitiveScope PX_PRIMITIVE_SCOPE 	:= e_cseRelative;
106
			
107
			//WebSocket parameters
108 109
			modulepar charstring PX_WS_PROTOCOL    := "oneM2M.R2.0.xml";
			modulepar charstring PX_REQUEST_URI    := "/";
110 111 112 113
			//MQTT parameters
			modulepar charstring PX_HOSTING_CSE_ID := "CSE-ID";
			modulepar charstring PX_CREDENTIAL_ID  := "admin:admin";
			
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
			    
			/**
			 * @desc Namespace composed of "prefix" = "xml namespace" to use during test execution 
			 */			
			modulepar charstring PX_XML_NAMESPACE 			:= "m2m=""http://www.onem2m.org/xml/protocols""";
			
			/**
			 * @desc Character to indicate "all originators" for AccessControlOriginators element 
			 */			
			modulepar ListOfURIs PX_ACOR 					:= {"all"};
			
			/**
			 * @desc Time given for configuring IUT when required (i.e. when UT not implemented) 
			 */			
			modulepar float PX_TCONFIG_IUT					:= 10.0;
			
130 131 132 133 134
			/**
			 * @desc Release version of IUT to be used. Any available release backwards from actual ATS release till 2a
			 */			
			modulepar ReleaseVersion PX_RELEASE_VERSION		:= "2a";
			
135
			modulepar ResourceTypeList_1 PX_SRT := {int1, int2, int3, int4};
136
			
137 138 139 140 141 142 143 144 145
			group flexContainerContainerDefinitions {
				/**
				 * @desc These contain the identifier reference (URI) to the <flexContainer> schema definition which is used by the CSE to validate the syntax of the <flexContainer> resource 
				 */			
				modulepar XSD.AnyURI PX_CND_GENERIC_INTERWORKING_SERVICE := "urn:m2m:CDT-gis-v2_21_0.xsd";
			
				modulepar XSD.AnyURI PX_CND_GENERIC_INTERWORKING_OPERATION_INSTANCE := "urn:m2m:CDT-gio-v2_21_0.xsd";
			
			}
146 147 148 149
		}
		
		group TesterParameters {
	
150
			/**
151 152
			 * @desc Test System settings
			 */
153
			modulepar AeSimuComponentDesc PX_TS_AE1 := { // AE1 component settings
154 155
				aeIdStem := "",
				appId := "NMyApp1Id",
156 157
				mcaPort := {
					binding := {
158 159
						httpBindingDesc := {
								bindingProtocol := e_http,
160
								bindingDesc := {
161 162
									tsAddress  := "127.0.0.1",
									remotePort := 8080,														// SUT CoAP/HTTP port
163
									localPort  := 3031,														// Test Adapter client port (for debug purpose only)
164
									sutAddress := "127.0.0.1"
165
								}
166 167 168
						}
					},
					serialization := e_xml
169
				},
170 171
				mcaPortIn := {
					binding := {
172 173
						httpBindingDesc := {
							bindingProtocol := e_http,
174
							bindingDesc := {
175
								tsAddress  := "127.0.0.1",
176
								remotePort := omit,
177
								localPort  := 3041,															// Test Adapter listener port (AeSimu acts as server)
178
								sutAddress := "127.0.0.1"
179
							}
180
						}
181
					},
182 183 184 185
					serialization := e_xml
				}
			};
			modulepar AeSimuComponentDesc PX_TS_AE2 := { // AE2 component settings
186 187
				aeIdStem := "",
				appId := "NMyApp2Id",
188 189
				mcaPort := {
					binding := {
190 191
						httpBindingDesc := {
								bindingProtocol := e_http,
192
								bindingDesc := {
193 194
									tsAddress  := "127.0.0.1",
									remotePort := 8080,														// SUT CoAP/HTTP port
195
									localPort  := 3032,														// Test Adapter client port (for debug purpose only)
196
									sutAddress := "127.0.0.1"
197
								}
198 199 200
						}
					},
					serialization := e_xml
201
				},
202 203
				mcaPortIn := {
					binding := {
204 205
						httpBindingDesc := {
							bindingProtocol := e_http,
206
							bindingDesc := {
207
								tsAddress  := "127.0.0.1",
208 209
								remotePort := omit,
								localPort  := 3042,														// Test Adapter listener port (AeSimu acts as server)
210
								sutAddress := "127.0.0.1"
211
							}
212
						}
213
					},
214 215 216 217
					serialization := e_xml
				}
			};
			modulepar CseSimuComponentDesc PX_TS_CSE1 := { // CSE1 component settings
218 219 220 221 222
				cseName := "CSE1_NAME",
				cseId := "/CSE1_ID",
				cseResourceId := "CSE1_RESOURCE_ID",
				spId := "//onem2m.org",
				supportedResourceType := {int1, int2, int3, int16},
223 224
				mcaPort := {
					binding := {
225 226
						httpBindingDesc := {
							bindingProtocol := e_http,
227
							bindingDesc := {
228 229
								tsAddress := "127.0.0.1",
								remotePort:= 8080,
230
								localPort := 3131,
231
								sutAddress := "127.0.0.1"
232
							}
233
						}
234
					},
235 236 237 238
					serialization := e_xml
				},
				mcaPortIn := {
					binding := {
239 240
						httpBindingDesc := {
							bindingProtocol := e_http,
241
							bindingDesc := {
242
								tsAddress := "127.0.0.1",
243
								remotePort:= omit,
244
								localPort  := 3141,
245
								sutAddress := "127.0.0.1"
246
							}
247
						}
248
					},
249 250 251 252 253 254 255
					serialization := e_xml
				},
				mccPort := {
					binding := {
						httpBindingDesc := {
							bindingProtocol := e_http,
							bindingDesc := {
256 257
								tsAddress := "127.0.0.1",
								remotePort:= 8080,
258
								localPort := 4131,
259
								sutAddress := "127.0.0.1"
260
							}
261 262 263
						}
					},
					serialization := e_xml
264
				},
265 266 267 268 269
				mccPortIn := {
					binding := {
						httpBindingDesc := {
							bindingProtocol := e_http ,
							bindingDesc := {
270
								tsAddress := "127.0.0.1",
271
								remotePort:= omit,
272
								localPort  := 4141,
273
								sutAddress := "127.0.0.1"
274 275 276 277 278
							}
						}
					},
					serialization := e_xml
				}
279
			};
280
			
281
			modulepar UtDesc PX_TS_UT := { url := "http://127.0.0.1:43000/" };
282
					
283 284 285 286
		}
		
		group ExecutionParameters {
		
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
287 288 289
			/**
			 * @desc Resources to be deleted by TC_DELETE_RESOURCES 
			 */			
290
			modulepar XSD.IDREFS PX_RESOURCES_TO_BE_DELETED := { "MyAe", "MyAccessControlPolicyResource", "SubscriptionVerificationAcp", "MyAcp", "MyRemoteCSEResource" };
291
	
Miguel Angel Reina Ortega's avatar
Fix #41  
Miguel Angel Reina Ortega committed
292 293 294
			/**
			 * @desc To enable run postamble (for debugging) 
			 */			
295 296
			modulepar boolean PX_RUN_POSTAMBLE 				:= true;		
		}
297
	
298
	//constant parameters for LOC  
299
	modulepar LocationTargetID PX_LOCATION_TARGET_ID				:= {alt_ := "{LOCATION-TARGET-ID}"}; //SUPPOSE TO BE RECEIVED FROM LOCATION SERVER
300 301
	modulepar XSD.AnyURI PX_LOCATION_SERVER_ADDRESS		:= "{LOCATION-SERVER-ADDRESS}";
	
oneM2MTester Develop Team's avatar
oneM2MTester Develop Team committed
302
	modulepar charstring PX_LOCATION_UPDATE_PERIOD			:= "PT10M10S" ;//10 Minute 10 Seconds
303
	modulepar charstring PX_LOCATION_CONTAINER_NAME		:= "myLoContainer";
304
	
305
	modulepar Labels PX_LABELS := {"VALUE_1"}; 	
306
	modulepar boolean PX_IS_LOC_CONTAINER	:= false;//default //set it to true when the container is created to store location information
307
	
308
	
309
}  // end of module
310