OneM2M_Pixits.ttcn 7.37 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
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
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
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
Miguel Angel Reina Ortega committed
39 40 41
			/**
			 * @desc IUT IP address and port 
			 */
42 43
			modulepar charstring PX_SUT_ADDRESS := "127.0.0.1:8080";
			
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
44 45 46
			/**
			 * @desc IUT Upper Tester interface support 
			 */
47 48
			modulepar boolean PX_UT_IMPLEMENTED := false;
			
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
			/**
			 * @desc IUT CSE Name
			 */	
			modulepar XSD.ID PX_CSE_NAME := "cseName";
		
			/**
			 * @desc IUT CSE-ID with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
			 */		
			modulepar XSD.ID PX_CSE_ID := "/cseId";
			
			/**
			 * @desc IUT CSE resource ID with Unstructured-CSE-relative-Resource-ID (relative) format according to TS-0001-7.2-1
			 */			
			modulepar XSD.ID PX_CSE_RESOURCE_ID	:= "cseResourceId";
			 
			/**
			 * @desc IUT M2M-SP-ID with M2M-SP-ID format (absolute) according to TS-0001-7.2-1 Unstructured-CSE-relative -Resource-ID
			 */
			modulepar XSD.ID PX_SP_ID := "//om2m.org";

			/**
			 * @desc AE-ID with privileges to CREATE at the IUT CSEBase with AE-ID-Stem format (relative) according to TS-0001-7.2-1
			 */	
			modulepar XSD.ID PX_SUPER_AE_ID				:= "admin:admin";
	
			/**
			 * @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
			 */	
			modulepar XSD.ID PX_SUPER_CSE_ID				:= "/admin:admin";	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
78 79 80 81

			/**
			 * @desc Allowed AE-IDs starting with C 
			 */			
82
			modulepar XSD.IDREFS PX_ALLOWED_C_AE_IDS := {"C-AllowedAeId"};
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
83 84 85 86

			/**
			 * @desc Not allowed AE-IDs starting with C 
			 */			
87
			modulepar XSD.IDREFS PX_NOT_ALLOWED_C_AE_IDS := {"C-NotAllowedAeId"};
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
88 89 90 91

			/**
			 * @desc Allowed AE-IDs starting with S 
			 */			
92
			modulepar XSD.IDREFS PX_ALLOWED_S_AE_IDS := {"S-AllowedAeId"};
93
			
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
94 95 96
			/**
			 * @desc Not allowed AE-IDs starting with S 
			 */			
97
			modulepar XSD.IDREFS PX_NOT_ALLOWED_S_AE_IDS := {"S-NotAllowedAeId"};
98
			
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
99 100 101
			/**
			 * @desc Not allowed App-ID 
			 */			
102 103
			modulepar XSD.ID PX_NOT_ALLOWED_APP_ID := "NotAllowedAppId";
			
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
104 105 106
			/**
			 * @desc Addressing method to use during test execution 
			 */			
107 108
			modulepar AddressingMethod PX_ADDRESSING_METHOD := e_hierarchical;
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
109 110 111
			/**
			 * @desc Primitive scope to use during test execution 
			 */			
112 113
			modulepar PrimitiveScope PX_PRIMITIVE_SCOPE 	:= e_cseRelative;
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
114 115 116
			/**
			 * @desc Serialization to use during test execution 
			 */			
117 118
			modulepar charstring PX_SERIALIZATION			:= "XML";
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
119 120 121
			/**
			 * @desc Protocolo binding to use during test execution 
			 */			
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
			//modulepar charstring PX_PROTOCOL_BINDING 		:= "HTTP";
			
			/**
			 * @desc Protocolo binding to use during test execution 
			 */			
			modulepar charstring PX_PROTOCOL_BINDING_CSE1 		:= "HTTP";
						
			/**
			 * @desc Protocolo binding to use during test execution 
			 */			
			modulepar charstring PX_PROTOCOL_BINDING_AE1 		:= "HTTP";
						
			/**
			 * @desc Protocolo binding to use during test execution 
			 */			
			modulepar charstring PX_PROTOCOL_BINDING_AE2 		:= "HTTP";		
138
			
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
139 140 141
			/**
			 * @desc Namespace composed of "prefix" = "xml namespace" to use during test execution 
			 */			
142 143
			modulepar charstring PX_XML_NAMESPACE 			:= "m2m=""http://www.onem2m.org/xml/protocols""";
			
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
144 145 146
			/**
			 * @desc Character to indicate "all originators" for AccessControlOriginators element 
			 */			
147
			modulepar ListOfURIs PX_ACOR 					:= {"all"};
148
			
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
149 150 151
			/**
			 * @desc Time given for configuring IUT when required (i.e. when UT not implemented) 
			 */			
152
			modulepar float PX_TCONFIG_IUT					:= 10.0;
153
						
154 155 156
		}
		
		group TesterParameters {
157
		
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
158 159 160
			/**
			 * @desc AE1 IP address and listening port 
			 */			
161
			modulepar charstring PX_AE1_ADDRESS				:= "127.0.0.1:3141";
162
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
163 164 165
			/**
			 * @desc AE2 IP address and listening port 
			 */			
166
			modulepar charstring PX_AE2_ADDRESS				:= "127.0.0.1:3142";
167
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
168 169 170
			/**
			 * @desc CSE1 IP address and listening port 
			 */			
171
			modulepar charstring PX_CSE1_ADDRESS			:= "127.0.0.1:4141";
172
	
173 174 175 176 177
			/**
			 * @desc Test System CSE1 Name
			 */	
			modulepar XSD.ID PX_CSE1_NAME := "CSE1_NAME";
		
178 179 180
			/**
			 * @desc Test System CSE1-ID with SP-relative-CSE-ID format (relative) according to TS-0001-7.2-1
			 */		
181 182 183 184 185 186
			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";
187 188 189 190 191
			
			/**
			 * @desc CSE1 Supported resource type
			 */	
			modulepar ResourceTypeList_1 PX_CSE1_SRT := {int1, int2, int3, int16};
192 193 194 195 196
			 
			/**
			 * @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";
197 198 199 200 201
		
			/**
			 * @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				:= "";
202

203 204 205 206 207 208 209 210 211
			/**
			 * @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";
212

213 214 215 216
		}
		
		group ExecutionParameters {
		
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
217 218 219
			/**
			 * @desc Resources to be deleted by TC_DELETE_RESOURCES 
			 */			
220
			modulepar XSD.IDREFS PX_RESOURCES_TO_BE_DELETED := { "MyAe", "MyAccessControlPolicyResource", "SubscriptionVerificationAcp", "MyAcp", "MyRemoteCSEResource" };
221
	
Miguel Angel Reina Ortega's avatar
Miguel Angel Reina Ortega committed
222 223 224
			/**
			 * @desc To enable run postamble (for debugging) 
			 */			
225 226
			modulepar boolean PX_RUN_POSTAMBLE 				:= true;		
		}
227
	
228
	//constant parameters for LOC  
229
	modulepar XSD.Token PX_LOCATION_TARGET_ID				:= "{LOCATION-TARGET-ID}"; //SUPPOSE TO BE RECEIVED FROM LOCATION SERVER
230 231
	modulepar XSD.AnyURI PX_LOCATION_SERVER_ADDRESS		:= "{LOCATION-SERVER-ADDRESS}";
	
232
	modulepar charstring PX_LOCATION_UPDATE_PERIOD			:= "PT10M10S" ;//10 Minute 10 Seconds
233
	modulepar charstring PX_LOCATION_CONTAINER_NAME		:= "myLoContainer";
234
	
235
	modulepar Labels PX_LABELS := {"VALUE_1"}; 	
236
	modulepar boolean PX_IS_LOC_CONTAINER	:= false;//default //set it to true when the container is created to store location information
237
	
238
	modulepar PoaList PX_POA := {""};
239
	modulepar ResourceTypeList_1 PX_SRT := {int1, int2, int3, int4};
240
	
241
}  // end of module
242