os/security/authorisation/userpromptservice/test/tups/scripts/tups_integ.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description: 
sl@0
    15
//
sl@0
    16
sl@0
    17
//tups_install
sl@0
    18
//PRINT Run Basic test cases PREQ1262 for integration test
sl@0
    19
sl@0
    20
//
sl@0
    21
//  Prepare various clones of TUPSInteg.exe with different SIDs.
sl@0
    22
//  Don't forget to delete clones at the end of test script.
sl@0
    23
//  but do not delete original one !!!!
sl@0
    24
sl@0
    25
RUN_PROGRAM 100 SETCAP TUPSInteg_data.exe 1c000 -SID 80001234 TUPSInteg_2.exe
sl@0
    26
RUN_PROGRAM 100 SETCAP TUPSInteg_data.exe 1c000 -SID 80002222 TUPSInteg_3.exe  
sl@0
    27
RUN_PROGRAM 100 SETCAP TUPSInteg_data.exe 1c000 -SID 10004444 TUPSInteg_4.exe 
sl@0
    28
RUN_PROGRAM 100 SETCAP TUPSInteg_data.exe 810  	-SID 10006666 TUPSInteg_allfiles_readdevice.exe
sl@0
    29
RUN_PROGRAM 100 SETCAP TUPSInteg_data.exe 10 	-SID 10007777 TUPSInteg_readdevice.exe
sl@0
    30
RUN_PROGRAM 100 SETCAP TUPSInteg_data.exe 20 	-SID 10008888 TUPSInteg_writedevice.exe
sl@0
    31
RUN_PROGRAM 100 SETCAP TUPSInteg_data.exe 1cf00 -SID 101F7790 TUPSInteg_minor.exe 
sl@0
    32
sl@0
    33
// load suites
sl@0
    34
LOAD_SUITE TUPSInteg_1
sl@0
    35
LOAD_SUITE TUPSInteg_unprotected
sl@0
    36
sl@0
    37
// load clones
sl@0
    38
LOAD_SUITE TUPSInteg_2
sl@0
    39
LOAD_SUITE TUPSInteg_3
sl@0
    40
LOAD_SUITE TUPSInteg_4
sl@0
    41
LOAD_SUITE TUPSInteg_allfiles_readdevice
sl@0
    42
LOAD_SUITE TUPSInteg_readdevice
sl@0
    43
LOAD_SUITE TUPSInteg_writedevice
sl@0
    44
LOAD_SUITE TUPSInteg_minor
sl@0
    45
sl@0
    46
sl@0
    47
//! @SYMTestCaseID SEC-UPS-MISC-0001
sl@0
    48
//! @SYMTestCaseDesc Set up properties for policy evaluators and dialog creators, and Delete Existing Database
sl@0
    49
sl@0
    50
START_TESTCASE SEC-UPS-MISC-0001
sl@0
    51
sl@0
    52
RUN_TEST_STEP 100 TUPSInteg_1 PropertyStep z:\tups\integ\scripts\tups_properties.ini PropertiesToDestroy
sl@0
    53
sl@0
    54
// Set up properties for policy evaluators and dialog creators.
sl@0
    55
RUN_TEST_STEP 100 TUPSInteg_1 PropertyStep z:\tups\integ\scripts\tups_properties.ini PropertiesToCreate
sl@0
    56
sl@0
    57
// Delete Existing Database
sl@0
    58
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
    59
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
    60
sl@0
    61
END_TESTCASE SEC-UPS-MISC-0001
sl@0
    62
sl@0
    63
sl@0
    64
//********************** SEC-UPS-A : BASIC USER PROMPTING  **********************
sl@0
    65
sl@0
    66
//! @SYMTestCaseID SEC-UPS-INTEG-A001
sl@0
    67
//! @SYMTestCaseDesc User prompt service: option “only this session”
sl@0
    68
//!                  (only_this_session)
sl@0
    69
//!		
sl@0
    70
//! @SYMPREQ PREQ1262
sl@0
    71
//! @SYMREQ REQ7367, REQ7410, REQ7411, REQ7412, REQ7413, REQ7414, REQ7415, REQ7417, REQ7446
sl@0
    72
//! @SYMTestPriority Critical
sl@0
    73
//! @SYMTestStatus   Implemented
sl@0
    74
//! @SYMTestActions 	Preconditions:
sl@0
    75
//!			• There is an appropriate policy, policy evaluator and dialog that matches the UID of the service 	
sl@0
    76
//!			offered by the “system server”.
sl@0
    77
//!
sl@0
    78
//!			
sl@0
    79
//!			Test Actions:
sl@0
    80
//!			• Launch “test client” which tries to connect to a system server and use service.
sl@0
    81
//!			• System server asks for a user prompt to the UPS.
sl@0
    82
//!			• When UPS prompts user, select the “Only this session” option.
sl@0
    83
//!			• Check that now the “test client” can use the intended service from the “system server”.
sl@0
    84
//!			• Check again In same session that client still can use test service without need of user prompt. 
sl@0
    85
//!			• Disconnect session and create new one.
sl@0
    86
//!			• Ask “test client” to request again for the same service to the system server.  This should cause 	
sl@0
    87
//!			the service provided to request for a new user prompt.
sl@0
    88
//!			• Select again “Only this session” option.
sl@0
    89
//!			• Check that “test client” can use again the intended service from system server.
sl@0
    90
//!
sl@0
    91
//! @SYMTestExpectedResults 	• User prompt service dialog is displayed correctly in both occasions that “test client” 
sl@0
    92
//!				request for authorisation.
sl@0
    93
//!				• Information displayed about the client is complete (see Appendix A).
sl@0
    94
//!				• “Test client” can use service from system server in both  occasions after selecting “Only 	
sl@0
    95
//!				this session”
sl@0
    96
//!				• Information about the “Test client” is displayed correctly by user prompt.
sl@0
    97
//!				• Decision DB is not affected by previous operation as “only this session” is not expected to 
sl@0
    98
//!				be stored. 
sl@0
    99
//!
sl@0
   100
//! @SYMTestType CIT
sl@0
   101
sl@0
   102
START_TESTCASE SEC-UPS-INTEG-A001
sl@0
   103
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini only_this_session
sl@0
   104
END_TESTCASE SEC-UPS-INTEG-A001
sl@0
   105
sl@0
   106
sl@0
   107
//! @SYMTestCaseID SEC-UPS-INTEG-A002
sl@0
   108
//! @SYMTestCaseDesc User prompt service: User prompt service: option “never”
sl@0
   109
//!                  (never)
sl@0
   110
//!		
sl@0
   111
//! @SYMPREQ PREQ1262
sl@0
   112
//! @SYMREQ REQ7367, REQ7372, REQ7374
sl@0
   113
//!
sl@0
   114
//! @SYMTestPriority Critical
sl@0
   115
//! @SYMTestStatus   Implemented
sl@0
   116
//! @SYMTestActions 	Preconditions:
sl@0
   117
//!			• There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the 	
sl@0
   118
//!			service offered by the “system server”.
sl@0
   119
//!			
sl@0
   120
//!			Test Actions:
sl@0
   121
//!			• Launch “test client” which tries to connect to a system server and use service.
sl@0
   122
//!			• System server asks for a user prompt to the UPS.
sl@0
   123
//!			• When UPS prompts user, select the “Never” option.
sl@0
   124
//!			• Check that now the “test client” can NOT use the intended service after user selected “never”.
sl@0
   125
//!			• Disconnect session and create new one.
sl@0
   126
//!			• Ask “test client” to request again for the same service to the system server.  System server should 
sl@0
   127
//!			deny access to “test client” immediately without showing user prompt. Make sure that UPS was invoked 	
sl@0
   128
//!			again.
sl@0
   129
//!
sl@0
   130
//!
sl@0
   131
//! @SYMTestExpectedResults 	• User prompt service dialog is displayed correctly.
sl@0
   132
//!				• Security dialog is displayed within one second (1 sec) of client request for service. 
sl@0
   133
//!				• Information displayed about the client is complete (see Appendix A).
sl@0
   134
//!				• “Test client” can NOT use service from system server after selecting “Never”
sl@0
   135
//!				• Decision DB is updated correctly with the never decision. 
sl@0
   136
//!				• The second time the “Test client” tries to access the service from the system server it 	
sl@0
   137
//!				should receive a silent denial. 
sl@0
   138
//!
sl@0
   139
//! @SYMTestType CIT
sl@0
   140
sl@0
   141
START_TESTCASE SEC-UPS-INTEG-A002
sl@0
   142
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini never
sl@0
   143
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   144
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini never_b
sl@0
   145
END_TESTCASE SEC-UPS-INTEG-A002
sl@0
   146
sl@0
   147
sl@0
   148
//! @SYMTestCaseID SEC-UPS-INTEG-A003
sl@0
   149
//! @SYMTestCaseDesc User prompt service: option “Always”
sl@0
   150
//!                  (always)
sl@0
   151
//!		
sl@0
   152
//! @SYMPREQ PREQ1262
sl@0
   153
//! @SYMREQ REQ7428, REQ7429, REQ7367, REQ7372, REQ7374, REQ7493
sl@0
   154
//!
sl@0
   155
//! @SYMTestPriority Critical
sl@0
   156
//! @SYMTestStatus   Implemented
sl@0
   157
//! @SYMTestActions 	Preconditions:
sl@0
   158
//!			• There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the 	
sl@0
   159
//!			service offered by the “system server”.
sl@0
   160
//!			• Special: make sure that client have all necessary capabilities in order to test  REQ7493
sl@0
   161
//!			
sl@0
   162
//!			Test Actions:
sl@0
   163
//!			• Launch “test client” which tries to connect to a system server and use service.
sl@0
   164
//!			• System server asks for a user prompt to the UPS.
sl@0
   165
//!			• When UPS prompts user, select the “Always” option.
sl@0
   166
//!			• Check in same session that now the “test client” now can use the intended service after user 		
sl@0
   167
//!			selected “Always”.
sl@0
   168
//!			• Ask “test client” to request again for the same service to the system server.  System server should 
sl@0
   169
//!			give immediate access to “test client” without showing user prompt (in same session).  
sl@0
   170
//!			• Disconnect session and create new one.
sl@0
   171
//!			• Ask “test client” to request again for the same service to the system server.  System server should 
sl@0
   172
//!			give immediate access to “test client” without showing user prompt.  Make sure that UPS was invoked 	
sl@0
   173
//!			again.
sl@0
   174
//!
sl@0
   175
//! @SYMTestExpectedResults 	• User prompt service dialog is displayed correctly.
sl@0
   176
//!				• Security dialog is displayed within one second (1 sec) of client request for service. 
sl@0
   177
//!				• Information displayed about the client is complete (see Appendix A).
sl@0
   178
//!				• “Test client” can use service from system server after selecting “Always”
sl@0
   179
//!				• Decision DB is updated correctly with the Always decision. 
sl@0
   180
//!				• The second time the “Test client” tries to access the service from the system server it 	
sl@0
   181
//!				should receive immediate access.  
sl@0
   182
//!				• The response time from UPS for second use of test client is 100 ms (H4 board without demand 
sl@0
   183
//!				paging) 
sl@0
   184
//!
sl@0
   185
//! @SYMTestType CIT
sl@0
   186
sl@0
   187
START_TESTCASE SEC-UPS-INTEG-A003
sl@0
   188
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini always
sl@0
   189
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   190
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini always_b
sl@0
   191
END_TESTCASE SEC-UPS-INTEG-A003
sl@0
   192
sl@0
   193
sl@0
   194
//! @SYMTestCaseID SEC-UPS-INTEG-A004
sl@0
   195
//! @SYMTestCaseDesc User prompt service: “Yes” or “No” selection”
sl@0
   196
//!                  (yes_or_no)
sl@0
   197
//!		
sl@0
   198
//! @SYMPREQ PREQ1262
sl@0
   199
//! @SYMREQ REQ7372
sl@0
   200
//!
sl@0
   201
//! @SYMTestPriority Critical
sl@0
   202
//! @SYMTestStatus   Implemented
sl@0
   203
//! @SYMTestActions 	Preconditions:
sl@0
   204
//!			• There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the 	
sl@0
   205
//!			service offered by the “system server”.
sl@0
   206
//!			• Policy is set to display “yes” or “no” option
sl@0
   207
//!			
sl@0
   208
//!			Test Actions:
sl@0
   209
//!			• Launch “test client” which tries to connect to a system server and use service.
sl@0
   210
//!			• System server asks for a user prompt to the UPS.
sl@0
   211
//!			• When UPS prompts user, select the “yes” option.
sl@0
   212
//!			• Check that now the “test client” now can use the intended service.
sl@0
   213
//!			• In same session that before, request uses service.
sl@0
   214
//!			• UPS should prompt user again. Select yes  
sl@0
   215
//!			• Launch “test client” in a new session. When security dialog is displayed select “no”.
sl@0
   216
//!			• Check that test client can not access intended service. 
sl@0
   217
//!
sl@0
   218
//! @SYMTestExpectedResults 	• User prompt service dialog is displayed correctly.
sl@0
   219
//!				• Security dialog is displayed within one second (1 sec) of client request for service. 
sl@0
   220
//!				• Information displayed about the client is complete (see Appendix A).
sl@0
   221
//!				• Decision DB does not store any new decision. 
sl@0
   222
//!				• Access to test service is denied or granted accordingly.
sl@0
   223
//!
sl@0
   224
//! @SYMTestType CIT
sl@0
   225
sl@0
   226
START_TESTCASE SEC-UPS-INTEG-A004
sl@0
   227
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini yes_or_no
sl@0
   228
END_TESTCASE SEC-UPS-INTEG-A004
sl@0
   229
sl@0
   230
sl@0
   231
sl@0
   232
//********************** SEC-UPS-B : USE CASES FOR UPS INVOLVING CONCURRENCY  **********************
sl@0
   233
sl@0
   234
sl@0
   235
//! @SYMTestCaseID 	SEC-UPS-INTEG-B004
sl@0
   236
//! @SYMTestCaseDesc 	Concurrent process can access service despite unattended security dialog.
sl@0
   237
//!                     (Unattended_Dialog)
sl@0
   238
//!		
sl@0
   239
//! @SYMPREQ 		PREQ1262
sl@0
   240
//! @SYMREQ  		REQ7427
sl@0
   241
//!
sl@0
   242
//! @SYMTestPriority 	Critical
sl@0
   243
//! @SYMTestStatus   	Implemented
sl@0
   244
//! @SYMTestActions 	Preconditions:
sl@0
   245
//!			• There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the 
sl@0
   246
//!			service offered by the “system server”.
sl@0
   247
//!
sl@0
   248
//!			Test Actions:
sl@0
   249
//!			• Launch 3 “test client” (A, B & C) which requests use of different system servers. Client A should
sl@0
   250
//!			not have any decision related to it stored in DB, Clients B should have a decision “Always” stored 
sl@0
   251
//!			in DB, Client C should have decision “Never” stored in DB. Make sure that Client B & C are launch 
sl@0
   252
//!			after security dialog is displayed for Client A. 
sl@0
   253
//!			• Do not act in the security dialog for Client A when this one is displayed.
sl@0
   254
//!			• Check that Client B can access intended test service.
sl@0
   255
//!			• Check that Client C can not access intended test service and did receive a denial response.
sl@0
   256
//!			• Act now in security dialog for Client A, select “always”.
sl@0
   257
//!			• Check that Client A can access intended test service.
sl@0
   258
//!
sl@0
   259
//! @SYMTestExpectedResults 	• Final check in Decision DB shows 3 decisions stored: “Always” for Clients A & B,  “Never” 
sl@0
   260
//!				for Client C.
sl@0
   261
//!				• Accesses to service were granted for Clients A & B.
sl@0
   262
//!
sl@0
   263
//! @SYMTestType CIT
sl@0
   264
sl@0
   265
START_TESTCASE SEC-UPS-INTEG-B004
sl@0
   266
sl@0
   267
// Delete Existing Database
sl@0
   268
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   269
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   270
sl@0
   271
// Setup up the Database so that Client B has an 'Always' Decision and Client C has a 'Never' Decision stored
sl@0
   272
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Unattended_Dialog_ClientB_Setup
sl@0
   273
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Unattended_Dialog_ClientC_Setup
sl@0
   274
sl@0
   275
// Run 3 concurrent clients with a Coordinator to ensure that the Clients are synchronised
sl@0
   276
CONCURRENT
sl@0
   277
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini Unattended_Dialog_Coordinator
sl@0
   278
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Unattended_Dialog_ClientA
sl@0
   279
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Unattended_Dialog_ClientB
sl@0
   280
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Unattended_Dialog_ClientC
sl@0
   281
CONSECUTIVE
sl@0
   282
sl@0
   283
// Database Management Checks
sl@0
   284
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini Unattended_Dialog_dbManagementcheck
sl@0
   285
sl@0
   286
END_TESTCASE SEC-UPS-INTEG-B004
sl@0
   287
sl@0
   288
sl@0
   289
//! @SYMTestCaseID 	SEC-UPS-INTEG-B005
sl@0
   290
//! @SYMTestCaseDesc 	Cancellation of UPS request in concurrent system server.
sl@0
   291
//!                     (concurrent_cancellation)
sl@0
   292
//!		
sl@0
   293
//! @SYMPREQ 		PREQ1262
sl@0
   294
//! @SYMREQ  		REQ7427, REQ7431, REQ7432
sl@0
   295
//!
sl@0
   296
//! @SYMTestPriority 	Critical
sl@0
   297
//! @SYMTestStatus   	Implemented
sl@0
   298
//! @SYMTestActions 	Preconditions:
sl@0
   299
//!			• There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the 
sl@0
   300
//!			service offered by the “system server”.
sl@0
   301
//!
sl@0
   302
//!			Test Actions:
sl@0
   303
//!			• Launch 2 “test client” (A & B ) which requests use of different system servers. Client A 		
sl@0
   304
//!			should have a decision “Always” stored in DB, client B should have decision “Never” stored in DB. 	
sl@0
   305
//!			Client A & B run continuously and they request periodic use of a test service, each of this request 	
sl@0
   306
//!			should cause UPS to be invoked, UPS should continuously issue an appropriate silence response for A & 
sl@0
   307
//!			B. 
sl@0
   308
//!			• Launch “test client C” which requests use of different system servers. This client C does not have 	
sl@0
   309
//!			any related decision stored in DB.
sl@0
   310
//!			• The system server for client C is expected to request UPS for security dialog.
sl@0
   311
//!			• Do not act in security dialog displayed for client C, instead instruct system server for client C 	
sl@0
   312
//!			to cancel previous request made to UPS.
sl@0
   313
//!			• Make sure that clients A & B can still receive appropriate silent response from UPS despite 		
sl@0
   314
//!			cancellation of request by system server attending client C.
sl@0
   315
//!			• Launch test client D which should attempt use of same service attempted by client C. Security 	
sl@0
   316
//!			dialog should be displayed, select “Always”.
sl@0
   317
//!			• Check that client D can access intended service.
sl@0
   318
//!			• Launch client D in new session and check that it received silent acceptance.
sl@0
   319
//!
sl@0
   320
//!
sl@0
   321
//! @SYMTestExpectedResults 	• Final check in Decision DB shows 2 decisions stored: “Always” for Clients A,  “Never” for 	
sl@0
   322
//!				Client B.
sl@0
   323
//!				• Access to service was granted for Clients A & D.
sl@0
   324
//!				• Access to service was denied for Clients B.	
sl@0
   325
//!
sl@0
   326
//! @SYMTestType CIT
sl@0
   327
sl@0
   328
START_TESTCASE SEC-UPS-INTEG-B005
sl@0
   329
sl@0
   330
// Delete Existing Database
sl@0
   331
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   332
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   333
sl@0
   334
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_cancellation_clientA_setup
sl@0
   335
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_cancellation_clientB_setup
sl@0
   336
sl@0
   337
CONCURRENT
sl@0
   338
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_cancellation_clientA
sl@0
   339
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_cancellation_clientB
sl@0
   340
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_cancellation_clientC_cancel
sl@0
   341
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_cancellation_clientD
sl@0
   342
CONSECUTIVE
sl@0
   343
sl@0
   344
// Concurrent cancellation with UPS calling the same server, policy evaluator, dialog creator and policy from clients B + D
sl@0
   345
CONCURRENT
sl@0
   346
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_cancellation_clientA
sl@0
   347
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_cancellation_clientB_samepolicy
sl@0
   348
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_cancellation_clientC_cancel
sl@0
   349
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_cancellation_clientD_samepolicy
sl@0
   350
CONSECUTIVE
sl@0
   351
sl@0
   352
END_TESTCASE SEC-UPS-INTEG-B005
sl@0
   353
sl@0
   354
sl@0
   355
//! @SYMTestCaseID 	SEC-UPS-INTEG-B008
sl@0
   356
//! @SYMTestCaseDesc 	Early closure of client with concurrent processes, policy evaluator stage
sl@0
   357
//!                     (client_dying_at_evaluator_point)
sl@0
   358
//!		
sl@0
   359
//! @SYMPREQ 		PREQ1262
sl@0
   360
//! @SYMREQ  		REQ7427 
sl@0
   361
//!
sl@0
   362
//! @SYMTestPriority 	Critical
sl@0
   363
//! @SYMTestStatus   	Implemented
sl@0
   364
//! @SYMTestActions 	Preconditions:
sl@0
   365
//!			•  There is an appropriate policy, policy evaluator and dialog creator that 
sl@0
   366
//!			   matches the UID of the service offered by the “system server”.
sl@0
   367
//!
sl@0
   368
//!			Test Actions:
sl@0
   369
//!			•  Launch 2 “test client” (A & B) which requests use of different system servers.
sl@0
   370
//!			   Client A should have a decision “Always” stored in DB, client B should have 
sl@0
   371
//!		           decision “Never” stored in DB. Clients A & B run continuously and they request
sl@0
   372
//!			   periodic use of a test service, each of this request should cause UPS to be 
sl@0
   373
//!			   invoked, UPS should continuously issue an appropriate silence response for A & B. 
sl@0
   374
//!			•  Launch “test client C” which requests use of a different system server. System 
sl@0
   375
//!			   server will invoke UPS and this one should invoke a policy evaluator. When 
sl@0
   376
//!			   policy evaluator is running shut down test client C.
sl@0
   377
//!			•  Make sure that Clients A & B can still receive appropriate silent response from UPS.
sl@0
   378
//!
sl@0
   379
//! @SYMTestExpectedResults 
sl@0
   380
//!			•  Final check in Decision DB shows 2 decisions stored: “Always” for Clients A, “Never”
sl@0
   381
//!			   for Client B.
sl@0
   382
//!			•  Access to service was granted for Clients A. 
sl@0
   383
//!			•  Access to service was denied for Clients B & C. 
sl@0
   384
//!
sl@0
   385
//! @SYMTestType CIT
sl@0
   386
sl@0
   387
START_TESTCASE SEC-UPS-INTEG-B008
sl@0
   388
sl@0
   389
// Delete Existing Database
sl@0
   390
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   391
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   392
sl@0
   393
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_client_00a
sl@0
   394
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_client_00b
sl@0
   395
sl@0
   396
CONCURRENT
sl@0
   397
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini dying_client_at_evaluator_Coordinator
sl@0
   398
RUN_TEST_STEP 100 TUPSInteg_minor DyingClient z:\tups\integ\scripts\tups_integ.ini dying_client_at_evaluator
sl@0
   399
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_client_00a
sl@0
   400
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_client_00b
sl@0
   401
CONSECUTIVE
sl@0
   402
sl@0
   403
// Database Management Checks
sl@0
   404
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini client_dying_at_evaluator_point_dbManagementCheck
sl@0
   405
sl@0
   406
END_TESTCASE SEC-UPS-INTEG-B008
sl@0
   407
sl@0
   408
sl@0
   409
sl@0
   410
//! @SYMTestCaseID 	SEC-UPS-B009
sl@0
   411
//! @SYMTestCaseDesc 	Early closure of client with concurrent processes, dialog displayed stage
sl@0
   412
//!                     (client_dying_at_dialog_point)
sl@0
   413
//!		
sl@0
   414
//! @SYMPREQ 		PREQ1262
sl@0
   415
//! @SYMREQ  		REQ7427 
sl@0
   416
//!
sl@0
   417
//! @SYMTestPriority 	Critical
sl@0
   418
//! @SYMTestStatus   	Implemented
sl@0
   419
//! @SYMTestActions 	Preconditions:
sl@0
   420
//!			•  There is an appropriate policy, policy evaluator and dialog creator that 
sl@0
   421
//!			   matches the UID of the service offered by the “system server”.
sl@0
   422
//!			Test Actions:
sl@0
   423
//!			•  Launch 2 “test client” (A & B) which requests use of different system 
sl@0
   424
//!			   servers. Client A should have a decision “Always” stored in DB, client B 
sl@0
   425
//!			   should have decision “Never” stored in DB. Clients A & B run continuously and 
sl@0
   426
//!			   they request periodic use of a test service, each of this request should cause 
sl@0
   427
//!	                   UPS to be invoked, UPS should continuously issue an appropriate silence response 
sl@0
   428
//!			   for A & B. 
sl@0
   429
//!			•  Launch “test client C” which requests use of a different system server. System 
sl@0
   430
//!			   server will invoke UPS and at some stage a security dialog will be invoked. When 
sl@0
   431
//!			   security dialog is displayed do not act on this one and shut down test client C.
sl@0
   432
//!			•  Make sure that Clients A & B can still receive appropriate silent response from UPS.
sl@0
   433
//!
sl@0
   434
//! @SYMTestExpectedResults 
sl@0
   435
//!			•  Final check in Decision DB shows 2 decisions stored: “Always” for Clients A,  
sl@0
   436
//!			   “Never” for Client B.
sl@0
   437
//!			•  Access to service was granted for Clients A. 
sl@0
   438
//!		        •  Access to service was denied for Clients B & C. 
sl@0
   439
//!
sl@0
   440
//! @SYMTestType CIT
sl@0
   441
sl@0
   442
START_TESTCASE SEC-UPS-B009
sl@0
   443
sl@0
   444
// Delete Existing Database
sl@0
   445
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   446
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   447
sl@0
   448
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_client_00a
sl@0
   449
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_client_00b
sl@0
   450
sl@0
   451
CONCURRENT
sl@0
   452
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini dying_client_at_dialog_Coordinator
sl@0
   453
RUN_TEST_STEP 100 TUPSInteg_minor DyingClient z:\tups\integ\scripts\tups_integ.ini dying_client_at_dialog
sl@0
   454
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_client_00a
sl@0
   455
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_client_00b
sl@0
   456
CONSECUTIVE
sl@0
   457
sl@0
   458
// Database Management Checks
sl@0
   459
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini client_dying_at_dialog_point_dbManagementCheck
sl@0
   460
sl@0
   461
END_TESTCASE SEC-UPS-B009
sl@0
   462
sl@0
   463
sl@0
   464
sl@0
   465
//! @SYMTestCaseID 	SEC-UPS-B010
sl@0
   466
//! @SYMTestCaseDesc 	Multiple clients requesting multiple services in concurrent manner.
sl@0
   467
//!                     (multiple_client_requests_concurrent)
sl@0
   468
//!		
sl@0
   469
//! @SYMPREQ 		PREQ1262
sl@0
   470
//! @SYMREQ  		REQ7427 
sl@0
   471
//!
sl@0
   472
//! @SYMTestPriority 	Critical
sl@0
   473
//! @SYMTestStatus   	Implemented
sl@0
   474
//! @SYMTestActions 	Preconditions:
sl@0
   475
//!			• As set in test assumptions section on detail description of this test.
sl@0
   476
//!
sl@0
   477
//!			Test Actions:
sl@0
   478
//!			• Execute test actions as set in “tests sequence part 1” above.
sl@0
   479
//!			• Execute test actions as set in “tests sequence part 2” above.
sl@0
   480
//!			• Reset test clients and test system servers.
sl@0
   481
//!			• Execute test actions as set in “tests sequence part 3” above.
sl@0
   482
//!
sl@0
   483
//! @SYMTestExpectedResults 	Test services are granted/denied accordingly as set in detail test description.
sl@0
   484
//!
sl@0
   485
//! @SYMTestType CIT
sl@0
   486
sl@0
   487
START_TESTCASE SEC-UPS-B010
sl@0
   488
sl@0
   489
// Delete Existing Database
sl@0
   490
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   491
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   492
sl@0
   493
CONCURRENT
sl@0
   494
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client1
sl@0
   495
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client2
sl@0
   496
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client3
sl@0
   497
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client4
sl@0
   498
CONSECUTIVE
sl@0
   499
sl@0
   500
CONCURRENT
sl@0
   501
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client1
sl@0
   502
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client2
sl@0
   503
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client3
sl@0
   504
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client4
sl@0
   505
CONSECUTIVE
sl@0
   506
sl@0
   507
// Close and Reset UPS
sl@0
   508
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   509
sl@0
   510
CONCURRENT
sl@0
   511
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client1
sl@0
   512
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client2
sl@0
   513
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client3
sl@0
   514
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini concurrent_multiple_request_client4
sl@0
   515
CONSECUTIVE
sl@0
   516
sl@0
   517
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_24
sl@0
   518
sl@0
   519
END_TESTCASE SEC-UPS-B010
sl@0
   520
sl@0
   521
sl@0
   522
//! @SYMTestCaseID 	SEC-UPS-B011
sl@0
   523
//! @SYMTestCaseDesc 	Multiple clients requesting multiple services in non–concurrent manner.
sl@0
   524
//!                     (multiple_client_requests_consecutive)
sl@0
   525
//!		
sl@0
   526
//! @SYMPREQ 		PREQ1262
sl@0
   527
//! @SYMREQ  		REQ****
sl@0
   528
//!
sl@0
   529
//! @SYMTestPriority 	Critical
sl@0
   530
//! @SYMTestStatus   	Implemented
sl@0
   531
//! @SYMTestActions 	Preconditions:
sl@0
   532
//!			• As set for test case SEC-UPS-B002C, but each test client and system server do not run concurrently 
sl@0
   533
//!			with other tests clients. 
sl@0
   534
//!
sl@0
   535
//!			Test Actions:
sl@0
   536
//!			• Execute test actions as set in “tests sequence part 1” on test case SEC-UPS-B010 above.
sl@0
   537
//!			• Execute test actions as set in “tests sequence part 2” on test case SEC-UPS-B010 above.
sl@0
   538
//!			• Reset test clients and test system servers.
sl@0
   539
//!			• Execute test actions as set in “tests sequence part 3” on test case SEC-UPS-B010 above.
sl@0
   540
//!
sl@0
   541
//! @SYMTestExpectedResults 	Test services are granted/denied accordingly as set in detail test description for test case 
sl@0
   542
//!				SEC-UPS-B010 above.	
sl@0
   543
//!
sl@0
   544
//! @SYMTestType CIT
sl@0
   545
sl@0
   546
START_TESTCASE SEC-UPS-B011
sl@0
   547
sl@0
   548
// Delete Existing Database
sl@0
   549
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   550
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   551
sl@0
   552
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client1_Part1
sl@0
   553
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client2_Part1
sl@0
   554
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client3_Part1
sl@0
   555
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client4
sl@0
   556
sl@0
   557
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client1_Part2
sl@0
   558
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client2_Part2
sl@0
   559
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client3_Part2
sl@0
   560
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client4
sl@0
   561
sl@0
   562
// Close and Reset UPS
sl@0
   563
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   564
sl@0
   565
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client1_Part2
sl@0
   566
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client2_Part2
sl@0
   567
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client3_Part2
sl@0
   568
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini multiple_request_client4
sl@0
   569
sl@0
   570
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_24
sl@0
   571
sl@0
   572
END_TESTCASE SEC-UPS-B011
sl@0
   573
sl@0
   574
sl@0
   575
sl@0
   576
//! @SYMTestCaseID 	SEC-UPS-INTEG-B012
sl@0
   577
//! @SYMTestCaseDesc 	Concurrent process can access service despite multiple unattended security dialogs.
sl@0
   578
//!                     (Multiple_Unattended_Dialogs)
sl@0
   579
//!		
sl@0
   580
//! @SYMPREQ 		PREQ1262
sl@0
   581
//! @SYMREQ  		REQ7427
sl@0
   582
//!
sl@0
   583
//! @SYMTestPriority 	Critical
sl@0
   584
//! @SYMTestStatus   	Implemented
sl@0
   585
//! @SYMTestActions 	Preconditions:
sl@0
   586
//!			• There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the service offered by the “system 
sl@0
   587
//!			server”.
sl@0
   588
//!
sl@0
   589
//!			Test Actions:
sl@0
   590
//!			• Launch 3 “test client” (A, B & C) which requests use of different system servers. Clients A & B should not have any decision 
sl@0
   591
//!			related to it stored in DB, Clients C should have a decision “Always” stored in DB. Make sure that Client B is launched after 
sl@0
   592
//!			security dialog is displayed for Client A. Make sure that request for security dialog for client B is made before client C is 
sl@0
   593
//!			launched. 
sl@0
   594
//!			• Do not act in the security dialog for Client A when this one is displayed.
sl@0
   595
//!			• Check that Client C can access intended test service and UPS did issue a silent acceptance to system server from UPS for the 
sl@0
   596
//!			request made for client C.
sl@0
   597
//!			• Act now in security dialog for Client A, select “Never”.
sl@0
   598
//!			• Check that Client A can NOT access intended test service.
sl@0
   599
//!			• Act now in security dialog for Client B, select “Always”.
sl@0
   600
//!			• Check that Client B can access intended test service.
sl@0
   601
//!
sl@0
   602
//! @SYMTestExpectedResults 	• Final check in Decision DB shows 4 decisions stored: “Always” for Clients B & C. “Never” for Client A.
sl@0
   603
//!				• Accesses to service were granted for Clients B & C. 
sl@0
   604
//!
sl@0
   605
//! @SYMTestType CIT
sl@0
   606
sl@0
   607
START_TESTCASE SEC-UPS-INTEG-B012
sl@0
   608
sl@0
   609
// Delete Existing Database
sl@0
   610
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   611
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   612
sl@0
   613
// Setup up the Database so that Client C has an 'Always' Decision stored
sl@0
   614
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Multiple_Unattended_Dialogs_ClientC_Setup
sl@0
   615
sl@0
   616
// Run 3 concurrent clients with a Coordinator to ensure that the Clients are synchronised
sl@0
   617
CONCURRENT
sl@0
   618
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini Multiple_Unattended_Dialogs_Coordinator
sl@0
   619
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Multiple_Unattended_Dialogs_ClientA
sl@0
   620
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Multiple_Unattended_Dialogs_ClientB
sl@0
   621
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Multiple_Unattended_Dialogs_ClientC
sl@0
   622
CONSECUTIVE
sl@0
   623
sl@0
   624
// Database Management Checks
sl@0
   625
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini Multiple_Unattended_Dialogs_dbManagementcheck
sl@0
   626
sl@0
   627
END_TESTCASE SEC-UPS-INTEG-B012
sl@0
   628
sl@0
   629
sl@0
   630
//********************** SEC-UPS-C : DIALOG SERIALISATION SPECIFIC TESTS  **********************
sl@0
   631
sl@0
   632
sl@0
   633
//! @SYMTestCaseID 	SEC-UPS-C001
sl@0
   634
//! @SYMTestCaseDesc 	Dialog serialisation
sl@0
   635
//!                     (Dialog_Serialisation)
sl@0
   636
//!		
sl@0
   637
//! @SYMPREQ 		PREQ1262
sl@0
   638
//! @SYMREQ  		REQ7472
sl@0
   639
//!
sl@0
   640
//! @SYMTestPriority 	Critical
sl@0
   641
//! @SYMTestStatus   	Implemented
sl@0
   642
//! @SYMTestActions 	Preconditions:
sl@0
   643
//!			• For each of the services There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the service //!			offered by the “system server”.
sl@0
   644
//!
sl@0
   645
//!			Test Actions:
sl@0
   646
//!			• Launch 3 “test client”  (A ,B & C) in turns, these Clients requests use of a system server.  System server should request prompt of //!			security dialog to UPS. Make sure that requests for the 3 security dialog are made before acting in the first dialog that is expected //!			to be displayed.
sl@0
   647
//!			• For first security dialog to be displayed (client A) select “always”.
sl@0
   648
//!			• Check that client A can access intended service.
sl@0
   649
//!			• For second security dialog to be displayed (client B) select “only this session”.
sl@0
   650
//!			• Check that client B can access intended service.
sl@0
   651
//!			• For third security dialog to be displayed (client C) select “never”.
sl@0
   652
//!			• Check that client C can NOT access intended service.
sl@0
   653
//!			• Shut down clients and servers.
sl@0
   654
//!			• Launch client A again, check that it can access test service and UPS is issuing silent acceptance.
sl@0
   655
//!			• Launch client C again, check that it can access test service and UPS is issuing silent denial.
sl@0
   656
//!
sl@0
   657
//!
sl@0
   658
//! @SYMTestExpectedResults 	• User prompt service dialogs are displayed correctly, and only 1 dialog at any time.
sl@0
   659
//!				• Information displayed about the client is complete (see Appendix A).
sl@0
   660
//!				• Clients A & C can access test service.
sl@0
   661
//!				• Client B can not access test service.
sl@0
   662
//!				•Decision DB is updated correctly with the Always decision. 
sl@0
   663
//!
sl@0
   664
//! @SYMTestType CIT
sl@0
   665
sl@0
   666
START_TESTCASE SEC-UPS-C001
sl@0
   667
sl@0
   668
// Delete Existing Database
sl@0
   669
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   670
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   671
sl@0
   672
// Run 3 concurrent clients with a Coordinator to ensure that the Clients are synchronised
sl@0
   673
CONCURRENT
sl@0
   674
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini Dialog_Serialisation_Coordinator
sl@0
   675
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Dialog_Serialisation_clientA
sl@0
   676
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Dialog_Serialisation_clientB
sl@0
   677
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Dialog_Serialisation_clientC
sl@0
   678
CONSECUTIVE
sl@0
   679
sl@0
   680
// Silent acceptance checking for Client A
sl@0
   681
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Dialog_Serialisation_clientA_DecisionCheck
sl@0
   682
sl@0
   683
// Silent denial checking for Client C
sl@0
   684
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Dialog_Serialisation_clientC_DecisionCheck
sl@0
   685
sl@0
   686
// Database Management Checks
sl@0
   687
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini Dialog_Serialisation_dbManagementcheck
sl@0
   688
sl@0
   689
END_TESTCASE SEC-UPS-C001
sl@0
   690
sl@0
   691
sl@0
   692
//! @SYMTestCaseID 	SEC-UPS-INTEG-C005
sl@0
   693
//! @SYMTestCaseDesc 	To ensure that a cancellation of a user prompt dialog (cancel button) does not affect 
sl@0
   694
//!			adversatively the behaviour of the UPS.
sl@0
   695
//!                     (single_dialog_cancellation)
sl@0
   696
//!		
sl@0
   697
//! @SYMPREQ 		PREQ1262
sl@0
   698
//! @SYMREQ  		REQ7427 
sl@0
   699
//!
sl@0
   700
//! @SYMTestPriority 	Critical
sl@0
   701
//! @SYMTestStatus   	Implemented
sl@0
   702
//! @SYMTestActions 	Preconditions:
sl@0
   703
//!			• There is an appropriate policy, policy evaluator and dialog creator that matches the UID of 		
sl@0
   704
//!			the service offered by the “system server”.
sl@0
   705
//!
sl@0
   706
//!			Test Actions:
sl@0
   707
//!			• Launch a “test client A” which requests use of a system server.
sl@0
   708
//!			• System server asks for a user prompt to the UPS.
sl@0
   709
//!			• When security dialog is displayed, cancel request made from system server to UPS, this should 
sl@0
   710
//!			cause cancellation of notifier and therefore cancellation of security dialog.
sl@0
   711
//!			• Close test client A.
sl@0
   712
//!			• Launch test client B which tries to use the same test service.
sl@0
   713
//!			• System server requests security dialog.
sl@0
   714
//!			• When dialog is displayed select “always”
sl@0
   715
//!			• Check that client B can use test service.
sl@0
   716
//!
sl@0
   717
//! @SYMTestExpectedResults
sl@0
   718
//!                     • User prompt service dialogs is displayed correctly.
sl@0
   719
//!			• Cancellation of security dialog does not cause UPS malfunction.
sl@0
   720
//!			• Decision DB is upgraded with new decision for test client B.
sl@0
   721
//!
sl@0
   722
//! @SYMTestType CIT	 
sl@0
   723
//!			 
sl@0
   724
sl@0
   725
sl@0
   726
START_TESTCASE SEC-UPS-INTEG-C005
sl@0
   727
sl@0
   728
// Delete Existing Database
sl@0
   729
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   730
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   731
sl@0
   732
// Client A is run concurrently with a Coordinator so that the request can be cancelled once the Dialog Creator has been invoked
sl@0
   733
CONCURRENT
sl@0
   734
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini single_dialog_cancellation_Coordinator
sl@0
   735
RUN_TEST_STEP 100 TUPSInteg_minor CancelPrompt z:\tups\integ\scripts\tups_integ.ini single_dialog_cancellation_ClientA
sl@0
   736
CONSECUTIVE
sl@0
   737
sl@0
   738
// Client B makes an attempt to access the same service as Client A
sl@0
   739
RUN_TEST_STEP 100 TUPSInteg_minor SimpleRequest z:\tups\integ\scripts\tups_integ.ini single_dialog_cancellation_ClientB
sl@0
   740
sl@0
   741
// Database Management Checks
sl@0
   742
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini single_dialog_cancellation_dbManagementCheck
sl@0
   743
sl@0
   744
END_TESTCASE SEC-UPS-INTEG-C005
sl@0
   745
sl@0
   746
sl@0
   747
sl@0
   748
//! @SYMTestCaseID 	SEC-UPS-INTEG-C006
sl@0
   749
//! @SYMTestCaseDesc 	Cancellation of first dialog from a queue of pending security dialogs.
sl@0
   750
//!                     (cancellation_first_dialog)
sl@0
   751
//!		
sl@0
   752
//! @SYMPREQ 		PREQ1262
sl@0
   753
//! @SYMREQ  		REQ7431 REQ7432 
sl@0
   754
//!
sl@0
   755
//! @SYMTestPriority 	Critical
sl@0
   756
//! @SYMTestStatus   	Implemented
sl@0
   757
//! @SYMTestActions 	Preconditions:
sl@0
   758
//!			• For each of the services there is an appropriate policy, policy evaluator and dialog creator that matches the UID of the service //!			offered by the “system server”.
sl@0
   759
//!			
sl@0
   760
//!			Test Actions:
sl@0
   761
//!			• Launch 3 “test client” in turns (A,B & C), these Clients try to use of a test service in system server.
sl@0
   762
//!			• Make sure system server has request security dialog for all clients before acting in any security dialog. 
sl@0
   763
//!			• Once user prompt is displayed for client A, induce system server to cancel request to UPS for client A, this should cause security //!			dialog for client A to be removed from screen. 
sl@0
   764
//!			• Security dialog for client B should appear on screen select “never” and check that application can NOT use intended service.
sl@0
   765
//!			• Security dialog for client C should appear on screen select “always” and check that application can use intended service.
sl@0
   766
//!
sl@0
   767
//! @SYMTestExpectedResults • Decision DB is upgraded with new decisions for Clients B (“never”) and C (“always”) 
sl@0
   768
//!			• UPS does not malfunction after cancellation of dialog for Client A.
sl@0
   769
//!
sl@0
   770
//! @SYMTestType CIT	 
sl@0
   771
//!			 
sl@0
   772
sl@0
   773
sl@0
   774
START_TESTCASE SEC-UPS-INTEG-C006
sl@0
   775
sl@0
   776
// Delete Existing Database
sl@0
   777
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   778
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   779
sl@0
   780
// Client A, B and C are run concurrently with a Coordinator so that the first dialog (Client A) can be cancelled once all of the service requests
sl@0
   781
// have been invoked
sl@0
   782
CONCURRENT
sl@0
   783
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini cancellation_first_dialog_Coordinator
sl@0
   784
RUN_TEST_STEP 100 TUPSInteg_minor CancelPrompt z:\tups\integ\scripts\tups_integ.ini cancellation_first_dialog_ClientA_cancel
sl@0
   785
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini cancellation_first_dialog_ClientB
sl@0
   786
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini cancellation_first_dialog_ClientC
sl@0
   787
CONSECUTIVE
sl@0
   788
sl@0
   789
// Database Management Checks
sl@0
   790
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini cancellation_first_dialog_dbManagementCheck
sl@0
   791
sl@0
   792
END_TESTCASE SEC-UPS-INTEG-C006
sl@0
   793
sl@0
   794
sl@0
   795
sl@0
   796
//! @SYMTestCaseID 	SEC-UPS-INTEG-C007
sl@0
   797
//! @SYMTestCaseDesc 	Cancellation of last dialog from a queue of pending security dialogs.
sl@0
   798
//!                     (cancellation_last_dialog)
sl@0
   799
//!		
sl@0
   800
//! @SYMPREQ 		PREQ1262
sl@0
   801
//! @SYMREQ  		REQ7431 REQ7432 
sl@0
   802
//!
sl@0
   803
//! @SYMTestPriority 	Critical
sl@0
   804
//! @SYMTestStatus   	Implemented
sl@0
   805
//! @SYMTestActions 	Preconditions:
sl@0
   806
//!			• For each of the services there is an appropriate policy, policy evaluator and dialog creator that matches the UID of the service //!			offered by the “system server”.
sl@0
   807
//!
sl@0
   808
//!			Test Actions:
sl@0
   809
//!			• Launch 3 “test client” in turns (A, B & C), these Clients try to use of a test service in system server.
sl@0
   810
//!			• Make sure system server has request security dialog for all clients before acting in any security dialog. 
sl@0
   811
//!			• Security dialog for client A should appear on screen select “always” and check that application can use intended service.
sl@0
   812
//!			• Security dialog for client B should appear on screen select “never” and check that application can NOT use intended service.
sl@0
   813
//!			• Once user prompt is displayed for client C, induce system server to cancel request to UPS for client C, this should cause security //!			dialog for client C to be removed from screen. 
sl@0
   814
//!			• In new session ask client A to try to access test service, UPS should grant silent acceptance and client A should have access to //!			test service.
sl@0
   815
//!			• In new session ask client B to try to access test service, UPS should grant silent denial and client B should NOT  have access to //!			test service.
sl@0
   816
//!	
sl@0
   817
//! @SYMTestExpectedResults • Decision DB is upgraded with new decisions for Clients B (“never”) and 
sl@0
   818
//!			      A (“always”).
sl@0
   819
//!			    • UPS does not malfunction after cancellation of dialog for Client C.		
sl@0
   820
//! @SYMTestType CIT
sl@0
   821
//!	
sl@0
   822
sl@0
   823
sl@0
   824
START_TESTCASE SEC-UPS-INTEG-C007
sl@0
   825
sl@0
   826
// Delete Existing Database
sl@0
   827
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   828
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   829
sl@0
   830
// Client A, B and C are run concurrently with a Coordinator so that the last dialog (Client C) can be cancelled once all of the service requests
sl@0
   831
// have been invoked
sl@0
   832
CONCURRENT
sl@0
   833
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini cancellation_last_dialog_Coordinator
sl@0
   834
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini cancellation_last_dialog_ClientA
sl@0
   835
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini cancellation_last_dialog_ClientB
sl@0
   836
RUN_TEST_STEP 100 TUPSInteg_minor CancelPrompt z:\tups\integ\scripts\tups_integ.ini cancellation_last_dialog_ClientC_cancel
sl@0
   837
CONSECUTIVE
sl@0
   838
sl@0
   839
// Database Management Checks
sl@0
   840
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini cancellation_last_dialog_dbManagementCheck
sl@0
   841
sl@0
   842
END_TESTCASE SEC-UPS-INTEG-C007
sl@0
   843
sl@0
   844
sl@0
   845
sl@0
   846
//! @SYMTestCaseID 	SEC-UPS-INTEG-C008
sl@0
   847
//! @SYMTestCaseDesc 	Cancellation of middle position dialog from a queue of pending security dialogs.
sl@0
   848
//!                     (cancellation_middle_dialog)
sl@0
   849
//!		
sl@0
   850
//! @SYMPREQ 		PREQ1262
sl@0
   851
//! @SYMREQ  		REQ7431 REQ7432 
sl@0
   852
//!
sl@0
   853
//! @SYMTestPriority 	Critical
sl@0
   854
//! @SYMTestStatus   	Implemented
sl@0
   855
//! @SYMTestActions 	Preconditions:
sl@0
   856
//!			• For each of the services there is an appropriate policy, policy evaluator and dialog creator that matches the UID of the service //!			offered by the “system server”.
sl@0
   857
//!
sl@0
   858
//!			Test Actions:
sl@0
   859
//!			• Launch 3 “test client” in turns (A, B & C), these Clients try to use of a test service in system server.
sl@0
   860
//!			• Make sure system server has request security dialog for all clients before acting in any security dialog. 
sl@0
   861
//!			• Security dialog for client A should appear on screen select “always” and check that application can use intended service.
sl@0
   862
//!			• Once user prompt is displayed for client B, induce system server to cancel request to UPS for client B, this should cause security //!			dialog for client B to be removed from screen. 
sl@0
   863
//!			• Security dialog for client C should appear on screen select “Always” and check that client can use intended service.
sl@0
   864
//!			• In new session ask client A to try to access test service, UPS should grant silent acceptance and client A should have access to //!			test service.
sl@0
   865
//!			• In new session ask client C to try to access test service, UPS should grant silent acceptance and client B should have access to //!			test service.
sl@0
   866
//!	
sl@0
   867
//! @SYMTestExpectedResults • Decision DB is upgraded with 2 new “Always” decisions for Clients A & C.
sl@0
   868
//!		            • UPS does not malfunction after cancellation of dialog for Client B.
sl@0
   869
//!		
sl@0
   870
//! @SYMTestType CIT	
sl@0
   871
sl@0
   872
sl@0
   873
START_TESTCASE SEC-UPS-INTEG-C008
sl@0
   874
sl@0
   875
// Delete Existing Database
sl@0
   876
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   877
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   878
sl@0
   879
// Client A, B and C are run concurrently with a Coordinator so that the middle dialog (Client B) can be cancelled once all of the service requests
sl@0
   880
// have been invoked
sl@0
   881
CONCURRENT
sl@0
   882
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini cancellation_middle_dialog_Coordinator
sl@0
   883
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini cancellation_middle_dialog_ClientA
sl@0
   884
RUN_TEST_STEP 100 TUPSInteg_minor CancelPrompt z:\tups\integ\scripts\tups_integ.ini cancellation_middle_dialog_ClientB_cancel
sl@0
   885
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini cancellation_middle_dialog_ClientC
sl@0
   886
CONSECUTIVE
sl@0
   887
sl@0
   888
// Database Management Checks
sl@0
   889
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini cancellation_middle_dialog_dbManagementCheck
sl@0
   890
sl@0
   891
END_TESTCASE SEC-UPS-INTEG-C008
sl@0
   892
sl@0
   893
sl@0
   894
//! @SYMTestCaseID 	SEC-UPS-INTEG-C009
sl@0
   895
//! @SYMTestCaseDesc 	Cancellation of request whilst Policy Evaluator is Generating Fingerprints
sl@0
   896
//!                     (cancellation_during_fingerprint_generation)
sl@0
   897
//!		
sl@0
   898
//! @SYMPREQ 		PREQ1262
sl@0
   899
//! @SYMREQ 		REQ7431 REQ7432 
sl@0
   900
//!
sl@0
   901
//! @SYMTestPriority	Critical
sl@0
   902
//! @SYMTestStatus	Implemented
sl@0
   903
//! @SYMTestActions	
sl@0
   904
//!	Preconditions:
sl@0
   905
//!		•  For each of the services there is an appropriate policy, policy evaluator and 
sl@0
   906
//!		   dialog creator that matches the UID of the service offered by the “system server”.
sl@0
   907
//!     Test Actions:
sl@0
   908
//!            •  Launch 3 “test client” in turns (A, B & C), these Clients try to use of a test 
sl@0
   909
//!               service in system server.
sl@0
   910
//!	       •  Make sure system server has request security dialog for all clients to UPS before 
sl@0
   911
//!		  acting in any security dialog. At this stage client A should be hold with security 
sl@0
   912
//!		  dialog open (on display), client B need to be hold while its request is at 
sl@0
   913
//!		  “GenerateFingerPrints” stage, client C can be hold at display queuing stage.
sl@0
   914
//!	       •  Once all clients have reached stages described above cancel request from client B, 
sl@0
   915
//!		  consecutively let other two clients requests (A & C) run normally to competition. 
sl@0
   916
//!	       •  Check that request for A and C can be served normally by UPS.
sl@0
   917
//!	       •  Check that request for client B received a “KerrCancel” from UPS.
sl@0
   918
//!
sl@0
   919
//! @SYMTestExpectedResults  •	Decisions for client A and C are correctly stored in decision DB.
sl@0
   920
//!    			     •	No decision was stored for client B.
sl@0
   921
//!			
sl@0
   922
//! @SYMTestType CIT	 
sl@0
   923
sl@0
   924
START_TESTCASE SEC-UPS-INTEG-C009
sl@0
   925
sl@0
   926
// Delete Existing Database
sl@0
   927
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   928
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   929
sl@0
   930
// Client A, B and C are run concurrently with a Coordinator so that the middle dialog (Client B) can be cancelled whilst the policy evaluator is generating 
sl@0
   931
// fingerprints
sl@0
   932
CONCURRENT
sl@0
   933
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini cancellation_during_fingerprint_generation_Coordinator
sl@0
   934
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini cancellation_during_fingerprint_generation_ClientA
sl@0
   935
RUN_TEST_STEP 100 TUPSInteg_minor CancelPrompt z:\tups\integ\scripts\tups_integ.ini cancellation_during_fingerprint_generation_ClientB_cancel
sl@0
   936
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini cancellation_during_fingerprint_generation_ClientC
sl@0
   937
CONSECUTIVE
sl@0
   938
sl@0
   939
// Database Management Checks
sl@0
   940
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini cancellation_during_fingerprint_generation_dbManagementCheck
sl@0
   941
sl@0
   942
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_2
sl@0
   943
sl@0
   944
END_TESTCASE SEC-UPS-INTEG-C009
sl@0
   945
sl@0
   946
sl@0
   947
//! @SYMTestCaseID 	SEC-UPS-INTEG-C010
sl@0
   948
//! @SYMTestCaseDesc 	Cancellation of request whilst Dialog Creator is Preparing a Dialog
sl@0
   949
//!                     (cancellation_during_prepare_dialog)
sl@0
   950
//!		
sl@0
   951
//! @SYMPREQ 		PREQ1262
sl@0
   952
//! @SYMREQ 		REQ7431 REQ7432 
sl@0
   953
//!
sl@0
   954
//! @SYMTestPriority	Critical
sl@0
   955
//! @SYMTestStatus	Implemented
sl@0
   956
//! @SYMTestActions	
sl@0
   957
//!	Preconditions:
sl@0
   958
//!		•  For each of the services there is an appropriate policy, policy evaluator and 
sl@0
   959
//!		   dialog creator that matches the UID of the service offered by the “system server”.
sl@0
   960
//!     Test Actions:
sl@0
   961
//!            •  Launch 3 “test client” in turns (A, B & C), these Clients try to use of a test 
sl@0
   962
//!               service in system server.
sl@0
   963
//!	       •  Make sure system server has request security dialog for all clients to UPS before 
sl@0
   964
//!		  acting in any security dialog. At this stage client A should be hold with security 
sl@0
   965
//!		  dialog open (on display), client B need to be hold while its request is at 
sl@0
   966
//!		  “PrepareDialog” stage, client C can be hold at display queuing stage.
sl@0
   967
//!	       •  Once all clients have reached stages described above cancel request from client B, 
sl@0
   968
//!		  consecutively let other two clients requests (A & C) run normally to competition. 
sl@0
   969
//!	       •  Check that request for A and C can be served normally by UPS.
sl@0
   970
//!	       •  Check that request for client B received a “KerrCancel” from UPS.
sl@0
   971
//!
sl@0
   972
//! @SYMTestExpectedResults  •	Decisions for client A and C are correctly stored in decision DB.
sl@0
   973
//!    			     •	No decision was stored for client B.
sl@0
   974
//!			
sl@0
   975
//! @SYMTestType CIT	 
sl@0
   976
sl@0
   977
sl@0
   978
sl@0
   979
START_TESTCASE SEC-UPS-INTEG-C010
sl@0
   980
sl@0
   981
// Delete Existing Database
sl@0
   982
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
   983
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
   984
sl@0
   985
// Client A, B and C are run concurrently with a Coordinator so that the middle dialog (Client B) can be cancelled whilst the dialog creator is preparing
sl@0
   986
// a dialog
sl@0
   987
CONCURRENT
sl@0
   988
RUN_TEST_STEP 100 TUPSInteg_1 UPSCoordinatorStep z:\tups\integ\scripts\tups_integ.ini cancellation_during_prepare_dialog_Coordinator
sl@0
   989
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini cancellation_during_prepare_dialog_ClientA
sl@0
   990
RUN_TEST_STEP 100 TUPSInteg_minor CancelPrompt z:\tups\integ\scripts\tups_integ.ini cancellation_during_prepare_dialog_ClientB_cancel
sl@0
   991
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini cancellation_during_prepare_dialog_ClientC
sl@0
   992
CONSECUTIVE
sl@0
   993
sl@0
   994
// Database Management Checks
sl@0
   995
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini cancellation_during_prepare_dialog_dbManagementCheck
sl@0
   996
sl@0
   997
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_2
sl@0
   998
sl@0
   999
END_TESTCASE SEC-UPS-INTEG-C010
sl@0
  1000
sl@0
  1001
sl@0
  1002
//********************** SEC-UPS-D : DECISION DATABASE SPECIFIC TESTS  **********************
sl@0
  1003
sl@0
  1004
sl@0
  1005
//! @SYMTestCaseID SEC-UPS-INTEG-D003
sl@0
  1006
//! @SYMTestCaseDesc Deletion of decision DB after DB corruption
sl@0
  1007
//!                  (BD_corruption)
sl@0
  1008
//!		
sl@0
  1009
//! @SYMPREQ PREQ1262
sl@0
  1010
//! @SYMREQ REQ0
sl@0
  1011
//!
sl@0
  1012
//! @SYMTestPriority Critical
sl@0
  1013
//! @SYMTestStatus   Implemented
sl@0
  1014
//! @SYMTestActions 	Preconditions:
sl@0
  1015
//!			• For each of the services there is an appropriate policy, policy evaluator and 
sl@0
  1016
//!	   		  dialog creator that matches the UID of the service offered by the “system server”.
sl@0
  1017
//!			
sl@0
  1018
//!			Test Actions:
sl@0
  1019
//!			• Launch 2 “test client” in turns (A & B) these Clients try to use of a system server.
sl@0
  1020
//!			• System server asks for a user prompt to the UPS for each of the Clients.
sl@0
  1021
//!			• For the first 2 test clients (A & B) select “Always” option. 
sl@0
  1022
//!			• Check that “test client” A & B can now use the intended service from the system server. 
sl@0
  1023
//!			• Close client, system servers and UPS
sl@0
  1024
//!			• Change some bytes in decision DB file that will be interpreted as DB corruption. 
sl@0
  1025
//!     		• Launch again test clients A & B,  as the decision DB is expected to have been deleted, 
sl@0
  1026
//!	                  it is expected that 2 user prompts will be displayed again for A & B.
sl@0
  1027
//!			• Select “Never” for A and “always” for B.
sl@0
  1028
//!			• Check that A can access intended service and B can NOT.
sl@0
  1029
//! @SYMTestExpectedResults • The decision DB is deleted after corruption and replaced with new one.
sl@0
  1030
//!			    • A  new DB is created with “”Never” decision for client A and “Always” decision for client B. 
sl@0
  1031
//!			    • Corruption of decision DB does not cause failure in UPS.
sl@0
  1032
//! @SYMTestType CIT
sl@0
  1033
sl@0
  1034
START_TESTCASE SEC-UPS-INTEG-D003
sl@0
  1035
// First attempt of corruption
sl@0
  1036
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini BD_corruption_adddecisions
sl@0
  1037
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1038
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini BD_corruption_checkdecisions
sl@0
  1039
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1040
// replaces database with corrupted database
sl@0
  1041
RUN_UTILS CopyFile z:\tups\integ\corrupted_db_integ\ups_corrupted1.db c:\private\10283558\database\ups.db
sl@0
  1042
RUN_UTILS MakeReadWrite c:\private\10283558\database\ups.db
sl@0
  1043
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini BD_corruption_adddecisions
sl@0
  1044
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1045
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini BD_corruption_checkdecisions
sl@0
  1046
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1047
sl@0
  1048
// second attempt of corruption
sl@0
  1049
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1050
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini BD_corruption_adddecisions
sl@0
  1051
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1052
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini BD_corruption_checkdecisions
sl@0
  1053
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1054
// replaces database with corrupted database
sl@0
  1055
RUN_UTILS CopyFile z:\tups\integ\corrupted_db_integ\ups_corrupted2.db c:\private\10283558\database\ups.db
sl@0
  1056
// The database file is deliberately left as read only (DEF122590).
sl@0
  1057
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini BD_corruption_adddecisions
sl@0
  1058
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1059
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini BD_corruption_checkdecisions
sl@0
  1060
END_TESTCASE SEC-UPS-INTEG-D003
sl@0
  1061
sl@0
  1062
sl@0
  1063
//! @SYMTestCaseID 	SEC-UPS-D004
sl@0
  1064
//! @SYMTestCaseDesc 	Removal of single decision from DB by user operation. 
sl@0
  1065
//!                     (remove_single_db_decision)
sl@0
  1066
//!		
sl@0
  1067
//! @SYMPREQ 		PREQ1262
sl@0
  1068
//! @SYMREQ  		REQ7379
sl@0
  1069
//!
sl@0
  1070
//! @SYMTestPriority 	Critical
sl@0
  1071
//! @SYMTestStatus   	Implemented
sl@0
  1072
//! @SYMTestActions 	Preconditions:
sl@0
  1073
//!			• For each of the services There is an appropriate policy, policy evaluator and dialog creator that matches the UID 	//!			of the service offered by the “system server”.
sl@0
  1074
//!
sl@0
  1075
//!			Test Actions:
sl@0
  1076
//!			• Populate decision DB for 3 test clients (A, B, C) with “Never” decisions for 3 Clients.
sl@0
  1077
//!			• Remove individual decision for Client B from DB using decision DB management API.  
sl@0
  1078
//!			• Launch test clients (A, B, C) which should try to use service from system server. 
sl@0
  1079
//!			• System server requests UPS for security for user security prompting, at this point UPS should give silent denial 	//!			for Client A & C, but should prompt user security dialog for Client B.  
sl@0
  1080
//!			• Select “Always” for test client B when security dialog is displayed.
sl@0
  1081
//!			• Check that Client B can now use the intended service.
sl@0
  1082
//!
sl@0
  1083
//! @SYMTestExpectedResults	• Only decision for test client B changes; final state of decision DB should show decisions for A & C as 
sl@0
  1084
//!				“never”, decision for C as “Always”.
sl@0
  1085
//!				• Test client B is granted access to intended service.
sl@0
  1086
//!
sl@0
  1087
//! @SYMTestType 	CIT
sl@0
  1088
sl@0
  1089
sl@0
  1090
START_TESTCASE SEC-UPS-D004
sl@0
  1091
sl@0
  1092
// Delete Existing Database
sl@0
  1093
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1094
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1095
sl@0
  1096
// * STAGE 1 - CONSECUTIVE REMOVAL OF DECISIONS FROM DATABASE
sl@0
  1097
sl@0
  1098
// Populate decisions in the database and close off sessions
sl@0
  1099
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_setup_clientA
sl@0
  1100
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_setup_clientB
sl@0
  1101
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_setup_clientC
sl@0
  1102
sl@0
  1103
// Initial check on the decisions for denial from UPS
sl@0
  1104
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_initialCheck_clientA
sl@0
  1105
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_initialCheck_clientB
sl@0
  1106
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_initialCheck_clientC
sl@0
  1107
sl@0
  1108
// Initial Database Management Record Check and Count
sl@0
  1109
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_initialDBCheck
sl@0
  1110
sl@0
  1111
// Remove database decisions for client B using the UPS DB Management API
sl@0
  1112
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_removeDecision_clientB
sl@0
  1113
sl@0
  1114
// UPS DB Management checking on records and Execute Decision Count
sl@0
  1115
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_postClientRemovalDBCheck
sl@0
  1116
sl@0
  1117
// Remove database decisions for Policy Evaluator 2 using the UPS DB Management API
sl@0
  1118
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_removeDecision_evaluator2
sl@0
  1119
sl@0
  1120
// UPS DB Management checking on records and Execute Decision Count
sl@0
  1121
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_postEvaluatorRemovalDBCheck
sl@0
  1122
sl@0
  1123
// Relaunch clients checking that clients A & C requesting PE 1 or 3 return denials and others require a User Prompt of which
sl@0
  1124
// Always is selected
sl@0
  1125
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_checkAndRepopulate_clientA
sl@0
  1126
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_checkAndRepopulate_clientB
sl@0
  1127
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_checkAndRepopulate_clientC
sl@0
  1128
sl@0
  1129
// Final check on the decisions from UPS
sl@0
  1130
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_finalCheck_clientA
sl@0
  1131
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_finalCheck_clientB
sl@0
  1132
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_finalCheck_clientC
sl@0
  1133
sl@0
  1134
// Final Stage of UPS DB Management checking on records and Execute Decision Count
sl@0
  1135
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_single_db_decision_finalDBCheck
sl@0
  1136
sl@0
  1137
sl@0
  1138
// * STAGE 2 - CONCURRENT OPERATIONS ON UPS WHILST REMOVING DECISIONS FROM DATABASE
sl@0
  1139
sl@0
  1140
// Delete Existing Database
sl@0
  1141
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1142
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1143
sl@0
  1144
// populate decision database with sample inital values.
sl@0
  1145
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample
sl@0
  1146
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample2
sl@0
  1147
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample2
sl@0
  1148
sl@0
  1149
// Perform initial checking on sample decisions
sl@0
  1150
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample
sl@0
  1151
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample2
sl@0
  1152
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample2
sl@0
  1153
sl@0
  1154
// Concurrently check the decisions of clients B & C whilst remove select decisions from the Database for Client A
sl@0
  1155
CONCURRENT
sl@0
  1156
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_decisions_concurrent_clientA
sl@0
  1157
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample2
sl@0
  1158
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample2
sl@0
  1159
CONSECUTIVE
sl@0
  1160
sl@0
  1161
// UPS DB Management checking on records and Execute Decision Count
sl@0
  1162
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_decisions_concurrent_dbCheck 
sl@0
  1163
sl@0
  1164
END_TESTCASE SEC-UPS-D004
sl@0
  1165
sl@0
  1166
sl@0
  1167
//********************** SEC-UPS-E : SECURITY POLICIES AND POLICY EVALUATOR PLUG-INS  **********************
sl@0
  1168
//! @SYMTestCaseID SEC-UPS-INTEG-E001
sl@0
  1169
//! @SYMTestCaseDesc To ensure that when a single bit is set in the “options” no security
sl@0
  1170
//!		     dialog will be prompted to user. 
sl@0
  1171
//!                  (single_bit_set)
sl@0
  1172
//!		
sl@0
  1173
//! @SYMPREQ PREQ1262
sl@0
  1174
//! @SYMREQ REQ7391, REQ7392, REQ7433  
sl@0
  1175
//! @SYMTestPriority Critical
sl@0
  1176
//! @SYMTestStatus   Implemented
sl@0
  1177
//! @SYMTestActions 	Test A: Set only ‘EYes’ bit to true in test policy for“test client”.
sl@0
  1178
//!			Induce UPS invocation by using a “test client”
sl@0
  1179
//!			Check if test client can access intended service.
sl@0
  1180
//!		    	Test B:  Set only ‘ENo’ bit to true in test policy for“test client”.
sl@0
  1181
//!			Induce UPS invocation by using a “test client”
sl@0
  1182
//!			Check if test client can access intended service.
sl@0
  1183
//! 		   	Test C: Set only ‘ESession’ bit to true in test policy for“test client”.
sl@0
  1184
//!			Induce UPS invocation by using a “test client”
sl@0
  1185
//!			Check if test client can access intended service.
sl@0
  1186
//! 			Test D: Set only ‘EAlways’ bit to true in test policy for“test client”.
sl@0
  1187
//!			Induce UPS invocation by using a “test client”
sl@0
  1188
//!			Check if test client can access intended service.
sl@0
  1189
//! 			Test E:	Set only ‘ENever’ bit to true in test policy for“test client”.
sl@0
  1190
//!			Induce UPS invocation by using a “test client”
sl@0
  1191
//!			Check if test client can access intended service.
sl@0
  1192
//!
sl@0
  1193
//! @SYMTestExpectedResults 	Only for tests A, C & D the test service will be able to access 
sl@0
  1194
//!				intended service.
sl@0
  1195
//!	 			For all of the tests (A to E), no decision is stored in decision DB.
sl@0
  1196
//!				No security dialog is displayed (all decisions are silent).
sl@0
  1197
//!
sl@0
  1198
//! @SYMTestType CIT
sl@0
  1199
//
sl@0
  1200
START_TESTCASE SEC-UPS-INTEG-E001
sl@0
  1201
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini single_bit_set
sl@0
  1202
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini single_bit_set_b
sl@0
  1203
END_TESTCASE SEC-UPS-INTEG-E001
sl@0
  1204
sl@0
  1205
sl@0
  1206
//! @SYMTestCaseID SEC-UPS-INTEG-E002
sl@0
  1207
//! @SYMTestCaseDesc To ensure that a default policy evaluator will be invoked if a service
sl@0
  1208
//!                  requested do not match any existing policy in the phone 
sl@0
  1209
//!                  (no_matching_policy)
sl@0
  1210
//!		
sl@0
  1211
//! @SYMPREQ PREQ1262
sl@0
  1212
//! @SYMREQ REQ0
sl@0
  1213
//! @SYMTestPriority Critical
sl@0
  1214
//! @SYMTestStatus   Implemented
sl@0
  1215
//! @SYMTestActions 	Preconditions: There is not matching policy for the test client to 
sl@0
  1216
//!                     be used for this test case.
sl@0
  1217
//!                     Test Actions:  
sl@0
  1218
//!                     - Launch test client which tries to access test service, system server 
sl@0
  1219
//!                     should invoke UPS.
sl@0
  1220
//!             	- A “Yes” or “No” dialog should be displayed select “YES
sl@0
  1221
//!			Check that access is granted to test service. 
sl@0
  1222
//!			- Launch again same test client, a “Yes” or “Not” dialog should be displayed 
sl@0
  1223
//!			select “No”. 
sl@0
  1224
//!			- Check that access is NOT granted to test service. 
sl@0
  1225
//!			- Launch again same test client, a “Yes” or “Not” dialog should be displayed 
sl@0
  1226
//!                     select “Yes”. 
sl@0
  1227
//!			-  Check that access is granted to test service. 
sl@0
  1228
//!
sl@0
  1229
//! @SYMTestExpectedResults 	Yes” or “No” dialog is displayed every time that test client 
sl@0
  1230
//!				request service access.
sl@0
  1231
//!
sl@0
  1232
//! @SYMTestType CIT
sl@0
  1233
//
sl@0
  1234
START_TESTCASE SEC-UPS-INTEG-E002
sl@0
  1235
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep Z:\tups\integ\scripts\tups_integ.ini no_matching_policy
sl@0
  1236
END_TESTCASE SEC-UPS-INTEG-E002
sl@0
  1237
sl@0
  1238
sl@0
  1239
//! @SYMTestCaseID SEC-UPS-INTEG-E004
sl@0
  1240
//! @SYMTestCaseDesc To ensure that UPS will return an appropriate error if the policy 
sl@0
  1241
//!                  evaluator set in the “policy evaluator” field is not present in the phone 
sl@0
  1242
//!                  (missing_policy_evaluator)
sl@0
  1243
//!		
sl@0
  1244
//! @SYMPREQ PREQ1262
sl@0
  1245
//! @SYMREQ REQ7444  
sl@0
  1246
//! @SYMTestPriority Critical
sl@0
  1247
//! @SYMTestStatus   Implemented
sl@0
  1248
//! @SYMTestActions 	Preconditions there is an appropriate policy, policy evaluator
sl@0
  1249
//!                    and dialog creator that matches the UID of the service offered by the 
sl@0
  1250
//!                    “system server”. However the policy evaluator referred in the “policy 
sl@0
  1251
//!                    evaluator UID field” is not present in the phone. 
sl@0
  1252
//! 		       Actions:  Launch test client which tries to use test service, system server should invoke UPS.
sl@0
  1253
//!                    UPS should return KErrUpsMissingPolicyEvaluator to system server.
sl@0
  1254
//!
sl@0
  1255
//! @SYMTestExpectedResults System server receives KErrUpsMissingPolicyEvaluator 
sl@0
  1256
//!				and test client can not use intended service
sl@0
  1257
//!
sl@0
  1258
//! @SYMTestType CIT
sl@0
  1259
//
sl@0
  1260
START_TESTCASE SEC-UPS-INTEG-E004
sl@0
  1261
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini missing_policy_evaluator
sl@0
  1262
END_TESTCASE SEC-UPS-INTEG-E004
sl@0
  1263
sl@0
  1264
sl@0
  1265
//! @SYMTestCaseID SEC-UPS-INTEG-E006
sl@0
  1266
//! @SYMTestCaseDesc To ensure that UPS will return appropriate error if dialog creator referred 
sl@0
  1267
//!                  by “Dialog creator UID” field in policy is not present in phone
sl@0
  1268
//!                  (missing_dialog_creator)
sl@0
  1269
//!		
sl@0
  1270
//! @SYMPREQ PREQ1262
sl@0
  1271
//! @SYMREQ REQ7444  
sl@0
  1272
//! @SYMTestPriority Critical
sl@0
  1273
//! @SYMTestStatus   Implemented
sl@0
  1274
//! @SYMTestActions  preconditions There is an appropriate policy, policy evaluator that matches 
sl@0
  1275
//!                  the UID of the service offered by the “system server”. However the dialog 
sl@0
  1276
//!                  creator referred in the “Dialog creator UID field” is not present in the phone.
sl@0
  1277
//!                  Launch test client which tries to access test service, system server should 
sl@0
  1278
//!		     invoke UPS. Launch test client which tries to use test service, system server 
sl@0
  1279
//!                  should invoke UPS.
sl@0
  1280
//!
sl@0
  1281
//! @SYMTestExpectedResults System server receives KErrUpsMissingDialogCreator
sl@0
  1282
//!				and test client can not use intended service
sl@0
  1283
//!
sl@0
  1284
//! @SYMTestType CIT
sl@0
  1285
//
sl@0
  1286
START_TESTCASE SEC-UPS-INTEG-E006
sl@0
  1287
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini missing_dialog_creator
sl@0
  1288
END_TESTCASE SEC-UPS-INTEG-E006
sl@0
  1289
sl@0
  1290
//! @SYMTestCaseID SEC-UPS-INTEG-E007
sl@0
  1291
//! @SYMTestCaseDesc Matching destination by wild card, asterisk symbols – limited range.
sl@0
  1292
//!                  (asterisk_limited)
sl@0
  1293
//!		
sl@0
  1294
//! @SYMPREQ PREQ1262
sl@0
  1295
//! @SYMREQ REQ0
sl@0
  1296
//!
sl@0
  1297
//! @SYMTestPriority Critical
sl@0
  1298
//! @SYMTestStatus   Implemented
sl@0
  1299
//! @SYMTestActions 	Preconditions: 
sl@0
  1300
//!			• There is an appropriate policy, policy evaluator and dialog creator 
sl@0
  1301
//!			that matches the UID of the service offered by the “system server”. 
sl@0
  1302
//!			The value for “destination” in policy file contains asterisk.
sl@0
  1303
//!			Test Actions:  
sl@0
  1304
//!			• Launch test client A which tries to access test service. The service 
sl@0
  1305
//!			requested by this Client is a phone connection to a 0900 number. 
sl@0
  1306
//!			(The policy associated to this service states that all 0900* should be 
sl@0
  1307
//!			prompted for user decision)
sl@0
  1308
//! 			• System server asks for a user prompt to the UPS.
sl@0
  1309
//!			• When UPS prompts user, select the “Always” option. Check that Client 
sl@0
  1310
//!			A can access intended service.
sl@0
  1311
//!			• Launch Client A in a new session, check that Client A receives a silent 
sl@0
  1312
//!			acceptance and can access the intended service.
sl@0
  1313
//!			• Launch test client B which tries to access test service. The service 
sl@0
  1314
//!			  requested by this Client is an internet connection to a “.RU” address. 
sl@0
  1315
//!     		(The policy associated to this service states that all “.RU” addresses 
sl@0
  1316
//!			should be blocked).
sl@0
  1317
//!			• System server asks for a user prompt to the UPS.
sl@0
  1318
//!			• UPS should reply with a silent denial. Check that Client B can not 
sl@0
  1319
//!			access intended service.
sl@0
  1320
//!
sl@0
  1321
//! @SYMTestExpectedResults 	• An “Always” decision is stored in decision DB for Client A. 
sl@0
  1322
//!				• Client A can access intended service.
sl@0
  1323
//!				• No decision is stored for Client B in decision DB.
sl@0
  1324
//!				• Client B can NOT access intended service.
sl@0
  1325
//! @SYMTestType CIT
sl@0
  1326
sl@0
  1327
START_TESTCASE SEC-UPS-INTEG-E007
sl@0
  1328
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini asterisk_limited
sl@0
  1329
END_TESTCASE SEC-UPS-INTEG-E007
sl@0
  1330
sl@0
  1331
sl@0
  1332
//! @SYMTestCaseID SEC-UPS-INTEG-E008
sl@0
  1333
//! @SYMTestCaseDesc Matching destination by wild card, asterisk symbols – All option.
sl@0
  1334
//!                  (asterisk_all)
sl@0
  1335
//!		
sl@0
  1336
//! @SYMPREQ PREQ1262
sl@0
  1337
//! @SYMREQ REQ0
sl@0
  1338
//!
sl@0
  1339
//! @SYMTestPriority Critical
sl@0
  1340
//! @SYMTestStatus   Implemented
sl@0
  1341
//! @SYMTestActions 	Preconditions: 
sl@0
  1342
//!			•  There is an appropriate policy, policy evaluator and dialog creator
sl@0
  1343
//!			  that matches the UID of the service offered by the “system server”. 
sl@0
  1344
//!			  The value for “destination” in policy file contains asterisk.
sl@0
  1345
//!			Test Actions:  
sl@0
  1346
//!			• Launch test client A with which tries to access test service. 
sl@0
  1347
//!			The service requested by this Client is a phone connection to a 0500 number. 
sl@0
  1348
//!			(The policy associated to this service states that all destinations should be prompted 
sl@0
  1349
//!			for user decision, “*” in destination)
sl@0
  1350
//!			• System server asks for a user prompt to the UPS.
sl@0
  1351
//!			• When UPS prompts user, select the “Always” option. Check that Client A can 
sl@0
  1352
//!			  access intended service.
sl@0
  1353
//!			• Launch Client A in a new session, check that Client A receives a silent acceptance 
sl@0
  1354
//!			  and can access the intended service.
sl@0
  1355
//!			• Launch test client B which tries to access test service. The service requested by this 
sl@0
  1356
//!			  Client is an internet connection to a “.RU” address. (The policy associated to this service 
sl@0
  1357
//!			  states that all “.RU” addresses should be blocked).
sl@0
  1358
//!			• System server asks for a user prompt to the UPS.
sl@0
  1359
//!			• UPS should reply with a silent denial. Check that Client B can not access intended service.
sl@0
  1360
//!
sl@0
  1361
//!
sl@0
  1362
//! @SYMTestExpectedResults 	• An “Always” decision is stored in decision DB for Client A. 
sl@0
  1363
//!				• Client A can access intended service.
sl@0
  1364
//!				• No decision is stored for Client B in decision DB.
sl@0
  1365
//!				• Client B can NOT access intended service.
sl@0
  1366
//! @SYMTestType CIT
sl@0
  1367
sl@0
  1368
START_TESTCASE SEC-UPS-INTEG-E008
sl@0
  1369
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini asterisk_all
sl@0
  1370
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini asterisk_all_b
sl@0
  1371
END_TESTCASE SEC-UPS-INTEG-E008
sl@0
  1372
sl@0
  1373
sl@0
  1374
//! @SYMTestCaseID SEC-UPS-INTEG-E009
sl@0
  1375
//! @SYMTestCaseDesc 	Matching destination by wild card, question mark symbols.
sl@0
  1376
//!                     (question_mark_card)
sl@0
  1377
//!		
sl@0
  1378
//! @SYMPREQ PREQ1262
sl@0
  1379
//! @SYMREQ REQ0
sl@0
  1380
//!
sl@0
  1381
//! @SYMTestPriority Critical
sl@0
  1382
//! @SYMTestStatus   Implemented
sl@0
  1383
//! @SYMTestActions 	Preconditions: 
sl@0
  1384
//!			• There is an appropriate policy, policy evaluator and dialog creator that 
sl@0
  1385
//!                       matches the UID of the service offered by the “system server”. The value 
sl@0
  1386
//!			  for “destination” in policy file contains question mark symbols.
sl@0
  1387
//!			Test Actions: 
sl@0
  1388
//!			• Launch test client A which tries to access test service. The service requested
sl@0
  1389
//!			  by this Client is a phone connection to a 0900 number. (The policy associated to 
sl@0
  1390
//!			  this service states that all 0?00 should be prompted for user decision)
sl@0
  1391
//!			• System server asks for a user prompt to the UPS.
sl@0
  1392
//!			• When UPS prompts user, select the “Always” option. Check that Client A can access
sl@0
  1393
//!		          intended service.
sl@0
  1394
//!			• Launch Client A in a new session, check that Client A receives a silent acceptance 
sl@0
  1395
//!			  and can access the intended service.
sl@0
  1396
//!			• Launch test client B which tries to access test service. The service requested by 
sl@0
  1397
//!			  this Client is an phone call to 118 500. (The policy associated to this service states 
sl@0
  1398
//!			  that all 118??? Phone numbers should be blocked).
sl@0
  1399
//!			• System server asks for a user prompt to the UPS.
sl@0
  1400
//!			• UPS should reply with a silent denial. Check that Client B can not access intended 
sl@0
  1401
//!			  service.
sl@0
  1402
//!			
sl@0
  1403
//!
sl@0
  1404
//! @SYMTestExpectedResults 	• An “Always” decision is stored in decision DB for Client A. 
sl@0
  1405
//!				• Client A can access intended service.
sl@0
  1406
//!                             • No decision is stored for Client B in decision DB.
sl@0
  1407
//!				• Client B can NOT access intended service.
sl@0
  1408
//! @SYMTestType CIT
sl@0
  1409
sl@0
  1410
START_TESTCASE SEC-UPS-INTEG-E009
sl@0
  1411
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini question_mark_card
sl@0
  1412
END_TESTCASE SEC-UPS-INTEG-E009
sl@0
  1413
sl@0
  1414
sl@0
  1415
//! @SYMTestCaseID SEC-INTEG-UPS-E024
sl@0
  1416
//! @SYMTestCaseDesc Security Policy Authorisation - EAlwaysCheck  
sl@0
  1417
//!                  (alwayscheck_authoristion)
sl@0
  1418
//!		
sl@0
  1419
//! @SYMPREQ PREQ1262
sl@0
  1420
//! @SYMREQ REQ7389
sl@0
  1421
//! @SYMTestPriority Critical
sl@0
  1422
//! @SYMTestStatus   Implemented
sl@0
  1423
//! @SYMTestActions  
sl@0
  1424
//!		Preconditions:
sl@0
  1425
//!		• Policy file related to test service to be used has property “authorisationPolicy” set
sl@0
  1426
//!		  to “EAlwaysCheck”.
sl@0
  1427
//!		Test Actions:
sl@0
  1428
//!		    •  Request use of the service that matches policy file mentioned in “preconditions”. 
sl@0
  1429
//!		       Test system server should invoke UPS.
sl@0
  1430
//!		    •  Use different values for “aServerCheckOk” parameter in “Authorise” methods (ETrue 
sl@0
  1431
//!		       and EFalse)
sl@0
  1432
//!	            •  Check that UPS invokes correct policy evaluator and dialog creator as set in policy 
sl@0
  1433
//!		       file. 
sl@0
  1434
//!
sl@0
  1435
//! @SYMTestExpectedResults  
sl@0
  1436
//!	            • All new requests made to UPS for test service will cause a user prompt from UPS.   
sl@0
  1437
//!
sl@0
  1438
//! @SYMTestType CIT
sl@0
  1439
sl@0
  1440
START_TESTCASE SEC-INTEG-UPS-E024
sl@0
  1441
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini alwayscheck_platsec_true
sl@0
  1442
sl@0
  1443
// Delete Existing Database
sl@0
  1444
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1445
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1446
sl@0
  1447
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini alwayscheck_platsec_false
sl@0
  1448
END_TESTCASE SEC-INTEG-UPS-E024
sl@0
  1449
sl@0
  1450
sl@0
  1451
//! @SYMTestCaseID SEC-INTEG-UPS-E025
sl@0
  1452
//! @SYMTestCaseDesc Security Policy Authorisation - ECheckPostManufacture  
sl@0
  1453
//!                  (checkpostmanufacture_authoristion)
sl@0
  1454
//!		
sl@0
  1455
//! @SYMPREQ PREQ1262
sl@0
  1456
//! @SYMREQ REQ7389
sl@0
  1457
//! @SYMTestPriority Critical
sl@0
  1458
//! @SYMTestStatus   Implemented
sl@0
  1459
//! @SYMTestActions  Preconditions:
sl@0
  1460
//!			• Policy file related to test service to be used has property “authorisationPolicy” 
sl@0
  1461
//!	                  set to “ECheckPostManufacture”.
sl@0
  1462
//!		     Test Actions:  
sl@0
  1463
//!			• Request use of the service that matches policy file mentioned in “preconditions”. 
sl@0
  1464
//!			  Test system server should invoke UPS.
sl@0
  1465
//!			• Use different values for “aServerCheckOk” parameter in “Authorise” methods (ETrue 
sl@0
  1466
//!			  and EFalse).
sl@0
  1467
//!			• Use different types of applications to request the same service including: applications
sl@0
  1468
//!			  with protected SID on Z drive, unprotected SID on Z drive, protected SID on C drive and 
sl@0
  1469
//!			  unprotected SID on C drive.  
sl@0
  1470
//!
sl@0
  1471
//! @SYMTestExpectedResults  Only requests made from applications with protected SID running from Z drive having 
sl@0
  1472
//!			     passed system server checks should receive immediate access approval, any other type 
sl@0
  1473
//!			     should cause a security user prompt. 
sl@0
  1474
//!
sl@0
  1475
//! @SYMTestType CIT
sl@0
  1476
sl@0
  1477
START_TESTCASE SEC-INTEG-UPS-E025
sl@0
  1478
sl@0
  1479
// Delete Existing Database
sl@0
  1480
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1481
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1482
sl@0
  1483
// CLIENT WITH PROTECTED SID ON Z
sl@0
  1484
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkpostmanufacture_platsec_true_zdrive_protect
sl@0
  1485
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkpostmanufacture_platsec_false_zdrive_protect
sl@0
  1486
sl@0
  1487
sl@0
  1488
// CLIENT WITH UNPROTECTED SID ON Z
sl@0
  1489
RUN_TEST_STEP 100 TUPSInteg_unprotected UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkpostmanufacture_platsec_true_zdrive_unprotect
sl@0
  1490
RUN_TEST_STEP 100 TUPSInteg_unprotected UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkpostmanufacture_platsec_false_zdrive_unprotect
sl@0
  1491
sl@0
  1492
sl@0
  1493
// CLIENT WITH PROTECTED SID ON C
sl@0
  1494
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkpostmanufacture_platsec_true_cdrive_protect
sl@0
  1495
sl@0
  1496
// Delete Existing Database
sl@0
  1497
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1498
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1499
sl@0
  1500
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkpostmanufacture_platsec_false_cdrive_protect
sl@0
  1501
sl@0
  1502
sl@0
  1503
// CLIENT WITH UNPROTECTED SID ON C
sl@0
  1504
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkpostmanufacture_platsec_true_cdrive_unprotect
sl@0
  1505
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkpostmanufacture_platsec_false_cdrive_unprotect
sl@0
  1506
sl@0
  1507
END_TESTCASE SEC-INTEG-UPS-E025
sl@0
  1508
sl@0
  1509
sl@0
  1510
//! @SYMTestCaseID SEC-INTEG-UPS-E026
sl@0
  1511
//! @SYMTestCaseDesc Security Policy Authorisation - ECheckUnprotectedSids
sl@0
  1512
//!                  (checkunprotectedsids_authoristion)
sl@0
  1513
//!		
sl@0
  1514
//! @SYMPREQ PREQ1262
sl@0
  1515
//! @SYMREQ REQ7389
sl@0
  1516
//! @SYMTestPriority Critical
sl@0
  1517
//! @SYMTestStatus   Implemented
sl@0
  1518
//! @SYMTestActions  
sl@0
  1519
//!      Preconditions:
sl@0
  1520
//!	   •  Policy file related to test service to be used has property “authorisationPolicy” 
sl@0
  1521
//!	      set to “ECheckUnprotectedSids”.
sl@0
  1522
//!	 Test Actions: 
sl@0
  1523
//!	   •  Request use of the service that matches policy file mentioned in “preconditions”. 
sl@0
  1524
//!	      Test system server should invoke UPS.
sl@0
  1525
//!	   •  Use different values for “aServerCheckOk” parameter in “Authorise” methods (ETrue 
sl@0
  1526
//!	      and EFalse).
sl@0
  1527
//! 	   •  Use different types of applications to request the same service including: 
sl@0
  1528
//!	      applications with protected SID on Z drive, unprotected SID on Z drive, protected 
sl@0
  1529
//!	      SID on C drive and unprotected SID on C drive. 
sl@0
  1530
//!
sl@0
  1531
//! @SYMTestExpectedResults  
sl@0
  1532
//!        • Any request for tests services made from clients with protected SID should receive 
sl@0
  1533
//!	     immediate silent approval from UPS.
sl@0
  1534
//!	   • Request for tests services made from clients with unprotected SID should cause user 
sl@0
  1535
//!	     security dialog from UPS.
sl@0
  1536
//!
sl@0
  1537
//! @SYMTestType CIT
sl@0
  1538
sl@0
  1539
START_TESTCASE SEC-INTEG-UPS-E026
sl@0
  1540
sl@0
  1541
// Delete Existing Database
sl@0
  1542
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1543
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1544
sl@0
  1545
// CLIENT WITH PROTECTED SID ON Z
sl@0
  1546
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkunprotectedsids_platsec_true_zdrive_protect
sl@0
  1547
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkunprotectedsids_platsec_false_zdrive_protect
sl@0
  1548
sl@0
  1549
// CLIENT WITH UNPROTECTED SID ON Z
sl@0
  1550
RUN_TEST_STEP 100 TUPSInteg_unprotected UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkunprotectedsids_platsec_true_zdrive_unprotect
sl@0
  1551
RUN_TEST_STEP 100 TUPSInteg_unprotected UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkunprotectedsids_platsec_false_zdrive_unprotect
sl@0
  1552
sl@0
  1553
// CLIENT WITH PROTECTED SID ON C
sl@0
  1554
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkunprotectedsids_platsec_true_cdrive_protect
sl@0
  1555
RUN_TEST_STEP 100 TUPSInteg_4 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkunprotectedsids_platsec_false_cdrive_protect
sl@0
  1556
sl@0
  1557
// CLIENT WITH UNPROTECTED SID ON C
sl@0
  1558
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkunprotectedsids_platsec_true_cdrive_unprotect
sl@0
  1559
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkunprotectedsids_platsec_false_cdrive_unprotect
sl@0
  1560
sl@0
  1561
END_TESTCASE SEC-INTEG-UPS-E026
sl@0
  1562
sl@0
  1563
sl@0
  1564
//! @SYMTestCaseID SEC-INTEG-UPS-E027
sl@0
  1565
//! @SYMTestCaseDesc Security Policy Authorisation - ECheckIfFailed 
sl@0
  1566
//!                  (checkiffailed_authoristion)
sl@0
  1567
//!		
sl@0
  1568
//! @SYMPREQ PREQ1262
sl@0
  1569
//! @SYMREQ REQ7389
sl@0
  1570
//! @SYMTestPriority Critical
sl@0
  1571
//! @SYMTestStatus   Implemented
sl@0
  1572
//! @SYMTestActions  
sl@0
  1573
//!		Preconditions:
sl@0
  1574
//!		• Policy file related to test service to be used has property 
sl@0
  1575
//!		“authorisationPolicy” set to “ECheckIfFailed”.
sl@0
  1576
//!		Test Actions:     
sl@0
  1577
//!		• Request use of the service that matches policy file mentioned in 
sl@0
  1578
//!		  “preconditions”. Test system server should invoke UPS.
sl@0
  1579
//!		• Use different values for “aServerCheckOk” parameter in “Authorise” 
sl@0
  1580
//!		  request (ETrue and EFalse).
sl@0
  1581
//! @SYMTestExpectedResults  
sl@0
  1582
//!		• Only requests made with “aServerCheckOk” parameter set to Efalse should cause
sl@0
  1583
//!		  UPS to display user security dialog, otherwise UPS should return silent approval. 
sl@0
  1584
//!
sl@0
  1585
//! @SYMTestType CIT
sl@0
  1586
sl@0
  1587
START_TESTCASE SEC-INTEG-UPS-E027
sl@0
  1588
sl@0
  1589
// Delete Existing Database
sl@0
  1590
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1591
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1592
sl@0
  1593
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkiffailed_platsec_true
sl@0
  1594
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini checkiffailed_platsec_false
sl@0
  1595
END_TESTCASE SEC-INTEG-UPS-E027
sl@0
  1596
sl@0
  1597
sl@0
  1598
//! @SYMTestCaseID SEC-INTEG-UPS-E028
sl@0
  1599
//! @SYMTestCaseDesc Security Policy Authorisation - ENeverCheck 
sl@0
  1600
//!                  (nevercheck_authoristion)
sl@0
  1601
//!		
sl@0
  1602
//! @SYMPREQ PREQ1262
sl@0
  1603
//! @SYMREQ REQ7389
sl@0
  1604
//! @SYMTestPriority Critical
sl@0
  1605
//! @SYMTestStatus   Implemented
sl@0
  1606
//! @SYMTestActions  
sl@0
  1607
//!    Preconditions:
sl@0
  1608
//!    •  Policy file related to test service to be used has property “authorisationPolicy” set 
sl@0
  1609
//!	  to “ENeverCheck”.
sl@0
  1610
//!   Test Actions: 
sl@0
  1611
//!    •  Request use of the service that matches policy file mentioned in “preconditions”. Test 
sl@0
  1612
//!	  system server should invoke UPS.
sl@0
  1613
//!    •  Use different values for “aServerCheckOk” parameter in “Authorise” request (ETrue and 
sl@0
  1614
//!	  EFalse).
sl@0
  1615
//!
sl@0
  1616
//! @SYMTestExpectedResults  
sl@0
  1617
//!    •  UPS shouldn’t display any security dialog, UPS should return silent acceptance server 
sl@0
  1618
//!	  checks passed, UPS should return silent denial server checks failed.  
sl@0
  1619
//!
sl@0
  1620
//! @SYMTestType CIT
sl@0
  1621
sl@0
  1622
START_TESTCASE SEC-INTEG-UPS-E028
sl@0
  1623
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini nevercheck_platsec_true
sl@0
  1624
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini nevercheck_platsec_false
sl@0
  1625
END_TESTCASE SEC-INTEG-UPS-E028
sl@0
  1626
sl@0
  1627
sl@0
  1628
//! @SYMTestCaseID SEC-INTEG-UPS-E029
sl@0
  1629
//! @SYMTestCaseDesc System server with no policy files        
sl@0
  1630
//!                  (no_policy_files_server)
sl@0
  1631
//!		
sl@0
  1632
//! @SYMPREQ PREQ1262
sl@0
  1633
//! @SYMREQ REQ7427
sl@0
  1634
//!
sl@0
  1635
//! @SYMTestPriority Critical
sl@0
  1636
//! @SYMTestStatus   Implemented
sl@0
  1637
//! @SYMTestActions 	Preconditions:
sl@0
  1638
//!			• There is NO policy file at all related to the system server been used for test purpose
sl@0
  1639
//!
sl@0
  1640
//!			Test Actions:
sl@0
  1641
//!			• Launch “test clients” which tries to use of system servers. System server should request UPS for
sl@0
  1642
//!			  user security dialog. Set plat sec check to ETrue in request to UPS.
sl@0
  1643
//!			• Launch “test clients” which tries to use of system servers. System server should request UPS for
sl@0
  1644
//!			  user security dialog. Set plat sec check to EFalse in request to UPS. 
sl@0
  1645
//!
sl@0
  1646
//! @SYMTestExpectedResults 	• System server shuold receive a EDecisionYes for first request 
sl@0
  1647
//!				• System server shuold receive a EDecisionNo for second request 
sl@0
  1648
//!
sl@0
  1649
//! @SYMTestType CIT
sl@0
  1650
sl@0
  1651
START_TESTCASE SEC-INTEG-UPS-E029
sl@0
  1652
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini no_policy_files_server
sl@0
  1653
END_TESTCASE SEC-INTEG-UPS-E029
sl@0
  1654
sl@0
  1655
sl@0
  1656
//! @SYMTestCaseID SEC-INTEG-UPS-E030
sl@0
  1657
//! @SYMTestCaseDesc Option session returned for always decision stored.
sl@0
  1658
//!                  (session_overwrites_always)
sl@0
  1659
//!       
sl@0
  1660
//!
sl@0
  1661
//! @SYMTestPurpose  To check that if a policy includes the “session” option for an “always” decision already stored,
sl@0
  1662
//!                  then UPS will reply with “ESession” every time this decision is queried		
sl@0
  1663
//!
sl@0
  1664
//! @SYMPREQ 
sl@0
  1665
//!
sl@0
  1666
//! @SYMTestPriority Critical
sl@0
  1667
//! @SYMTestStatus   Implemented
sl@0
  1668
//! @SYMTestActions 	Preconditions:
sl@0
  1669
//!			• The UPS policy stated for the test service to be used allows at least the options “ESession” 
sl@0
  1670
//!			  and “EAlways”
sl@0
  1671
//!
sl@0
  1672
//!			Test Actions:
sl@0
  1673
//!			• Launch “test client” which tries to connect to a system server and use service.
sl@0
  1674
//!			• System server asks for a user prompt to the UPS.
sl@0
  1675
//!			• When UPS prompts user, select the “Always” option.
sl@0
  1676
//!			• Check that UPS returned “ESession” to system server.
sl@0
  1677
//!			• In a new session request the same service and destination, check that UPS returns an “ESession” 
sl@0
  1678
//!			  silent reply to system server. Check that the correct policy evaluator was invoked but no dialog 
sl@0
  1679
//!			  creator was invoked.
sl@0
  1680
//!
sl@0
  1681
//!
sl@0
  1682
//! @SYMTestExpectedResults 	• UPS returns “ESession” even if an “Always” decision was selected by the use.
sl@0
  1683
//!				• A new “Always” decision was added to decision DB.
sl@0
  1684
//!
sl@0
  1685
//! @SYMTestType CIT
sl@0
  1686
sl@0
  1687
START_TESTCASE SEC-INTEG-UPS-E030
sl@0
  1688
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini session_overwrites_always
sl@0
  1689
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini session_overwrites_always_b
sl@0
  1690
END_TESTCASE SEC-INTEG-UPS-E030
sl@0
  1691
sl@0
  1692
sl@0
  1693
//! @SYMTestCaseID 	SEC-UPS-E031
sl@0
  1694
//! @SYMTestCaseDesc 	To check that UPS can handle client entities of a max length of 32 bytes
sl@0
  1695
//!                     (client_entity)
sl@0
  1696
//!		
sl@0
  1697
//! @SYMPREQ 		PREQ1262
sl@0
  1698
//! @SYMREQ  		REQ7374
sl@0
  1699
//!
sl@0
  1700
//! @SYMTestPriority 	Critical
sl@0
  1701
//! @SYMTestStatus   	Implemented
sl@0
  1702
//! @SYMTestActions 	Preconditions:
sl@0
  1703
//!			• Policy evaluator used for test can populate “CClientEntity” object at will.
sl@0
  1704
//!			• Appropriate policy file, policy evaluator and dialog creator are present in phone for test service 
sl@0
  1705
//!			to be requested
sl@0
  1706
//!			
sl@0
  1707
//!			Test Actions:                
sl@0
  1708
//!			• Make request to ups for security user prompt for some arbitrary destinations. For these destination
sl@0
  1709
//!			instruct policy evaluator to create different CClientEntity lengths including:
sl@0
  1710
//!			- 0 bytes.
sl@0
  1711
//!			- 1 bytes.
sl@0
  1712
//!			- 32 bytes.
sl@0
  1713
//!			- 33 bytes.
sl@0
  1714
//!
sl@0
  1715
//!			• For the previous requests select “Always” or “Never” when security dialog is displayed.
sl@0
  1716
//!
sl@0
  1717
//! @SYMTestExpectedResults	• For client entities of length 0, 1 or 32 bytes a corresponding decision is expected to be 
sl@0
  1718
//!				created in decision database. The client entity value is reported correctly in DB.
sl@0
  1719
//!				
sl@0
  1720
//!				• For CClientEntity of 33 bytes length, the constructor is expected to return 
sl@0
  1721
//!				KErrUpsBadClientEntityLength and no decision is created in database.
sl@0
  1722
//!
sl@0
  1723
//! @SYMTestType 	CIT
sl@0
  1724
sl@0
  1725
START_TESTCASE SEC-UPS-E031
sl@0
  1726
sl@0
  1727
// Delete Existing Database
sl@0
  1728
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1729
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1730
sl@0
  1731
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini client_Entity
sl@0
  1732
sl@0
  1733
END_TESTCASE SEC-UPS-E031
sl@0
  1734
sl@0
  1735
sl@0
  1736
//! @SYMTestCaseID 	SEC-UPS-E032
sl@0
  1737
//! @SYMTestCaseDesc 	Force prompt – decision removed
sl@0
  1738
//!                     (force_prompt_decision_removed)
sl@0
  1739
//!		
sl@0
  1740
//! @SYMPREQ 		PREQ1262
sl@0
  1741
//! @SYMREQ  		REQ0
sl@0
  1742
//!
sl@0
  1743
//! @SYMTestPriority 	Critical
sl@0
  1744
//! @SYMTestStatus   	Implemented
sl@0
  1745
//! @SYMTestActions 	Preconditions:
sl@0
  1746
//!			• There is an appropriate policy file for the test service to be use. 
sl@0
  1747
//!			• Policy evaluator has the ability to force prompt at run time. Policy evaluator increases by 
sl@0
  1748
//!			one the value of “evaluator info” every time that a security dialog is prompted for a particular 
sl@0
  1749
//!			decision in the DB.
sl@0
  1750
//!
sl@0
  1751
//!			Test Actions:                
sl@0
  1752
//!			• Part 1: Test client A has two pre-stored decision as “Always”. 
sl@0
  1753
//!			• Instruct client A to request access to test service that matches its pre-stored decisions,
sl@0
  1754
//!			instruct policy evaluator to force prompt new security dialog for these decisions.
sl@0
  1755
//!			• When new security dialogs appear select “yes” for one of the pre-stored decisions and select 
sl@0
  1756
//!			“no” for the other decision”.
sl@0
  1757
//!			• Check that both pre-stored decision for client A were removed from DB. 
sl@0
  1758
//!
sl@0
  1759
//!			• Part 2: Test client B has two pre-stored decision as “Never”. 
sl@0
  1760
//!			• Instruct client B to request access to test service that matches its pre-stored decisions, 
sl@0
  1761
//!			instruct policy evaluator to force prompt new security dialog for these decisions.
sl@0
  1762
//!			• When new security dialogs appear select “yes” for one of the pre-stored decisions and select 
sl@0
  1763
//!			“no” for the other decision”.
sl@0
  1764
//!			• Check that both pre-stored decision for client B were removed from DB. 
sl@0
  1765
//!
sl@0
  1766
//! @SYMTestExpectedResults	• Decisions in database where updated correctly in DB.
sl@0
  1767
//!				• “client info” field was increased by two at the end of test. 
sl@0
  1768
//!
sl@0
  1769
//! @SYMTestType 	CIT
sl@0
  1770
sl@0
  1771
sl@0
  1772
START_TESTCASE SEC-UPS-E032
sl@0
  1773
sl@0
  1774
//* PART 1
sl@0
  1775
sl@0
  1776
// Delete Existing Database
sl@0
  1777
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1778
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1779
sl@0
  1780
// Client A setup of pre-stored decisions
sl@0
  1781
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientA_setup
sl@0
  1782
sl@0
  1783
// Initial check to ensure that DB decision acceptance is issued by UPS  
sl@0
  1784
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientA_initialCheck
sl@0
  1785
sl@0
  1786
// Check decision database state before force prompting
sl@0
  1787
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientA_intitalDbCheck
sl@0
  1788
sl@0
  1789
// Force the dialog prompt on the Decisions stored about Client A in the Database
sl@0
  1790
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientA_forcePrompt
sl@0
  1791
sl@0
  1792
// Check that decisions have been removed and that new options can be chosen
sl@0
  1793
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientA_noDecisionCheck
sl@0
  1794
sl@0
  1795
// Check for No Decisions using Database Management Step
sl@0
  1796
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientA_dbManagementCheck
sl@0
  1797
sl@0
  1798
sl@0
  1799
// * PART 2
sl@0
  1800
sl@0
  1801
// Client B setup of pre-stored decisions
sl@0
  1802
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientB_setup
sl@0
  1803
sl@0
  1804
// Initial check to ensure that DB decision denial is issued by UPS  
sl@0
  1805
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientB_initialCheck
sl@0
  1806
sl@0
  1807
// Check decision database state before force prompting
sl@0
  1808
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientB_intitalDbCheck
sl@0
  1809
sl@0
  1810
// Force the dialog prompt on the Decisions stored about Client B in the Database
sl@0
  1811
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientB_forcePrompt
sl@0
  1812
sl@0
  1813
// Check that decisions have been removed and that new options can be chosen
sl@0
  1814
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientB_noDecisionCheck
sl@0
  1815
sl@0
  1816
// Check for No Decisions using Database Management Step
sl@0
  1817
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_decision_removed_clientB_dbManagementCheck
sl@0
  1818
sl@0
  1819
END_TESTCASE SEC-UPS-E032
sl@0
  1820
sl@0
  1821
sl@0
  1822
//**************************************************************************************************************
sl@0
  1823
sl@0
  1824
sl@0
  1825
//! @SYMTestCaseID  	SEC-UPS-E033
sl@0
  1826
//! @SYMTestCaseDesc 	Force prompt – multiple fingerprints- record overwritten
sl@0
  1827
//!                     (force_prompt_multifingerprint_overwriterecord)
sl@0
  1828
//!		
sl@0
  1829
//! @SYMPREQ 		PREQ1262
sl@0
  1830
//! @SYMREQ  		REQ7409 REQ7403
sl@0
  1831
//!
sl@0
  1832
//! @SYMTestPriority 	Critical
sl@0
  1833
//! @SYMTestStatus   	Implemented
sl@0
  1834
//! @SYMTestActions 	Preconditions:
sl@0
  1835
//!			• There is an appropriate policy file for the test service to be use. 
sl@0
  1836
//!			• Policy evaluator has the ability to force prompt at run time. Policy evaluator increases by one
sl@0
  1837
//!			the value of “evaluator info” every time that a security dialog is prompted for a particular 
sl@0
  1838
//!			decision in the DB.
sl@0
  1839
//!			• Policy evaluator generates 3 fingerprints FP1, FP2 & FP3 which are checked by UPS in decision DB
sl@0
  1840
//!			in that order (FP1 would be the first match if all 3 fingerprints exist in decision DB.
sl@0
  1841
//!
sl@0
  1842
//!			Test Actions:
sl@0
  1843
//!			• Part 1: Test client A has 3 pre-stored decision as “Always” matching FP1, FP2 & FP3. 
sl@0
  1844
//!			• Instruct client A to request access to test service that matches FP1. Test system server should 
sl@0
  1845
//!			invoke UPS for decision check. When policy evaluator is invoked instruct this one to generate FP1,
sl@0
  1846
//!			FP2 & FP3.
sl@0
  1847
//!			• At dialog display stage select “never” for fingerprint FP3.
sl@0
  1848
//!			• Check that finger print FP1 was removed from DB, FP2 remain unchanged, FP3 was replaced with a 
sl@0
  1849
//!			Never Decision
sl@0
  1850
//!			• “Evaluator info is increased by 1.
sl@0
  1851
//!
sl@0
  1852
//!			• Part 2: Reset test so it remains in original conditions (3 “always” decisions for FP1, FP2 & FP3
sl@0
  1853
//!			in decision DB).
sl@0
  1854
//!			• Instruct client A to request access to test service that matches FP1. Test system server should 
sl@0
  1855
//!			invoke UPS for decision check. When policy evaluator is invoked instruct this one to generate FP1, 
sl@0
  1856
//!			FP2 &FP3.
sl@0
  1857
//!			• At dialog display stage select “always” for fingerprint FP3.
sl@0
  1858
//!			• Check that finger print FP1 was removed from DB, FP2 & FP3 remain unchanged. 
sl@0
  1859
//!			• “Evaluator info is increased by 1.
sl@0
  1860
//!
sl@0
  1861
//! @SYMTestExpectedResults	• First matching fingerprint FP1 is deleted from DB as this one is not selected by user in 
sl@0
  1862
//!				dialog creator stage.
sl@0
  1863
//!				• FP3 is replaced with a “never” decision in case 1 but remains unchanged for case 2 
sl@0
  1864
//!				(“always” decision)
sl@0
  1865
//!				• Evaluator info is increased by one in both cases.	
sl@0
  1866
//!
sl@0
  1867
//! @SYMTestType 	CIT
sl@0
  1868
sl@0
  1869
sl@0
  1870
START_TESTCASE SEC-UPS-E033
sl@0
  1871
sl@0
  1872
// Delete Existing Database
sl@0
  1873
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1874
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1875
sl@0
  1876
//* PART 1
sl@0
  1877
sl@0
  1878
// Client setup of pre-stored 'ALWAYS' decisions using the 3 different fingerprints
sl@0
  1879
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_overwriterecord_setup
sl@0
  1880
sl@0
  1881
// Initial check to ensure that DB decisions stored for the 3 fingerprints return the expected result 
sl@0
  1882
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_overwriterecord_initialCheck
sl@0
  1883
sl@0
  1884
// Check decision database state before force prompting
sl@0
  1885
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_overwriterecord_initialDbCheck
sl@0
  1886
sl@0
  1887
// Force the dialog prompt on decision FingerPrint 1, and 'NEVER' decision selected for FingerPrint 3 chosen at Dialog
sl@0
  1888
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_overwriterecord_forcePrompt_part1
sl@0
  1889
sl@0
  1890
// Check that decisions within DB have been altered/removed/added as necessary using Database Management Step
sl@0
  1891
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_overwriterecord_dbManagementCheck_part1
sl@0
  1892
sl@0
  1893
// Delete Existing Database
sl@0
  1894
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1895
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1896
sl@0
  1897
sl@0
  1898
//* PART 2
sl@0
  1899
sl@0
  1900
// Client setup of pre-stored 'ALWAYS' decisions using the 3 different fingerprints
sl@0
  1901
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_overwriterecord_setup
sl@0
  1902
sl@0
  1903
// Initial check to ensure that DB decisions stored for the 3 fingerprints return the expected result  
sl@0
  1904
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_overwriterecord_initialCheck
sl@0
  1905
sl@0
  1906
// Check decision database state before force prompting
sl@0
  1907
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_overwriterecord_initialDbCheck
sl@0
  1908
sl@0
  1909
// Force the dialog prompt on decision FingerPrint 1, and 'ALWAYS' decision selected for FingerPrint 3 chosen at Dialog
sl@0
  1910
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_overwriterecord_forcePrompt_part2
sl@0
  1911
sl@0
  1912
// Check that decisions within DB have been altered/removed/added as necessary using the Database Management Step
sl@0
  1913
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_overwriterecord_dbManagementCheck_part2
sl@0
  1914
sl@0
  1915
END_TESTCASE SEC-UPS-E033
sl@0
  1916
sl@0
  1917
sl@0
  1918
//! @SYMTestCaseID 	SEC-UPS-E034
sl@0
  1919
//! @SYMTestCaseDesc 	Force prompt – multiple fingerprints - new record
sl@0
  1920
//!                     (force_prompt_multifingerprint_newrecord)
sl@0
  1921
//!		
sl@0
  1922
//! @SYMPREQ 		PREQ1262
sl@0
  1923
//! @SYMREQ  		REQ7409 REQ7403
sl@0
  1924
//!
sl@0
  1925
//! @SYMTestPriority 	Critical
sl@0
  1926
//! @SYMTestStatus   	Implemented
sl@0
  1927
//! @SYMTestActions 	Preconditions:
sl@0
  1928
//!			• There is an appropriate policy file for the test service to be use. 
sl@0
  1929
//!			• Policy evaluator has the ability to force prompt at run time. Policy evaluator increases by one 
sl@0
  1930
//!			the value of “evaluator info” every time that a security dialog is prompted for a particular
sl@0
  1931
//!			decision in the DB.
sl@0
  1932
//!			• Policy evaluator generates 3 fingerprints FP1, FP2 & FP3 which are checked by UPS in decision DB
sl@0
  1933
//!			in that order (FP1 would be the first match if all 3 fingerprints exist in decision DB.
sl@0
  1934
//!
sl@0
  1935
//!			Test Actions:                
sl@0
  1936
//!			• Part 1: Test client A has 2 pre-stored decision as “Always” matching FP1 & FP2. 
sl@0
  1937
//!			• Instruct client A to request access to test service that matches FP1. Test system server should 
sl@0
  1938
//!			invoke UPS for decision check. When policy evaluator is invoked instruct this one to generate FP1,
sl@0
  1939
//!			FP2 &FP3.
sl@0
  1940
//!			• At dialog display stage select “never” for fingerprint FP3.
sl@0
  1941
//!			• Check that finger print FP1 was removed from DB, FP2 remain unchanged,  new FP3 is created in
sl@0
  1942
//!			decision DB (with never decision). 
sl@0
  1943
//!			• “Evaluator info is increased by 1.
sl@0
  1944
//!			
sl@0
  1945
//!			• Part 2: Reset test so it remains in original conditions (2 “always” decisions for FP1& FP2).
sl@0
  1946
//!			• Instruct client A to request access to test service that matches FP1. Test system server should 
sl@0
  1947
//!			invoke UPS for decision check. When policy evaluator is invoked instruct this one to generate FP1,
sl@0
  1948
//!			FP2 &FP3.
sl@0
  1949
//!			• At dialog display stage select “always” for fingerprint FP3.
sl@0
  1950
//!			• Check that finger print FP1 was removed from DB, FP2 remain unchanged,  new FP3 is created in 
sl@0
  1951
//!			decision DB (with always decision). 
sl@0
  1952
//!			• “Evaluator info is increased by 1.
sl@0
  1953
//!
sl@0
  1954
//! @SYMTestExpectedResults	• In both cases decision related to FP1 are removed from DB.
sl@0
  1955
//!				• FP3 is created with a “never” decision in case 1 and with an “always” in cases 2.
sl@0
  1956
//!				• Evaluator info is increased by one in both cases.
sl@0
  1957
//!	
sl@0
  1958
//!
sl@0
  1959
//! @SYMTestType 	CIT
sl@0
  1960
sl@0
  1961
sl@0
  1962
START_TESTCASE SEC-UPS-E034
sl@0
  1963
sl@0
  1964
// Delete Existing Database
sl@0
  1965
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1966
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1967
sl@0
  1968
//* PART 1
sl@0
  1969
sl@0
  1970
// Client setup of pre-stored 'ALWAYS' decisions using 2 of the 3 fingerprints
sl@0
  1971
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_newrecord_setup
sl@0
  1972
sl@0
  1973
// Initial check to ensure that DB decisions stored for the 2 fingerprints return the expected result
sl@0
  1974
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_newrecord_initialCheck
sl@0
  1975
sl@0
  1976
// Check decision database state before force prompting
sl@0
  1977
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_newrecord_intitalDbCheck
sl@0
  1978
sl@0
  1979
// Force the dialog prompt on decision FingerPrint 1, and 'NEVER' decision selected for FingerPrint 3 chosen at Dialog
sl@0
  1980
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_newrecord_forcePrompt_part1
sl@0
  1981
sl@0
  1982
// Check that decisions within DB have been altered/removed/added as necessary using the Database Management Step
sl@0
  1983
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_newrecord_dbManagementCheck_part1
sl@0
  1984
sl@0
  1985
// Delete Existing Database
sl@0
  1986
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  1987
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  1988
sl@0
  1989
sl@0
  1990
//* PART 2
sl@0
  1991
sl@0
  1992
// Client setup of pre-stored 'ALWAYS' decisions using 2 of the 3 fingerprints
sl@0
  1993
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_newrecord_setup
sl@0
  1994
sl@0
  1995
// Initial check to ensure that DB decisions stored for the 2 fingerprints return the expected result
sl@0
  1996
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_newrecord_initialCheck
sl@0
  1997
sl@0
  1998
// Check decision database state before force prompting
sl@0
  1999
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_newrecord_intitalDbCheck
sl@0
  2000
sl@0
  2001
// Force the dialog prompt on decision FingerPrint 1, and 'ALWAYS' decision selected for FingerPrint 3 chosen at Dialog
sl@0
  2002
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_newrecord_forcePrompt_part2
sl@0
  2003
sl@0
  2004
// Check that decisions within DB have been altered/removed/added as necessary using the Database Management Step
sl@0
  2005
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini force_prompt_multifingerprint_newrecord_dbManagementCheck_part2
sl@0
  2006
sl@0
  2007
sl@0
  2008
END_TESTCASE SEC-UPS-E034
sl@0
  2009
sl@0
  2010
sl@0
  2011
//! @SYMTestCaseID 	SEC-UPS-E035
sl@0
  2012
//! @SYMTestCaseDesc 	Invocation of Default Symbian policy evaluator
sl@0
  2013
//!                     (invoke_default_policy_evaluator)
sl@0
  2014
//!		
sl@0
  2015
//! @SYMPREQ 		PREQ1262
sl@0
  2016
//! @SYMREQ  		
sl@0
  2017
//!
sl@0
  2018
//! @SYMTestPriority 	Critical
sl@0
  2019
//! @SYMTestStatus   	Implemented
sl@0
  2020
//! @SYMTestActions 	
sl@0
  2021
//!
sl@0
  2022
//! @SYMTestExpectedResults	Preconditions:
sl@0
  2023
//!				• There is an appropriate policy file for the test service to be use, but in the header of 
sl@0
  2024
//!				the policy file there is NO mention of policy evaluator. 
sl@0
  2025
//!				• Note: It is expected that the Symbian policy evaluator will generate a NULL value 
sl@0
  2026
//!				fingerprint. 
sl@0
  2027
//!				• Dialog creator specified by policy evaluator is present. 
sl@0
  2028
//!
sl@0
  2029
//!				Test Actions:                
sl@0
  2030
//!				• Case 1: Request service to test system server, this one is expected to invoke UPS.
sl@0
  2031
//!				• Check that Symbian default policy evaluator was invoked. 
sl@0
  2032
//!				• When security dialog is invoked select “Always”.
sl@0
  2033
//!				• Check that decision is stored correctly.
sl@0
  2034
//!
sl@0
  2035
//!				• Case 2: Request service to test system server, this one is expected to invoke UPS.
sl@0
  2036
//!				• Check that Symbian default policy evaluator was invoked. 
sl@0
  2037
//!				• When security dialog is invoked select “never”.
sl@0
  2038
//!				• Check that decision is stored correctly.
sl@0
  2039
//!
sl@0
  2040
//!				• Extra Checking: Use dumpupsdb.exe tool to export and re-import UPS database, check 
sl@0
  2041
//!				consistency of imported database.
sl@0
  2042
//!
sl@0
  2043
//! @SYMTestExpectedResults	• Two new decisions where created: 1 “never” and 1 ”always” which are expected to have NULL 
sl@0
  2044
//!				value fingerprints.
sl@0
  2045
//!				• Decision database with null value fingerprint can be exported and re-imported correctly.
sl@0
  2046
//!
sl@0
  2047
//! @SYMTestType 	CIT
sl@0
  2048
sl@0
  2049
START_TESTCASE SEC-UPS-E035
sl@0
  2050
sl@0
  2051
// Delete Existing Database
sl@0
  2052
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2053
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2054
sl@0
  2055
// Case 1:
sl@0
  2056
sl@0
  2057
// Client call to UPS invoking the defualt policy evaluator and selecting 'ALWAYS' from the dialog 
sl@0
  2058
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini invoke_default_policy_evaluator_Always
sl@0
  2059
sl@0
  2060
// Initial check to ensure that DB contains an ALWAYS decision for the client with a NULL fingerprint
sl@0
  2061
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini invoke_default_policy_evaluator_Alaways_initalCheck
sl@0
  2062
sl@0
  2063
// Database Management Checking to ensure that each value in the decision is what is expected
sl@0
  2064
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini invoke_default_policy_evaluator_Alaways_dbManagementCheck
sl@0
  2065
sl@0
  2066
sl@0
  2067
// Case 2:
sl@0
  2068
sl@0
  2069
// Client call to UPS invoking the defualt policy evaluator and selecting 'NEVER' from the dialog 
sl@0
  2070
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini invoke_default_policy_evaluator_Never
sl@0
  2071
sl@0
  2072
// Initial check to ensure that DB contains an additional NEVER decision for the client with a NULL fingerprint
sl@0
  2073
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini invoke_default_policy_evaluator_Never_initalCheck
sl@0
  2074
sl@0
  2075
// Database Management Checking to ensure that each value in the decision is what is expected
sl@0
  2076
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini invoke_default_policy_evaluator_Never_dbManagementCheck
sl@0
  2077
sl@0
  2078
sl@0
  2079
// Database Import/Export Checking:
sl@0
  2080
sl@0
  2081
// Shutdown UPS Server
sl@0
  2082
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2083
sl@0
  2084
// Dump contents of the database
sl@0
  2085
RUN_PROGRAM dumpupsdb.exe -e -db \private\10283558\database\ups.db -f c:\exportdb.db -s
sl@0
  2086
sl@0
  2087
// Delete Existing UPS Database
sl@0
  2088
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2089
sl@0
  2090
// Reimport Database Contents
sl@0
  2091
RUN_PROGRAM dumpupsdb.exe -i -db \private\10283558\database\ups.db -f c:\exportdb.db -s
sl@0
  2092
sl@0
  2093
// Delete Temporary Export File
sl@0
  2094
RUN_UTILS DeleteFile c:\exportdb.db
sl@0
  2095
sl@0
  2096
// Re Check the NULL fingerprint Decisions Imported into the Database
sl@0
  2097
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini invoke_default_policy_evaluator_Alaways_initalCheck
sl@0
  2098
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini invoke_default_policy_evaluator_Never_initalCheck
sl@0
  2099
sl@0
  2100
// Final Datbase Management Check to ensure that the values of the Decision are still as expected
sl@0
  2101
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini invoke_default_policy_evaluator_Never_dbManagementCheck
sl@0
  2102
sl@0
  2103
END_TESTCASE SEC-UPS-E035
sl@0
  2104
sl@0
  2105
//! @SYMTestCaseID SEC-INTEG-UPS-E036
sl@0
  2106
//! @SYMTestCaseDesc System Server Security
sl@0
  2107
//!                  (System_Server_Security)
sl@0
  2108
//!		
sl@0
  2109
//! @SYMPREQ PREQ1262
sl@0
  2110
//! @SYMREQ REQ7408
sl@0
  2111
//! @SYMTestPriority Critical
sl@0
  2112
//! @SYMTestStatus   Implemented
sl@0
  2113
//! @SYMTestActions   
sl@0
  2114
//!		     Preconditions:
sl@0
  2115
//!			• There is an appropriate policy file in the phone that uses SystemServerSecurity
sl@0
  2116
//!			  property set with different values for individual policies including 
sl@0
  2117
//!			  ESystemServerSecurityPassedOrFailed, ESystemServerSecurityFailed and 
sl@0
  2118
//!			  ESystemServerSecurityPassed. 
sl@0
  2119
//!		     Test Actions:     
sl@0
  2120
//!			• Case 1: Request set services to a test system server to ensure that an individual
sl@0
  2121
//!			  policy set with ESystemServerSecurityPassedOrFailed is invoked, use different 
sl@0
  2122
//!		          values for platSecPass parameter in authorize request. 
sl@0
  2123
//!  			• Case 2: : Request set services to a test system server to ensure that an 
sl@0
  2124
//!			  individual policy set with ESystemServerSecurityFailed  is invoked, use values 
sl@0
  2125
//!			  for platSecPass parameter as EFalse in authorize request.   
sl@0
  2126
//!			• Case 3: : Request set services to a test system server to ensure that an 
sl@0
  2127
//!			  individual policy set with ESystemServerSecurityPassed is invoked, use values for 
sl@0
  2128
//!			  platSecPass parameter as ETrue in authorize request. 
sl@0
  2129
//!
sl@0
  2130
//! @SYMTestExpectedResults  
sl@0
  2131
//!			• On each case the appropriate individual policy is invoked. 
sl@0
  2132
//!
sl@0
  2133
//! @SYMTestType CIT
sl@0
  2134
sl@0
  2135
START_TESTCASE SEC-INTEG-UPS-E036
sl@0
  2136
sl@0
  2137
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2138
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2139
sl@0
  2140
// case 1
sl@0
  2141
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini ESystemServerSecurityPassedOrFailed
sl@0
  2142
// case 2
sl@0
  2143
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini ESystemServerSecurityFailed 
sl@0
  2144
// case 3
sl@0
  2145
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini ESystemServerSecurityPassed
sl@0
  2146
sl@0
  2147
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_8
sl@0
  2148
sl@0
  2149
END_TESTCASE SEC-INTEG-UPS-E036
sl@0
  2150
sl@0
  2151
sl@0
  2152
sl@0
  2153
//********************** SEC-UPS-G : NEGATIVE TEST CASES  **********************
sl@0
  2154
sl@0
  2155
//! @SYMTestCaseID SEC-UPS-INTEG-G004
sl@0
  2156
//! @SYMTestCaseDesc Non ProtServ capability system server   
sl@0
  2157
//!                  (no_protser_cap)
sl@0
  2158
//!		
sl@0
  2159
//! @SYMPREQ PREQ1262
sl@0
  2160
//! @SYMREQ REQ7427
sl@0
  2161
//!
sl@0
  2162
//! @SYMTestPriority Critical
sl@0
  2163
//! @SYMTestStatus   Implemented
sl@0
  2164
//! @SYMTestActions 	Preconditions:
sl@0
  2165
//!			•  There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the
sl@0
  2166
//!			service offered by the “system server”.
sl@0
  2167
//!			•  The system server request prompt to UPS does NOT have ProtServ capability.
sl@0
  2168
//!
sl@0
  2169
//!			Test Actions:
sl@0
  2170
//!			•  Launch “test client” which tries to connect to a system server and use service. 
sl@0
  2171
//!			•  System server asks for a user prompt to the UPS (Authorise method).
sl@0
  2172
//!			•  UPS should deny the request from system server. 
sl@0
  2173
//!
sl@0
  2174
//! @SYMTestExpectedResults 	• System server receives a KErrPermissionDenied from Ups. 
sl@0
  2175
//!
sl@0
  2176
//! @SYMTestType CIT
sl@0
  2177
sl@0
  2178
START_TESTCASE SEC-UPS-INTEG-G004
sl@0
  2179
RUN_TEST_STEP 100 TUPSInteg_1 NonProtServAuthorisation z:\tups\integ\scripts\tups_integ.ini no_protser_cap
sl@0
  2180
// test variation: server has no capabilities but plat sec test passed
sl@0
  2181
// Note: nop decision is stored or dialog prompted.
sl@0
  2182
RUN_TEST_STEP 100 TUPSInteg_1 NonProtServAuthorisation z:\tups\integ\scripts\tups_integ.ini no_protser_cap_b
sl@0
  2183
END_TESTCASE SEC-UPS-INTEG-G004
sl@0
  2184
sl@0
  2185
sl@0
  2186
//! @SYMTestCaseID 	SEC-UPS-G007
sl@0
  2187
//! @SYMTestCaseDesc 	Protected deletion and update of decisions.
sl@0
  2188
//!                     (remove_update_capabilityChecking)
sl@0
  2189
//!		
sl@0
  2190
//! @SYMPREQ 		PREQ1262
sl@0
  2191
//! @SYMREQ  		REQ7381
sl@0
  2192
//!
sl@0
  2193
//! @SYMTestPriority 	Critical
sl@0
  2194
//! @SYMTestStatus   	Implemented
sl@0
  2195
//! @SYMTestActions 	Preconditions:
sl@0
  2196
//!			• Existence of test application 1 without AllFiles capabilities.
sl@0
  2197
//!			• Existence of test application 2 without WriteDeviceData capabilities. 
sl@0
  2198
//!			
sl@0
  2199
//!			Test Actions:
sl@0
  2200
//!			• Instruct test application 1 to attempt a record update in decision database using UpsManagement.
sl@0
  2201
//!			• Instruct test application 2 to attempt a record delete in decision database using UpsManagement.
sl@0
  2202
//!
sl@0
  2203
//! @SYMTestExpectedResults	• Test application1 should not be able to update record.
sl@0
  2204
//!				• Test application2 should not be able to delete record.
sl@0
  2205
//!
sl@0
  2206
//! @SYMTestType 	CIT
sl@0
  2207
sl@0
  2208
sl@0
  2209
START_TESTCASE SEC-UPS-G007
sl@0
  2210
sl@0
  2211
// Delete Existing Database
sl@0
  2212
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2213
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2214
sl@0
  2215
// populate decision database with sample inital values.
sl@0
  2216
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample2
sl@0
  2217
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample2
sl@0
  2218
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample2
sl@0
  2219
sl@0
  2220
// Perform initial checking on sample decisions
sl@0
  2221
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample2
sl@0
  2222
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample2
sl@0
  2223
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample2
sl@0
  2224
sl@0
  2225
// * STAGE 1 - UPDATE RECORD CAPABILITY TEST (AllFiles Required)
sl@0
  2226
sl@0
  2227
// Perform attempt to update a decision "WITHOUT" the appropriate capabilities
sl@0
  2228
RUN_TEST_STEP !Result=-46 100 TUPSInteg_writedevice UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_update_capabilityChecking_Update
sl@0
  2229
sl@0
  2230
// Run Database Management Checking for Unauthorised Update
sl@0
  2231
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_update_capabilityChecking_unauthorisedUpdate_DBCheck
sl@0
  2232
sl@0
  2233
// Perform attempt to update a decision "WITH" the appropriate capabilities 
sl@0
  2234
RUN_TEST_STEP 100 TUPSInteg_allfiles_readdevice UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_update_capabilityChecking_Update
sl@0
  2235
sl@0
  2236
// Run Database Management Checking for authorised Update
sl@0
  2237
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_update_capabilityChecking_authorisedUpdate_DBCheck
sl@0
  2238
sl@0
  2239
sl@0
  2240
// * STAGE 2 - REMOVE RECORD CAPABILITY TEST (WriteDeviceData Required)
sl@0
  2241
sl@0
  2242
// Perform attempt to remove a decision "WITHOUT" the appropriate capabilities
sl@0
  2243
RUN_TEST_STEP !Result=-46 100 TUPSInteg_allfiles_readdevice UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_update_capabilityChecking_Remove
sl@0
  2244
sl@0
  2245
// Run Database Management Checking for Unauthorised Remove
sl@0
  2246
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_update_capabilityChecking_unauthorisedRemove_DBCheck
sl@0
  2247
sl@0
  2248
// Perform attempt to remove a decision "WITH" the appropriate capabilities 
sl@0
  2249
RUN_TEST_STEP 100 TUPSInteg_writedevice UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_update_capabilityChecking_Remove
sl@0
  2250
sl@0
  2251
// Run Database Management Checking for authorised Remove
sl@0
  2252
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_update_capabilityChecking_authorisedRemove_DBCheck
sl@0
  2253
sl@0
  2254
END_TESTCASE SEC-UPS-G007
sl@0
  2255
sl@0
  2256
sl@0
  2257
//! @SYMTestCaseID SEC-UPS-INTEG-G008
sl@0
  2258
//! @SYMTestCaseDesc Policy Evaluator Leaving
sl@0
  2259
//!                  (policy_evaluator_leave)
sl@0
  2260
//!		
sl@0
  2261
//! @SYMPREQ PREQ1262
sl@0
  2262
//! @SYMREQ REQ7427
sl@0
  2263
//! @SYMTestPriority Critical
sl@0
  2264
//! @SYMTestStatus   Implemented
sl@0
  2265
//! @SYMTestActions 	Preconditions:
sl@0
  2266
//!			• There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the 	
sl@0
  2267
//!			service offered by the “system server”.
sl@0
  2268
//!			• Test Client doesn’t have any decision stored in DB related to service about to be used by test 	
sl@0
  2269
//!			client.
sl@0
  2270
//!			
sl@0
  2271
//!			Test Actions:
sl@0
  2272
//!			• Launch “test clients” which tries to use of system servers. System server should request UPS for 
sl@0
  2273
//!			user security dialog.
sl@0
  2274
//!			• When UPS invokes policy evaluator, induce a “leave” in policy evaluator. 
sl@0
  2275
//!			• UPS should process this leave from policy evaluator and reply with a silent denial to system 		
sl@0
  2276
//!			server.
sl@0
  2277
//!
sl@0
  2278
//! @SYMTestExpectedResults 	• System server receives a silent denial from UPS.  
sl@0
  2279
//!
sl@0
  2280
//! @SYMTestType CIT
sl@0
  2281
sl@0
  2282
//Delete Current Database
sl@0
  2283
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2284
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2285
sl@0
  2286
START_TESTCASE SEC-UPS-INTEG-G008
sl@0
  2287
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policyevaluator_leave_session
sl@0
  2288
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policyevaluator_leave_always
sl@0
  2289
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policyevaluator_leave_never
sl@0
  2290
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policyevaluator_leave_yes
sl@0
  2291
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policyevaluator_leave_no
sl@0
  2292
sl@0
  2293
CONCURRENT
sl@0
  2294
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policyevaluator_leaving_concurrent
sl@0
  2295
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policyevaluator_always_concurrent
sl@0
  2296
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policyevaluator_never_concurrent
sl@0
  2297
CONSECUTIVE 
sl@0
  2298
sl@0
  2299
END_TESTCASE SEC-UPS-INTEG-G008
sl@0
  2300
sl@0
  2301
sl@0
  2302
//! @SYMTestCaseID SEC-UPS-INTEG-G009
sl@0
  2303
//! @SYMTestCaseDesc Dialog Creator Leaving         
sl@0
  2304
//!                  (dialog_creator_leave)
sl@0
  2305
//!		
sl@0
  2306
//! @SYMPREQ PREQ1262
sl@0
  2307
//! @SYMREQ REQ7427
sl@0
  2308
//!
sl@0
  2309
//! @SYMTestPriority Critical
sl@0
  2310
//! @SYMTestStatus   Implemented
sl@0
  2311
//! @SYMTestActions 	Preconditions:
sl@0
  2312
//!			• There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the 	
sl@0
  2313
//!			service offered by the “system server”.
sl@0
  2314
//!			• Test Client doesn’t have any decision stored in DB related to service about to be used by test 	
sl@0
  2315
//!			client.
sl@0
  2316
//!
sl@0
  2317
//!			Test Actions:
sl@0
  2318
//!			• Launch “test clients” which tries to use of system servers. System server should request UPS for 	
sl@0
  2319
//!			user security dialog.
sl@0
  2320
//!			• When UPS invokes dialog, induce a “leave” in dialog creator. 
sl@0
  2321
//!			• UPS should process this leave from policy evaluator and reply with a silent denial to system 		
sl@0
  2322
//!			server.
sl@0
  2323
//!
sl@0
  2324
//! @SYMTestExpectedResults 	• System server receives a silent denial from UPS. 
sl@0
  2325
//!
sl@0
  2326
//! @SYMTestType CIT
sl@0
  2327
sl@0
  2328
START_TESTCASE SEC-UPS-INTEG-G009
sl@0
  2329
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini dialogcreator_leave_session
sl@0
  2330
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini dialogcreator_leave_always
sl@0
  2331
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini dialogcreator_leave_never
sl@0
  2332
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini dialogcreator_leave_yes
sl@0
  2333
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini dialogcreator_leave_no
sl@0
  2334
sl@0
  2335
CONCURRENT
sl@0
  2336
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini dialogcreator_leaving_concurrent
sl@0
  2337
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini dialogcreator_always_concurrent
sl@0
  2338
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini dialogcreator_never_concurrent
sl@0
  2339
CONSECUTIVE
sl@0
  2340
sl@0
  2341
END_TESTCASE SEC-UPS-INTEG-G009
sl@0
  2342
sl@0
  2343
sl@0
  2344
//! @SYMTestCaseID 	SEC-UPS-G010
sl@0
  2345
//! @SYMTestCaseDesc 	Protected reading of decisions
sl@0
  2346
//!                     (readDecision_capabilityChecking)
sl@0
  2347
//!		
sl@0
  2348
//! @SYMPREQ 		PREQ1262
sl@0
  2349
//! @SYMREQ  		REQ7492
sl@0
  2350
//!
sl@0
  2351
//! @SYMTestPriority 	Critical
sl@0
  2352
//! @SYMTestStatus   	Implemented
sl@0
  2353
//! @SYMTestActions 	Preconditions:
sl@0
  2354
//!			• There are some previous decisions stored in decision data base.
sl@0
  2355
//!			• Test application does not have ReadDeviceData but it has WriteDeviceData capabilities. 
sl@0
  2356
//!
sl@0
  2357
//!			Test Actions:
sl@0
  2358
//!			• Try to use test application with not ReadDeviceData capabilities to read existing entry from decision DB.
sl@0
  2359
//!
sl@0
  2360
//! @SYMTestExpectedResults	• Reading of entry fails, test application is returned error.	
sl@0
  2361
//!
sl@0
  2362
//! @SYMTestType 	CIT
sl@0
  2363
sl@0
  2364
sl@0
  2365
START_TESTCASE SEC-UPS-G010
sl@0
  2366
sl@0
  2367
// Delete Existing Database
sl@0
  2368
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2369
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2370
sl@0
  2371
// populate decision database with sample inital values.
sl@0
  2372
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample2
sl@0
  2373
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample2
sl@0
  2374
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample2
sl@0
  2375
sl@0
  2376
// Perform initial checking on sample decisions
sl@0
  2377
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample2
sl@0
  2378
RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample2
sl@0
  2379
RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample2
sl@0
  2380
sl@0
  2381
// Perform attempt to read a decision "WITHOUT" the appropriate capabilities
sl@0
  2382
RUN_TEST_STEP !Result=-46 100 TUPSInteg_writedevice UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini readDecision_capabilityChecking_dbRead
sl@0
  2383
sl@0
  2384
// Perform attempt to update a decision "WITH" the appropriate capabilities 
sl@0
  2385
RUN_TEST_STEP 100 TUPSInteg_readdevice UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini readDecision_capabilityChecking_dbRead
sl@0
  2386
sl@0
  2387
END_TESTCASE SEC-UPS-G010
sl@0
  2388
sl@0
  2389
sl@0
  2390
sl@0
  2391
//********************** SEC-UPS-H : MISCELLANEOUS  **********************
sl@0
  2392
sl@0
  2393
//! @SYMTestCaseID SEC-UPS-INTEG-H010
sl@0
  2394
//! @SYMTestCaseDesc Simple request cancelation        
sl@0
  2395
//!                  (simple_cancel)
sl@0
  2396
//!		
sl@0
  2397
//! @SYMPREQ PREQ1262
sl@0
  2398
//! @SYMREQ REQ7427
sl@0
  2399
//!
sl@0
  2400
//! @SYMTestPriority Critical
sl@0
  2401
//! @SYMTestStatus   Implemented
sl@0
  2402
//! @SYMTestActions 	Preconditions:
sl@0
  2403
//!			• There is an appropriate policy, policy evaluator and dialog creator that matches the UID of the
sl@0
  2404
//!			  service offered by the “system server”.
sl@0
  2405
//!			• Test Client doesn’t have any decision stored in DB related to service about to be used by test
sl@0
  2406
//!			  client.
sl@0
  2407
//!
sl@0
  2408
//!			Test Actions:
sl@0
  2409
//!			• Launch “test clients” which tries to use of system servers. System server should request UPS for
sl@0
  2410
//!			  user security dialog.
sl@0
  2411
//!			• When server requests UPS authorisation, cancel the request using CancelPrompt method. 
sl@0
  2412
//!
sl@0
  2413
//! @SYMTestExpectedResults 	• System server receives a KErrCancel from Ups. 
sl@0
  2414
//!
sl@0
  2415
//! @SYMTestType CIT
sl@0
  2416
sl@0
  2417
START_TESTCASE SEC-UPS-INTEG-H010
sl@0
  2418
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini simple_cancel
sl@0
  2419
END_TESTCASE SEC-UPS-INTEG-H010
sl@0
  2420
sl@0
  2421
sl@0
  2422
//! @SYMTestCaseID 	SEC-UPS-H011
sl@0
  2423
//! @SYMTestCaseDesc 	Reversible decision DB export by dumpupsdb
sl@0
  2424
//!                     (Export_Import_DBDumpTool)
sl@0
  2425
//!		
sl@0
  2426
//! @SYMPREQ 		PREQ1262
sl@0
  2427
//! @SYMREQ  		REQ7443 REQ7442
sl@0
  2428
//!
sl@0
  2429
//! @SYMTestPriority 	Critical
sl@0
  2430
//! @SYMTestStatus   	Implemented
sl@0
  2431
//! @SYMTestActions 	Test Actions:
sl@0
  2432
//!			• Populate decision database with a reasonable number of decisions.
sl@0
  2433
//!			• Check correct behaviour of UPS with this decision DB.
sl@0
  2434
//!			• Stop UPS server running and use “dumpupsdb.exe” to export database to temporary file.
sl@0
  2435
//!			• Using dumpupsdb.exe” re-import this temporary file into the decision DB (ups.db). 
sl@0
  2436
//!			• Check that re-imported decision database contains the same records that the original and UPS 
sl@0
  2437
//!			behaves normally when using it.
sl@0
  2438
//!
sl@0
  2439
//! @SYMTestExpectedResults	• There is no functional difference between the original decision database and the 
sl@0
  2440
//!				re-imported one.
sl@0
  2441
//!
sl@0
  2442
//! @SYMTestType 	CIT
sl@0
  2443
sl@0
  2444
START_TESTCASE SEC-UPS-H011
sl@0
  2445
sl@0
  2446
// Delete Existing Database
sl@0
  2447
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2448
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2449
sl@0
  2450
// Run the initial data entry step to populate the database with entries
sl@0
  2451
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Export_Import_DBDumpTool_Setup
sl@0
  2452
sl@0
  2453
// Check the newly created Decisions within the UPS Database
sl@0
  2454
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Export_Import_DBDumpTool_Verify
sl@0
  2455
sl@0
  2456
// Shutdown UPS Server
sl@0
  2457
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2458
sl@0
  2459
// Dump contents of the database
sl@0
  2460
RUN_PROGRAM dumpupsdb.exe -e -db \private\10283558\database\ups.db -f c:\exportdb.db -s
sl@0
  2461
RUN_PROGRAM dumpupsdb.exe -e -db \private\10283558\database\ups.db -f c:\exportdba.txt -s
sl@0
  2462
sl@0
  2463
// Delete Existing UPS Database
sl@0
  2464
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2465
sl@0
  2466
// Reimport Database Contents
sl@0
  2467
RUN_PROGRAM dumpupsdb.exe -i -db \private\10283558\database\ups.db -f c:\exportdb.db -s
sl@0
  2468
RUN_PROGRAM dumpupsdb.exe -e -db \private\10283558\database\ups.db -f c:\exportdbb.txt -s
sl@0
  2469
sl@0
  2470
// Delete Temporary Export File
sl@0
  2471
RUN_UTILS DeleteFile c:\exportdb.db
sl@0
  2472
sl@0
  2473
// Rerun service requests using Reimported Database
sl@0
  2474
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Export_Import_DBDumpTool_Verify
sl@0
  2475
sl@0
  2476
/////////// repeats same test sequence with (-b) flag in dumpupsdb.exe 
sl@0
  2477
sl@0
  2478
// Delete Existing Database
sl@0
  2479
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2480
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2481
sl@0
  2482
// Run the initial data entry step to populate the database with entries
sl@0
  2483
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Export_Import_DBDumpTool_Setup
sl@0
  2484
sl@0
  2485
// Check the newly created Decisions within the UPS Database
sl@0
  2486
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Export_Import_DBDumpTool_Verify
sl@0
  2487
sl@0
  2488
// Shutdown UPS Server
sl@0
  2489
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2490
sl@0
  2491
// Dump contents of the database
sl@0
  2492
RUN_PROGRAM dumpupsdb.exe -e -db \private\10283558\database\ups.db -f c:\exportdb.db -s -b
sl@0
  2493
sl@0
  2494
// Delete Existing UPS Database
sl@0
  2495
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2496
sl@0
  2497
// Reimport Database Contents
sl@0
  2498
RUN_PROGRAM dumpupsdb.exe -i -db \private\10283558\database\ups.db -f c:\exportdb.db -s -b
sl@0
  2499
sl@0
  2500
// Delete Temporary Export File
sl@0
  2501
RUN_UTILS DeleteFile c:\exportdb.db
sl@0
  2502
sl@0
  2503
// Rerun service requests using Reimported Database
sl@0
  2504
RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini Export_Import_DBDumpTool_Verify
sl@0
  2505
sl@0
  2506
END_TESTCASE SEC-UPS-H011
sl@0
  2507
sl@0
  2508
sl@0
  2509
//! @SYMTestCaseID SEC-UPS-INTEG-H012
sl@0
  2510
//! @SYMTestCaseDesc UPS sub-session in different thread
sl@0
  2511
//!                  (ups_session_shared)
sl@0
  2512
//!		
sl@0
  2513
//! @SYMPREQ PREQ1262
sl@0
  2514
//! @SYMREQ REQ7446
sl@0
  2515
//! @SYMTestPriority Critical
sl@0
  2516
//! @SYMTestStatus   Implemented
sl@0
  2517
//! @SYMTestActions 	Test Actions:
sl@0
  2518
//!			• Open an UPS session from a test server.
sl@0
  2519
//!			• Create a new thread and share UPS session with this new thread.
sl@0
  2520
//!			• From this new thread create a sub-session to ups, request authorisation to UPS 
sl@0
  2521
//!		          using this sub-session.
sl@0
  2522
//!			• Check that UPS behaves like normal and the appropriate decision is stored in DB. 
sl@0
  2523
//!
sl@0
  2524
//! @SYMTestExpectedResults  • Authorize method for UPS can be used successfully for thread different that 
sl@0
  2525
//!			       the one owning the UPS session.
sl@0
  2526
//!
sl@0
  2527
//! @SYMTestType CIT
sl@0
  2528
sl@0
  2529
START_TESTCASE SEC-UPS-INTEG-H012
sl@0
  2530
// Shutdown UPS Server
sl@0
  2531
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2532
sl@0
  2533
// Delete Existing UPS Database
sl@0
  2534
RUN_UTILS DeleteFile c:\private\10283558\database\ups.db
sl@0
  2535
sl@0
  2536
RUN_TEST_STEP 100 TUPSInteg_minor Multithread z:\tups\integ\scripts\tups_integ.ini ups_session_shared
sl@0
  2537
RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_2
sl@0
  2538
sl@0
  2539
// Shutdown UPS Server
sl@0
  2540
RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps
sl@0
  2541
sl@0
  2542
// Dump contents of the database
sl@0
  2543
RUN_PROGRAM dumpupsdb.exe -e -db \private\10283558\database\ups.db -f c:\multithread.db -s -b
sl@0
  2544
END_TESTCASE SEC-UPS-INTEG-H012
sl@0
  2545
sl@0
  2546
sl@0
  2547
//! @SYMTestCaseID SEC-UPS-MISC-0002
sl@0
  2548
//! @SYMTestCaseDesc Clears off properties previously set for policy evaluators and dialog creators.
sl@0
  2549
sl@0
  2550
START_TESTCASE SEC-UPS-MISC-0002
sl@0
  2551
RUN_TEST_STEP 100 TUPSInteg_1 PropertyStep z:\tups\integ\scripts\tups_properties.ini PropertiesToDestroy
sl@0
  2552
END_TESTCASE SEC-UPS-MISC-0002
sl@0
  2553
sl@0
  2554
sl@0
  2555
PRINT Complete_TUPS_Tests