os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/filecertstore_servoom.txt
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tcertstore/scripts/filecertstore_servoom.txt	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,504 @@
     1.4 +//
     1.5 +// Server-side OOM tests for filetokens cert store, run in configuration 1
     1.6 +//
     1.7 +
     1.8 +// Setup ///////////////////////////////////////////////////////////////////////
     1.9 +
    1.10 +<action>
    1.11 +	<actionname>No Test,Opening a CertificateAppInfoManager</actionname>
    1.12 +	<actiontype>initappmanager</actiontype>
    1.13 +	<actionbody></actionbody>
    1.14 +	<actionresult>
    1.15 +		<return>KErrNone</return>
    1.16 +	</actionresult>
    1.17 +</action>
    1.18 +
    1.19 +<action>
    1.20 +	<actionname>No Test,Adding client A1</actionname>
    1.21 +	<actiontype>addclient</actiontype>
    1.22 +	<actionbody>
    1.23 +		<name>A1</name>
    1.24 +		<uid>1</uid>
    1.25 +	</actionbody>
    1.26 +	<actionresult>
    1.27 +		<return>KErrNone</return>
    1.28 +	</actionresult>
    1.29 +</action>
    1.30 +
    1.31 +<action>
    1.32 +	<actionname>No Test,Adding client A2</actionname>
    1.33 +	<actiontype>addclient</actiontype>
    1.34 +	<actionbody>
    1.35 +		<name>A2</name>
    1.36 +		<uid>2</uid>
    1.37 +	</actionbody>
    1.38 +	<actionresult>
    1.39 +		<return>KErrNone</return>
    1.40 +	</actionresult>
    1.41 +</action>
    1.42 +
    1.43 +<action>
    1.44 +	<actionname>No Test,Adding client A3</actionname>
    1.45 +	<actiontype>addclient</actiontype>
    1.46 +	<actionbody>
    1.47 +		<name>A3</name>
    1.48 +		<uid>3</uid>
    1.49 +	</actionbody>
    1.50 +	<actionresult>
    1.51 +		<return>KErrNone</return>
    1.52 +	</actionresult>
    1.53 +</action>
    1.54 +
    1.55 +<action>
    1.56 +	<actionname>No Test,Adding client A4</actionname>
    1.57 +	<actiontype>addclient</actiontype>
    1.58 +	<actionbody>
    1.59 +		<name>A4</name>
    1.60 +		<uid>4</uid>
    1.61 +	</actionbody>
    1.62 +	<actionresult>
    1.63 +		<return>KErrNone</return>
    1.64 +	</actionresult>
    1.65 +</action>
    1.66 +
    1.67 +<action>
    1.68 +	<actionname>No Test,Deleting the CertificateAppInfoManager</actionname>
    1.69 +	<actiontype>deleteappmanager</actiontype>
    1.70 +	<actionbody></actionbody>
    1.71 +	<actionresult>
    1.72 +		<return>KErrNone</return>
    1.73 +	</actionresult>
    1.74 +</action>
    1.75 +
    1.76 +<action>
    1.77 +	<actionname>Import a RSA key rsacertkey1</actionname>
    1.78 +	<actiontype>importkey</actiontype>
    1.79 +	<actionbody>
    1.80 +		<ImportData>rsacertkey1.txt</ImportData>
    1.81 +		<keyusage>AllUsagesButNR</keyusage>
    1.82 +		<keylabel>*IMPORTED* RSA key 1</keylabel>
    1.83 +		<keyaccesstype>Extractable</keyaccesstype>
    1.84 +	</actionbody>
    1.85 +	<actionresult>
    1.86 +		<return>KErrNone</return>
    1.87 +	</actionresult>
    1.88 +</action>
    1.89 +
    1.90 +<action>
    1.91 +	<actionname>Opening a writable certificate store manager</actionname>
    1.92 +	<actiontype>init</actiontype>
    1.93 +	<actionbody>
    1.94 +		<mode>write</mode>
    1.95 +	</actionbody>
    1.96 +	<actionresult>
    1.97 +		<return>KErrNone</return>
    1.98 +	</actionresult>
    1.99 +</action>
   1.100 +
   1.101 +<action>
   1.102 +	<actionname>Deleting all certs</actionname>
   1.103 +	<actiontype>deletecert</actiontype>
   1.104 +	<actionbody>
   1.105 +		<label>*.*</label>
   1.106 +		<deleteallcerts>1</deleteallcerts>
   1.107 +	</actionbody>
   1.108 +	<actionresult>
   1.109 +		<return>KErrNone</return>
   1.110 +	</actionresult>
   1.111 +</action>
   1.112 +
   1.113 +<action>
   1.114 +	<actionname>Deleting the writable certificate store manager</actionname>
   1.115 +	<actiontype>delete</actiontype>
   1.116 +	<actionbody></actionbody>
   1.117 +	<actionresult>
   1.118 +		<return>KErrNone</return>
   1.119 +	</actionresult>
   1.120 +</action>
   1.121 +
   1.122 +<action>
   1.123 +	<actionname>Start server OOM testing</actionname>
   1.124 +	<actiontype>startserveroom</actiontype>
   1.125 +</action>
   1.126 +
   1.127 +// Initialisation //////////////////////////////////////////////////////////////
   1.128 +
   1.129 +<action>
   1.130 +	<actionname>Opening a writable certificate store manager</actionname>
   1.131 +	<actiontype>init</actiontype>
   1.132 +	<actionbody>
   1.133 +		<mode>write</mode>
   1.134 +	</actionbody>
   1.135 +	<actionresult>
   1.136 +		<return>KErrNone</return>
   1.137 +	</actionresult>
   1.138 +</action>
   1.139 +
   1.140 +// Add certs ///////////////////////////////////////////////////////////////////
   1.141 +
   1.142 +<action>
   1.143 +	<actionname>Add X509 CA certificate CAX1</actionname>
   1.144 +	<actiontype>addcert</actiontype>
   1.145 +	<actionbody>
   1.146 +		<format>X509</format>
   1.147 +		<label>CAX1</label>
   1.148 +		<issuerkey></issuerkey>
   1.149 +		<subjectkey></subjectkey>
   1.150 +		<certstore>0</certstore>
   1.151 +		<certfile>c:\unifiedcertstore2\CAX1.cer</certfile>
   1.152 +		<certowner>CA</certowner>
   1.153 +	</actionbody>
   1.154 +	<actionresult>
   1.155 +		<return>KErrNone</return>
   1.156 +	</actionresult>
   1.157 +</action>
   1.158 +
   1.159 +<action>
   1.160 +	<actionname>Add WTLS CA certificate CAW1</actionname>
   1.161 +	<actiontype>addcert</actiontype>
   1.162 +	<actionbody>
   1.163 +		<format>WTLS</format>
   1.164 +		<label>CAW1</label>
   1.165 +		<issuerkey></issuerkey>
   1.166 +		<subjectkey></subjectkey>
   1.167 +		<certstore>0</certstore>
   1.168 +		<certfile>c:\unifiedcertstore2\CAW1.cer</certfile>
   1.169 +		<certowner>CA</certowner>
   1.170 +	</actionbody>
   1.171 +	<actionresult>
   1.172 +		<return>KErrNone</return>
   1.173 +	</actionresult>
   1.174 +</action>
   1.175 +
   1.176 +<action>
   1.177 +	<actionname>Add X509 user certificate rsacert1</actionname>
   1.178 +	<actiontype>addcert</actiontype>
   1.179 +	<actionbody>
   1.180 +		<format>X509</format>
   1.181 +		<label>rsacert1</label>
   1.182 +		<issuerkey></issuerkey>
   1.183 +		<subjectkey>4808f03892fe836e78d048bcefcca4a37913d886</subjectkey>
   1.184 +		<certstore>0</certstore>
   1.185 +		<certfile>c:\unifiedcertstore2\rsacert1.cer</certfile>
   1.186 +		<certowner>User</certowner>
   1.187 +	</actionbody>
   1.188 +	<actionresult>
   1.189 +		<return>KErrNone</return>
   1.190 +	</actionresult>
   1.191 +</action>
   1.192 +
   1.193 +// List certs //////////////////////////////////////////////////////////////////
   1.194 +
   1.195 +<action>
   1.196 +	<actionname>List CA certificates</actionname>
   1.197 +	<actiontype>listcert</actiontype>
   1.198 +	<actionbody>
   1.199 +		<filter>
   1.200 +		<ownertype>ca</ownertype>
   1.201 +		</filter>
   1.202 +	</actionbody>
   1.203 +	<actionresult>
   1.204 +		<return>KErrNone</return>
   1.205 +		<CCTCertInfo><label>CAX1</label></CCTCertInfo>
   1.206 +		<CCTCertInfo><label>CAW1</label></CCTCertInfo>
   1.207 +	</actionresult>
   1.208 +</action>
   1.209 +
   1.210 +<action>
   1.211 +	<actionname>List user certificates</actionname>
   1.212 +	<actiontype>listcert</actiontype>
   1.213 +	<actionbody>
   1.214 +		<filter>
   1.215 +		<ownertype>user</ownertype>
   1.216 +		<keyusagedescription>
   1.217 +			<keyusagescheme>pkcs15</keyusagescheme>
   1.218 +			<keytype>private</keytype>
   1.219 +			<keyusage>AllUsagesButNR</keyusage>
   1.220 +		</keyusagedescription>
   1.221 +		</filter>
   1.222 +	</actionbody>
   1.223 +	<actionresult>
   1.224 +		<return>KErrNone</return>
   1.225 +		<CCTCertInfo><label>rsacert1</label></CCTCertInfo>
   1.226 +	</actionresult>
   1.227 +</action>
   1.228 +
   1.229 +<action>
   1.230 +	<actionname>List user certificates filtered by key usage</actionname>
   1.231 +	<actiontype>listcert</actiontype>
   1.232 +	<actionbody>
   1.233 +		<filter>
   1.234 +			<ownertype>user</ownertype>
   1.235 +			<keyusagedescription>
   1.236 +				<keyusagescheme>pkcs15</keyusagescheme>
   1.237 +				<keytype>private</keytype>	
   1.238 +				<keyusage>Decrypt</keyusage>
   1.239 +			<keyusagedescription>
   1.240 +		</filter>
   1.241 +	</actionbody>
   1.242 +	<actionresult>
   1.243 +		<return>KErrNone</return>
   1.244 +		<CCTCertInfo><label>rsacert1</label></CCTCertInfo>
   1.245 +	</actionresult>
   1.246 +</action>
   1.247 +
   1.248 +<action>
   1.249 +	<actionname>List user certificates filtered by key usage</actionname>
   1.250 +	<actiontype>listcert</actiontype>
   1.251 +	<actionbody>
   1.252 +		<filter>
   1.253 +			<ownertype>user</ownertype>
   1.254 +			<keyusagedescription>
   1.255 +				<keyusagescheme>pkcs15</keyusagescheme>
   1.256 +				<keyusage>NonRepudiation</keyusage>
   1.257 +			</keyusagedescription>
   1.258 +		</filter>
   1.259 +	</actionbody>
   1.260 +	<actionresult>
   1.261 +		<return>KErrNone</return>
   1.262 +	</actionresult>
   1.263 +</action>
   1.264 +
   1.265 +<action>
   1.266 +	<actionname>List certificates filtered by Issuer DN</actionname>
   1.267 +	<actiontype>listcert</actiontype>
   1.268 +	<actionbody>
   1.269 +		<filter>
   1.270 +			<ownertype>ca</ownertype>
   1.271 +		</filter>
   1.272 +		<issuerdn>c:\unifiedcertstore2\CAX1.cer</issuerdn>
   1.273 +	</actionbody>
   1.274 +	<actionresult>
   1.275 +		<return>KErrNone</return>
   1.276 +		<CCTCertInfo><label>CAX1</label></CCTCertInfo>
   1.277 +	</actionresult>
   1.278 +</action>
   1.279 +
   1.280 +<action>
   1.281 +	<actionname>List certificates filtered by Issuer DN</actionname>
   1.282 +	<actiontype>listcert</actiontype>
   1.283 +	<actionbody>
   1.284 +		<filter>
   1.285 +			<ownertype>ca</ownertype>
   1.286 +		</filter>
   1.287 +		<issuerdn>c:\unifiedcertstore2\CAX1.cer</issuerdn>
   1.288 +		<issuerdn>c:\unifiedcertstore2\CAX2.cer</issuerdn>
   1.289 +	</actionbody>
   1.290 +	<actionresult>
   1.291 +		<return>KErrNone</return>
   1.292 +		<CCTCertInfo><label>CAX1</label></CCTCertInfo>
   1.293 +	</actionresult>
   1.294 +</action>
   1.295 +
   1.296 +<action>
   1.297 +	<actionname>List certificates filtered by Issuer DN</actionname>
   1.298 +	<actiontype>listcert</actiontype>
   1.299 +	<actionbody>
   1.300 +		<filter>
   1.301 +			<ownertype>ca</ownertype>
   1.302 +		</filter>
   1.303 +		<issuerdn>c:\unifiedcertstore2\CAX2.cer</issuerdn>
   1.304 +	</actionbody>
   1.305 +	<actionresult>
   1.306 +		<return>KErrNone</return>
   1.307 +	</actionresult>
   1.308 +</action>
   1.309 +
   1.310 +// Retrieve certs
   1.311 +
   1.312 +<action>
   1.313 +	<actionname>Retrieve CAX1 cert</actionname>
   1.314 +	<actiontype>retrieve</actiontype>
   1.315 +	<actionbody>
   1.316 +		<label>CAX1</label>
   1.317 +	</actionbody>
   1.318 +	<actionresult>
   1.319 +		<return>KErrNone</return>
   1.320 +	</actionresult>
   1.321 +</action>
   1.322 +
   1.323 +<action>
   1.324 +	<actionname>Retrieve CAW1 cert</actionname>
   1.325 +	<actiontype>retrieve</actiontype>
   1.326 +	<actionbody>
   1.327 +		<label>CAW1</label>
   1.328 +	</actionbody>
   1.329 +	<actionresult>
   1.330 +		<return>KErrNone</return>
   1.331 +	</actionresult>
   1.332 +</action>
   1.333 +
   1.334 +// Applications and trust //////////////////////////////////////////////////////
   1.335 +
   1.336 +<action>
   1.337 +	<actionname>Set applications to the CAX1 certificate</actionname>
   1.338 +	<actiontype>setapplications</actiontype>
   1.339 +	<actionbody>
   1.340 +		<label>CAX1</label>
   1.341 +		<uid>1 2 3</uid>
   1.342 +	</actionbody>
   1.343 +	<actionresult>
   1.344 +		<return>KErrNone</return>
   1.345 +	</actionresult>
   1.346 +</action>
   1.347 +
   1.348 +<action>
   1.349 +	<actionname>Get applications for CAX1</actionname>
   1.350 +	<actiontype>getapplications</actiontype>
   1.351 +	<actionbody>
   1.352 +		<label>CAX1</label>
   1.353 +	</actionbody>
   1.354 +	<actionresult>
   1.355 +		<return>KErrNone</return>
   1.356 +		<uid>1 2 3</uid>
   1.357 +	</actionresult>
   1.358 +</action>
   1.359 +
   1.360 +<action>
   1.361 +	<actionname>Set the trust for CAX1</actionname>
   1.362 +	<actiontype>settrust</actiontype>
   1.363 +	<actionbody>
   1.364 +		<label>CAX1</label>
   1.365 +		<trust>1</trust>
   1.366 +	</actionbody>
   1.367 +	<actionresult>
   1.368 +		<return>KErrNone</return>
   1.369 +	</actionresult>
   1.370 +</action>
   1.371 +
   1.372 +<action>
   1.373 +	<actionname>Get the trust for CAX1</actionname>
   1.374 +	<actiontype>gettrusters</actiontype>
   1.375 +	<actionbody>
   1.376 +		<label>CAX1</label>
   1.377 +	</actionbody>
   1.378 +	<actionresult>
   1.379 +		<return>KErrNone</return>
   1.380 +		<trust>1</trust>
   1.381 +	</actionresult>
   1.382 +</action>
   1.383 +
   1.384 +// Delete certs ////////////////////////////////////////////////////////////////
   1.385 +
   1.386 +<action>
   1.387 +	<actionname>Deleting CAX1 certs</actionname>
   1.388 +	<actiontype>deletecert</actiontype>
   1.389 +	<actionbody>
   1.390 +		<certtype>ca</certtype>
   1.391 +		<label>CAX1</label>
   1.392 +	</actionbody>
   1.393 +	<actionresult>
   1.394 +		<return>KErrNone</return>
   1.395 +	</actionresult>
   1.396 +</action>
   1.397 +
   1.398 +// Cleanup /////////////////////////////////////////////////////////////////////
   1.399 +
   1.400 +<action>
   1.401 +	<actionname>Stop server OOM testing</actionname>
   1.402 +	<actiontype>stopserveroom</actiontype>
   1.403 +</action>
   1.404 +
   1.405 +<action>
   1.406 +	<actionname>Deleting all certs</actionname>
   1.407 +	<actiontype>deletecert</actiontype>
   1.408 +	<actionbody>
   1.409 +		<label>*.*</label>
   1.410 +		<deleteallcerts>1</deleteallcerts>
   1.411 +	</actionbody>
   1.412 +	<actionresult>
   1.413 +		<return>KErrNone</return>
   1.414 +	</actionresult>
   1.415 +</action>
   1.416 +
   1.417 +<action>
   1.418 +	<actionname>Deleting the writable certificate store manager</actionname>
   1.419 +	<actiontype>delete</actiontype>
   1.420 +	<actionbody></actionbody>
   1.421 +	<actionresult>
   1.422 +		<return>KErrNone</return>
   1.423 +	</actionresult>
   1.424 +</action>
   1.425 +
   1.426 +<action>
   1.427 +	<actionname>No Test,Opening a CertificateAppInfoManager</actionname>
   1.428 +	<actiontype>initappmanager</actiontype>
   1.429 +	<actionbody></actionbody>
   1.430 +	<actionresult>
   1.431 +		<return>KErrNone</return>
   1.432 +	</actionresult>
   1.433 +</action>
   1.434 +
   1.435 +<action>
   1.436 +	<actionname>No Test,Deleting the client A1</actionname>
   1.437 +	<actiontype>removeclient</actiontype>
   1.438 +	<actionbody>
   1.439 +		<uid>1</uid>
   1.440 +	</actionbody>
   1.441 +	<actionresult>
   1.442 +		<return>KErrNone</return>
   1.443 +	</actionresult>
   1.444 +</action>
   1.445 +
   1.446 +<action>
   1.447 +	<actionname>No Test,Deleting the client A2</actionname>
   1.448 +	<actiontype>removeclient</actiontype>
   1.449 +	<actionbody>
   1.450 +		<uid>2</uid>
   1.451 +	</actionbody>
   1.452 +	<actionresult>
   1.453 +		<return>KErrNone</return>
   1.454 +	</actionresult>
   1.455 +</action>
   1.456 +
   1.457 +<action>
   1.458 +	<actionname>No Test,Deleting the client A3</actionname>
   1.459 +	<actiontype>removeclient</actiontype>
   1.460 +	<actionbody>
   1.461 +		<uid>3</uid>
   1.462 +	</actionbody>
   1.463 +	<actionresult>
   1.464 +		<return>KErrNone</return>
   1.465 +	</actionresult>
   1.466 +</action>
   1.467 +
   1.468 +<action>
   1.469 +	<actionname>No Test,Deleting the client A4</actionname>
   1.470 +	<actiontype>removeclient</actiontype>
   1.471 +	<actionbody>
   1.472 +		<uid>4</uid>
   1.473 +	</actionbody>
   1.474 +	<actionresult>
   1.475 +		<return>KErrNone</return>
   1.476 +	</actionresult>
   1.477 +</action>
   1.478 +
   1.479 +<action>
   1.480 +	<actionname>No Test,Deleting the CertificateAppInfoManager</actionname>
   1.481 +	<actiontype>deleteappmanager</actiontype>
   1.482 +	<actionbody></actionbody>
   1.483 +	<actionresult>
   1.484 +		<return>KErrNone</return>
   1.485 +	</actionresult>
   1.486 +</action>
   1.487 +
   1.488 +<action>
   1.489 +	<actionname>Sleep 5 seconds</actionname>
   1.490 +	<actiontype>sleep</actiontype>
   1.491 +	<actionbody>
   1.492 +          <seconds>5</seconds>
   1.493 +        </actionbody>
   1.494 +	<actionresult>
   1.495 +		<return>KErrNone</return>
   1.496 +	</actionresult>
   1.497 +</action>
   1.498 +
   1.499 +<action>
   1.500 +	<actionname>Check for server heap error</actionname>
   1.501 +	<actiontype>checkserverheaperror</actiontype>
   1.502 +	<actionbody>
   1.503 +    </actionbody>
   1.504 +	<actionresult>
   1.505 +		<return>KErrNone</return>
   1.506 +	</actionresult>
   1.507 +</action>