cryptoservices/certificateandkeymgmt/tcertstore/scripts/wri-swicertstore1.txt
changeset 0 2c201484c85f
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 // wri-swicertstore1.txt
       
     2 //
       
     3 // Test direct access to SWI cert store
       
     4 //
       
     5 
       
     6 //! @file
       
     7 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-1
       
     8 //! @SYMTestCaseDesc Copy the swicertstore to 
       
     9 //! c:\Resource\Swicertstore\dat\; and open the SWI cert store
       
    10 //! @SYMREQ REQ0000
       
    11 //! @SYMTestCasePriority High
       
    12 //! @SYMTestExpectedResults KErrNone
       
    13 <action>
       
    14 	<actionname>Open the SWI cert store</actionname>
       
    15 	<actiontype>initswicertstore</actiontype>
       
    16 	<actionbody>
       
    17 		<filename>c:\tcertstore\data\wri-swicertstore.dat</filename>
       
    18 	</actionbody>
       
    19 	<actionresult>
       
    20 		<return>KErrNone</return>
       
    21 	</actionresult>
       
    22 </action>
       
    23 
       
    24 //! @file
       
    25 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-2
       
    26 //! @SYMTestCaseDesc Get the list of CA certificates
       
    27 //! @SYMREQ REQ0000
       
    28 //! @SYMTestCasePriority High
       
    29 //! @SYMTestExpectedResults KErrNone
       
    30 <action>
       
    31 	<actionname>Get the list of CA certificates</actionname>
       
    32 	<actiontype>listcert</actiontype>
       
    33 	<actionbody>
       
    34 		<filter>
       
    35 			<ownertype>ca</ownertype>
       
    36 		</filter>
       
    37 	</actionbody>
       
    38 	<actionresult>
       
    39 		<return>KErrNone</return>
       
    40 		<CCTCertInfo><label>TSecuritySymbianTestTCBRSACA</label></CCTCertInfo>
       
    41 		<CCTCertInfo><label>Root5CA</label><readonly>True</readonly></CCTCertInfo>
       
    42 		<CCTCertInfo><label>SymbianTestDSACA</label><readonly>True</readonly></CCTCertInfo>
       
    43 		<CCTCertInfo><label>SymbianTestRSACA</label><readonly>True</readonly></CCTCertInfo>
       
    44 	</actionresult>
       
    45 </action>
       
    46 
       
    47 //! @file
       
    48 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-3
       
    49 //! @SYMTestCaseDesc Retrieve Root5CA cert
       
    50 //! @SYMREQ REQ0000
       
    51 //! @SYMTestCasePriority High
       
    52 //! @SYMTestExpectedResults KErrNone
       
    53 <action>
       
    54 	<actionname>Retrieve Root5CA cert</actionname>
       
    55 	<actiontype>retrieve</actiontype>
       
    56 	<actionbody>
       
    57 		<label>Root5CA</label>
       
    58 	</actionbody>
       
    59 	<actionresult>
       
    60 		<return>KErrNone</return>
       
    61 	</actionresult>
       
    62 </action>
       
    63 
       
    64 //! @file
       
    65 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-4
       
    66 //! @SYMTestCaseDesc Retrieve TSecuritySymbianTestTCBRSACA cert
       
    67 //! @SYMREQ REQ0000
       
    68 //! @SYMTestCasePriority High
       
    69 //! @SYMTestExpectedResults KErrNone
       
    70 <action>
       
    71 	<actionname>Retrieve TSecuritySymbianTestTCBRSACA cert</actionname>
       
    72 	<actiontype>retrieve</actiontype>
       
    73 	<actionbody>
       
    74 		<label>TSecuritySymbianTestTCBRSACA</label>
       
    75 	</actionbody>
       
    76 	<actionresult>
       
    77 		<return>KErrNone</return>
       
    78 	</actionresult>
       
    79 </action>
       
    80 
       
    81 //! @file
       
    82 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-5
       
    83 //! @SYMTestCaseDesc Get applications for Root5CA
       
    84 //! @SYMREQ REQ0000
       
    85 //! @SYMTestCasePriority High
       
    86 //! @SYMTestExpectedResults KErrNone
       
    87 <action>
       
    88 	<actionname>Get applications for Root5CA</actionname>
       
    89 	<actiontype>getapplications</actiontype>
       
    90 	<actionbody>
       
    91 		<label>Root5CA</label>
       
    92 	</actionbody>
       
    93 	<actionresult>
       
    94 		<return>KErrNone</return>
       
    95 		<uid>268452523</uid>
       
    96 	</actionresult>
       
    97 </action>
       
    98 
       
    99 //! @file
       
   100 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-6
       
   101 //! @SYMTestCaseDesc Get applications for TSecuritySymbianTestTCBRSACA
       
   102 //! @SYMREQ REQ0000
       
   103 //! @SYMTestCasePriority High
       
   104 //! @SYMTestExpectedResults KErrNone
       
   105 <action>
       
   106 	<actionname>Get applications for TSecuritySymbianTestTCBRSACA</actionname>
       
   107 	<actiontype>getapplications</actiontype>
       
   108 	<actionbody>
       
   109 		<label>TSecuritySymbianTestTCBRSACA</label>
       
   110 	</actionbody>
       
   111 	<actionresult>
       
   112 		<return>KErrNone</return>
       
   113 		<uid>268452523 268478646</uid>
       
   114 	</actionresult>
       
   115 </action>
       
   116 
       
   117 //! @file
       
   118 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-7
       
   119 //! @SYMTestCaseDesc Get the trust for SymbianTestDSACA
       
   120 //! @SYMREQ REQ0000
       
   121 //! @SYMTestCasePriority High
       
   122 //! @SYMTestExpectedResults KErrNone
       
   123 <action>
       
   124 	<actionname>Get the trust for SymbianTestDSACA</actionname>
       
   125 	<actiontype>gettrusters</actiontype>
       
   126 	<actionbody>
       
   127 		<label>SymbianTestDSACA</label>
       
   128 	</actionbody>
       
   129 	<actionresult>
       
   130 		<return>KErrNone</return>
       
   131 		<trust>1</trust>
       
   132 	</actionresult>
       
   133 </action>
       
   134 
       
   135 //! @file
       
   136 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-8
       
   137 //! @SYMTestCaseDesc Get the trust for TSecuritySymbianTestTCBRSACA
       
   138 //! @SYMREQ REQ0000
       
   139 //! @SYMTestCasePriority High
       
   140 //! @SYMTestExpectedResults KErrNone
       
   141 <action>
       
   142 	<actionname>Get the trust for TSecuritySymbianTestTCBRSACA</actionname>
       
   143 	<actiontype>gettrusters</actiontype>
       
   144 	<actionbody>
       
   145 		<label>TSecuritySymbianTestTCBRSACA</label>
       
   146 	</actionbody>
       
   147 	<actionresult>
       
   148 		<return>KErrNone</return>
       
   149 		<trust>1</trust>
       
   150 	</actionresult>
       
   151 </action>
       
   152 
       
   153 //! @file
       
   154 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-9
       
   155 //! @SYMTestCaseDesc Get the capabilities for SymbianTestDSACA
       
   156 //! @SYMREQ REQ0000
       
   157 //! @SYMTestCasePriority High
       
   158 //! @SYMTestExpectedResults KErrNone
       
   159 <action>
       
   160 	<actionname>Get the capabilities for SymbianTestDSACA</actionname>
       
   161 	<actiontype>getcapabilities</actiontype>
       
   162 	<actionbody>
       
   163 		<label>SymbianTestDSACA</label>
       
   164 	</actionbody>
       
   165 	<actionresult>
       
   166 		<return>KErrNone</return>
       
   167 		<capability>NetworkServices</capability>
       
   168 		<capability>LocalServices</capability>
       
   169 		<capability>Location</capability>
       
   170 		<capability>MultimediaDD</capability>
       
   171 	</actionresult>
       
   172 </action>
       
   173 
       
   174 //! @file
       
   175 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-10
       
   176 //! @SYMTestCaseDesc Get the capabilities for TSecuritySymbianTestTCBRSACA
       
   177 //! @SYMREQ REQ0000
       
   178 //! @SYMTestCasePriority High
       
   179 //! @SYMTestExpectedResults KErrNone
       
   180 <action>
       
   181 	<actionname>Get the capabilities for TSecuritySymbianTestTCBRSACA</actionname>
       
   182 	<actiontype>getcapabilities</actiontype>
       
   183 	<actionbody>
       
   184 		<label>TSecuritySymbianTestTCBRSACA</label>
       
   185 	</actionbody>
       
   186 	<actionresult>
       
   187 		<return>KErrNone</return>
       
   188 		<capability>NetworkServices</capability>
       
   189 		<capability>LocalServices</capability>
       
   190 		<capability>Location</capability>
       
   191 		<capability>MultimediaDD</capability>
       
   192 		<capability>TCB</capability>
       
   193 		<capability>DRM</capability>
       
   194 		<capability>AllFiles</capability>
       
   195 		<capability>ReadUserData</capability>
       
   196 		<capability>WriteUserData</capability>
       
   197 	</actionresult>
       
   198 </action>
       
   199 
       
   200 //! @file
       
   201 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-11
       
   202 //! @SYMTestCaseDesc Get the mandatory flag for SymbianTestRSACA
       
   203 //! @SYMREQ REQ0000
       
   204 //! @SYMTestCasePriority High
       
   205 //! @SYMTestExpectedResults KErrNone
       
   206 <action>
       
   207 	<actionname>Get the mandatory flag for SymbianTestRSACA</actionname>
       
   208 	<actiontype>getmandatory</actiontype>
       
   209 	<actionbody>
       
   210 		<label>SymbianTestRSACA</label>
       
   211 	</actionbody>
       
   212 	<actionresult>
       
   213 		<return>KErrNone</return>
       
   214 		<mandatory>EFalse</mandatory>
       
   215 	</actionresult>
       
   216 </action>
       
   217 
       
   218 //! @file
       
   219 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-12
       
   220 //! @SYMTestCaseDesc Get the mandatory flag for TSecuritySymbianTestTCBRSACA
       
   221 //! @SYMREQ REQ0000
       
   222 //! @SYMTestCasePriority High
       
   223 //! @SYMTestExpectedResults KErrNone
       
   224 <action>
       
   225 	<actionname>Get the mandatory flag for TSecuritySymbianTestTCBRSACA</actionname>
       
   226 	<actiontype>getmandatory</actiontype>
       
   227 	<actionbody>
       
   228 		<label>TSecuritySymbianTestTCBRSACA</label>
       
   229 	</actionbody>
       
   230 	<actionresult>
       
   231 		<return>KErrNone</return>
       
   232 		<mandatory>EFalse</mandatory>
       
   233 	</actionresult>
       
   234 </action>
       
   235 
       
   236 //! @file
       
   237 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-13
       
   238 //! @SYMTestCaseDesc Get TSecuritySymbianTestTCBRSACA by handle
       
   239 //! @SYMREQ REQ0000
       
   240 //! @SYMTestCasePriority High
       
   241 //! @SYMTestExpectedResults KErrNone
       
   242 <action>
       
   243 	<actionname>Getting the TSecuritySymbianTestTCBRSACA by handle</actionname>
       
   244 	<actiontype>CUnifiedCertStore GetCert</actiontype>
       
   245 	<actionbody>
       
   246 			<tokentype>270549690</tokentype>
       
   247 			<token>0</token>
       
   248 			<object>3</object>
       
   249 	</actionbody>
       
   250 	<actionresult>
       
   251 		<return>KErrNone</return>
       
   252 	</actionresult>
       
   253 </action>
       
   254 
       
   255 //! @file
       
   256 //! @SYMTestCaseID Sec-tcertstore-wri-swicertstore1-14
       
   257 //! @SYMTestCaseDesc Deleting the SWI cert store
       
   258 //! @SYMREQ REQ0000
       
   259 //! @SYMTestCasePriority High
       
   260 //! @SYMTestExpectedResults KErrNone
       
   261 <action>
       
   262 	<actionname>Deleting the SWI cert store</actionname>
       
   263 	<actiontype>delete</actiontype>
       
   264 	<actionbody></actionbody>
       
   265 	<actionresult>
       
   266 		<return>KErrNone</return>
       
   267 	</actionresult>
       
   268 </action>