cryptoservices/filebasedcertificateandkeystores/test/tcertapps/scripts/apipolicing.txt
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 // apipolicing.txt
       
     2 //
       
     3 // Test API policing of filetokens cert apps store
       
     4 
       
     5 //! @file
       
     6 //! @SYMTestCaseID Sec-tcertapps-apipolicing-1
       
     7 //! @SYMTestCaseDesc Initialise
       
     8 //! @SYMREQ REQ3466
       
     9 //! @SYMTestCasePriority High
       
    10 //! @SYMTestExpectedResults KErrNone
       
    11 <action>
       
    12 	<actionname>Initialise</actionname>
       
    13 	<actiontype>InitManager</actiontype>
       
    14 	<actionbody>
       
    15 	</actionbody>
       
    16 	<actionresult>
       
    17 		<return>KErrNone</return>
       
    18 	</actionresult>
       
    19 </action>
       
    20 
       
    21 //! @file
       
    22 //! @SYMTestCaseID Sec-tcertapps-apipolicing-2
       
    23 //! @SYMTestCaseDesc Clearing existing applications
       
    24 //! @SYMREQ REQ3466
       
    25 //! @SYMTestCasePriority High
       
    26 //! @SYMTestExpectedResults KErrNone
       
    27 <action>
       
    28 	<actionname>Clearing existing applications</actionname>
       
    29 	<actiontype>ClearAllApps</actiontype>
       
    30 	<actionbody>
       
    31 	</actionbody>
       
    32 	<actionresult>
       
    33 		<return>KErrNone</return>
       
    34 	</actionresult>
       
    35 </action>
       
    36 
       
    37 //! @file
       
    38 //! @SYMTestCaseID Sec-tcertapps-apipolicing-3
       
    39 //! @SYMTestCaseDesc Destroy the manager
       
    40 //! @SYMREQ REQ3466
       
    41 //! @SYMTestCasePriority High
       
    42 //! @SYMTestExpectedResults KErrNone
       
    43 <action>
       
    44 	<actionname>Destroy the manager</actionname>
       
    45 	<actiontype>DestroyManager</actiontype>
       
    46 	<actionbody>
       
    47 	</actionbody>
       
    48 	<actionresult>
       
    49 		<return>KErrNone</return>
       
    50 	</actionresult>
       
    51 </action>
       
    52 
       
    53 //! @file
       
    54 //! @SYMTestCaseID Sec-tcertapps-apipolicing-4
       
    55 //! @SYMTestCaseDesc Test add protected by WriteDeviceData
       
    56 //! @SYMREQ REQ3466
       
    57 //! @SYMTestCasePriority High
       
    58 //! @SYMTestExpectedResults KErrNone
       
    59 <action>
       
    60 	<actionname>Test add protected by WriteDeviceData</actionname>
       
    61 	<actiontype>policytest</actiontype>
       
    62 	<actionbody>
       
    63 		<testexe>t_certapps.exe</testexe>
       
    64 		<excludedcapabilities>
       
    65 			<capability>TCB</capability>
       
    66 		</excludedcapabilities>
       
    67 		<policy>
       
    68 			<capability>WriteDeviceData</capability>
       
    69 		</policy>
       
    70 
       
    71 		<preactions>
       
    72 			<action>
       
    73 				<actionname>Initialise</actionname>
       
    74 				<actiontype>InitManager</actiontype>
       
    75 				<actionbody>
       
    76 				</actionbody>
       
    77 				<actionresult>
       
    78 					<return>KErrNone</return>
       
    79 				</actionresult>
       
    80 			</action>
       
    81 		</preactions>
       
    82 
       
    83 		<passactions>
       
    84 			<action>
       
    85 				<actionname>Add applications</actionname>
       
    86 				<actiontype>AddApp</actiontype>
       
    87 				<actionbody>
       
    88 					<uid>24601</uid><appname>My application 1</appname>
       
    89 					<uid>642828</uid><appname>My application 2</appname>
       
    90 					<uid>12345</uid><appname>My application 3</appname>
       
    91 					<uid>10</uid><appname>My application 4</appname>
       
    92 					<uid>12</uid><appname>My application 5</appname>
       
    93 				</actionbody>
       
    94 				<actionresult>
       
    95 					<return>KErrNone</return>
       
    96 				</actionresult>
       
    97 			</action>
       
    98 
       
    99 			<action>
       
   100 				<actionname>Getting the application list</actionname>
       
   101 				<actiontype>GetApplications</actiontype>
       
   102 				<actionbody>
       
   103 					<uid>24601</uid><appname>My application 1</appname>
       
   104 					<uid>642828</uid><appname>My application 2</appname>
       
   105 					<uid>12345</uid><appname>My application 3</appname>
       
   106 					<uid>10</uid><appname>My application 4</appname>
       
   107 					<uid>12</uid><appname>My application 5</appname>
       
   108 				</actionbody>
       
   109 				<actionresult>
       
   110 					<return>KErrNone</return>
       
   111 				</actionresult>
       
   112 			</action>
       
   113 		</passactions>
       
   114 
       
   115 		<failactions>
       
   116 			<action>
       
   117 				<actionname>Add applications</actionname>
       
   118 				<actiontype>AddApp</actiontype>
       
   119 				<actionbody>
       
   120 					<uid>24601</uid><appname>My application 1</appname>
       
   121 					<uid>642828</uid><appname>My application 2</appname>
       
   122 					<uid>12345</uid><appname>My application 3</appname>
       
   123 					<uid>10</uid><appname>My application 4</appname>
       
   124 					<uid>12</uid><appname>My application 5</appname>
       
   125 				</actionbody>
       
   126 				<actionresult>
       
   127 					<return>KErrPermissionDenied</return>
       
   128 				</actionresult>
       
   129 			</action>
       
   130 
       
   131 			<action>
       
   132 				<actionname>Getting the application list</actionname>
       
   133 				<actiontype>GetApplications</actiontype>
       
   134 				<actionbody>
       
   135 				</actionbody>
       
   136 				<actionresult>
       
   137 					<return>KErrNone</return>
       
   138 				</actionresult>
       
   139 			</action>
       
   140 		</failactions>
       
   141 
       
   142 		<postactions>
       
   143 			<action>
       
   144 				<actionname>Destroy the manager</actionname>
       
   145 				<actiontype>DestroyManager</actiontype>
       
   146 				<actionbody></actionbody>
       
   147 				<actionresult>
       
   148 					<return>KErrNone</return>
       
   149 				</actionresult>
       
   150 			</action>
       
   151 		</postactions>
       
   152 	</actionbody>
       
   153 	<actionresult>
       
   154 		<return>KErrNone</return>
       
   155 	</actionresult>
       
   156 </action>
       
   157 
       
   158 //! @file
       
   159 //! @SYMTestCaseID Sec-tcertapps-apipolicing-5
       
   160 //! @SYMTestCaseDesc Test list not protected
       
   161 //! @SYMREQ REQ3466
       
   162 //! @SYMTestCasePriority High
       
   163 //! @SYMTestExpectedResults KErrNone
       
   164 <action>
       
   165 	<actionname>Test list not protected</actionname>
       
   166 	<actiontype>policytest</actiontype>
       
   167 	<actionbody>
       
   168 		<testexe>t_certapps.exe</testexe>
       
   169 		<excludedcapabilities>
       
   170 			<capability>TCB</capability>
       
   171 		</excludedcapabilities>
       
   172 		<policy>
       
   173 		</policy>
       
   174 
       
   175 		<preactions>
       
   176 			<action>
       
   177 				<actionname>Initialise</actionname>
       
   178 				<actiontype>InitManager</actiontype>
       
   179 				<actionbody>
       
   180 				</actionbody>
       
   181 				<actionresult>
       
   182 					<return>KErrNone</return>
       
   183 				</actionresult>
       
   184 			</action>
       
   185 		</preactions>
       
   186 
       
   187 		<passactions>
       
   188 			<action>
       
   189 				<actionname>Getting the application list</actionname>
       
   190 				<actiontype>GetApplications</actiontype>
       
   191 				<actionbody>
       
   192 					<uid>24601</uid><appname>My application 1</appname>
       
   193 					<uid>642828</uid><appname>My application 2</appname>
       
   194 					<uid>12345</uid><appname>My application 3</appname>
       
   195 					<uid>10</uid><appname>My application 4</appname>
       
   196 					<uid>12</uid><appname>My application 5</appname>
       
   197 				</actionbody>
       
   198 				<actionresult>
       
   199 					<return>KErrNone</return>
       
   200 				</actionresult>
       
   201 			</action>
       
   202 		</passactions>
       
   203 
       
   204 		<failactions>
       
   205 		</failactions>
       
   206 
       
   207 		<postactions>
       
   208 			<action>
       
   209 				<actionname>Destroy the manager</actionname>
       
   210 				<actiontype>DestroyManager</actiontype>
       
   211 				<actionbody></actionbody>
       
   212 				<actionresult>
       
   213 					<return>KErrNone</return>
       
   214 				</actionresult>
       
   215 			</action>
       
   216 		</postactions>
       
   217 	</actionbody>
       
   218 	<actionresult>
       
   219 		<return>KErrNone</return>
       
   220 	</actionresult>
       
   221 </action>
       
   222 
       
   223 //! @file
       
   224 //! @SYMTestCaseID Sec-tcertapps-apipolicing-6
       
   225 //! @SYMTestCaseDesc Test remove protected by WriteDeviceData
       
   226 //! @SYMREQ REQ3466
       
   227 //! @SYMTestCasePriority High
       
   228 //! @SYMTestExpectedResults KErrNone
       
   229 <action>
       
   230 	<actionname>Test remove protected by WriteDeviceData</actionname>
       
   231 	<actiontype>policytest</actiontype>
       
   232 	<actionbody>
       
   233 		<testexe>t_certapps.exe</testexe>
       
   234 		<excludedcapabilities>
       
   235 			<capability>TCB</capability>
       
   236 		</excludedcapabilities>
       
   237 		<policy>
       
   238 			<capability>WriteDeviceData</capability>
       
   239 		</policy>
       
   240 
       
   241 		<preactions>
       
   242 			<action>
       
   243 				<actionname>Initialise</actionname>
       
   244 				<actiontype>InitManager</actiontype>
       
   245 				<actionbody>
       
   246 				</actionbody>
       
   247 				<actionresult>
       
   248 					<return>KErrNone</return>
       
   249 				</actionresult>
       
   250 			</action>
       
   251 		</preactions>
       
   252 
       
   253 		<passactions>
       
   254 			<action>
       
   255 				<actionname>Remove application UID 24601</actionname>
       
   256 				<actiontype>RemoveApp</actiontype>
       
   257 				<actionbody>
       
   258 					<uid>24601</uid>
       
   259 				</actionbody>
       
   260 				<actionresult>
       
   261 					<return>KErrNone</return>
       
   262 				</actionresult>
       
   263 			</action>
       
   264 
       
   265 			<action>
       
   266 				<actionname>Getting the application list</actionname>
       
   267 				<actiontype>GetApplications</actiontype>
       
   268 				<actionbody>
       
   269 					<uid>642828</uid><appname>My application 2</appname>
       
   270 					<uid>12345</uid><appname>My application 3</appname>
       
   271 					<uid>10</uid><appname>My application 4</appname>
       
   272 					<uid>12</uid><appname>My application 5</appname>
       
   273 				</actionbody>
       
   274 				<actionresult>
       
   275 					<return>KErrNone</return>
       
   276 				</actionresult>
       
   277 			</action>
       
   278 		</passactions>
       
   279 
       
   280 		<failactions>
       
   281 			<action>
       
   282 				<actionname>Remove application UID 24601</actionname>
       
   283 				<actiontype>RemoveApp</actiontype>
       
   284 				<actionbody>
       
   285 					<uid>24601</uid>
       
   286 				</actionbody>
       
   287 				<actionresult>
       
   288 					<return>KErrPermissionDenied</return>
       
   289 				</actionresult>
       
   290 			</action>
       
   291 
       
   292 			<action>
       
   293 				<actionname>Getting the application list</actionname>
       
   294 				<actiontype>GetApplications</actiontype>
       
   295 				<actionbody>
       
   296 					<uid>24601</uid><appname>My application 1</appname>
       
   297 					<uid>642828</uid><appname>My application 2</appname>
       
   298 					<uid>12345</uid><appname>My application 3</appname>
       
   299 					<uid>10</uid><appname>My application 4</appname>
       
   300 					<uid>12</uid><appname>My application 5</appname>
       
   301 				</actionbody>
       
   302 				<actionresult>
       
   303 					<return>KErrNone</return>
       
   304 				</actionresult>
       
   305 			</action>
       
   306 		</failactions>
       
   307 
       
   308 		<postactions>
       
   309 			<action>
       
   310 				<actionname>Destroy the manager</actionname>
       
   311 				<actiontype>DestroyManager</actiontype>
       
   312 				<actionbody></actionbody>
       
   313 				<actionresult>
       
   314 					<return>KErrNone</return>
       
   315 				</actionresult>
       
   316 			</action>
       
   317 		</postactions>
       
   318 	</actionbody>
       
   319 	<actionresult>
       
   320 		<return>KErrNone</return>
       
   321 	</actionresult>
       
   322 </action>
       
   323 
       
   324 //! @file
       
   325 //! @SYMTestCaseID Sec-tcertapps-apipolicing-7
       
   326 //! @SYMTestCaseDesc Initialise
       
   327 //! @SYMREQ REQ3466
       
   328 //! @SYMTestCasePriority High
       
   329 //! @SYMTestExpectedResults KErrNone
       
   330 <action>
       
   331 	<actionname>Initialise</actionname>
       
   332 	<actiontype>InitManager</actiontype>
       
   333 	<actionbody>
       
   334 	</actionbody>
       
   335 	<actionresult>
       
   336 		<return>KErrNone</return>
       
   337 	</actionresult>
       
   338 </action>
       
   339 
       
   340 //! @file
       
   341 //! @SYMTestCaseID Sec-tcertapps-apipolicing-8
       
   342 //! @SYMTestCaseDesc Clearing existing applications
       
   343 //! @SYMREQ REQ3466
       
   344 //! @SYMTestCasePriority High
       
   345 //! @SYMTestExpectedResults KErrNone
       
   346 <action>
       
   347 	<actionname>Clearing existing applications</actionname>
       
   348 	<actiontype>ClearAllApps</actiontype>
       
   349 	<actionbody>
       
   350 	</actionbody>
       
   351 	<actionresult>
       
   352 		<return>KErrNone</return>
       
   353 	</actionresult>
       
   354 </action>
       
   355 
       
   356 //! @file
       
   357 //! @SYMTestCaseID Sec-tcertapps-apipolicing-9
       
   358 //! @SYMTestCaseDesc Destroy the manager
       
   359 //! @SYMREQ REQ3466
       
   360 //! @SYMTestCasePriority High
       
   361 //! @SYMTestExpectedResults KErrNone
       
   362 <action>
       
   363 	<actionname>Destroy the manager</actionname>
       
   364 	<actiontype>DestroyManager</actiontype>
       
   365 	<actionbody>
       
   366 	</actionbody>
       
   367 	<actionresult>
       
   368 		<return>KErrNone</return>
       
   369 	</actionresult>
       
   370 </action>