sl@0: // sl@0: // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: LOAD_SUITE tupsdb sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0001 sl@0: //! @SYMTestCaseDesc Creates a decision record sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision record with provided values sl@0: //! @SYMTestExpectedResults Creates a decision record sucessfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0001 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecord sl@0: END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0001 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0002 sl@0: //! @SYMTestCaseDesc Tries to create a decision record with a fingerprint which is longer than 32 bytes sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision record with provided values sl@0: //! @SYMTestExpectedResults Fails to create a decision record sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0002 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecordwithlongfingerprint sl@0: END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0002 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0003 sl@0: //! @SYMTestCaseDesc Tries to create a decision record without a fingerprint sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision record with provided values sl@0: //! @SYMTestExpectedResults Fails to create a decision record sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0003 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecordwithoutfingerprint sl@0: END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0003 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0004 sl@0: //! @SYMTestCaseDesc Tries to create a decision record with a client entity which is lonegr than 32 bytes sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision record with provided values sl@0: //! @SYMTestExpectedResults Fails to create a decision record sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0004 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecordwithlongcliententity sl@0: END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0004 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0005 sl@0: //! @SYMTestCaseDesc Tries to create a decision record without a client entity sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision record with provided values sl@0: //! @SYMTestExpectedResults Creates a decision record successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0005 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecordwithoutcliententity sl@0: END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0005 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0006 sl@0: //! @SYMTestCaseDesc Tries to create a decision record without a description sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision record with provided values sl@0: //! @SYMTestExpectedResults Creates a decision record successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0006 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecordwithoutdescription sl@0: END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0006 sl@0: sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0001 sl@0: //! @SYMTestCaseDesc Creates a decision filter sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision filter with provided values sl@0: //! @SYMTestExpectedResults Creates a decision filter sucessfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0001 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilter_1 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilter_2 sl@0: END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0001 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0002 sl@0: //! @SYMTestCaseDesc Tries to create a decision filter with a fingerprint which is longer than 32 bytes sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision filter with provided values sl@0: //! @SYMTestExpectedResults Fails to create a decision filter sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0002 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithlongfingerprint_1 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithlongfingerprint_2 sl@0: END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0002 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0003 sl@0: //! @SYMTestCaseDesc Tries to create a decision filter without a fingerprint sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision filter with provided values sl@0: //! @SYMTestExpectedResults Fails to create a decision filter sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0003 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithoutfingerprint_1 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithoutfingerprint_2 sl@0: END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0003 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0004 sl@0: //! @SYMTestCaseDesc Tries to create a decision filter with a client entity which is longer than 32 bytes sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision filter with provided values sl@0: //! @SYMTestExpectedResults Fails to create a decision filter sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0004 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithlongcliententity_1 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithlongcliententity_2 sl@0: END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0004 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0005 sl@0: //! @SYMTestCaseDesc Tries to create a decision filter without a client entity sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision filter with provided values sl@0: //! @SYMTestExpectedResults Creates a decision filter successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0005 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithoutcliententity sl@0: END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0005 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0006 sl@0: //! @SYMTestCaseDesc Tries to create a decision filter with policy version and record id sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a decision filter with provided values sl@0: //! @SYMTestExpectedResults Creates a decision filter successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0006 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwitversionandrecordid sl@0: END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0006 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0001 sl@0: //! @SYMTestCaseDesc Creates a UPS decision database sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates a UPS decision database in the provided location, inserts a record, sl@0: // retrieves the inserted record and finally verifies the retrieved record. sl@0: //! @SYMTestExpectedResults Creates a UPS decision database successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0001 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createdatabase sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertfullrecord sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrievefullrecordwithmissingfilter sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrievefullrecord sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyfullrecord sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0001 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0002 sl@0: //! @SYMTestCaseDesc Tries to insert the same decision inserted in DatabaseOperations-I-0001 sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Inserts a decision record sl@0: //! @SYMTestExpectedResults Fails to insert the same decision record inserted in DatabaseOperations-I-0001 sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0002 sl@0: RUN_TEST_STEP_RESULT -11 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertsamerecord sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0002 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0003 sl@0: //! @SYMTestCaseDesc Inserts a decision record without client entity sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Inserts a decision record without client entity, retrieves the inserted record and then verifies it. sl@0: //! @SYMTestExpectedResults Inserts a decision record without client entity successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0003 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertrecordwithoutcliententity sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithoutcliententity sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordwithoutcliententity sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0003 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0004 sl@0: //! @SYMTestCaseDesc Retrieves a record using Description,Result and EvaluatorInfo fields sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Retrieves a record by using Description,Result and EvaluatorInfo fields and then verifies it. sl@0: //! @SYMTestExpectedResults Retrieves a record successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0004 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithdescription sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordwithoutcliententity sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0004 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0005 sl@0: //! @SYMTestCaseDesc Inserts a decision record without description sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Inserts a decision record without description, retrieves the inserted record and then verifies it. sl@0: //! @SYMTestExpectedResults Inserts a decision record without description successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0005 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertrecordwithoutdescription sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithoutdescription sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordwithoutdescription sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0005 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0006 sl@0: //! @SYMTestCaseDesc Inserts a decision record whose ClientSid is NULL and retrieves all records whose ClientSid is NULL sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Inserts a decision record whose ClientSid is NULL and retrieves all records whose ClientSid is NULL sl@0: //! @SYMTestExpectedResults Retrieves decision records with NULL ClientSid successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0006 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertrecordwithnullcliententity sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithnullcliententity sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0006 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0007 sl@0: //! @SYMTestCaseDesc Updates a full decision record from the decision table sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Retrieves the full record, finds it using this information and then updates it with the given data sl@0: //! @SYMTestExpectedResults Updates a full decision record from successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0007 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrievefullrecord sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini updatefullrecord sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieveupdatedfullrecord sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyupdatedfullrecord sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0007 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0008 sl@0: //! @SYMTestCaseDesc Updates a decision record without client entity from the decision table sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Retrieves the record, finds it using this information and then updates it with the given data sl@0: //! @SYMTestExpectedResults Updates a decision record without client from successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0008 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithoutcliententity sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini updaterecordwithoutcliententity sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieveupdatedrecordwithoutcliententity sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyupdatedrecordwithoutcliententity sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0008 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0009 sl@0: //! @SYMTestCaseDesc Deletes all records from UPS decision database sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Deletes decision database file sl@0: //! @SYMTestExpectedResults Deletes all records from UPS decision database successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0009 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecords sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0009 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0010 sl@0: //! @SYMTestCaseDesc Inserts three decision records and retrieves the second one sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Inserts three decision records and retrieves the second one, and then verifies it. sl@0: //! @SYMTestExpectedResults Inserts three decision records and retrieves the second one successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0010 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertfullrecord sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertrecordwithoutcliententity sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertrecordwithoutdescription sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithoutcliententity sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordwithoutcliententity sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0010 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0011 sl@0: //! @SYMTestCaseDesc Inserts 20 decision records and retrieves the records whose clientid is equal to 21 sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Deletes all records, creates a new one, inserts 20 decision records and retrieves the records with clientid, and then verifies them. sl@0: //! @SYMTestExpectedResults Inserts 20 decision records and retrieves the records with clientid successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0011 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecords sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insert20records sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswhereclientidlessthan sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswhereclientidlessthanorequal sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswhereclientidgreaterthan sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswhereclientidgreaterthanorequal sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswhereclientidnotequal sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieveallrecords sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithfingerprint sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithfingerprint sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithcliententity sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithcliententity sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithclientid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithclientid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithrecordid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithrecordid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithrecordidandversion sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithrecordidandversion sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleterecordswithclientid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordsdeletionwithclientid sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0011 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0012 sl@0: //! @SYMTestCaseDesc Retrieves the records whose evaluatorid is equal to 1000021 sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Retrieves the records with evaluatorid, and then verifies them. sl@0: //! @SYMTestExpectedResults Retrieves the records with evaluatorid successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0012 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithevaluatorid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithevaluatorid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleterecordswithevaluator sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordsdeletionwithevaluatorid sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0012 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0013 sl@0: //! @SYMTestCaseDesc Retrieves the records whose serviceid is equal to 10020 sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Retrieves the records with serviceid, and then verifies them. sl@0: //! @SYMTestExpectedResults Retrieves the records with serviceid successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0013 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithserviceid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithserviceid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleterecordswithserviceid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordsdeletionwithserviceid sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0013 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0014 sl@0: //! @SYMTestCaseDesc Compacts the decision databasedatabase sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Compacts the decision databasedatabase sl@0: //! @SYMTestExpectedResults Compacts the decision databasedatabase successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0014 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini cancelcompactdatabase sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini compactdatabase sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0014 sl@0: sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0015 sl@0: //! @SYMTestCaseDesc Retrieves the records whose serverid is equal to 100020 sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Retrieves the records with serverid, and then verifies them. sl@0: //! @SYMTestExpectedResults Retrieves the records with serverid successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0015 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithserverid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithserverid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleterecordswithserverid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordsdeletionwithserverid sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0015 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0016 sl@0: //! @SYMTestCaseDesc Deletes a decision record sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Inserts a decision record, deletes it and then verifies deletion sl@0: //! @SYMTestExpectedResults Deletes a decision record successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0016 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertfullrecord sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deletefullrecord sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyfullrecorddeletion sl@0: RUN_TEST_STEP_RESULT -1 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini updatenonexistrecord sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0016 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0017 sl@0: //! @SYMTestCaseDesc Inserts 1000 decision records and retrieves the records whose clientid is equal to 1000 sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Deletes all records, creates a new one, inserts 1000 decision records and retrieves the records with clientid, and then verifies them. sl@0: //! @SYMTestExpectedResults Inserts 1000 decision records and retrieves the records with clientid successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0017 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecords sl@0: RUN_TEST_STEP 200 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insert1000records sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieve1000recordswithclientid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verify1000recordswithclientid sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini cancelretrieve1000recordswithclientid sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0017 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0018 sl@0: //! @SYMTestCaseDesc Creates fingerprints from the values between 0-255 and tries to insert them sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Creates fingerprints from the values between 0-255 and tries to insert them. All values between 0-255 are used. sl@0: //! @SYMTestExpectedResults Insert every possible fingerprint successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0018 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecords sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini allfingerprints sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0018 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0019 sl@0: //! @SYMTestCaseDesc Performs OOM tests sl@0: //! @SYMTestPriority Medium sl@0: //! @SYMTestActions Performs OOM tests sl@0: //! @SYMTestExpectedResults OOM tests are finished successfully sl@0: //! @SYMDevelopedForRelease Oghma sl@0: START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0019 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecordsOOM sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertfullrecordOOM sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrievefullrecordOOM sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyfullrecordOOM sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrievefullrecordOOM2 sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyfullrecordOOM sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecords sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertfullrecord sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deletefullrecordOOM sl@0: //Add some decision records for the next test: dumpupsdb sl@0: RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insert20records sl@0: END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0019 sl@0: