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