1164 |
1164 |
1165 // UPS DB Management checking on records and Execute Decision Count |
1165 // UPS DB Management checking on records and Execute Decision Count |
1166 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_decisions_concurrent_dbCheck |
1166 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini remove_decisions_concurrent_dbCheck |
1167 |
1167 |
1168 END_TESTCASE SEC-UPS-D004 |
1168 END_TESTCASE SEC-UPS-D004 |
1169 |
|
1170 |
|
1171 //! @SYMTestCaseID SEC-INTEG-UPS-D006 |
|
1172 //! @SYMTestCaseDesc Removal of decision from DB by uninstalling client. |
|
1173 //! (client_removal) |
|
1174 //! |
|
1175 //! @SYMPREQ PREQ1262 |
|
1176 //! @SYMREQ REQ7387 |
|
1177 //! @SYMTestPriority Critical |
|
1178 //! @SYMTestStatus Implemented |
|
1179 //! @SYMTestActions Preconditions: |
|
1180 //! • For each of the services There is an appropriate policy, policy evaluator and dialog |
|
1181 //! creator that matches the UID of the service offered by the “system server”. |
|
1182 //! • The test clients used for this test case were installed with a SIS file that did not |
|
1183 //! install the policy or policy evaluator mapped to these test clients. |
|
1184 //! • There is more than one decision stored for test applications. |
|
1185 //! |
|
1186 //! Test Actions: |
|
1187 //! • Populate decision DB for 3 test clients (A, B, C) with “Always” decisions for 3 Clients. |
|
1188 //! • Uninstall test client B. |
|
1189 //! • Launch test clients (A & C), these two Clients should have normal access to test service |
|
1190 //! without need for security dialog prompt. |
|
1191 //! |
|
1192 //! @SYMTestExpectedResults • Decision for test client B was removed from decision DB. Decisions for test clients |
|
1193 //! A & C are still present in DB with value “always” |
|
1194 //! • Test client A & C are granted access to test service. |
|
1195 //! |
|
1196 //! @SYMTestType CIT |
|
1197 |
|
1198 START_TESTCASE SEC-INTEG-UPS-D006 |
|
1199 |
|
1200 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
1201 RUN_UTILS DeleteFile c:\private\10283558\database\ups.db |
|
1202 |
|
1203 // populate decision database with some inital values. |
|
1204 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1205 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1206 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1207 |
|
1208 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1209 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1210 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1211 |
|
1212 // Installs new client via swi (tupsinteg_post1) |
|
1213 RUN_TEST_STEP !Heap=0x150000 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_post1 |
|
1214 LOAD_SUITE tupsinteg_post1 |
|
1215 |
|
1216 // creates decision for new installed client. |
|
1217 // This odd jump to another script is indispensable in this situation. |
|
1218 RUN_SCRIPT z:\tups\integ\scripts\tups_integ_post1.script |
|
1219 |
|
1220 CONCURRENT |
|
1221 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1222 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1223 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1224 // Unsinstall new client via swi (tupsinteg_post1) |
|
1225 RUN_TEST_STEP 100 tups_install UninstallStep z:\tups\integ\scripts\tups_integ.ini uninstall_post1 |
|
1226 CONSECUTIVE |
|
1227 |
|
1228 // Need to reinstall client to be able to check decisions |
|
1229 RUN_TEST_STEP !Heap=0x150000 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_post1 |
|
1230 |
|
1231 // creates decision for new installed client. |
|
1232 // This odd jump to another script is indispensable in this situation. |
|
1233 RUN_SCRIPT z:\tups\integ\scripts\tups_integ_post1.script |
|
1234 |
|
1235 // decisions for other clients are expected to be unchanged. |
|
1236 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1237 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1238 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1239 |
|
1240 // Last Unsinstall of new client via swi (tupsinteg_post1) (clean up) |
|
1241 RUN_TEST_STEP 100 tups_install UninstallStep z:\tups\integ\scripts\tups_integ.ini uninstall_post1 |
|
1242 |
|
1243 END_TESTCASE SEC-INTEG-UPS-D006 |
|
1244 |
|
1245 |
|
1246 //! @SYMTestCaseID SEC-INTEG-UPS-D007 |
|
1247 //! @SYMTestCaseDesc Removal of decision from DB by upgrading client. |
|
1248 //! (client_update) |
|
1249 //! |
|
1250 //! @SYMPREQ PREQ1262 |
|
1251 //! @SYMREQ REQ7387 REQ7470 |
|
1252 //! @SYMTestPriority Critical |
|
1253 //! @SYMTestStatus Implemented |
|
1254 //! @SYMTestActions Preconditions: |
|
1255 //! • For each of the services There is an appropriate policy, policy evaluator |
|
1256 //! and dialog creator that matches the UID of the service offered by the “system server”. |
|
1257 //! • The test clients used for this test case were installed with a SIS file that did not |
|
1258 //! install the policy or policy evaluator mapped to these test clients. |
|
1259 //! • More than 1 decision is associated to test client. |
|
1260 //! Test Actions: |
|
1261 //! • Populate decision DB for 3 test clients (A, B, C) with “Always” decisions for 3 Clients. |
|
1262 //! • Upgrade test client B by using SIS file. This SIS file should replace EXE file associated |
|
1263 //! to test client B. |
|
1264 //! • Launch test clients (A, B, C), A & C should have normal access to test service without |
|
1265 //! need for security dialog prompt. UPS should display security dialog for Client B, select “Never”. |
|
1266 //! |
|
1267 //! @SYMTestExpectedResults • Decision for test client B was changed in the decision DB from “Always” to “Never”. |
|
1268 //! Decisions for test clients A & C are still present in DB with value “always” |
|
1269 //! • Test client A & C are granted access to test service. |
|
1270 //! |
|
1271 //! @SYMTestType CIT |
|
1272 |
|
1273 START_TESTCASE SEC-INTEG-UPS-D007 |
|
1274 |
|
1275 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
1276 RUN_UTILS DeleteFile c:\private\10283558\database\ups.db |
|
1277 |
|
1278 // populate decision database with some inital values. |
|
1279 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1280 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1281 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1282 |
|
1283 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1284 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1285 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1286 |
|
1287 // Installs new client via swi (tupsinteg_post1) |
|
1288 RUN_TEST_STEP !Heap=0x150000 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_post1 |
|
1289 |
|
1290 // creates decision for new installed client. |
|
1291 // This odd jump to another script is indispensable in this situation. |
|
1292 RUN_SCRIPT z:\tups\integ\scripts\tups_integ_post1.script |
|
1293 |
|
1294 CONCURRENT |
|
1295 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1296 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1297 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1298 // Reinstall client via swi, this counts as an upgrate (tupsinteg_post1) |
|
1299 RUN_TEST_STEP !Heap=0x150000 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_post1 |
|
1300 CONSECUTIVE |
|
1301 |
|
1302 // creates decision for new installed client. |
|
1303 // This odd jump to another script is indispensable in this situation. |
|
1304 RUN_SCRIPT z:\tups\integ\scripts\tups_integ_post1_check.script |
|
1305 |
|
1306 // decisions for other clients are expected to be unchanged. |
|
1307 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1308 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1309 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1310 |
|
1311 // Last Unsinstall of new client via swi (tupsinteg_post1) (clean up) |
|
1312 RUN_TEST_STEP 100 tups_install UninstallStep z:\tups\integ\scripts\tups_integ.ini uninstall_post1 |
|
1313 |
|
1314 END_TESTCASE SEC-INTEG-UPS-D007 |
|
1315 |
|
1316 //! @SYMTestCaseID SEC-INTEG-UPS-D009 |
|
1317 //! @SYMTestCaseDesc Removal of decision from DB by uninstalling policy file |
|
1318 //! (policy_removal) |
|
1319 //! |
|
1320 //! @SYMPREQ PREQ1262 |
|
1321 //! @SYMREQ REQ7397 REQ7399 REQ7400 |
|
1322 //! @SYMTestPriority Critical |
|
1323 //! @SYMTestStatus Implemented |
|
1324 //! @SYMTestActions |
|
1325 //! Preconditions: |
|
1326 //! • For each of the services there is an appropriate policy, policy evaluator and dialog creator |
|
1327 //! that matches the UID of the service offered by the “system server”. |
|
1328 //! • The SIS file used to install test policy did NOT install any executable client that could be |
|
1329 //! mapped to this policy. |
|
1330 //! Test Actions: |
|
1331 //! • Populate decision DB for 3 test clients (A, B, C) with “Always” decisions for 3 Clients. |
|
1332 //! • Uninstall policy mapped to Client B. |
|
1333 //! • Launch test clients (A, B, C). Clients A & C should have normal access test service. |
|
1334 //! • For Client B, test system server should receive a KErrUpsMissingPolicyFile form UPS. |
|
1335 //! • Check that Client A & C can access test service. |
|
1336 //! |
|
1337 //! @SYMTestExpectedResults • Decision DB contains only “Always” decision stored for Clients A & C, Client B |
|
1338 //! should not have any decision associated to it. |
|
1339 //! • Test client A & C are granted access to test service. |
|
1340 //! • Test client B is granted not granted service. |
|
1341 //! • KErrUpsMissingPolicyFile issued to system server when request security dialog for client B. |
|
1342 //! |
|
1343 //! @SYMTestType CIT |
|
1344 START_TESTCASE SEC-INTEG-UPS-D009 |
|
1345 |
|
1346 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
1347 RUN_UTILS DeleteFile c:\private\10283558\database\ups.db |
|
1348 |
|
1349 // populate decision database with some inital values. |
|
1350 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1351 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1352 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1353 |
|
1354 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1355 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1356 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1357 |
|
1358 // installs policy file version 1 |
|
1359 RUN_TEST_STEP 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_policies1v1 |
|
1360 |
|
1361 |
|
1362 // populates decisions related to policy just installed |
|
1363 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v1_populate |
|
1364 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v1_check |
|
1365 |
|
1366 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_29 |
|
1367 |
|
1368 // uninstall policy file. |
|
1369 RUN_TEST_STEP 100 tups_install UninstallAugStep z:\tups\integ\scripts\tups_integ.ini un_install_policies1v1 |
|
1370 |
|
1371 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1372 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1373 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1374 |
|
1375 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_27 |
|
1376 |
|
1377 END_TESTCASE SEC-INTEG-UPS-D009 |
|
1378 |
|
1379 //! @SYMTestCaseID SEC-INTEG-UPS-D010 |
|
1380 //! @SYMTestCaseDesc Removal of decision from DB by upgrading policy file |
|
1381 //! (policy_update) |
|
1382 //! |
|
1383 //! @SYMPREQ PREQ1262 |
|
1384 //! @SYMREQ REQ7397 REQ7399 REQ7400 |
|
1385 //! @SYMTestPriority Critical |
|
1386 //! @SYMTestStatus Implemented |
|
1387 //! @SYMTestActions Preconditions: |
|
1388 //! Preconditions: |
|
1389 //! • For each of the services There is an appropriate policy, policy evaluator and |
|
1390 //! dialog creator that matches the UID of the service offered by the “system server”. |
|
1391 //! • The SIS file used to install test policy did NOT install any executable client that |
|
1392 //! could be mapped to this policy. |
|
1393 //! Test Actions: |
|
1394 //! • Populate decision DB for 3 test clients (A, B, C) with “Always” decisions for 3 Clients. |
|
1395 //! • Upgrade policy mapped to Client B via SWI. |
|
1396 //! • Launch test clients (A, B, C). Clients A & C should have normal access test service (no |
|
1397 //! prompting). For Client B, UPS should prompt again for user permission, select “never” option. |
|
1398 //! • Check that Client A & C can access test service. |
|
1399 //! @SYMTestExpectedResults • Decision DB contains only “Always” decision stored for Clients A & C, for Client |
|
1400 //! B the decision stored now is “never”. |
|
1401 //! • Test client A & C are granted access to test service. |
|
1402 //! • Policy files were installed in private directory |
|
1403 //! |
|
1404 //! @SYMTestType CIT |
|
1405 START_TESTCASE SEC-INTEG-UPS-D010 |
|
1406 |
|
1407 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
1408 RUN_UTILS DeleteFile c:\private\10283558\database\ups.db |
|
1409 |
|
1410 // populate decision database with some inital values. |
|
1411 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1412 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1413 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1414 |
|
1415 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1416 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1417 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1418 |
|
1419 // installs policy file version 1 |
|
1420 RUN_TEST_STEP 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_policies1v1 |
|
1421 |
|
1422 |
|
1423 // populates decisions related to policy just installed |
|
1424 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v1_populate |
|
1425 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v1_check |
|
1426 |
|
1427 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_29 |
|
1428 |
|
1429 // installs policy file version 2, this should cause decisions to be deleted |
|
1430 CONCURRENT |
|
1431 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1432 RUN_TEST_STEP 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_policies1v2 |
|
1433 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v2_inflight_change |
|
1434 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1435 CONSECUTIVE |
|
1436 |
|
1437 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1438 |
|
1439 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_29 |
|
1440 |
|
1441 // Cleanup |
|
1442 RUN_TEST_STEP 100 tups_install UninstallAugStep z:\tups\integ\scripts\tups_integ.ini un_install_policies1v2 |
|
1443 |
|
1444 //////////// repeats same test sequence but without concurrency ///////////////////////// |
|
1445 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
1446 RUN_UTILS DeleteFile c:\private\10283558\database\ups.db |
|
1447 |
|
1448 // populate decision database with some inital values. |
|
1449 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1450 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1451 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1452 |
|
1453 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1454 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1455 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1456 |
|
1457 // installs policy file version 1 |
|
1458 RUN_TEST_STEP 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_policies1v1 |
|
1459 |
|
1460 // populates decisions related to policy just installed |
|
1461 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v1_populate |
|
1462 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v1_check |
|
1463 |
|
1464 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_29 |
|
1465 |
|
1466 // installs policy file version 2, this should cause decisions to be deleted. |
|
1467 RUN_TEST_STEP 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_policies1v2 |
|
1468 |
|
1469 // populates decisions that are expected to be deleted. |
|
1470 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v2_populate |
|
1471 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v2_check |
|
1472 |
|
1473 |
|
1474 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1475 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1476 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1477 |
|
1478 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_29 |
|
1479 |
|
1480 // Cleanup |
|
1481 RUN_TEST_STEP 100 tups_install UninstallAugStep z:\tups\integ\scripts\tups_integ.ini un_install_policies1v2 |
|
1482 |
|
1483 |
|
1484 |
|
1485 END_TESTCASE SEC-INTEG-UPS-D010 |
|
1486 |
1169 |
1487 |
1170 |
1488 //********************** SEC-UPS-E : SECURITY POLICIES AND POLICY EVALUATOR PLUG-INS ********************** |
1171 //********************** SEC-UPS-E : SECURITY POLICIES AND POLICY EVALUATOR PLUG-INS ********************** |
1489 //! @SYMTestCaseID SEC-UPS-INTEG-E001 |
1172 //! @SYMTestCaseID SEC-UPS-INTEG-E001 |
1490 //! @SYMTestCaseDesc To ensure that when a single bit is set in the “options” no security |
1173 //! @SYMTestCaseDesc To ensure that when a single bit is set in the “options” no security |
1730 |
1413 |
1731 START_TESTCASE SEC-UPS-INTEG-E009 |
1414 START_TESTCASE SEC-UPS-INTEG-E009 |
1732 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini question_mark_card |
1415 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini question_mark_card |
1733 END_TESTCASE SEC-UPS-INTEG-E009 |
1416 END_TESTCASE SEC-UPS-INTEG-E009 |
1734 |
1417 |
1735 //! @SYMTestCaseID SEC-INTEG-UPS-E017 |
|
1736 //! @SYMTestCaseDesc Post manufacture install of Policy Evaluator |
|
1737 //! (policy_evaluator_install) |
|
1738 //! |
|
1739 //! @SYMPREQ PREQ1262 |
|
1740 //! @SYMREQ REQ7408 |
|
1741 //! @SYMTestPriority Critical |
|
1742 //! @SYMTestStatus Implemented |
|
1743 //! @SYMTestActions |
|
1744 //! Preconditions: |
|
1745 //! • There a policy file associated to test service, however the policy evaluator specified |
|
1746 //! in the “Policy evaluator field” is not present in the phone |
|
1747 //! Test Actions: |
|
1748 //! • Using SIS file install new policy evaluator that is listed in policy file (This SIS file |
|
1749 //! only installs policy evaluator plug-in, it does NOT install policy file). |
|
1750 //! • Launch test client which uses policy file that invokes use of new policy evaluator, verify |
|
1751 //! that UPS invokes the new policy evaluator, use test client to store new “never” and “always” |
|
1752 //! decisions. |
|
1753 //! • Uninstall the policy evaluator that was just previously installed, re-install again the same |
|
1754 //! policy evaluator; as decisions are not expected to be deleted verify that the decisions are |
|
1755 //! still there in database. |
|
1756 //! • Run the previous test sequence concurrently with other clients using decisions stored in DB not |
|
1757 //! related to new policy evaluator, check that these decisions are not affected by installation |
|
1758 //! and removal of policy evaluator. |
|
1759 //! |
|
1760 //! @SYMTestExpectedResults • Newly installed policy evaluator is used after installation by SIS file. |
|
1761 //! • Decisions in DB are not affected by installation/removal of policy evaluator. |
|
1762 //! @SYMTestType CIT |
|
1763 |
|
1764 START_TESTCASE SEC-INTEG-UPS-E017 |
|
1765 |
|
1766 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
1767 RUN_UTILS DeleteFile c:\private\10283558\database\ups.db |
|
1768 |
|
1769 // populate decision database with some inital values. |
|
1770 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1771 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1772 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1773 |
|
1774 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1775 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1776 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1777 |
|
1778 // installs new policy evaluator |
|
1779 RUN_TEST_STEP !Heap=0x150000 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_evaluator5 |
|
1780 |
|
1781 // Delay added to alow new plugin to be scaned by some magic entity in the phone |
|
1782 DELAY 8000 |
|
1783 |
|
1784 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini newevaluator5 |
|
1785 |
|
1786 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1787 |
|
1788 // uninstall policy file. |
|
1789 RUN_TEST_STEP 100 tups_install UninstallStep z:\tups\integ\scripts\tups_integ.ini uninstall_evaluator5 |
|
1790 |
|
1791 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1792 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1793 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1794 |
|
1795 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_30 |
|
1796 |
|
1797 END_TESTCASE SEC-INTEG-UPS-E017 |
|
1798 |
|
1799 |
|
1800 //! @SYMTestCaseID SEC-INTEG-UPS-E018 |
|
1801 //! @SYMTestCaseDesc Post manufacture install of dialog creator |
|
1802 //! (dialog_creator_install) |
|
1803 //! |
|
1804 //! @SYMPREQ PREQ1262 |
|
1805 //! @SYMREQ REQ7408 |
|
1806 //! @SYMTestPriority Critical |
|
1807 //! @SYMTestStatus Implemented |
|
1808 //! @SYMTestActions |
|
1809 //! Preconditions: |
|
1810 //! • Existence of SIS file that can install new dialog creator and policy file. |
|
1811 //! Test Actions: |
|
1812 //! • Using SIS file install new dialog creator and policy file. |
|
1813 //! • Request specific services to test system server that will invoke ups for |
|
1814 //! authorization and using the new dialog creator and policy file installed. Make |
|
1815 //! sure that an “always” and “never” decisions are stored in DB. |
|
1816 //! • Uninstall the SIS file, check the new decisions related to previously installed |
|
1817 //! dialog creator were removed for DB. |
|
1818 //! |
|
1819 //! @SYMTestExpectedResults |
|
1820 //! • Newly installed dialog and policy are used by UPS after installation by |
|
1821 //! SIS file. |
|
1822 //! • New decisions related to new dialog creator and policy file are stored correctly |
|
1823 //! into decision DB. |
|
1824 //! • Decisions related to policy file (installed by the same SIS file) are removed |
|
1825 //! from DB. |
|
1826 //! @SYMTestType CIT |
|
1827 |
|
1828 START_TESTCASE SEC-INTEG-UPS-E018 |
|
1829 |
|
1830 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
1831 RUN_UTILS DeleteFile c:\private\10283558\database\ups.db |
|
1832 |
|
1833 // populate decision database with some inital values. |
|
1834 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1835 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1836 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
1837 |
|
1838 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1839 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1840 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1841 |
|
1842 // installs new policy evaluator |
|
1843 RUN_TEST_STEP !Heap=0x150000 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_dialog7 |
|
1844 // Delay Allows new plugin to be scanned by ECOM |
|
1845 DELAY 8000 |
|
1846 |
|
1847 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini newdialog7 |
|
1848 |
|
1849 |
|
1850 // uninstall policy file. |
|
1851 RUN_TEST_STEP 100 tups_install UninstallAugStep z:\tups\integ\scripts\tups_integ.ini uninstall_dialog7 |
|
1852 |
|
1853 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1854 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1855 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
1856 |
|
1857 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_27 |
|
1858 |
|
1859 END_TESTCASE SEC-INTEG-UPS-E018 |
|
1860 |
|
1861 |
|
1862 |
1418 |
1863 //! @SYMTestCaseID SEC-INTEG-UPS-E024 |
1419 //! @SYMTestCaseID SEC-INTEG-UPS-E024 |
1864 //! @SYMTestCaseDesc Security Policy Authorisation - EAlwaysCheck |
1420 //! @SYMTestCaseDesc Security Policy Authorisation - EAlwaysCheck |
1865 //! (alwayscheck_authoristion) |
1421 //! (alwayscheck_authoristion) |
1866 //! |
1422 //! |
2598 |
2154 |
2599 |
2155 |
2600 |
2156 |
2601 //********************** SEC-UPS-G : NEGATIVE TEST CASES ********************** |
2157 //********************** SEC-UPS-G : NEGATIVE TEST CASES ********************** |
2602 |
2158 |
2603 //! @SYMTestCaseID SEC-INTEG-UPS-G001 |
|
2604 //! @SYMTestCaseDesc Policy installation via SWI signed with CA certificate non present in certstore. |
|
2605 //! (policy_file_ca_not_in_store) |
|
2606 //! |
|
2607 //! @SYMPREQ PREQ1262 |
|
2608 //! @SYMREQ REQ7398 |
|
2609 //! @SYMTestPriority Critical |
|
2610 //! @SYMTestStatus Implemented |
|
2611 //! @SYMTestActions |
|
2612 //! Preconditions: |
|
2613 //! • Policy to be installed does not currently exist in phone |
|
2614 //! • The SIS file to attempt a policy file installation has been signed with |
|
2615 //! a CA certificate is not present in the SWI CA store. |
|
2616 //! Test Actions: |
|
2617 //! • Install sis that installs policy. |
|
2618 //! |
|
2619 //! @SYMTestExpectedResults |
|
2620 //! • SWI should reject SIS file for security reasons. |
|
2621 //! |
|
2622 //! @SYMTestType CIT |
|
2623 |
|
2624 START_TESTCASE SEC-INTEG-UPS-G001 |
|
2625 |
|
2626 RUN_TEST_STEP_RESULT -10254 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini ca_cert_no_stored |
|
2627 |
|
2628 END_TESTCASE SEC-INTEG-UPS-G001 |
|
2629 |
|
2630 |
|
2631 |
|
2632 |
|
2633 |
|
2634 |
|
2635 |
|
2636 |
|
2637 //! @SYMTestCaseID SEC-INTEG-UPS-G002 |
|
2638 //! @SYMTestCaseDesc Tamper attempt in policy files backup and restore |
|
2639 //! (tampered_policy_file_backup_restore) |
|
2640 //! |
|
2641 //! @SYMPREQ PREQ1262 |
|
2642 //! @SYMREQ REQ4701 |
|
2643 //! @SYMTestPriority Critical |
|
2644 //! @SYMTestStatus Implemented |
|
2645 //! @SYMTestActions |
|
2646 //! Preconditions: |
|
2647 //! • There is a set of static policies already present in phone. |
|
2648 //! • The policy files installed via SIS file to be used for test purpose was flagged |
|
2649 //! with “VERIFY” in the package file. |
|
2650 //! Test Actions: |
|
2651 //! • Install policy file flagged with “VERIFY”, populate decisions in database. |
|
2652 //! • Back up policy files. |
|
2653 //! • Delete policy file form private directory. |
|
2654 //! • Try to restore static policies from a backed up archive that is different that the |
|
2655 //! one obtained originally. |
|
2656 //! |
|
2657 //! |
|
2658 //! @SYMTestExpectedResults |
|
2659 //! • Restore operation should fail and tampered archive rejected. |
|
2660 //! |
|
2661 //! @SYMTestType CIT |
|
2662 |
|
2663 START_TESTCASE SEC-INTEG-UPS-G002 |
|
2664 |
|
2665 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
2666 RUN_UTILS DeleteFile c:\private\10283558\database\ups.db |
|
2667 RUN_UTILS MakeReadWrite c:\tswi\tbackuprestore\backup10285777.1 |
|
2668 RUN_UTILS DeleteFile C:\tswi\tbackuprestore\backup10285777.1 |
|
2669 |
|
2670 // populate decision database with some inital values. |
|
2671 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
2672 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
2673 |
|
2674 |
|
2675 // installs policy file with VERIFY flag |
|
2676 RUN_TEST_STEP 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_policies1v2 |
|
2677 |
|
2678 // populates decisions related to policy just installed |
|
2679 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v2_populate |
|
2680 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v2_check |
|
2681 |
|
2682 // backs up policy file |
|
2683 RUN_TEST_STEP 100 tups_backuprestore BACKUP z:\tups\integ\scripts\tups_integ.ini backup_policy_file2 |
|
2684 |
|
2685 // deletes valid backup files |
|
2686 RUN_UTILS MakeReadWrite c:\tswi\tbackuprestore\backup10285777.1 |
|
2687 RUN_UTILS DeleteFile c:\tswi\tbackuprestore\backup10285777.1 |
|
2688 |
|
2689 //copies altered backup files to replace the valid ones. |
|
2690 RUN_UTILS CopyFile z:\tups\integ\tampered_backup\backup10285777.1 c:\tswi\tbackuprestore\backup10285777.1 |
|
2691 RUN_UTILS MakeReadWrite c:\tswi\tbackuprestore\backup10285777.1 |
|
2692 |
|
2693 //Deletes current policy file been used by |
|
2694 RUN_UTILS DeleteFile c:\private\10283558\policies\ups_101f7f1f_ff000001.rsc |
|
2695 |
|
2696 // restores policy file |
|
2697 RUN_TEST_STEP_RESULT -11 100 tups_backuprestore RESTORE z:\tups\integ\scripts\tups_integ.ini backup_policy_file2 |
|
2698 |
|
2699 // uninstall SIS files previously installed |
|
2700 RUN_TEST_STEP 100 tups_install UninstallAugStep z:\tups\integ\scripts\tups_integ.ini un_install_policies1v2 |
|
2701 |
|
2702 END_TESTCASE SEC-INTEG-UPS-G002 |
|
2703 |
|
2704 |
|
2705 |
|
2706 //! @SYMTestCaseID SEC-UPS-INTEG-G004 |
2159 //! @SYMTestCaseID SEC-UPS-INTEG-G004 |
2707 //! @SYMTestCaseDesc Non ProtServ capability system server |
2160 //! @SYMTestCaseDesc Non ProtServ capability system server |
2708 //! (no_protser_cap) |
2161 //! (no_protser_cap) |
2709 //! |
2162 //! |
2710 //! @SYMPREQ PREQ1262 |
2163 //! @SYMPREQ PREQ1262 |
2962 END_TESTCASE SEC-UPS-G010 |
2391 END_TESTCASE SEC-UPS-G010 |
2963 |
2392 |
2964 |
2393 |
2965 |
2394 |
2966 //********************** SEC-UPS-H : MISCELLANEOUS ********************** |
2395 //********************** SEC-UPS-H : MISCELLANEOUS ********************** |
2967 |
|
2968 |
|
2969 //! @SYMTestCaseID SEC-INTEG-UPS-H008 |
|
2970 //! @SYMTestCaseDesc Eclipsing of policy via SWI. |
|
2971 //! (policy_file_eclipse) |
|
2972 //! |
|
2973 //! @SYMPREQ PREQ1262 |
|
2974 //! @SYMREQ REQ7393 REQ7498 |
|
2975 //! @SYMTestPriority Critical |
|
2976 //! @SYMTestStatus Implemented |
|
2977 //! @SYMTestActions |
|
2978 //! Preconditions: |
|
2979 //! • There is a policy file in ROM that matches the UID of the service offered by |
|
2980 //! the “system server”. (uses policy evaluator A) |
|
2981 //! • The policy to be deployed via SWI to eclipse the policy above maps the policy to |
|
2982 //! a different policy evaluator. (uses policy evaluator B). New policy is written in |
|
2983 //! system drive. |
|
2984 //! • There are some decisions stored in DB related to policy file about to be eclipsed. |
|
2985 //! Test Actions: |
|
2986 //! • Launch “test client” which tries to use system servers. System server should invoke |
|
2987 //! UPS to display security dialog. |
|
2988 //! • Select “always” option on security dialog, make sure that “policy evaluator A” was |
|
2989 //! invoked, check that test client can access intended service. |
|
2990 //! • Deploy new policy using SIS file to eclipse existing ROM policy. |
|
2991 //! • Check that previous entries related to policy file were deleted from DB. |
|
2992 //! • Launch the same test client again, the security dialog should be displayed again as the |
|
2993 //! existing “always” decision stored in DB is expected to be deleted. |
|
2994 //! • Select “always” option on security dialog, make sure that “policy evaluator B” was |
|
2995 //! invoked, check that test client can access intended service. |
|
2996 //! |
|
2997 //! |
|
2998 //! @SYMTestExpectedResults |
|
2999 //! • After deployment of new policy a different policy evaluator is invoked for system |
|
3000 //! server. |
|
3001 //! • Related decisions were removed after eclipsing. |
|
3002 //! @SYMTestType CIT |
|
3003 |
|
3004 START_TESTCASE SEC-INTEG-UPS-H008 |
|
3005 |
|
3006 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
3007 RUN_UTILS DeleteFile c:\private\10283558\database\ups.db |
|
3008 |
|
3009 // populate decision database with some inital values. |
|
3010 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
3011 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
3012 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
3013 |
|
3014 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3015 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3016 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3017 |
|
3018 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini pre_eclipse |
|
3019 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_30 |
|
3020 |
|
3021 // SIS file eclipses policy file from ROM |
|
3022 RUN_TEST_STEP 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_eclipse1 |
|
3023 |
|
3024 // Eclipsing of policy file is expected to remove some decisions |
|
3025 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_27 |
|
3026 |
|
3027 // cheks new policy file (on C drive) |
|
3028 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini post_eclipse |
|
3029 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_32 |
|
3030 |
|
3031 // uninstall last eclipse. |
|
3032 RUN_TEST_STEP 100 tups_install UninstallAugStep z:\tups\integ\scripts\tups_integ.ini uninstall_eclipse1 |
|
3033 |
|
3034 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3035 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3036 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3037 |
|
3038 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_27 |
|
3039 |
|
3040 END_TESTCASE SEC-INTEG-UPS-H008 |
|
3041 |
|
3042 |
|
3043 //! @SYMTestCaseID SEC-INTEG-UPS-H009 |
|
3044 //! @SYMTestCaseDesc Policy files backup and restore. |
|
3045 //! (policy_file_backup_restore) |
|
3046 //! |
|
3047 //! @SYMPREQ PREQ1262 |
|
3048 //! @SYMREQ REQ4701 |
|
3049 //! @SYMTestPriority Critical |
|
3050 //! @SYMTestStatus Implemented |
|
3051 //! @SYMTestActions |
|
3052 //! Preconditions: |
|
3053 //! • There is a set of static policies already present in phone. |
|
3054 //! • The policy files installed via SIS file to be used for test purpose was flagged |
|
3055 //! with “VERIFY” in the package file. |
|
3056 //! Test Actions: |
|
3057 //! • Install policy file flagged with “VERIFY”, populate decisions in database. |
|
3058 //! • Back up static policies. |
|
3059 //! • Uninstall the policy file. |
|
3060 //! • Try to restore static policies. |
|
3061 //! • Verify that policy files can be reused correctly, verify correctness of decision |
|
3062 //! database. |
|
3063 //! |
|
3064 //! |
|
3065 //! @SYMTestExpectedResults |
|
3066 //! • Restore operation does not show any problem in operation. |
|
3067 //! • Policy file restored is equal to policy file backed up. |
|
3068 //! @SYMTestType CIT |
|
3069 |
|
3070 START_TESTCASE SEC-INTEG-UPS-H009 |
|
3071 |
|
3072 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
3073 RUN_UTILS DeleteFile c:\private\10283558\database\ups.db |
|
3074 RUN_UTILS MakeReadWrite c:\tswi\tbackuprestore\backup10285777.1 |
|
3075 RUN_UTILS DeleteFile C:\tswi\tbackuprestore\backup10285777.1 |
|
3076 |
|
3077 // populate decision database with some inital values. |
|
3078 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
3079 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
3080 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini populate_sample |
|
3081 |
|
3082 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3083 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3084 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3085 |
|
3086 // installs policy file with VERIFY flag |
|
3087 RUN_TEST_STEP 100 tups_install InstallStep z:\tups\integ\scripts\tups_integ.ini install_policies1v2 |
|
3088 |
|
3089 // populates decisions related to policy just installed |
|
3090 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v2_populate |
|
3091 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini policies1v2_check |
|
3092 |
|
3093 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_29 |
|
3094 |
|
3095 // backs up policy file |
|
3096 RUN_TEST_STEP 100 tups_backuprestore BACKUP z:\tups\integ\scripts\tups_integ.ini backup_policy_file2 |
|
3097 |
|
3098 RUN_TEST_STEP 100 TUPSInteg_1 UtilsCloseUps |
|
3099 |
|
3100 // uninstall the augmentation before trying to restore the policy file |
|
3101 RUN_TEST_STEP 100 tups_install UninstallAugStep z:\tups\integ\scripts\tups_integ.ini un_install_policies1v2 |
|
3102 |
|
3103 // restores policy file |
|
3104 RUN_TEST_STEP 100 tups_backuprestore RESTORE z:\tups\integ\scripts\tups_integ.ini backup_policy_file2 |
|
3105 |
|
3106 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3107 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3108 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3109 |
|
3110 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_27 |
|
3111 |
|
3112 // uninstall SIS files previously installed |
|
3113 RUN_TEST_STEP 100 tups_install UninstallAugStep z:\tups\integ\scripts\tups_integ.ini un_install_policies1v2 |
|
3114 |
|
3115 RUN_TEST_STEP 100 TUPSInteg_1 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3116 RUN_TEST_STEP 100 TUPSInteg_2 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3117 RUN_TEST_STEP 100 TUPSInteg_3 UPSClientStep z:\tups\integ\scripts\tups_integ.ini check_sample |
|
3118 |
|
3119 RUN_TEST_STEP 100 TUPSInteg_1 UPSDbManagementStep z:\tups\integ\scripts\tups_integ.ini count_27 |
|
3120 |
|
3121 END_TESTCASE SEC-INTEG-UPS-H009 |
|
3122 |
|
3123 |
2396 |
3124 //! @SYMTestCaseID SEC-UPS-INTEG-H010 |
2397 //! @SYMTestCaseID SEC-UPS-INTEG-H010 |
3125 //! @SYMTestCaseDesc Simple request cancelation |
2398 //! @SYMTestCaseDesc Simple request cancelation |
3126 //! (simple_cancel) |
2399 //! (simple_cancel) |
3127 //! |
2400 //! |