authenticationservices/authenticationserver/test/tAuthSvr/scripts/tAuthSvr2.script
changeset 29 ece3df019add
child 34 5b5ca9f4f7b4
equal deleted inserted replaced
19:cd501b96611d 29:ece3df019add
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the License "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description: 
       
    15 //
       
    16 //
       
    17 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
    18 // All rights reserved.
       
    19 // This component and the accompanying materials are made available
       
    20 // under the terms of "Eclipse Public License v1.0"
       
    21 // which accompanies this distribution, and is available
       
    22 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    23 //
       
    24 // Initial Contributors:
       
    25 // Nokia Corporation - initial contribution.
       
    26 //
       
    27 // Contributors:
       
    28 //
       
    29 // Description:
       
    30 //
       
    31 
       
    32 PRINT Authentication Server tests...
       
    33 
       
    34 // Prepare a clone of TAuthSvr to possess authserver's SID.
       
    35 // This is required for modifying the authserver's central repository file.
       
    36 // This clone must be deleted at the end of the test.
       
    37 
       
    38 RUN_PROGRAM 100 SETCAP tAuthSvr.exe 188b0 -SID 102740FC tAuthSvr_new.exe
       
    39 
       
    40 LOAD_SUITE tAuthSvr
       
    41 LOAD_SUITE tAuthSvr_new
       
    42 
       
    43 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0144
       
    44 //! @SYMTestCaseDesc Remove_PinPlugin_Data
       
    45 START_TESTCASE SEC-AUT-AUTHSVR-0144
       
    46 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt
       
    47 RUN_TEST_STEP_RESULT 0 100	tAuthSvr_new 	INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin
       
    48 RUN_UTILS DeleteFile  C:\t_pinplugindlg_in.dat
       
    49 RUN_UTILS DeleteFile  C:\t_pinplugindlg_out.dat
       
    50 END_TESTCASE SEC-AUT-AUTHSVR-0144
       
    51 
       
    52 ////
       
    53 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0006
       
    54 //! @SYMTestCaseDesc Start the authServer with no identities, having a default plugin defined
       
    55 //! 		     (FirstStart1_Normal)
       
    56 //! @SYMREQ REQ 4941 4943 4953 4954 4955 4956
       
    57 //! @SYMTestPriority Medium
       
    58 //! @SYMTestActions  Have a default plugin defined, use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
    59 //!			call the Enumerate Identity API
       
    60 //! @SYMTestExpectedResults Default identity is the only one present
       
    61 //! @SYMDevelopedForRelease Intulo
       
    62 
       
    63 START_TESTCASE SEC-AUT-AUTHSVR-0006
       
    64 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
    65 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0001
       
    66 END_TESTCASE SEC-AUT-AUTHSVR-0006
       
    67 
       
    68 
       
    69 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0007
       
    70 //! @SYMTestCaseDesc Start the authServer with no identities, and no default plug-in exists
       
    71 //! 		     (FirstStart2_NoDefaultPlugin)
       
    72 //! @SYMREQ REQ 4941 4943 4953 4954
       
    73 //! @SYMTestPriority Medium
       
    74 //! @SYMTestActions  Have a default plugin defined, use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
    75 //!			call the Enumerate Identity API
       
    76 //! @SYMTestExpectedResults AuthServer panics, since there are no identities
       
    77 //! @SYMDevelopedForRelease Intulo
       
    78 
       
    79 START_TESTCASE SEC-AUT-AUTHSVR-0007
       
    80 RUN_UTILS CopyFile C:\tauth\tauthsvr\testdata\pinplugin_inactive.txt C:\pinplugin_inactive.txt
       
    81 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
    82 RUN_TEST_STEP !RESULT=-2 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0002
       
    83 END_TESTCASE SEC-AUT-AUTHSVR-0007 
       
    84 
       
    85 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0008
       
    86 //! @SYMTestCaseDesc Start the authServer with no identities, and the default plugin is set to a biometric plugin
       
    87 //! 		     (FirstStart3_DefaultIsBiometricType)
       
    88 //! @SYMREQ REQ 4941 4943 4953 4954
       
    89 //! @SYMTestPriority Medium
       
    90 //! @SYMTestActions  Have a default plugin defined, use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
    91 //!			call the Enumerate Identity API
       
    92 //! @SYMTestExpectedResults AuthServer panics, since default plugins have to be of knowledge or token type
       
    93 //! @SYMDevelopedForRelease Intulo
       
    94 
       
    95 START_TESTCASE SEC-AUT-AUTHSVR-0008
       
    96 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
    97 RUN_TEST_STEP !RESULT=-2 100	tAuthSvr 	AUTHSVR_CHECK   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0003
       
    98 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt
       
    99 END_TESTCASE SEC-AUT-AUTHSVR-0008
       
   100 
       
   101 
       
   102 
       
   103 ////
       
   104 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0009
       
   105 //! @SYMTestCaseDesc Start the authServer with no identities, having a default plugin defined
       
   106 //! 		     (RegisterIdentity1_Normal)
       
   107 //! @SYMREQ REQ4969 4970 4971 4972 4975 4976 4977 4978 4963 4985 5008 5009
       
   108 //! @SYMTestPriority Medium
       
   109 //! @SYMTestActions  Have a default plugin defined, use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   110 //!			call the Enumerate Identity API
       
   111 //! @SYMTestExpectedResults Default identity is the only one listed
       
   112 //! @SYMDevelopedForRelease Intulo
       
   113 START_TESTCASE SEC-AUT-AUTHSVR-0009
       
   114 
       
   115 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   116 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   117 RUN_TEST_STEP !Result=Fail  100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0021b
       
   118 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0021a
       
   119 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0021b
       
   120 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0021c
       
   121 
       
   122 END_TESTCASE SEC-AUT-AUTHSVR-0009
       
   123 
       
   124 
       
   125 // //============================================================
       
   126 //
       
   127 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0010
       
   128 //! @SYMTestCaseDesc , Attempt to register a new identity, while a specific plugin inactive, the plugin should be remain untrained
       
   129 //! 		     (RegisterIdentity2_NoActivePlugin)
       
   130 //! @SYMREQ REQ4941 REQ4943 REQ4953 REQ4954 4963 4985 4993 5008 5009
       
   131 //! @SYMTestPriority Medium
       
   132 //! @SYMTestActions  Start the authServer with no identities. 
       
   133 //!			Have a default plugin defined, which is inactive,
       
   134 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   135 //!			call the Enumerate Plugins API
       
   136 //! @SYMTestExpectedResults Specific plugin is untrained
       
   137 //! @SYMDevelopedForRelease Intulo
       
   138 START_TESTCASE SEC-AUT-AUTHSVR-0010
       
   139 
       
   140 // RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   141 // RUN_TEST_STEP !RESULT=-2 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0022b
       
   142 // RUN_TEST_STEP !RESULT=-2  100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0022a
       
   143 // RUN_TEST_STEP !RESULT=-2  100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0022b
       
   144 // RUN_TEST_STEP !RESULT=-2  100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0022c
       
   145 
       
   146 END_TESTCASE SEC-AUT-AUTHSVR-0010
       
   147 
       
   148 
       
   149 // //============================================================
       
   150 //
       
   151 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0011
       
   152 //! @SYMTestCaseDesc Attempt to register a new identity, while no plugins are active, then one is activated.
       
   153 //! 		     (RegisterIdentity3_PluginActivatedLater)
       
   154 //! @SYMREQ REQ4947 REQ4954 REQ4960 REQ4962 REQ4968 REQ4957 REQ4963 4985 4993 5008 5009
       
   155 //! @SYMTestPriority Medium
       
   156 //! @SYMTestActions  Have a default plugin defined, which is inactive, and a second one which is inactive
       
   157 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   158 //!			call the Enumerate Plugins API
       
   159 //!                     Attempt to register a new identity, attempt to authenticate assuming this identity
       
   160 //!                     was registered. Check the number of identities.
       
   161 //!                     Reset the state of the system
       
   162 //!                     Set one of the plugins to be active then attempt to register an identity
       
   163 //!                     Attempt to read and set the username.
       
   164 //!                     Attempt to authenticate assuming this identity was registered. 
       
   165 //!                     Check the number of identities.
       
   166 //! @SYMTestExpectedResults Default plugin is untrained, then fully trained after the 2nd try
       
   167 //!                     The authentication fails first time(no errors), fails again the second time (no errors)
       
   168 //!                     It passes the third time 
       
   169 //! @SYMDevelopedForRelease Intulo
       
   170 START_TESTCASE SEC-AUT-AUTHSVR-0011
       
   171 
       
   172 // RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   173 // RUN_TEST_STEP !Error=-2 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0023b
       
   174 // RUN_TEST_STEP !Error=-2 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0023a
       
   175 // RUN_TEST_STEP !Error=-2  100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0023b
       
   176 // RUN_TEST_STEP !Error=-2  100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0023c
       
   177 // RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   178 // RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0023d
       
   179 // RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0023f
       
   180 // RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0023e
       
   181 // RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   182 
       
   183 END_TESTCASE SEC-AUT-AUTHSVR-0011
       
   184 
       
   185 // ////
       
   186 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0012
       
   187 //! @SYMTestCaseDesc Attempt to register a new identity, but the transient key obtained from one of auth Plugin is non-unique.
       
   188 //! 		     (RegisterIdentity4_NonUniqueTransientkey)
       
   189 //! @SYMREQ REQ4953 REQ4954 REQ4955 REQ4957 REQ4958 REQ4963 4985 4993 5008 5009
       
   190 //! @SYMTestPriority Medium
       
   191 //! @SYMTestActions  Have a default plugin defined, which is inactive, and a second one which is inactive
       
   192 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   193 //!			call the Enumerate Plugins API
       
   194 //!			Try to register a 2nd identity while using the same 'Entered-Pin' as for the default identity.
       
   195 //! @SYMTestExpectedResults KErrAuthServPluginCancelled is received, then the plugin is showed as 
       
   196 //!				partially trained, not fully trained
       
   197 //! @SYMDevelopedForRelease Intulo
       
   198 START_TESTCASE SEC-AUT-AUTHSVR-0012
       
   199 
       
   200 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   201 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   202 RUN_TEST_STEP !RESULT=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0024b
       
   203 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0024a
       
   204 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0024b
       
   205 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0024c
       
   206 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0024d
       
   207 
       
   208 END_TESTCASE SEC-AUT-AUTHSVR-0012
       
   209 
       
   210 
       
   211 // ////
       
   212 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0013
       
   213 //! @SYMTestCaseDesc Attempt to register a new identity, but a plugin returns the cancellation code
       
   214 //! 		     (RegisterIdentity5_PluginCancel)
       
   215 //! @SYMREQ REQ4954 REQ4955 REQ4958 REQ4968 REQ4970 4971 4972 4963 4985 4993 5008 5009
       
   216 //! @SYMTestPriority Medium
       
   217 //! @SYMTestActions  Have a default plugin defined, which is inactive, and a second one which is inactive
       
   218 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   219 //!			call the Enumerate Plugins API
       
   220 //!			Try to register a 2nd identity while using the 'Cancel' code as the PIN input
       
   221 //! @SYMTestExpectedResults KErrAuthServPluginCancelled is received, then the plugin is showed as 
       
   222 //!				partially trained, not fully trained
       
   223 //! @SYMDevelopedForRelease Intulo
       
   224 START_TESTCASE SEC-AUT-AUTHSVR-0013
       
   225 
       
   226 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   227 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   228 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0025a
       
   229 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0025b
       
   230 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0025c
       
   231 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0025d
       
   232 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0025e
       
   233 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0025f
       
   234 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0025g
       
   235 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0025d
       
   236 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0025h
       
   237 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0025i
       
   238 
       
   239 END_TESTCASE SEC-AUT-AUTHSVR-0013
       
   240 
       
   241 // ////
       
   242 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0014
       
   243 //! @SYMTestCaseDesc Attempt to register a new identity, but a plugin returns the 'quit' code
       
   244 //! 		     (RegisterIdentity6_PluginExit)
       
   245 //! @SYMREQ REQ4954 REQ4955 REQ4958 REQ4968 REQ4970 4971 4972 4963 4985 4993 5008 5009
       
   246 //! @SYMTestPriority Medium
       
   247 //! @SYMTestActions  Have a default plugin defined, which is inactive, and a second one which is inactive
       
   248 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   249 //!			call the Enumerate Plugins API
       
   250 //!			Try to register a 2nd identity while using the 'Quit' code as the PIN input
       
   251 //! @SYMTestExpectedResults KErrAuthServPluginQuit is received, then the plugin is showed as 
       
   252 //!				partially trained, not fully trained
       
   253 //! @SYMDevelopedForRelease Intulo
       
   254 START_TESTCASE SEC-AUT-AUTHSVR-0014
       
   255 
       
   256 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   257 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   258 RUN_TEST_STEP !Error=-10805 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0026a
       
   259 RUN_TEST_STEP !RESULT=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0026b
       
   260 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0026c
       
   261 
       
   262 END_TESTCASE SEC-AUT-AUTHSVR-0014 
       
   263 
       
   264 
       
   265 // ////
       
   266 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0015
       
   267 //! @SYMTestCaseDesc Attempt to register a new identity, but the authserver cannot uniquely resolve the identity with any of the supplied plugins
       
   268 //! 		     (RegisterIdentity7_NonUniqueIdentity_Retrain)
       
   269 //! @SYMREQ REQ4953 REQ4954 4955 4956 4963 4985 4993 5008 5009
       
   270 //! @SYMTestPriority Medium
       
   271 //! @SYMTestActions  Have a default plugin defined, which is active, and two others which are active
       
   272 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   273 //!			call the Enumerate Plugins API
       
   274 //!			Try to register a 2nd identity. While training all the plug-ins, 
       
   275 //!			use the same data that was used with the default identity
       
   276 //! @SYMTestExpectedResults The second identity is not registered. All the plugins are still 
       
   277 //!				fully trained
       
   278 //! @SYMDevelopedForRelease Intulo
       
   279 START_TESTCASE SEC-AUT-AUTHSVR-0015
       
   280 
       
   281 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   282 RUN_TEST_STEP_RESULT 0 100	tAuthSvr_new 	INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin1
       
   283 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   284 RUN_TEST_STEP !Error=-10810  100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0027a
       
   285 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0027b
       
   286 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   287 
       
   288 END_TESTCASE SEC-AUT-AUTHSVR-0015 
       
   289 
       
   290 
       
   291 // ////
       
   292 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0016
       
   293 //! @SYMTestCaseDesc Attempt to register a new identity, but the training for the 2 active plugins is cancelled
       
   294 //! 		     (RegisterIdentity8_NonUniqueIdentity_AllPluginsCancelled)
       
   295 //! @SYMREQ REQ4953 REQ4954 4955 4956 4963 4985 4993 5008 5009
       
   296 //! @SYMTestPriority Medium
       
   297 //! @SYMTestActions  Have a default plugin defined, which is inactive, and a second one which is inactive
       
   298 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   299 //!			call the Enumerate Plugins API 
       
   300 //!			Try to register a 2nd identity while using the 'Cancel' code as the PIN input for all 3 plugins
       
   301 //! @SYMTestExpectedResults The 2nd identity is not registered then the 3 plugins are showed as fully trained
       
   302 //!			       
       
   303 //! @SYMDevelopedForRelease Intulo
       
   304 START_TESTCASE SEC-AUT-AUTHSVR-0016
       
   305 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   306 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   307 RUN_TEST_STEP !Error=-10810 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0028a
       
   308 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0028b
       
   309 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   310 END_TESTCASE SEC-AUT-AUTHSVR-0016
       
   311 
       
   312 
       
   313 ////
       
   314 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0017
       
   315 //! @SYMTestCaseDesc Successful attempt at retraining a specified plugin
       
   316 //! 		     (RetrainPlug-in1_Normal)
       
   317 //! @SYMREQ REQ4953 REQ4954 4955 4956 4963 4985 4993 5008 5009
       
   318 //! @SYMTestPriority Medium
       
   319 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   320 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   321 //!			call the Enumerate Plugins API
       
   322 //!			Successfully register a 2nd identity while using a specified PIN input
       
   323 //!			Authenticate using the same PIN input so that the identity to be trained is one
       
   324 //!			that has been previously trained. 
       
   325 //!			Then call the Train() function, giving a different input. Then attempt to authenticate,
       
   326 //!			giving the new input
       
   327 //! @SYMTestExpectedResults The authentication, registration and retrain are successful. The plugin status is 
       
   328 //!			fully trained, then fully trained again. The new authenticate is successful.
       
   329 //! @SYMDevelopedForRelease Intulo
       
   330 START_TESTCASE SEC-AUT-AUTHSVR-0017
       
   331 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   332 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   333 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0041a
       
   334 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0041b
       
   335 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0041c
       
   336 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0041d
       
   337 END_TESTCASE SEC-AUT-AUTHSVR-0017 
       
   338 
       
   339 ////
       
   340 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0018
       
   341 //! @SYMTestCaseDesc Attempt at retraining a specified plugin, but authentication fails
       
   342 //! 		     (RetrainPlug-in2_AuthFailed)
       
   343 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4952 4963 4985 4993 5008 5009
       
   344 //! @SYMTestPriority Medium
       
   345 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   346 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   347 //!			call the Enumerate Plugins API
       
   348 //!			Successfully register a 2nd identity while using a specified PIN input
       
   349 //!			Authenticate then call the Train() function. Use the a PIN input that has not been used before 
       
   350 //!			so that no identity is returned as having that PIN. 
       
   351 //! @SYMTestExpectedResults The registration is successful, the authentication fails, and so the retrain is unsuccessful. 
       
   352 //!			The plugin status is fully trained, then fully trained again
       
   353 //! @SYMDevelopedForRelease Intulo
       
   354 START_TESTCASE SEC-AUT-AUTHSVR-0018
       
   355 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   356 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   357 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0042a
       
   358 RUN_TEST_STEP !RESULT=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0042b
       
   359 RUN_TEST_STEP !Error=-10806 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0042b
       
   360 END_TESTCASE SEC-AUT-AUTHSVR-0018
       
   361 
       
   362 
       
   363 ////
       
   364 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0019
       
   365 //! @SYMTestCaseDesc Attempt to retrain a specified plugin, but the plugin is unknown
       
   366 //! 		     (RetrainPlug-in3_UnknownPlugin)
       
   367 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4952 4963 4985 4993 5008 5009
       
   368 //! @SYMTestPriority Medium
       
   369 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   370 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   371 //!			call the Enumerate Plugins API
       
   372 //!			Successfully register a 2nd identity while using a specified PIN input
       
   373 //!			Authenticate then call the Train() function. Use the a valid PIN so that an identity is 
       
   374 //!                     returned as having that PIN. 
       
   375 //!                     Attempt to retrain a plugin, but specify an unknown plugin.
       
   376 //! @SYMTestExpectedResults The registration is successful, the authentication passes, the retrain is unsuccessful. 
       
   377 //!                     and the KErrauthServNoSuchPlugin is returned
       
   378 //! @SYMDevelopedForRelease Intulo
       
   379 START_TESTCASE SEC-AUT-AUTHSVR-0019
       
   380 
       
   381 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   382 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   383 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0043a
       
   384 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0043b
       
   385 RUN_TEST_STEP !Error=-10802 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0043c
       
   386 END_TESTCASE SEC-AUT-AUTHSVR-0019
       
   387 
       
   388 
       
   389 ////
       
   390 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0020
       
   391 //! @SYMTestCaseDesc Attempt to retrain a specified plugin, but the 2nd authentication fails
       
   392 //! 		     (RetrainPlug-in4_2ndAuthFailed)
       
   393 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4952 4963 4985 4993 5008 5009
       
   394 //! @SYMTestPriority Medium
       
   395 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   396 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   397 //!			call the Enumerate Plugins API
       
   398 //!			Successfully register a 2nd identity while using a specified PIN input
       
   399 //!			Authenticate then call the Train() function. Use the a PIN input that was used before so that the 
       
   400 //!			2nd identity is returned. A new PIN is now associated with the identity and that plugin
       
   401 //!			Attempt the authentication again, but using a wrong PIN. 
       
   402 //!                     Attempt the retrain a second time, given that the authentication has failed
       
   403 //! @SYMTestExpectedResults The registration is successful, The first 'authenticate' and 'train' calls succeed. 
       
   404 //!			The 2nd authentication fails, and so the 2nd call to train is unsuccessful. 
       
   405 //!			The plugin status is fully trained, all three times that it is checked
       
   406 //! @SYMDevelopedForRelease Intulo
       
   407 START_TESTCASE SEC-AUT-AUTHSVR-0020
       
   408 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   409 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0044a
       
   410 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0044d
       
   411 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0044b
       
   412 RUN_TEST_STEP !RESULT=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0044e
       
   413 RUN_TEST_STEP !Error=-10806 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0044c
       
   414 END_TESTCASE SEC-AUT-AUTHSVR-0020
       
   415 
       
   416 
       
   417 ////
       
   418 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0030
       
   419 //! @SYMTestCaseDesc Attempt to retrain a specified plugin, but a non-unique transient key is generated, prompting 
       
   420 //!			the retrain to be cancelled
       
   421 //! 		     (RetrainPlug-in5_NonUniqueTransientKey)
       
   422 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4963 4985 4993 5008 5009
       
   423 //! @SYMTestPriority Medium
       
   424 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   425 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   426 //!			call the Enumerate Plugins API
       
   427 //!			Successfully register a 2nd identity while using a unique PIN input
       
   428 //!                     Successfully register a 3rd identity while using another unique PIN input
       
   429 //!			Authenticate so that the 2nd identity is returned then call the Train() function. 
       
   430 //!                     Attempt to use the same PIN input that was used to register the 3rd Id, to train the 2nd Id
       
   431 //!			so that the retrain is cancelled.
       
   432 //! @SYMTestExpectedResults The registrations are successful, the authentication passes, but the retrain is cancelled. 
       
   433 //!			The plugin status is fully trained, then fully trained again
       
   434 //! @SYMDevelopedForRelease Intulo
       
   435 START_TESTCASE SEC-AUT-AUTHSVR-0030
       
   436 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   437 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0045a
       
   438 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0045b
       
   439 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0045c
       
   440 RUN_TEST_STEP !Error=-10804 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0045d
       
   441 
       
   442 END_TESTCASE SEC-AUT-AUTHSVR-0030
       
   443 
       
   444 
       
   445 // //// //
       
   446 // //! @SYMTestCaseID SEC-AUT-AUTHSVR-0031
       
   447 // //! @SYMTestCaseDesc Attempt to retrain a specified plugin, but a cancellation code is entered at the 'retrain' stage
       
   448 // //! 		        (RetrainPlug-in6_Cancel)
       
   449 // //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4963 4985 4993 5008 5009
       
   450 // //! @SYMTestPriority Medium
       
   451 // //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   452 // //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   453 // //!			call the Enumerate Plugins API
       
   454 // //!			Successfully register a 2nd identity while using a specified PIN input
       
   455 // //!			Authenticate then call the Train() function. Use the a cancellation code as the input
       
   456 // //!			so that the retrain is cancelled.
       
   457 // //! @SYMTestExpectedResults The registration is successful, the authentication passes, but the retrain is cancelled. 
       
   458 // //!			The plugin status is fully trained, then fully trained again
       
   459 // //! @SYMDevelopedForRelease Intulo
       
   460 START_TESTCASE SEC-AUT-AUTHSVR-0031
       
   461 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   462 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0046a
       
   463 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0046b
       
   464 RUN_TEST_STEP !Error=-10804	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0046c
       
   465 END_TESTCASE SEC-AUT-AUTHSVR-0031
       
   466 
       
   467 // ////
       
   468 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0032
       
   469 //! @SYMTestCaseDesc Attempt to retrain a specified plugin, but a Quit code is entered at the 'retrain' stage
       
   470 //! 		     (RetrainPlug-in7_Quit)
       
   471 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4963 4985 4993 5008 5009
       
   472 //! @SYMTestPriority Medium
       
   473 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   474 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   475 //!			call the Enumerate Plugins API
       
   476 //!			Successfully register a 2nd identity while using a specified PIN input
       
   477 //!			Authenticate then call the Train() function. Use the a Quit code as the input
       
   478 //!			so that the retrain is quit.
       
   479 //! @SYMTestExpectedResults The registration is successful, the authentication passes, but the retrain is quit 
       
   480 //!			The plugin status is fully trained, then fully trained again
       
   481 //! @SYMDevelopedForRelease Intulo
       
   482 START_TESTCASE SEC-AUT-AUTHSVR-0032
       
   483 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   484 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0047a
       
   485 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0047b
       
   486 RUN_TEST_STEP !Error=-10805 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0047c
       
   487 END_TESTCASE SEC-AUT-AUTHSVR-0032
       
   488 
       
   489 
       
   490 ////
       
   491 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0033
       
   492 //! @SYMTestCaseDesc Successful attempt to retrain a specified plugin, then another plugin. 
       
   493 //! 		     (RetrainPlug-in8_TwoPlugins)
       
   494 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4963 4985 4993 5008 5009
       
   495 //! @SYMTestPriority Medium
       
   496 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   497 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   498 //!			call the Enumerate Plugins API
       
   499 //!			Successfully register a 2nd identity while using a specified PIN input
       
   500 //!			Authenticate then call the Train() function on the first plugin. Use the a valid, unique input
       
   501 //!			Authenticate then call the Train function on the second plugin. Use a valid, unique input
       
   502 //!                  Attempt an authentication using a now-invalid input.(what was used earlier)
       
   503 //! @SYMTestExpectedResults The registration is successful, the authentication is successful in both cases, 
       
   504 //!			as well as the retrain calls. The last authentication fails since the training data has changed.
       
   505 //!			The plugin status for both plugins is fully trained, then fully trained again
       
   506 //! @SYMDevelopedForRelease Intulo
       
   507 START_TESTCASE SEC-AUT-AUTHSVR-0033
       
   508 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   509 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0048a
       
   510 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0048b
       
   511 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0048c
       
   512 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0048d
       
   513 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0048e
       
   514 RUN_TEST_STEP !RESULT=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0048f
       
   515 END_TESTCASE SEC-AUT-AUTHSVR-0033
       
   516 
       
   517 ////
       
   518 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0034
       
   519 //! @SYMTestCaseDesc Attempt to add a new authentication method first to one then the second of the
       
   520 //!			two present identities
       
   521 //! 		     (AddAuthMethod1_BothIdentities_Normal)
       
   522 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4963 4993 5008 5009
       
   523 //! @SYMTestPriority Medium
       
   524 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is inactive
       
   525 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   526 //!			call the Enumerate Plugins API
       
   527 //!			Successfully register a 2nd identity while using a specified PIN input with the default plugin only
       
   528 //!			Authenticate then call the Train() function. Use an identifying input that corresponds to what
       
   529 //!			was used to register the default identity using the default plugin. Therefore the default identity
       
   530 //!			is returned following the Authentication. The training is then done for the 2nd plugin
       
   531 //!			Carry out the same process with the second identity
       
   532 //! @SYMTestExpectedResults The authentication is successful,  and the first train call passes.
       
   533 //!			but the second train call passes as well
       
   534 //!			The plugin status for the second plugin is untrained, trained, then fully trained
       
   535 //!			There are 2 identities present after the register identity step
       
   536 //! @SYMDevelopedForRelease Intulo
       
   537 START_TESTCASE SEC-AUT-AUTHSVR-0034
       
   538 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   539 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0061a
       
   540 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0061b
       
   541 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0061Ta
       
   542 RUN_TEST_STEP !Error=-5 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0061c
       
   543 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0061d
       
   544 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0061Tb
       
   545 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0061e
       
   546 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0061f
       
   547 END_TESTCASE SEC-AUT-AUTHSVR-0034
       
   548 
       
   549 // ////
       
   550 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0035
       
   551 //! @SYMTestCaseDesc Attempt to add a new authentication method first to one then the second of the
       
   552 //!			two present identities. Authentication fails in both cases.
       
   553 //! 		     (AddAuthMethod2_BothIdentities_AuthFailed)
       
   554 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4963 4993 5008 5009
       
   555 //! @SYMTestPriority Medium
       
   556 //! @SYMTestActions   Have a default plugin defined, which is active, and a second one which is inactive
       
   557 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   558 //!			call the Enumerate Plugins API
       
   559 //!			Successfully register a 2nd identity while using a specified PIN input with the default plugin only
       
   560 //!			Fail to authenticate then try to call the Train() function. Use an identifying input that does not 
       
   561 //!			correspond to what was used to register the default identity using the default plugin. Therefore no identity
       
   562 //!			is returned following the Authentication. The training is then attempted for the 2nd plugin
       
   563 //!			Carry out the same process with the second identity
       
   564 //! @SYMTestExpectedResults The authentication is successful,  and the first train call passes.
       
   565 //!			but the second train call passes as well
       
   566 //!			The plugin status for the second plugin is untrained, trained, then fully trained
       
   567 //!			There are 2 identities present after the register identity step
       
   568 //! @SYMDevelopedForRelease Intulo
       
   569 START_TESTCASE SEC-AUT-AUTHSVR-0035
       
   570 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   571 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0062a
       
   572 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0062b
       
   573 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0062c
       
   574 RUN_TEST_STEP !RESULT=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0062d
       
   575 RUN_TEST_STEP !Error=-10806 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0062e
       
   576 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0062f
       
   577 END_TESTCASE SEC-AUT-AUTHSVR-0035
       
   578 
       
   579 // ////
       
   580 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0063
       
   581 //! @SYMTestCaseDesc Attempt to add a new authentication method to one identity,
       
   582 //!		        but the pluginId is unknown
       
   583 //! 		     (AddAuthMethod3_UnknownPlugin)
       
   584 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4963 5008 5009
       
   585 //! @SYMTestPriority Medium
       
   586 //! @SYMTestActions   Have a default plugin defined, which is active, and a second one of the same type, but not
       
   587 //!                     supporting default data
       
   588 //!			Use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   589 //!			Successfully register a 2nd identity with the default plugin only
       
   590 //!
       
   591 //!			Successfully authenticate for the 2nd identity
       
   592 //!			then call the ReTrain() function specifying a unknown plugin
       
   593 //!
       
   594 //! @SYMTestExpectedResults The default plugin is fully trained, the 2nd plugin is untrained
       
   595 //!                     The authentication is successful, but the Retrain call fails
       
   596 //! @SYMDevelopedForRelease Intulo
       
   597 START_TESTCASE SEC-AUT-AUTHSVR-0063
       
   598 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   599 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0063a
       
   600 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0063b
       
   601 RUN_TEST_STEP !Error=-10802 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0063c
       
   602 END_TESTCASE SEC-AUT-AUTHSVR-0063
       
   603 
       
   604 // ////
       
   605 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0065
       
   606 //! @SYMTestCaseDesc Attempt to add a new authentication method to the 2nd identity,
       
   607 //!		        but the training data used for the 2nd plugin is non-unique
       
   608 //! 		     (AddAuthMethod5_2ndIdentity_NonUniqueTransientKey)
       
   609 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4963 5008 5009
       
   610 //! @SYMTestPriority Medium
       
   611 //! @SYMTestActions   Have a default plugin defined, which is active, and a second one of the same type, and both
       
   612 //!                     support default data
       
   613 //!			Use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   614 //!			Successfully register a 2nd identity with both plugins
       
   615 //!
       
   616 //!			Successfully authenticate for the 2nd identity
       
   617 //!			then call the ReTrain() function specifying the 2nd plugin and the same training
       
   618 //!                  data used to train the first identity
       
   619 //!
       
   620 //! @SYMTestExpectedResults The default plugin is fully trained, the 2nd plugin is untrained
       
   621 //!                     The authentication is successful, but the Retrain call fails
       
   622 //! @SYMDevelopedForRelease Intulo
       
   623 START_TESTCASE SEC-AUT-AUTHSVR-0065
       
   624 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   625 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0065a
       
   626 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0065b
       
   627 RUN_TEST_STEP !Error=-10804 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0065c
       
   628 END_TESTCASE SEC-AUT-AUTHSVR-0065
       
   629 
       
   630 // ////
       
   631 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0066
       
   632 //! @SYMTestCaseDesc Attempt to add a new authentication method to the 2nd identity,
       
   633 //!		        but the cancel code is sent by the user at the training stage
       
   634 //! 		     (AddAuthMethod6_2ndIdentity_Cancel)
       
   635 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4963
       
   636 //! @SYMTestPriority Medium
       
   637 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one of the same type, and only the
       
   638 //!                     default plugin supports default data
       
   639 //!			Use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   640 //!			Successfully register a 2nd identity with the default plugin only
       
   641 //!
       
   642 //!			Successfully authenticate for the 2nd identity
       
   643 //!			then call the ReTrain() function specifying the 2nd plugin and the cancel code as training data 
       
   644 //!
       
   645 //! @SYMTestExpectedResults The default plugin is fully trained, the 2nd plugin is untrained
       
   646 //!                     The authentication is successful, but the Retrain call fails
       
   647 //! @SYMDevelopedForRelease Intulo
       
   648 START_TESTCASE SEC-AUT-AUTHSVR-0066
       
   649 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   650 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0066a
       
   651 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0066b
       
   652 RUN_TEST_STEP !Error=-10804 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0066c
       
   653 END_TESTCASE SEC-AUT-AUTHSVR-0066
       
   654 
       
   655 ////
       
   656 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0067
       
   657 //! @SYMTestCaseDesc Attempt to add a new authentication method to the 2nd identity,
       
   658 //!		        but the Quit code is sent by the user at the training stage
       
   659 //! 		     (AddAuthMethod7_2ndIdentity_Exit)
       
   660 //! @SYMREQ 4969 4970 4971 4972 4975 4976 4977 4978 4963
       
   661 //! @SYMTestPriority Medium
       
   662 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one of the same type, and only the 
       
   663 //!                     default plugin supports default data
       
   664 //!			Use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   665 //!			Successfully register a 2nd identity with the default plugin only
       
   666 //!
       
   667 //!			Successfully authenticate for the 2nd identity
       
   668 //!			then call the ReTrain() function specifying the 2nd plugin and the Quit code as training data 
       
   669 //!   
       
   670 //! @SYMTestExpectedResults The default plugin is fully trained, the 2nd plugin is untrained
       
   671 //!                     The authentication is successful, but the Retrain call fails
       
   672 //! @SYMDevelopedForRelease Intulo
       
   673 START_TESTCASE SEC-AUT-AUTHSVR-0067
       
   674 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   675 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0067a
       
   676 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0067b
       
   677 RUN_TEST_STEP !Error=-10805 100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0067c
       
   678 END_TESTCASE SEC-AUT-AUTHSVR-0067
       
   679 
       
   680 
       
   681 ////
       
   682 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0081
       
   683 //! @SYMTestCaseDesc An AuthClient successfully authenticates a user
       
   684 //! 		     (Authenticate1_Normal)
       
   685 //! @SYMREQ REQ4966 4977 4978 4979 4980 4981 4963
       
   686 //! @SYMTestPriority Medium
       
   687 //! @SYMTestActions  Have the default identity and a 2nd identity registered, 
       
   688 //!			having both plug-ins trained with both identities.
       
   689 //!			Call the ‘Authenticate’ API  on the 2nd identity, with a freshness of 0 seconds
       
   690 //!			and an authentication expression.(Default AND 2nd plug-in)
       
   691 //! @SYMTestExpectedResults  The 2nd identity is successfully authenticated
       
   692 //!				A valid result is stored, i.e. a new identity number 
       
   693 //!				other than ‘unknown’ is now present. 
       
   694 //! @SYMDevelopedForRelease Intulo
       
   695 START_TESTCASE SEC-AUT-AUTHSVR-0081
       
   696 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
   697 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   698 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0081b
       
   699 END_TESTCASE SEC-AUT-AUTHSVR-0081
       
   700 
       
   701 
       
   702 
       
   703 ////
       
   704 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0082
       
   705 //! @SYMTestCaseDesc An AuthClient successfully authenticates a user using a subset of the auth. methods
       
   706 //! 		     (Authenticate2_SpecifiyMethodSubset)
       
   707 //! @SYMREQ REQ4966 4977 4978 4979 4980 4981 4963
       
   708 //! @SYMTestPriority Medium
       
   709 //! @SYMTestActions  
       
   710 //! @SYMTestExpectedResults 
       
   711 //! @SYMDevelopedForRelease Intulo
       
   712 START_TESTCASE SEC-AUT-AUTHSVR-0082
       
   713 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
   714 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   715 RUN_TEST_STEP !Result=Fail 100  tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0082b
       
   716 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0082c
       
   717 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0082d
       
   718 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0082e
       
   719 END_TESTCASE SEC-AUT-AUTHSVR-0082 
       
   720 
       
   721 
       
   722 ////
       
   723 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0083
       
   724 //! @SYMTestCaseDesc Authenticate3_NoActiveMethods
       
   725 //! @SYMREQ REQ4966 4977 4978 4979 4980 4981 4963
       
   726 //! @SYMTestPriority Medium
       
   727 //! @SYMTestActions  
       
   728 //! @SYMTestExpectedResults 
       
   729 //! @SYMDevelopedForRelease Intulo
       
   730 START_TESTCASE SEC-AUT-AUTHSVR-0083
       
   731 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
   732 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   733 RUN_TEST_STEP !Result=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0083b
       
   734 END_TESTCASE SEC-AUT-AUTHSVR-0083
       
   735 
       
   736  
       
   737 ////
       
   738 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0084
       
   739 //! @SYMTestCaseDesc Authenticate4_RestrictedAuth_VariousConfigurations
       
   740 //! @SYMREQ REQ4966 4977 4978 4979 4980 4981 4963
       
   741 //! @SYMTestPriority Medium
       
   742 //! @SYMTestActions  
       
   743 //! @SYMTestExpectedResults 
       
   744 //! @SYMDevelopedForRelease Intulo
       
   745 START_TESTCASE SEC-AUT-AUTHSVR-0084
       
   746 LOAD_SUITE tAuthSvrWDD
       
   747 LOAD_SUITE tAuthSvrNC
       
   748 RUN_TEST_STEP !Result=0 100	tAuthSvrWDD 	REMOVE_DBS
       
   749 RUN_TEST_STEP !Result=Fail 100	tAuthSvrWDD 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   750 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   751 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0084b
       
   752 RUN_TEST_STEP !Result=0 100	tAuthSvrWDD	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0084b
       
   753 RUN_TEST_STEP !Error=-46 100	tAuthSvrNC 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0084b
       
   754 RUN_TEST_STEP !Result=0 100	tAuthSvrNC 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0084c
       
   755 RUN_TEST_STEP !Result=0 100	tAuthSvrNC 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0084d
       
   756 END_TESTCASE SEC-AUT-AUTHSVR-0084
       
   757 
       
   758 
       
   759 // ////
       
   760 // //! @SYMTestCaseID SEC-AUT-AUTHSVR-0085
       
   761 // //! @SYMTestCaseDesc Authenticate5_SpecifyType
       
   762 // //! @SYMREQ REQ4966 4977 4978 4979 4980 4981 4963
       
   763 // //! @SYMTestPriority Medium
       
   764 // //! @SYMTestActions  
       
   765 // //! @SYMTestExpectedResults 
       
   766 // //! @SYMDevelopedForRelease Intulo
       
   767 // START_TESTCASE SEC-AUT-AUTHSVR-0085
       
   768 // RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
   769 // RUN_TEST_STEP !Result=0 100	tAuthSvr 	SET_PREFS 		c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0085b
       
   770 // RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   771 // RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0085b
       
   772 // RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0085c
       
   773 // END_TESTCASE SEC-AUT-AUTHSVR-0085
       
   774 
       
   775 ////
       
   776 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0086
       
   777 //! @SYMTestCaseDesc Authenticate6_SpecifyPreferredPluginOfType
       
   778 //! @SYMREQ REQ4966 4977 4978 4979 4980 4981 4963
       
   779 //! @SYMTestPriority Medium
       
   780 //! @SYMTestActions  
       
   781 //! @SYMTestExpectedResults 
       
   782 //! @SYMDevelopedForRelease Intulo
       
   783 START_TESTCASE SEC-AUT-AUTHSVR-0086 
       
   784 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
   785 RUN_TEST_STEP !Result=0 100	tAuthSvr 	SET_PREFS 		c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0086b
       
   786 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   787 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0086b
       
   788 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0086c
       
   789 END_TESTCASE SEC-AUT-AUTHSVR-0086
       
   790 
       
   791 ////
       
   792 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0087
       
   793 //! @SYMTestCaseDesc Authenticate7_NoActivePluginsOfSpecifiedType
       
   794 //! @SYMREQ REQ4966 4977 4978 4979 4980 4981 4963
       
   795 //! @SYMTestPriority Medium
       
   796 //! @SYMTestActions  
       
   797 //! @SYMTestExpectedResults 
       
   798 //! @SYMDevelopedForRelease Intulo
       
   799 START_TESTCASE SEC-AUT-AUTHSVR-0087
       
   800 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
   801 RUN_TEST_STEP !Result=0 100	tAuthSvr 	SET_PREFS 		c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0087b
       
   802 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   803 RUN_TEST_STEP !Result=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0087b
       
   804 RUN_TEST_STEP !Result=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0087c
       
   805 RUN_TEST_STEP !Result=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0087d
       
   806 END_TESTCASE SEC-AUT-AUTHSVR-0087
       
   807 
       
   808 ////
       
   809 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0088
       
   810 //! @SYMTestCaseDesc Authenticate8_PluginInactiveSoAlternativeSubExpressionIsUsed
       
   811 //! @SYMREQ REQ4966 4977 4978 4979 4980 4981 4963
       
   812 //! @SYMTestPriority Medium
       
   813 //! @SYMTestActions  
       
   814 //! @SYMTestExpectedResults 
       
   815 //! @SYMDevelopedForRelease Intulo
       
   816 START_TESTCASE SEC-AUT-AUTHSVR-0088
       
   817 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
   818 RUN_TEST_STEP !Result=0 100	tAuthSvr 	SET_PREFS 		c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0087b
       
   819 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   820 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0088b
       
   821 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0088c
       
   822 END_TESTCASE SEC-AUT-AUTHSVR-0088
       
   823 
       
   824 ////
       
   825 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0089
       
   826 //! @SYMTestCaseDesc Authenticate9_ServerStopped
       
   827 //! @SYMREQ REQ4966 4977 4978 4979 4980 4981 4963
       
   828 //! @SYMTestPriority Medium
       
   829 //! @SYMTestActions  
       
   830 //! @SYMTestExpectedResults 
       
   831 //! @SYMDevelopedForRelease Intulo
       
   832 START_TESTCASE SEC-AUT-AUTHSVR-0089
       
   833 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
   834 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   835 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0089b
       
   836 DELAY 3500
       
   837 RUN_TEST_STEP !Result=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0089c
       
   838 END_TESTCASE SEC-AUT-AUTHSVR-0089
       
   839 
       
   840 
       
   841 ////
       
   842 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0092
       
   843 //! @SYMTestCaseDesc Authenticate12_NoUserIdentified
       
   844 //! @SYMREQ REQ4966 4977 4978 4979 4980 4981 4963
       
   845 //! @SYMTestPriority Medium
       
   846 //! @SYMTestActions  
       
   847 //! @SYMTestExpectedResults 
       
   848 //! @SYMDevelopedForRelease Intulo
       
   849 START_TESTCASE SEC-AUT-AUTHSVR-0092
       
   850 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
   851 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   852 RUN_TEST_STEP !Result=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0092b
       
   853 END_TESTCASE SEC-AUT-AUTHSVR-0092
       
   854 
       
   855 //
       
   856 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0093
       
   857 //! @SYMTestCaseDesc An authclient successfully authenticates where the user specifies the auth method
       
   858 //!                  given that no preferred method exists
       
   859 //! 		     (Authenticate13_UserSelectsMethod)
       
   860 //! @SYMREQ 4984 4977 4979 4980 4963
       
   861 //! @SYMTestPriority Medium
       
   862 //! @SYMTestActions  Have 3 plugins that support default data and are active, all trained with the default identity
       
   863 //!                  and a second identity
       
   864 //!                  Call authenticate, expecting the 2nd identity with a freshness of 0 seconds and an auth expression
       
   865 //!                  of (2nd OR 3rd plugin). Supply correct input for the 3rd plugin, but wrong info for the 2nd plugin
       
   866 //!                  Call authenticate, expecting the 2nd identity with a freshness of 300 seconds and an auth
       
   867 //!                  expression of (Default AND 2nd plugin). Supply wrong input for the 2nd plugin and the default plugin
       
   868 //! @SYMTestExpectedResults First, the 2nd identity is successfully authenticated.
       
   869 //!                  During the second auth call, the input data is not read since the auth step is waived, since the 
       
   870 //!                  freshness period has not elapsed.
       
   871 //! @SYMDevelopedForRelease Intulo
       
   872 START_TESTCASE SEC-AUT-AUTHSVR-0093
       
   873 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
   874 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
   875 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0093b
       
   876 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0093c
       
   877 END_TESTCASE SEC-AUT-AUTHSVR-0093
       
   878 
       
   879 
       
   880 
       
   881 
       
   882 // ////
       
   883 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0036
       
   884 //! @SYMTestCaseDesc Successful attempt to remove a specified identity
       
   885 //! 		     (RemoveIdentity1_Normal)
       
   886 //! @SYMREQ 4964 4965 4966 4954 4963
       
   887 //! @SYMTestPriority Medium
       
   888 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   889 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   890 //!			call the Enumerate Plugins API
       
   891 //!			Successfully register a 2nd identity while using a specified PIN input
       
   892 //!			Authenticate then call the removeIdentity() function. Use the a valid input so that the
       
   893 //!			identity that was recently registered is returned following the Authentication, then removed
       
   894 //! @SYMTestExpectedResults The registration is successful, the authentication is successful, 
       
   895 //!			as well as the removeIdentity call.
       
   896 //!			The plugin status for both plugins is fully trained, then fully trained again
       
   897 //! @SYMDevelopedForRelease Intulo
       
   898 START_TESTCASE SEC-AUT-AUTHSVR-0036
       
   899 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   900 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0101a
       
   901 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0101b
       
   902 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0101b
       
   903 RUN_TEST_STEP !Result=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0101d
       
   904 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0101b
       
   905 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   906 END_TESTCASE SEC-AUT-AUTHSVR-0036
       
   907 
       
   908 
       
   909 ////
       
   910 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0037
       
   911 //! @SYMTestCaseDesc Attempt to remove a specified identity when only one identity exists
       
   912 //! 		     (RemoveIdentity2_OneIdentity)
       
   913 //! @SYMREQ 4964 4965 4966 4954 4963
       
   914 //! @SYMTestPriority Medium
       
   915 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   916 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   917 //!			call the Enumerate Plugins API
       
   918 //!			Authenticate then call the removeIdentity() function. Use an input that corresponds to what
       
   919 //!			was used to register the default identity. Therefore the default identity is returned 
       
   920 //!			following the Authentication, then attempt to remove it
       
   921 //! @SYMTestExpectedResults The authentication is successful, but the removeIdentity call fails
       
   922 //!			The plugin status for the specified plugin is fully trained, then fully trained again
       
   923 //! @SYMDevelopedForRelease Intulo
       
   924 START_TESTCASE SEC-AUT-AUTHSVR-0037
       
   925 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   926 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0102a
       
   927 RUN_TEST_STEP !Error=-10811 100	tAuthSvr 	REMOVE_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0102b
       
   928 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0102c
       
   929 END_TESTCASE SEC-AUT-AUTHSVR-0037
       
   930 
       
   931 
       
   932 // ////
       
   933 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0038
       
   934 //! @SYMTestCaseDesc Attempt to remove a non-existent identity
       
   935 //! 		     (RemoveIdentity3_NonExistentIdentity)
       
   936 //! @SYMREQ 4964 4965 4966 4954 4963
       
   937 //! @SYMTestPriority Medium
       
   938 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   939 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   940 //!			call the Enumerate Plugins API
       
   941 //!			Successfully register a 2nd identity while using a specified PIN input
       
   942 //!			Authenticate then call the removeIdentity() function.
       
   943 //!                     However, set the forgetUnknown flag to true, so that the test attempts to remove
       
   944 //!                     a non-existent identity
       
   945 //! @SYMTestExpectedResults The authentication is successful.
       
   946 //!			but the removeIdentity call fails because the identity is not found by the AuthServer
       
   947 //! @SYMDevelopedForRelease Intulo
       
   948 START_TESTCASE SEC-AUT-AUTHSVR-0038
       
   949 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   950 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0103a
       
   951 RUN_TEST_STEP !RESULT=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0103b
       
   952 RUN_TEST_STEP !Error=-10808 100	tAuthSvr 	REMOVE_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0103c
       
   953 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0103c
       
   954 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
   955 END_TESTCASE SEC-AUT-AUTHSVR-0038
       
   956 
       
   957 // ////
       
   958 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0039
       
   959 //! @SYMTestCaseDesc Attempt to remove a specified identity but the authentication fails
       
   960 //! 		     (RemoveIdentity4_AuthFailed)
       
   961 //! @SYMREQ 4964 4965 4966 4954 4963
       
   962 //! @SYMTestPriority Medium
       
   963 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   964 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   965 //!			call the Enumerate Plugins API
       
   966 //!			Successfully register a 2nd identity while using a specified PIN input
       
   967 //!			Authenticate then call the removeIdentity() function. Use an input that doesn't correspond
       
   968 //!			to what was used to register the 2nd identity. Therefore no identity is returned 
       
   969 //!			following the Authentication. Attempt to remove this absent identity.
       
   970 //! @SYMTestExpectedResults The authentication fails,  and the removeIdentity call fails.
       
   971 //!			because there is no such identity in the authentication server.
       
   972 //!			The plugin status for the specified plugin is fully trained, then fully trained again
       
   973 //!			There's 1 identity present after the 2 removeIdentity calls
       
   974 //! @SYMDevelopedForRelease Intulo
       
   975 START_TESTCASE SEC-AUT-AUTHSVR-0039
       
   976 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
   977 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0104a
       
   978 RUN_TEST_STEP !RESULT=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0104b
       
   979 RUN_TEST_STEP !Error=-10808 100	tAuthSvr 	REMOVE_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0104c
       
   980 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0104c
       
   981 END_TESTCASE SEC-AUT-AUTHSVR-0039
       
   982 
       
   983 // ////
       
   984 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0040
       
   985 //! @SYMTestCaseDesc Attempt to remove a non-existent identity when two other identities exist
       
   986 //! 		     (RemoveIdentity5_NonExistentIdentity_TwoOthersExist)
       
   987 //! @SYMREQ 4964 4965 4966 4954 4963 5011
       
   988 //! @SYMTestPriority Medium
       
   989 //! @SYMTestActions  Have a default plugin defined, which is active, and a second one which is active as well
       
   990 //!			use a client that has ReadDeviceData capability to connect to the AuthServer, 
       
   991 //!			call the Enumerate Plugins API
       
   992 //!			Successfully register a 2nd identity while using a specified PIN input
       
   993 //!			Successfully register a 3rd identity while using a specified PIN input
       
   994 //!			Authenticate then call the removeIdentity() function. Use an input that corresponds to what
       
   995 //!			was used to register the 2nd identity. Therefore the 2nd identity is returned 
       
   996 //!			following the Authentication. Remove this second identity then attempt to remove it again
       
   997 //! @SYMTestExpectedResults The authentication is successful,  and the first removeIdentity call passes.
       
   998 //!			but the second removeIdentity call fails because an unknown identity was specified
       
   999 //!			The plugin status for the specified plugin is fully trained, then fully trained again
       
  1000 //!			There are 2 identities present after the 2 removeIdentity calls
       
  1001 //! @SYMDevelopedForRelease Intulo
       
  1002 START_TESTCASE SEC-AUT-AUTHSVR-0040
       
  1003 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1004 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0105a
       
  1005 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0105b
       
  1006 RUN_TEST_STEP !RESULT=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0105c
       
  1007 RUN_TEST_STEP !Error=-10808 100	tAuthSvr 	REMOVE_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0105d
       
  1008 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHSVR_CHECK	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0105d
       
  1009 END_TESTCASE SEC-AUT-AUTHSVR-0040
       
  1010 
       
  1011 // ////
       
  1012 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0049
       
  1013 //! @SYMTestCaseDesc A user successfully removes an authentication plug-in trained for their identity
       
  1014 //! 		     (ForgetPlug-in1_Normal)
       
  1015 //! @SYMREQ REQ4964 REQ4965 REQ4966 REQ4954 4963
       
  1016 //! @SYMTestPriority Medium
       
  1017 //! @SYMTestActions  
       
  1018 //! @SYMTestExpectedResults 
       
  1019 //! @SYMDevelopedForRelease Intulo
       
  1020 START_TESTCASE SEC-AUT-AUTHSVR-0049 
       
  1021 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1022 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0121b
       
  1023 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0121a
       
  1024 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	FORGET_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0121c
       
  1025 RUN_TEST_STEP !RESULT=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0121d
       
  1026 END_TESTCASE SEC-AUT-AUTHSVR-0049
       
  1027 
       
  1028 // ////
       
  1029 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0050
       
  1030 //! @SYMTestCaseDesc A user attempts to remove an auth plug-in trained for their identity, but there's only a single auth method for the identity.
       
  1031 //! 		     (ForgetPlug-in1_LastPlugin)
       
  1032 //! @SYMREQ REQ4964 REQ4965 REQ4966 REQ4954 4963
       
  1033 //! @SYMTestPriority Medium
       
  1034 //! @SYMTestActions  
       
  1035 //! @SYMTestExpectedResults 
       
  1036 //! @SYMDevelopedForRelease Intulo
       
  1037 START_TESTCASE SEC-AUT-AUTHSVR-0050
       
  1038 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1039 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0122b
       
  1040 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0122a
       
  1041 RUN_TEST_STEP !Error=-10812 100 tAuthSvr FORGET_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0122c
       
  1042 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0122a
       
  1043 END_TESTCASE SEC-AUT-AUTHSVR-0050
       
  1044 
       
  1045 // ///
       
  1046 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0051
       
  1047 //! @SYMTestCaseDesc A user attempts to remove an auth plug-in, but the identity has no transient key associated with this plug-in
       
  1048 //! 		     (ForgetUntrainedAuthMethod)
       
  1049 //! @SYMREQ REQ4964 REQ4965 REQ4966 REQ4954 4963
       
  1050 //! @SYMTestPriority Medium
       
  1051 //! @SYMTestActions  
       
  1052 //! @SYMTestExpectedResults 
       
  1053 //! @SYMDevelopedForRelease Intulo
       
  1054 START_TESTCASE SEC-AUT-AUTHSVR-0051
       
  1055 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1056 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0123b
       
  1057 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0123a
       
  1058 RUN_TEST_STEP !Error=-10809 100      tAuthSvr        FORGET_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0123c
       
  1059 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0123a
       
  1060 END_TESTCASE SEC-AUT-AUTHSVR-0051 
       
  1061 
       
  1062 // ///
       
  1063 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0052
       
  1064 //! @SYMTestCaseDesc A user attempts to remove an auth plug-in, but the plugin does not exist
       
  1065 //! 		     (ForgetUnknownPlugin)
       
  1066 //! @SYMREQ REQ4964 REQ4965 REQ4966 REQ4954 4963
       
  1067 //! @SYMTestPriority Medium
       
  1068 //! @SYMTestActions  
       
  1069 //! @SYMTestExpectedResults 
       
  1070 //! @SYMDevelopedForRelease Intulo
       
  1071 START_TESTCASE SEC-AUT-AUTHSVR-0052
       
  1072 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1073 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0124b
       
  1074 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0124a
       
  1075 RUN_TEST_STEP !Error=-10809 100 tAuthSvr 	FORGET_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0124c
       
  1076 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0124a
       
  1077 END_TESTCASE SEC-AUT-AUTHSVR-0052
       
  1078 
       
  1079 // //
       
  1080 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0053
       
  1081 //! @SYMTestCaseDesc A user attempts to remove an auth plug-in, but the identity specified does not exist
       
  1082 //! 		     (ForgetUnknownIdentity)
       
  1083 //! @SYMREQ REQ4964 REQ4965 REQ4966 REQ4954
       
  1084 //! @SYMTestPriority Medium
       
  1085 //! @SYMTestActions  
       
  1086 //! @SYMTestExpectedResults 
       
  1087 //! @SYMDevelopedForRelease Intulo
       
  1088 START_TESTCASE SEC-AUT-AUTHSVR-0053
       
  1089 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1090 RUN_TEST_STEP !Error=-10803 100 tAuthSvr FORGET_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0125
       
  1091 END_TESTCASE SEC-AUT-AUTHSVR-0053
       
  1092 
       
  1093 
       
  1094 ////
       
  1095 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0054
       
  1096 //! @SYMTestCaseDesc Auth preferences are set correctly.
       
  1097 //! 		     (SetPreference_Success)
       
  1098 //! @SYMREQ REQ4983 REQ4973 REQ4966 REQ4967 REQ4968
       
  1099 //! @SYMTestPriority Medium
       
  1100 //! @SYMTestActions  
       
  1101 //! @SYMTestExpectedResults 
       
  1102 //! @SYMDevelopedForRelease Intulo
       
  1103 START_TESTCASE SEC-AUT-AUTHSVR-0054
       
  1104 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1105 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0141
       
  1106 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	SET_PREFS 	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0141
       
  1107 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE    c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0141
       
  1108 END_TESTCASE SEC-AUT-AUTHSVR-0054
       
  1109 
       
  1110 
       
  1111 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0055
       
  1112 //! @SYMTestCaseDesc An Auth preference is set with an invalid plug-in
       
  1113 //! 		     (SetPreference_UnknownPlugin)
       
  1114 //! @SYMREQ REQ4964 REQ4965 REQ4966 REQ4954
       
  1115 //! @SYMTestPriority Medium
       
  1116 //! @SYMTestActions  
       
  1117 //! @SYMTestExpectedResults 
       
  1118 //! @SYMDevelopedForRelease Intulo
       
  1119 START_TESTCASE SEC-AUT-AUTHSVR-0055
       
  1120 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1121 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0142
       
  1122 RUN_TEST_STEP !Error=-6 100	tAuthSvr 	SET_PREFS       c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0142
       
  1123 RUN_TEST_STEP !Error=-10802 100	tAuthSvr AUTHENTICATE    c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0142
       
  1124 END_TESTCASE SEC-AUT-AUTHSVR-0055
       
  1125 
       
  1126 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0143
       
  1127 //! @SYMTestCaseDesc An Auth preference is set with plugin types that don't match the specified categories for which
       
  1128 //!                  they were set as preferred.
       
  1129 //! 		     (SetPreference_WrongCategory)
       
  1130 //! @SYMREQ REQ4964 REQ4965 REQ4966 REQ4954 REQ4974
       
  1131 //! @SYMTestPriority Medium
       
  1132 //! @SYMTestActions  Register an identity, training with 4 plugins, A, B, C, D
       
  1133 //!                  Set the preferences Knowledge = C,  Biometric = A, Token = B
       
  1134 //!                  Where C, A and B are actually Biometric, Knowledge and Knowledge types
       
  1135 //! @SYMTestExpectedResults The registration is successful, but the authentication fails, since the plugins
       
  1136 //!                  selected in the preferences are of the wrong type or category
       
  1137 //! @SYMDevelopedForRelease Intulo
       
  1138 START_TESTCASE SEC-AUT-AUTHSVR-0143
       
  1139 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1140 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0143
       
  1141 RUN_TEST_STEP !Error=-6	tAuthSvr 	SET_PREFS       c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0143
       
  1142 RUN_TEST_STEP !Result=Fail 100	tAuthSvr 	AUTHENTICATE    c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0143
       
  1143 END_TESTCASE SEC-AUT-AUTHSVR-0143
       
  1144 
       
  1145 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0145
       
  1146 //! @SYMTestCaseDesc Remove_PinPlugin_Data
       
  1147 START_TESTCASE SEC-AUT-AUTHSVR-0145
       
  1148 RUN_UTILS DeleteFile  C:\t_pinplugindlg_in.dat
       
  1149 RUN_UTILS DeleteFile  C:\t_pinplugindlg_out.dat
       
  1150 END_TESTCASE SEC-AUT-AUTHSVR-0145
       
  1151 
       
  1152 
       
  1153 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0146
       
  1154 //! @SYMTestCaseDesc Check the information published with no identities registered.
       
  1155 //! @SYMREQ REQ11228
       
  1156 //! @SYMTestPriority High
       
  1157 //! @SYMTestActions  Start the AuthServer and check for information published by KUidAuthServerLastAuth property
       
  1158 //! @SYMTestExpectedResults No value is published
       
  1159 //! @SYMDevelopedForRelease Intulo
       
  1160 
       
  1161 START_TESTCASE SEC-AUT-AUTHSVR-0146
       
  1162 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1163 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RESULT_AVAILABILITY	c:\tauth\tAuthSvr\testdata\authsvrpolicy.ini SectionOne
       
  1164 END_TESTCASE SEC-AUT-AUTHSVR-0146
       
  1165 
       
  1166 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0147
       
  1167 //! @SYMTestCaseDesc Check the published value on authentication failure for the first user
       
  1168 //! @SYMREQ REQ11228 
       
  1169 //! @SYMTestPriority High
       
  1170 //! @SYMTestActions  Register an Identity but cause the authentication to fail.Check for the value published by KUidAuthServerLastAuth 
       
  1171 //! @SYMTestExpectedResults No Value is published
       
  1172 //! @SYMDevelopedForRelease Intulo
       
  1173 START_TESTCASE SEC-AUT-AUTHSVR-0147
       
  1174 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1175 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0156
       
  1176 RUN_TEST_STEP !Result=Fail 100 tAuthSvr 	AUTHENTICATE    c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0157
       
  1177 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RESULT_AVAILABILITY	c:\tauth\tAuthSvr\testdata\authsvrpolicy.ini SectionOne
       
  1178 END_TESTCASE SEC-AUT-AUTHSVR-0147
       
  1179 
       
  1180 
       
  1181 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0148
       
  1182 //! @SYMTestCaseDesc Check the published value on successful authentication
       
  1183 //! @SYMREQ REQ11228
       
  1184 //! @SYMTestPriority High
       
  1185 //! @SYMTestActions  Register and Authenticate a user successfully.Check for the published KUidAuthServerLastAuth property value
       
  1186 //! @SYMTestExpectedResults The authenticated user information should be available.
       
  1187 //! @SYMDevelopedForRelease Intulo
       
  1188 START_TESTCASE SEC-AUT-AUTHSVR-0148
       
  1189 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0158
       
  1190 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE    c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0159
       
  1191 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RESULT_AVAILABILITY	c:\tauth\tAuthSvr\testdata\authsvrpolicy.ini SectionOne
       
  1192 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE    c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0159
       
  1193 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RESULT_AVAILABILITY	c:\tauth\tAuthSvr\testdata\authsvrpolicy.ini SectionOne
       
  1194 END_TESTCASE SEC-AUT-AUTHSVR-0148
       
  1195 
       
  1196 
       
  1197 
       
  1198 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0149
       
  1199 //! @SYMTestCaseDesc Check the published value on authentication failure
       
  1200 //! @SYMREQ REQ11228 
       
  1201 //! @SYMTestPriority High
       
  1202 //! @SYMTestActions  Register an Identity but cause the authentication to fail.Check for the value published by KUidAuthServerLastAuth 
       
  1203 //! @SYMTestExpectedResults The User Information of the previously successful Identity is available.
       
  1204 //! @SYMDevelopedForRelease Intulo
       
  1205 START_TESTCASE SEC-AUT-AUTHSVR-0149
       
  1206 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0156
       
  1207 RUN_TEST_STEP !Result=Fail 100 tAuthSvr 	AUTHENTICATE    c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0157
       
  1208 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	RESULT_AVAILABILITY	c:\tauth\tAuthSvr\testdata\authsvrpolicy.ini SectionOne
       
  1209 END_TESTCASE SEC-AUT-AUTHSVR-0149
       
  1210  
       
  1211 
       
  1212 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0150
       
  1213 //! @SYMTestCaseDesc Notification of a change in authenticated identity on successful authentication.
       
  1214 //! @SYMREQ REQ11228,REQ11229
       
  1215 //! @SYMTestPriority High
       
  1216 //! @SYMTestActions  Register and Authenticate an identity and check if the KUidAuthServerAuthChangeEvent Property 
       
  1217 //!      	      gets published with  the new Identity .Reauthenticate the same identity again and check for the published value		      value
       
  1218 //! @SYMTestExpectedResults Registration and Authentication is successful,KUidAuthServerAuthChangeEvent gets published with
       
  1219 //!			    the new Identity. ReAuthentication is successful, but KUidAuthServerAuthChangeEvent is not published
       
  1220 //! @SYMDevelopedForRelease Intulo
       
  1221 
       
  1222 START_TESTCASE SEC-AUT-AUTHSVR-0150
       
  1223 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1224 RUN_TEST_STEP_RESULT 0 100	tAuthSvr	RESULT_NOTIFICATION   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0160
       
  1225 END_TESTCASE SEC-AUT-AUTHSVR-0150
       
  1226 
       
  1227 
       
  1228 
       
  1229 
       
  1230 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0151
       
  1231 //! @SYMTestCaseDesc Notification of a change in authenticated identity on authentication failure.
       
  1232 //! @SYMREQ REQ11228,REQ11229
       
  1233 //! @SYMTestPriority High
       
  1234 //! @SYMTestActions  Register an Identity but fail the Authentication.check if the KUidAuthServerAuthChangeEvent Property 
       
  1235 //!      	      gets published with  the new Identity
       
  1236 //! @SYMTestExpectedResults Registration is successful,Authentication fails,KUidAuthServerAuthChangeEvent is not published
       
  1237 //! @SYMDevelopedForRelease Intulo
       
  1238 
       
  1239 START_TESTCASE SEC-AUT-AUTHSVR-0151
       
  1240 RUN_TEST_STEP_RESULT 0 100	tAuthSvr	RESULT_NOTIFICATION   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0161
       
  1241 END_TESTCASE SEC-AUT-AUTHSVR-0151
       
  1242 
       
  1243 
       
  1244 
       
  1245 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0152
       
  1246 //! @SYMTestCaseDesc Notification of a change in authenticated identity upon DeAuthentication
       
  1247 //! @SYMREQ REQ11228,REQ11229
       
  1248 //! @SYMTestPriority Medium
       
  1249 //! @SYMTestActions  Register and Authenticate an identity and DeAuthenticate it.
       
  1250 //! @SYMTestExpectedResults DeAuthentication is successful, KUidAuthServerAuthChangeEvent gets published with 0.
       
  1251 //! @SYMDevelopedForRelease Intulo
       
  1252 
       
  1253 
       
  1254 START_TESTCASE SEC-AUT-AUTHSVR-0152
       
  1255 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1256 RUN_TEST_STEP_RESULT 0 100	tAuthSvr	RESULT_NOTIFICATION   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0162
       
  1257 END_TESTCASE SEC-AUT-AUTHSVR-0152
       
  1258 
       
  1259 
       
  1260 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0153
       
  1261 //! @SYMTestCaseDesc Update the default plugin to 11113100
       
  1262 
       
  1263 START_TESTCASE SEC-AUT-AUTHSVR-0153
       
  1264 RUN_UTILS DeleteFile C:\private\10202be9\persists\2001ea7f.cre
       
  1265 RUN_TEST_STEP_RESULT 0 100	tAuthSvr_new 	INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin1
       
  1266 END_TESTCASE SEC-AUT-AUTHSVR-0153
       
  1267 
       
  1268 
       
  1269 
       
  1270 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0154
       
  1271 //! @SYMTestCaseDesc API validation testing for Asynchronous Authenticate using the default plugin.
       
  1272 //!                  
       
  1273 //! @SYMREQ REQ11230
       
  1274 //! @SYMTestPriority High
       
  1275 //! @SYMTestActions  Remove the Authentication database and call Authenticate using the default plugin and default identity.
       
  1276 //! @SYMTestExpectedResults Authentication is successful.
       
  1277 //! @SYMDevelopedForRelease Intulo
       
  1278 
       
  1279 START_TESTCASE SEC-AUT-AUTHSVR-0154
       
  1280 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1281 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1282 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity1
       
  1283 END_TESTCASE SEC-AUT-AUTHSVR-0154
       
  1284 
       
  1285 
       
  1286 
       
  1287 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0155
       
  1288 //! @SYMTestCaseDesc API validation testing for Synchronous Authenticate using the default plugin.
       
  1289 //!                  
       
  1290 //! @SYMREQ REQ11230
       
  1291 //! @SYMTestPriority High
       
  1292 //! @SYMTestActions  Remove the Authentication database and call Authenticate using the default plugin and default identity.
       
  1293 //! @SYMTestExpectedResults Authentication is successful.
       
  1294 //! @SYMDevelopedForRelease Intulo
       
  1295 START_TESTCASE SEC-AUT-AUTHSVR-0155
       
  1296 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1297 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1298 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity2
       
  1299 END_TESTCASE SEC-AUT-AUTHSVR-0155
       
  1300 
       
  1301 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0155
       
  1302 //! @SYMTestCaseDesc API validation testing for Asynchronous Authenticate using the default plugin.
       
  1303 //!                  
       
  1304 //! @SYMREQ REQ11230
       
  1305 //! @SYMTestPriority High
       
  1306 //! @SYMTestActions  Remove the Authentication database and call Authenticate using the default plugin and an invalid pin.
       
  1307 //! @SYMTestExpectedResults Authentication fails.
       
  1308 //! @SYMDevelopedForRelease Intulo
       
  1309 
       
  1310 START_TESTCASE SEC-AUT-AUTHSVR-0155
       
  1311 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1312 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1313 RUN_TEST_STEP !RESULT=FAIL 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity3
       
  1314 END_TESTCASE SEC-AUT-AUTHSVR-0155
       
  1315 
       
  1316 
       
  1317 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0156
       
  1318 //! @SYMTestCaseDesc API validation testing for Synchronous Authenticate using the default plugin.
       
  1319 //!                  
       
  1320 //! @SYMREQ REQ11230
       
  1321 //! @SYMTestPriority High
       
  1322 //! @SYMTestActions  Remove the Authentication database and call Authenticate using the default plugin and an invalid pin.
       
  1323 //! @SYMTestExpectedResults Authentication fails
       
  1324 //! @SYMDevelopedForRelease Intulo
       
  1325 
       
  1326 START_TESTCASE SEC-AUT-AUTHSVR-0156
       
  1327 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1328 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1329 RUN_TEST_STEP !RESULT=FAIL  100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity4
       
  1330 END_TESTCASE SEC-AUT-AUTHSVR-0156
       
  1331 
       
  1332 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0157
       
  1333 //! @SYMTestCaseDesc Set the default plugin value to a plugin with no default data                  
       
  1334 //! @SYMREQ REQ11230
       
  1335 //! @SYMTestPriority High
       
  1336 //! @SYMTestActions  Remove the Authentication database and call Authenticate using the default plugin and default identity.
       
  1337 //! @SYMTestExpectedResults AuthServer fails to startup as the default user is not created successfully.
       
  1338 //! @SYMDevelopedForRelease Intulo
       
  1339 
       
  1340 START_TESTCASE SEC-AUT-AUTHSVR-0157
       
  1341 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1342 RUN_UTILS DeleteFile C:\private\10202be9\persists\2001ea7f.cre
       
  1343 RUN_TEST_STEP_RESULT 0 100	tAuthSvr_new 	INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin2
       
  1344 
       
  1345 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1346 RUN_TEST_STEP !RESULT=-2  100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin3
       
  1347 END_TESTCASE SEC-AUT-AUTHSVR-0157
       
  1348 
       
  1349 
       
  1350 
       
  1351 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0158
       
  1352 //! @SYMTestCaseDesc Try to retrain the default user              
       
  1353 //! @SYMREQ REQ11230
       
  1354 //! @SYMTestPriority High
       
  1355 //! @SYMTestActions  Remove the Authentication database and call retrain on the default identity.
       
  1356 //! @SYMTestExpectedResults Fails with KErrNotSupported.
       
  1357 //! @SYMDevelopedForRelease Intulo
       
  1358 
       
  1359 
       
  1360 START_TESTCASE SEC-AUT-AUTHSVR-0158
       
  1361 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1362 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1363 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity2
       
  1364 RUN_TEST_STEP !Error=-5  100	tAuthSvr 	RETRAIN_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin4
       
  1365 END_TESTCASE SEC-AUT-AUTHSVR-0158
       
  1366 
       
  1367 
       
  1368 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0159
       
  1369 //! @SYMTestCaseDesc Try to remove the default user                
       
  1370 //! @SYMREQ REQ11230
       
  1371 //! @SYMTestPriority High
       
  1372 //! @SYMTestActions  Remove the Authentication database and authenticate successfully using the default Id.
       
  1373 //! 			   Try to remove the default identity.
       
  1374 //! @SYMTestExpectedResults Fails with -10811 (KErrAuthServCanNotRemoveDefaultIdentity)
       
  1375 //! @SYMDevelopedForRelease Intulo
       
  1376 
       
  1377 START_TESTCASE SEC-AUT-AUTHSVR-0159
       
  1378 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1379 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1380 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity2
       
  1381 RUN_TEST_STEP !Error=-10811  100	tAuthSvr 	REMOVE_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity6
       
  1382 END_TESTCASE SEC-AUT-AUTHSVR-0159
       
  1383 
       
  1384 
       
  1385 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0160
       
  1386 //! @SYMTestCaseDesc Call forget plugin on the default identity/default plugin pair 
       
  1387 //!                  
       
  1388 //! @SYMREQ REQ11230
       
  1389 //! @SYMTestPriority High
       
  1390 //! @SYMTestActions  Remove the Authentication database and authenticate successfully using the default Id.
       
  1391 //! 			   Call forget plugin on the default Identity/ default plugin pair.
       
  1392 //! @SYMTestExpectedResults Fails with -10812 (KErrAuthServCanNotRemoveLastPlugin)
       
  1393 //! @SYMDevelopedForRelease Intulo
       
  1394 
       
  1395 START_TESTCASE SEC-AUT-AUTHSVR-0160
       
  1396 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1397 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 		REMOVE_DBS
       
  1398 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 		AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity2
       
  1399 RUN_TEST_STEP !Error=-10812  100	tAuthSvr 	FORGET_PLUGIN	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity7
       
  1400 END_TESTCASE SEC-AUT-AUTHSVR-0160
       
  1401 
       
  1402 
       
  1403 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0161
       
  1404 //! @SYMTestCaseDesc API validation testing for Asynchronous Authenticate using the default plugin (null alias).
       
  1405 //!                  
       
  1406 //! @SYMREQ REQ11230
       
  1407 //! @SYMTestPriority High
       
  1408 //! @SYMTestActions  Remove the Authentication database and call Authenticate using the default plugin and default identity.
       
  1409 //! @SYMTestExpectedResults Authentication is successful.
       
  1410 //! @SYMDevelopedForRelease Intulo
       
  1411 
       
  1412 START_TESTCASE SEC-AUT-AUTHSVR-0161
       
  1413 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1414 RUN_TEST_STEP_RESULT 0 100	tAuthSvr_new 	INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin1
       
  1415 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1416 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity8
       
  1417 END_TESTCASE SEC-AUT-AUTHSVR-0161
       
  1418 
       
  1419 
       
  1420 
       
  1421 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0162
       
  1422 //! @SYMTestCaseDesc API validation testing for Synchronous Authenticate using the default plugin (null alias).
       
  1423 //!                  
       
  1424 //! @SYMREQ REQ11230
       
  1425 //! @SYMTestPriority High
       
  1426 //! @SYMTestActions  Remove the Authentication database and call Authenticate using the default plugin and default identity.
       
  1427 //! @SYMTestExpectedResults Authentication is successful.
       
  1428 //! @SYMDevelopedForRelease Intulo
       
  1429 
       
  1430 START_TESTCASE SEC-AUT-AUTHSVR-0162
       
  1431 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1432 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1433 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity9
       
  1434 END_TESTCASE SEC-AUT-AUTHSVR-0162
       
  1435 
       
  1436 
       
  1437 
       
  1438 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0163
       
  1439 //! @SYMTestCaseDesc API validation testing for Asynchronous Authenticate using the default plugin (null alias)..
       
  1440 //!                  
       
  1441 //! @SYMREQ REQ11230
       
  1442 //! @SYMTestPriority High
       
  1443 //! @SYMTestActions  Remove the Authentication database and call Authenticate using the default plugin and default identity.
       
  1444 /
       
  1445 //! @SYMTestExpectedResults Authentication fails.
       
  1446 //! @SYMDevelopedForRelease Intulo
       
  1447 
       
  1448 START_TESTCASE SEC-AUT-AUTHSVR-0163
       
  1449 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1450 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1451 RUN_TEST_STEP !RESULT=FAIL 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity10
       
  1452 END_TESTCASE SEC-AUT-AUTHSVR-0163
       
  1453 
       
  1454 
       
  1455 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0164
       
  1456 //! @SYMTestCaseDesc API validation testing for Synchronous Authenticate using the default plugin (null alias).
       
  1457 //!                  
       
  1458 //! @SYMREQ REQ11230
       
  1459 //! @SYMTestPriority High
       
  1460 //! @SYMTestActions  Remove the Authentication database and call Authenticate using the default plugin and default identity.
       
  1461 /
       
  1462 //! @SYMTestExpectedResults Authentication fails
       
  1463 //! @SYMDevelopedForRelease Intulo
       
  1464 
       
  1465 START_TESTCASE SEC-AUT-AUTHSVR-0164
       
  1466 RUN_UTILS DELETEDIRECTORY C:\testplugin_active\
       
  1467 RUN_TEST_STEP_RESULT 0 100	tAuthSvr 	REMOVE_DBS
       
  1468 RUN_TEST_STEP !RESULT=FAIL  100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defidentity11
       
  1469 RUN_UTILS DeleteFile C:\private\10202be9\persists\2001ea7f.cre
       
  1470 END_TESTCASE SEC-AUT-AUTHSVR-0164
       
  1471 
       
  1472 
       
  1473 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0166
       
  1474 //! @SYMTestCaseDesc Test authentication using an alias which is defined in terms of other aliases wherein 
       
  1475 //!		     some of those aliases are inturn defined as empty string in authserver's cenrep file.
       
  1476 //! @SYMREQ REQ11232,REQ11234
       
  1477 //! @SYMTestActions  Register an identity and authenticate it using an alias as described above.
       
  1478 //! @SYMTestExpectedResults Authentication must fail with KErrAuthStrengthAliasNotDefined.
       
  1479 //! @SYMDevelopedForRelease Diran
       
  1480 
       
  1481 START_TESTCASE SEC-AUT-AUTHSVR-0166
       
  1482 
       
  1483 RUN_TEST_STEP !Result=0 100	tAuthSvr 	REMOVE_DBS
       
  1484 RUN_TEST_STEP !Result=0 100	tAuthSvr	REG_IDENTITY	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthTestRegister
       
  1485 
       
  1486 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0166
       
  1487 RUN_TEST_STEP !Error=-10816 100 tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0166
       
  1488 
       
  1489 END_TESTCASE SEC-AUT-AUTHSVR-0166
       
  1490 
       
  1491 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0170
       
  1492 //! @SYMTestCaseDesc Test authentication using an alias which is defined in terms of other aliases wherein some 
       
  1493 //!		     of those aliases are inturn defined as empty quotes in authserver's cenrep file.
       
  1494 //! @SYMREQ REQ11232,REQ11234
       
  1495 //! @SYMTestActions  Register an identity and authenticate it using an alias as described above.
       
  1496 //! @SYMTestExpectedResults Authentication must fail with KErrAuthStrengthAliasNotDefined.
       
  1497 //! @SYMDevelopedForRelease Diran
       
  1498 
       
  1499 START_TESTCASE SEC-AUT-AUTHSVR-0170
       
  1500 
       
  1501 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0170
       
  1502 RUN_TEST_STEP !Error=-10816 100 tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0170
       
  1503 
       
  1504 END_TESTCASE SEC-AUT-AUTHSVR-0170
       
  1505 
       
  1506 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0171
       
  1507 //! @SYMTestCaseDesc Test authentication using an alias whose alias string is an invalid expression (invalid/unknown alias).
       
  1508 //! @SYMREQ REQ11232,REQ11234
       
  1509 //! @SYMTestActions  Register an identity and authenticate it using an alias as described above.
       
  1510 //! @SYMTestExpectedResults Authentication must fail with KErrAuthServInvalidAliasStringExpression.
       
  1511 //! @SYMDevelopedForRelease Diran
       
  1512 
       
  1513 START_TESTCASE SEC-AUT-AUTHSVR-0171
       
  1514 
       
  1515 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0171
       
  1516 RUN_TEST_STEP !Error=-10817 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0171
       
  1517 
       
  1518 END_TESTCASE SEC-AUT-AUTHSVR-0171
       
  1519 
       
  1520 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0172
       
  1521 //! @SYMTestCaseDesc Test authentication using an alias whose alias string is an invalid expression (invalid operator).
       
  1522 //! @SYMREQ REQ11232,REQ11234
       
  1523 //! @SYMTestActions  Register an identity and authenticate it using an alias as described above.
       
  1524 //! @SYMTestExpectedResults Authentication must fail with KErrAuthServInvalidAliasStringExpression.
       
  1525 //! @SYMDevelopedForRelease Diran
       
  1526 
       
  1527 START_TESTCASE SEC-AUT-AUTHSVR-0172
       
  1528 
       
  1529 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0172
       
  1530 RUN_TEST_STEP !Error=-10817 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0172
       
  1531 
       
  1532 END_TESTCASE SEC-AUT-AUTHSVR-0172
       
  1533 
       
  1534 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0173
       
  1535 //! @SYMTestCaseDesc Test synchronous mode of authentication using an alias which is defined in terms of multiple aliases.
       
  1536 //! @SYMREQ REQ11232,REQ11234
       
  1537 //! @SYMTestActions  Register an identity and authenticate using an alias.
       
  1538 //! @SYMTestExpectedResults Authentication is successful
       
  1539 //! @SYMDevelopedForRelease Diran
       
  1540 
       
  1541 START_TESTCASE SEC-AUT-AUTHSVR-0173
       
  1542 
       
  1543 // Tests synchronous mode of authentication.
       
  1544 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0173
       
  1545 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0173
       
  1546 
       
  1547 END_TESTCASE SEC-AUT-AUTHSVR-0173
       
  1548 
       
  1549 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0174
       
  1550 //! @SYMTestCaseDesc Test asynchronous mode of authentication using an alias which is defined in terms of multiple aliases.
       
  1551 //! @SYMREQ REQ11232,REQ11234
       
  1552 //! @SYMTestActions  Register an identity and authenticate using an alias.
       
  1553 //! @SYMTestExpectedResults Authentication is successful
       
  1554 //! @SYMDevelopedForRelease Diran
       
  1555 
       
  1556 START_TESTCASE SEC-AUT-AUTHSVR-0174
       
  1557 
       
  1558 //Tests aynchronous mode of authentication.
       
  1559 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0174
       
  1560 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0174
       
  1561 
       
  1562 END_TESTCASE SEC-AUT-AUTHSVR-0174
       
  1563 
       
  1564 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0175
       
  1565 //! @SYMTestCaseDesc Test synchronous mode of authentication using an alias which is defined as a subset of other aliases.
       
  1566 //! @SYMREQ REQ11232,REQ11234
       
  1567 //! @SYMTestActions  Register an identity and authenticate using an alias.
       
  1568 //! @SYMTestExpectedResults Authentication is successful
       
  1569 //! @SYMDevelopedForRelease Diran
       
  1570 
       
  1571 START_TESTCASE SEC-AUT-AUTHSVR-0175
       
  1572 
       
  1573 // Tests asynchronous mode of authentication wherein some aliases are a subset of the other.
       
  1574 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0175
       
  1575 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0175
       
  1576 
       
  1577 END_TESTCASE SEC-AUT-AUTHSVR-0175
       
  1578 
       
  1579 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0176
       
  1580 //! @SYMTestCaseDesc Test the auth expression evaluation .An alias which is defined as a 
       
  1581 //!		     combination of other aliases and pluginId, and one of the plugin 11113103 is supplied with wrong pin.
       
  1582 //! @SYMREQ REQ11232,REQ11234
       
  1583 //! @SYMTestActions  Register an identity and authenticate using an alias.
       
  1584 //! @SYMTestExpectedResults Authentication is successful
       
  1585 //! @SYMDevelopedForRelease Diran
       
  1586 
       
  1587 START_TESTCASE SEC-AUT-AUTHSVR-0176
       
  1588 
       
  1589 // Tests asynchronous mode of authentication with complex auth expressions.
       
  1590 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0176
       
  1591 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0176
       
  1592 
       
  1593 END_TESTCASE SEC-AUT-AUTHSVR-0176
       
  1594 
       
  1595 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0177
       
  1596 //! @SYMTestCaseDesc Authentication via aliases recursive definition test. Tests short circuit condition.
       
  1597 //! @SYMREQ REQ11232,REQ11234
       
  1598 //! @SYMTestActions  Register an identity and authenticate using an alias which has been defined recursively.
       
  1599 //! @SYMTestExpectedResults Authentication must fail with KErrAuthServInvalidAliasStringExpression.
       
  1600 //! @SYMDevelopedForRelease Diran
       
  1601 
       
  1602 START_TESTCASE SEC-AUT-AUTHSVR-0177
       
  1603 
       
  1604 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0177
       
  1605 RUN_TEST_STEP !Error=-10817 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0177
       
  1606 
       
  1607 END_TESTCASE SEC-AUT-AUTHSVR-0177
       
  1608 
       
  1609 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0178
       
  1610 //! @SYMTestCaseDesc Authentication via aliases recursive definition test. Tests short circuit condition.
       
  1611 //! @SYMREQ REQ11232,REQ11234
       
  1612 //! @SYMTestActions  Register an identity and authenticate using an alias which has been defined recursively.
       
  1613 //! @SYMTestExpectedResults Authentication must fail with KErrAuthServInvalidAliasStringExpression.
       
  1614 //! @SYMDevelopedForRelease Diran
       
  1615 
       
  1616 START_TESTCASE SEC-AUT-AUTHSVR-0178
       
  1617 
       
  1618 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0178
       
  1619 RUN_TEST_STEP !Error=-10817 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0178
       
  1620 
       
  1621 END_TESTCASE SEC-AUT-AUTHSVR-0178
       
  1622 
       
  1623 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0179
       
  1624 //! @SYMTestCaseDesc Authenticate using an alias which is not specified in authserver's cenrep file.
       
  1625 //! @SYMREQ REQ11232,REQ11234
       
  1626 //! @SYMTestActions  Register an identity and authenticate using an unknown alias.
       
  1627 //! @SYMTestExpectedResults Authentication must fail with KErrUnknownAuthStrengthAlias.
       
  1628 //! @SYMDevelopedForRelease Diran
       
  1629 
       
  1630 START_TESTCASE SEC-AUT-AUTHSVR-0179
       
  1631 
       
  1632 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0179
       
  1633 RUN_TEST_STEP !Error=-10815 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0179
       
  1634 
       
  1635 END_TESTCASE SEC-AUT-AUTHSVR-0179
       
  1636 
       
  1637 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0180
       
  1638 //! @SYMTestCaseDesc Negative tests for authentication via aliases.
       
  1639 //! @SYMREQ REQ11232,REQ11234
       
  1640 //! @SYMTestActions  Register an identity and authenticate using an alias.
       
  1641 //! @SYMTestExpectedResults Authentication must fail.
       
  1642 //! @SYMDevelopedForRelease Diran
       
  1643 
       
  1644 START_TESTCASE SEC-AUT-AUTHSVR-0180
       
  1645 
       
  1646 // Tests synchronous mode of authentication.
       
  1647 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0180
       
  1648 RUN_TEST_STEP !Result=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0180
       
  1649 
       
  1650 END_TESTCASE SEC-AUT-AUTHSVR-0180
       
  1651 
       
  1652 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0193
       
  1653 //! @SYMTestCaseDesc Test synchronous mode of authentication using combination of plugin id and alias.
       
  1654 //! @SYMDEF DEF133935
       
  1655 //! @SYMTestActions  Initialize the cenrep, authenticate the user.
       
  1656 //! @SYMTestExpectedResults Authentication is successful
       
  1657 //! @SYMDevelopedForRelease Diran
       
  1658 
       
  1659 START_TESTCASE SEC-AUT-AUTHSVR-0193
       
  1660 
       
  1661 // Tests synchronous mode of authentication.
       
  1662 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0193
       
  1663 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0193
       
  1664 
       
  1665 END_TESTCASE SEC-AUT-AUTHSVR-0193
       
  1666 
       
  1667 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0194
       
  1668 //! @SYMTestCaseDesc Test synchronous mode of authentication using combination of alias and default type
       
  1669 //! for knowledge.
       
  1670 //! @SYMDEF DEF133935
       
  1671 //! @SYMTestActions  Initialize the cenrep, set the default preference for knowledge, authenticate the user.
       
  1672 //! @SYMTestExpectedResults Authentication is successful
       
  1673 //! @SYMDevelopedForRelease Diran
       
  1674 
       
  1675 START_TESTCASE SEC-AUT-AUTHSVR-0194
       
  1676 
       
  1677 // Tests synchronous mode of authentication.
       
  1678 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0194
       
  1679 RUN_TEST_STEP !Result=0 100	tAuthSvr 	SET_PREFS 		c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0194
       
  1680 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0194
       
  1681 
       
  1682 END_TESTCASE SEC-AUT-AUTHSVR-0194
       
  1683 
       
  1684 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0195
       
  1685 //! @SYMTestCaseDesc Test synchronous mode of authentication using combination of alias and default type
       
  1686 //! for knowledge.
       
  1687 //! @SYMDEF DEF133935
       
  1688 //! @SYMTestActions  Initialize the cenrep, set the default preference for knowledge, authenticate the user.
       
  1689 //! @SYMTestExpectedResults Authentication is successful
       
  1690 //! @SYMDevelopedForRelease Diran
       
  1691 
       
  1692 START_TESTCASE SEC-AUT-AUTHSVR-0195
       
  1693 
       
  1694 // Tests synchronous mode of authentication.
       
  1695 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0195
       
  1696 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0195
       
  1697 
       
  1698 END_TESTCASE SEC-AUT-AUTHSVR-0195
       
  1699 
       
  1700 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0196
       
  1701 //! @SYMTestCaseDesc Test synchronous mode of authentication using combination of an incorrect auth
       
  1702 //! type and non existent plugin id
       
  1703 //! @SYMDEF DEF133935
       
  1704 //! @SYMTestActions  Initialize the cenrep, set the default preference for knowledge, authenticate the user.
       
  1705 //! @SYMTestExpectedResults Authentication fails as the incorrect type is assumed to be an alias name which
       
  1706 //! is not present.
       
  1707 //! @SYMDevelopedForRelease Diran
       
  1708 
       
  1709 START_TESTCASE SEC-AUT-AUTHSVR-0196
       
  1710 
       
  1711 // Tests synchronous mode of authentication.
       
  1712 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0196
       
  1713 RUN_TEST_STEP !Result=0 100	tAuthSvr 	SET_PREFS 		c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0196
       
  1714 RUN_TEST_STEP !Error=-10815 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0196
       
  1715 
       
  1716 END_TESTCASE SEC-AUT-AUTHSVR-0196
       
  1717 
       
  1718 
       
  1719 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0181
       
  1720 //! @SYMTestCaseDesc Authentication via aliases Unicode support check.
       
  1721 //! @SYMREQ REQ11232,REQ11234
       
  1722 //! @SYMTestActions  Register an identity and authenticate using an alias which has been defined recursively
       
  1723 //! @SYMTestExpectedResults Authentication must succeed.
       
  1724 //! @SYMDevelopedForRelease Diran
       
  1725 
       
  1726 START_TESTCASE SEC-AUT-AUTHSVR-0181
       
  1727 
       
  1728 //asynchronous mode of authentication
       
  1729 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2_unicode.ini Test0181
       
  1730 RUN_TEST_STEP !Result=0 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2_unicode.ini Test0181
       
  1731 
       
  1732 END_TESTCASE SEC-AUT-AUTHSVR-0181
       
  1733 
       
  1734 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0182
       
  1735 //! @SYMTestCaseDesc Negative test for authentication via alias using unicode alias strength definition
       
  1736 //! @SYMREQ REQ11232,REQ11234
       
  1737 //! @SYMTestActions  Register an identity and authenticate using an alias which has been defined recursively
       
  1738 //! @SYMTestExpectedResults Authentication must fail with KErrAuthServInvalidAliasStringExpression.
       
  1739 //! @SYMDevelopedForRelease Diran
       
  1740 
       
  1741 START_TESTCASE SEC-AUT-AUTHSVR-0182
       
  1742 
       
  1743 //synchronous mode of authentication
       
  1744 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2_unicode.ini Test0182
       
  1745 RUN_TEST_STEP !Result=Fail 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2_unicode.ini Test0182
       
  1746 
       
  1747 END_TESTCASE SEC-AUT-AUTHSVR-0182
       
  1748 
       
  1749 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0183
       
  1750 //! @SYMTestCaseDesc Authserver CenRep file validation.
       
  1751 //! @SYMREQ REQ11232,REQ11234
       
  1752 //! @SYMTestActions  Set the alias count in the cenrep file to a negative value and authenticate using an alias.
       
  1753 //! @SYMTestExpectedResults Authentication must fail with KErrArgument.
       
  1754 //! @SYMDevelopedForRelease Diran
       
  1755 
       
  1756 START_TESTCASE SEC-AUT-AUTHSVR-0183
       
  1757 
       
  1758 // the alias count in the cenrep file is set to a negative value.
       
  1759 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0183
       
  1760 RUN_TEST_STEP !Error=-6 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0183
       
  1761 
       
  1762 END_TESTCASE SEC-AUT-AUTHSVR-0183
       
  1763 
       
  1764 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0184
       
  1765 //! @SYMTestCaseDesc Authserver CenRep file validation.
       
  1766 //! @SYMREQ REQ11232,REQ11234
       
  1767 //! @SYMTestActions  Set the alias count in the cenrep file to zero and authenticate using an alias.
       
  1768 //! @SYMTestExpectedResults Authentication must fail with KErrNotFound.
       
  1769 //! @SYMDevelopedForRelease Diran
       
  1770 
       
  1771 START_TESTCASE SEC-AUT-AUTHSVR-0184
       
  1772 
       
  1773 // the alias count in the cenrep file is set to a zero.
       
  1774 RUN_TEST_STEP !Result=0 100	tAuthSvr_new	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0184
       
  1775 RUN_TEST_STEP !Error=-1 100	tAuthSvr 	AUTHENTICATE	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0184
       
  1776 
       
  1777 END_TESTCASE SEC-AUT-AUTHSVR-0184
       
  1778 
       
  1779 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0185
       
  1780 //! @SYMTestCaseDesc Authserver CenRep file validation.Verify that only authserver can access auth cenrep file.
       
  1781 //! @SYMREQ REQ11232,REQ11234
       
  1782 //! @SYMTestActions  Verify that only authserver can access auth cenrep file.
       
  1783 //! @SYMTestExpectedResults Initializing cenrep must fail with KErrPermissionDenied.
       
  1784 //! @SYMDevelopedForRelease Diran
       
  1785 
       
  1786 START_TESTCASE SEC-AUT-AUTHSVR-0185
       
  1787 
       
  1788 RUN_TEST_STEP !Result=-46	tAuthSvr	INIT_CENREP	c:\tauth\tAuthSvr\scripts\tauthsvr2.ini Test0184
       
  1789 
       
  1790 END_TESTCASE SEC-AUT-AUTHSVR-0185
       
  1791 
       
  1792 ////
       
  1793 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0186
       
  1794 //! @SYMTestCaseDesc Test of Reset Identity functionality. 
       
  1795 //! 				 Positive case with single knowledge-based plugin and Reset all plugins API.
       
  1796 //! @SYMREQ REQ11397
       
  1797 //! @SYMTestExpectedResults Authenticate with old pin fails after reset and autheticate with new pin value passes.
       
  1798 START_TESTCASE SEC-AUT-AUTHSVR-0186
       
  1799 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS
       
  1800 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini RegisterId
       
  1801 RUN_TEST_STEP_RESULT 0 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdAll
       
  1802 RUN_TEST_STEP !RESULT=Fail 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPinPluginOldPin
       
  1803 RUN_TEST_STEP !RESULT=Fail 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPlugin11113100OldPin
       
  1804 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPinPlugin
       
  1805 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPinPlugin
       
  1806 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPlugin11113100
       
  1807 END_TESTCASE SEC-AUT-AUTHSVR-0186
       
  1808 
       
  1809 ////
       
  1810 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0187
       
  1811 //! @SYMTestCaseDesc Test of Reset Identity functionality. 
       
  1812 //! 				 Positive case with single knowledge-based plugin and Reset of given plugin type API.
       
  1813 //! @SYMREQ REQ11397
       
  1814 //! @SYMTestExpectedResults Authenticate with old pin fails after reset and autheticate with new pin value passes.
       
  1815 START_TESTCASE SEC-AUT-AUTHSVR-0187
       
  1816 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS
       
  1817 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini RegisterId
       
  1818 RUN_TEST_STEP !Error=-6 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdAllInvalidUser
       
  1819 RUN_TEST_STEP_RESULT 0 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdTypeKnowledge
       
  1820 RUN_TEST_STEP !RESULT=Fail 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPinPluginOldPin
       
  1821 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPinPlugin
       
  1822 END_TESTCASE SEC-AUT-AUTHSVR-0187
       
  1823 
       
  1824 ////
       
  1825 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0188
       
  1826 //! @SYMTestCaseDesc Test of Reset Identity functionality. 
       
  1827 //! 				 Negative case where a single biometric-type plugin is attempted for a Reset.
       
  1828 //! @SYMREQ REQ11397
       
  1829 //! @SYMTestExpectedResults Reset must fail.
       
  1830 START_TESTCASE SEC-AUT-AUTHSVR-0188
       
  1831 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS
       
  1832 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini RegisterId
       
  1833 RUN_TEST_STEP !Error=-10818 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdTypeBiometric
       
  1834 END_TESTCASE SEC-AUT-AUTHSVR-0188
       
  1835 
       
  1836 ////
       
  1837 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0189
       
  1838 //! @SYMTestCaseDesc Test of Reset Identity functionality. 
       
  1839 //!                  Repeat of SEC-AUT-AUTHSVR-0186 exercising reset by plugin id list.
       
  1840 //! @SYMREQ REQ11397
       
  1841 //! @SYMTestExpectedResults Authenticate with old pin fails after reset and autheticate with new pin value passes.
       
  1842 START_TESTCASE SEC-AUT-AUTHSVR-0189
       
  1843 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS
       
  1844 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini RegisterId
       
  1845 RUN_TEST_STEP !Error=-6 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdListInvalidUser
       
  1846 RUN_TEST_STEP_RESULT 0 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdListPinPlugin
       
  1847 RUN_TEST_STEP !RESULT=Fail 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPinPluginOldPin
       
  1848 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPinPlugin
       
  1849 RUN_TEST_STEP !RESULT=Fail 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPlugin11113100OldPin
       
  1850 RUN_TEST_STEP !RESULT=Fail 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPlugin11113100
       
  1851 END_TESTCASE SEC-AUT-AUTHSVR-0189
       
  1852 
       
  1853 ////
       
  1854 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0190
       
  1855 //! @SYMTestCaseDesc Test of Reset Identity functionality. 
       
  1856 //!                  Negative case with single knowledge-based plugin that does not support Reset. 
       
  1857 //! @SYMREQ REQ11397
       
  1858 //! @SYMTestExpectedResults Authenticate with new pin value fails with new pin for the plugins that don't support reset.
       
  1859 START_TESTCASE SEC-AUT-AUTHSVR-0190
       
  1860 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS
       
  1861 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini RegisterIdLotsOfPlugins
       
  1862 RUN_TEST_STEP_RESULT 0 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdAll
       
  1863 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPinPlugin
       
  1864 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPlugin11113100
       
  1865 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginResetNoReTrain
       
  1866 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginResetUnsup
       
  1867 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginBiometric
       
  1868 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginToken
       
  1869 END_TESTCASE SEC-AUT-AUTHSVR-0190
       
  1870 
       
  1871 ////
       
  1872 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0191
       
  1873 //! @SYMTestCaseDesc Test of Reset Identity functionality. 
       
  1874 //!                  Negative case where reg data is passed to a single plugin which does not support reset.
       
  1875 //! @SYMREQ REQ11397
       
  1876 //! @SYMTestExpectedResults Authenticate with new pin value fails with new pin for the plugins that don't support reset.
       
  1877 START_TESTCASE SEC-AUT-AUTHSVR-0191
       
  1878 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS
       
  1879 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini RegisterIdLotsOfPlugins
       
  1880 RUN_TEST_STEP_RESULT 0 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdListUnsupPlugin
       
  1881 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPinPluginOldPin
       
  1882 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPinPlugin
       
  1883 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPlugin11113100OldPin
       
  1884 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPlugin11113100
       
  1885 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginResetNoReTrainOldPin
       
  1886 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginResetNoReTrain
       
  1887 RUN_TEST_STEP_RESULT 0 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginResetUnsupOldPin
       
  1888 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginResetUnsup
       
  1889 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginBiometricOldPin
       
  1890 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginBiometric
       
  1891 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginTokenOldPin
       
  1892 RUN_TEST_STEP !RESULT=FAIL 100 tAuthSvr AUTHENTICATE   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini AuthPluginToken
       
  1893 RUN_TEST_STEP !Error=-5 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdListUnsupPlugin
       
  1894 END_TESTCASE SEC-AUT-AUTHSVR-0191
       
  1895 
       
  1896 ////
       
  1897 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0192
       
  1898 //! @SYMTestCaseDesc Test of Reset Identity functionality. 
       
  1899 //!                  Negative cases where invalid inputs are supplied for the reset APIs.
       
  1900 //! @SYMREQ REQ11397
       
  1901 //! @SYMTestExpectedResults Failure with KErrArgument.
       
  1902 START_TESTCASE SEC-AUT-AUTHSVR-0192
       
  1903 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS
       
  1904 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REG_IDENTITY   c:\tauth\tAuthSvr\scripts\tauthsvr2.ini RegisterId
       
  1905 RUN_TEST_STEP !Error=-6 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdAllMissingUser
       
  1906 RUN_TEST_STEP !Error=-6 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdAllInvalidUser
       
  1907 RUN_TEST_STEP !Error=-6 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdTypeInvalidUser
       
  1908 RUN_TEST_STEP !Error=-6 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdListInvalidUser
       
  1909 RUN_TEST_STEP !Error=-6 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdListNoPlugins
       
  1910 RUN_TEST_STEP !Error=-6 100 tAuthSvr RESET_IDENTITY c:\tauth\tAuthSvr\scripts\tauthsvr2.ini ResetIdListCountMismatch
       
  1911 END_TESTCASE SEC-AUT-AUTHSVR-0192
       
  1912 
       
  1913 RUN_TEST_STEP_RESULT 0 100	tAuthSvr_new 	INIT_CENREP c:\tauth\tAuthSvr\scripts\tauthsvr2.ini defaultplugin1
       
  1914 
       
  1915 ////
       
  1916 //! @SYMTestCaseID SEC-AUT-AUTHSVR-0193
       
  1917 //! @SYMTestCaseDesc Test Multithreaded Register (2 concurrent register requests). 
       
  1918 //! @SYMREQ REQ4962
       
  1919 //! @SYMDEF	DEF141403
       
  1920 //! @SYMTestExpectedResults The first register thread completes successfully, the second thread returns KErrServerBusy
       
  1921 START_TESTCASE SEC-AUT-AUTHSVR-0193
       
  1922 RUN_UTILS CopyFile C:\tauth\tauthsvr\testdata\pinplugin_inactive.txt C:\pinplugin_inactive.txt
       
  1923 RUN_TEST_STEP_RESULT 0 100 tAuthSvr REMOVE_DBS
       
  1924 RUN_TEST_STEP_RESULT 0 100 tAuthSvr MULTI_THREADED c:\tauth\tAuthSvr\scripts\tauthsvr2.ini multithreadedRegister
       
  1925 RUN_UTILS DeleteFile C:\pinplugin_inactive.txt
       
  1926 END_TESTCASE SEC-AUT-AUTHSVR-0193
       
  1927 
       
  1928 START_TESTCASE Remove_PinPlugin_Data
       
  1929 RUN_UTILS DeleteFile  C:\t_pinplugindlg_in.dat
       
  1930 RUN_UTILS DeleteFile  C:\t_pinplugindlg_out.dat
       
  1931 END_TESTCASE Remove_PinPlugin_Data
       
  1932 
       
  1933 
       
  1934 // This is to shut down the auth server
       
  1935 DELAY 5000