os/security/authorisation/userpromptservice/database/test/tupsdb/scripts/tupsdb.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 //
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of the License "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description: 
    15 //
    16 
    17 LOAD_SUITE tupsdb
    18 
    19 //! @file
    20 //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0001
    21 //! @SYMTestCaseDesc Creates a decision record
    22 //! @SYMTestPriority Medium
    23 //! @SYMTestActions Creates a decision record with provided values
    24 //! @SYMTestExpectedResults Creates a decision record sucessfully
    25 //! @SYMDevelopedForRelease Oghma
    26 START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0001
    27 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecord
    28 END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0001
    29 
    30 //! @file
    31 //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0002
    32 //! @SYMTestCaseDesc Tries to create a decision record with a fingerprint which is longer than 32 bytes
    33 //! @SYMTestPriority Medium
    34 //! @SYMTestActions Creates a decision record with provided values
    35 //! @SYMTestExpectedResults Fails to create a decision record
    36 //! @SYMDevelopedForRelease Oghma
    37 START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0002
    38 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecordwithlongfingerprint
    39 END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0002
    40 
    41 //! @file
    42 //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0003
    43 //! @SYMTestCaseDesc Tries to create a decision record without a fingerprint
    44 //! @SYMTestPriority Medium
    45 //! @SYMTestActions Creates a decision record with provided values
    46 //! @SYMTestExpectedResults Fails to create a decision record
    47 //! @SYMDevelopedForRelease Oghma
    48 START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0003
    49 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecordwithoutfingerprint
    50 END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0003
    51 
    52 //! @file
    53 //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0004
    54 //! @SYMTestCaseDesc Tries to create a decision record with a client entity which is lonegr than 32 bytes
    55 //! @SYMTestPriority Medium
    56 //! @SYMTestActions Creates a decision record with provided values
    57 //! @SYMTestExpectedResults Fails to create a decision record
    58 //! @SYMDevelopedForRelease Oghma
    59 START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0004
    60 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecordwithlongcliententity
    61 END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0004
    62 
    63 //! @file
    64 //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0005
    65 //! @SYMTestCaseDesc Tries to create a decision record without a client entity
    66 //! @SYMTestPriority Medium
    67 //! @SYMTestActions Creates a decision record with provided values
    68 //! @SYMTestExpectedResults Creates a decision record successfully
    69 //! @SYMDevelopedForRelease Oghma
    70 START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0005
    71 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecordwithoutcliententity
    72 END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0005
    73 
    74 //! @file
    75 //! @SYMTestCaseID SEC-UPS-DB-DECISIONRECORD-0006
    76 //! @SYMTestCaseDesc Tries to create a decision record without a description
    77 //! @SYMTestPriority Medium
    78 //! @SYMTestActions Creates a decision record with provided values
    79 //! @SYMTestExpectedResults Creates a decision record successfully 
    80 //! @SYMDevelopedForRelease Oghma
    81 START_TESTCASE SEC-UPS-DB-DECISIONRECORD-0006
    82 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createrecordwithoutdescription
    83 END_TESTCASE SEC-UPS-DB-DECISIONRECORD-0006
    84 
    85 
    86 //! @file
    87 //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0001
    88 //! @SYMTestCaseDesc Creates a decision filter
    89 //! @SYMTestPriority Medium
    90 //! @SYMTestActions Creates a decision filter with provided values
    91 //! @SYMTestExpectedResults Creates a decision filter sucessfully
    92 //! @SYMDevelopedForRelease Oghma
    93 START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0001
    94 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilter_1
    95 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilter_2
    96 END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0001
    97 
    98 //! @file
    99 //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0002
   100 //! @SYMTestCaseDesc Tries to create a decision filter with a fingerprint which is longer than 32 bytes
   101 //! @SYMTestPriority Medium
   102 //! @SYMTestActions Creates a decision filter with provided values
   103 //! @SYMTestExpectedResults Fails to create a decision filter
   104 //! @SYMDevelopedForRelease Oghma
   105 START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0002
   106 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithlongfingerprint_1
   107 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithlongfingerprint_2
   108 END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0002
   109 
   110 //! @file
   111 //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0003
   112 //! @SYMTestCaseDesc Tries to create a decision filter without a fingerprint
   113 //! @SYMTestPriority Medium
   114 //! @SYMTestActions Creates a decision filter with provided values
   115 //! @SYMTestExpectedResults Fails to create a decision filter
   116 //! @SYMDevelopedForRelease Oghma
   117 START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0003
   118 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithoutfingerprint_1
   119 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithoutfingerprint_2
   120 END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0003
   121 
   122 //! @file
   123 //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0004
   124 //! @SYMTestCaseDesc Tries to create a decision filter with a client entity which is longer than 32 bytes
   125 //! @SYMTestPriority Medium
   126 //! @SYMTestActions Creates a decision filter with provided values
   127 //! @SYMTestExpectedResults Fails to create a decision filter
   128 //! @SYMDevelopedForRelease Oghma
   129 START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0004
   130 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithlongcliententity_1
   131 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithlongcliententity_2
   132 END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0004
   133 
   134 //! @file
   135 //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0005
   136 //! @SYMTestCaseDesc Tries to create a decision filter without a client entity
   137 //! @SYMTestPriority Medium
   138 //! @SYMTestActions Creates a decision filter with provided values
   139 //! @SYMTestExpectedResults Creates a decision filter successfully
   140 //! @SYMDevelopedForRelease Oghma
   141 START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0005
   142 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwithoutcliententity
   143 END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0005
   144 
   145 //! @file
   146 //! @SYMTestCaseID SEC-UPS-DB-DECISIONFILTER-0006
   147 //! @SYMTestCaseDesc Tries to create a decision filter with policy version and record id
   148 //! @SYMTestPriority Medium
   149 //! @SYMTestActions Creates a decision filter with provided values
   150 //! @SYMTestExpectedResults Creates a decision filter successfully
   151 //! @SYMDevelopedForRelease Oghma
   152 START_TESTCASE SEC-UPS-DB-DECISIONFILTER-0006
   153 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createfilterwitversionandrecordid
   154 END_TESTCASE SEC-UPS-DB-DECISIONFILTER-0006
   155 
   156 //! @file
   157 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0001
   158 //! @SYMTestCaseDesc Creates a UPS decision database
   159 //! @SYMTestPriority Medium
   160 //! @SYMTestActions Creates a UPS decision database in the provided location, inserts a record,
   161 //                  retrieves the inserted record and finally verifies the retrieved record.
   162 //! @SYMTestExpectedResults Creates a UPS decision database successfully
   163 //! @SYMDevelopedForRelease Oghma
   164 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0001
   165 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini createdatabase
   166 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertfullrecord
   167 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrievefullrecordwithmissingfilter
   168 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrievefullrecord
   169 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyfullrecord
   170 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0001
   171 
   172 //! @file
   173 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0002
   174 //! @SYMTestCaseDesc Tries to insert the same decision inserted in DatabaseOperations-I-0001
   175 //! @SYMTestPriority Medium
   176 //! @SYMTestActions Inserts a decision record
   177 //! @SYMTestExpectedResults Fails to insert the same decision record inserted in DatabaseOperations-I-0001
   178 //! @SYMDevelopedForRelease Oghma
   179 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0002
   180 RUN_TEST_STEP_RESULT -11 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertsamerecord
   181 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0002
   182 
   183 //! @file
   184 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0003
   185 //! @SYMTestCaseDesc Inserts a decision record without client entity
   186 //! @SYMTestPriority Medium
   187 //! @SYMTestActions Inserts a decision record without client entity, retrieves the inserted record and then verifies it.
   188 //! @SYMTestExpectedResults Inserts a decision record without client entity successfully
   189 //! @SYMDevelopedForRelease Oghma
   190 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0003
   191 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertrecordwithoutcliententity
   192 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithoutcliententity
   193 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordwithoutcliententity
   194 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0003
   195 
   196 //! @file
   197 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0004
   198 //! @SYMTestCaseDesc Retrieves a record using Description,Result and EvaluatorInfo fields
   199 //! @SYMTestPriority Medium
   200 //! @SYMTestActions Retrieves a record by using Description,Result and EvaluatorInfo fields and then verifies it.
   201 //! @SYMTestExpectedResults Retrieves a record successfully
   202 //! @SYMDevelopedForRelease Oghma
   203 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0004
   204 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithdescription
   205 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordwithoutcliententity
   206 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0004
   207 
   208 //! @file
   209 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0005
   210 //! @SYMTestCaseDesc Inserts a decision record without description
   211 //! @SYMTestPriority Medium
   212 //! @SYMTestActions Inserts a decision record without description, retrieves the inserted record and then verifies it.
   213 //! @SYMTestExpectedResults Inserts a decision record without description successfully
   214 //! @SYMDevelopedForRelease Oghma
   215 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0005
   216 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertrecordwithoutdescription
   217 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithoutdescription
   218 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordwithoutdescription
   219 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0005
   220 
   221 //! @file
   222 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0006
   223 //! @SYMTestCaseDesc Inserts a decision record whose ClientSid is NULL and retrieves all records whose ClientSid is NULL
   224 //! @SYMTestPriority Medium
   225 //! @SYMTestActions Inserts a decision record whose ClientSid is NULL and retrieves all records whose ClientSid is NULL
   226 //! @SYMTestExpectedResults Retrieves decision records with NULL ClientSid successfully
   227 //! @SYMDevelopedForRelease Oghma
   228 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0006
   229 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertrecordwithnullcliententity
   230 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithnullcliententity
   231 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0006
   232 
   233 //! @file
   234 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0007
   235 //! @SYMTestCaseDesc Updates a full decision record from the decision table
   236 //! @SYMTestPriority Medium
   237 //! @SYMTestActions Retrieves the full record, finds it using this information and then updates it with the given data
   238 //! @SYMTestExpectedResults Updates a full decision record from successfully
   239 //! @SYMDevelopedForRelease Oghma
   240 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0007
   241 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrievefullrecord
   242 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini updatefullrecord
   243 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieveupdatedfullrecord
   244 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyupdatedfullrecord
   245 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0007
   246 
   247 //! @file
   248 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0008
   249 //! @SYMTestCaseDesc Updates a decision record without client entity from the decision table
   250 //! @SYMTestPriority Medium
   251 //! @SYMTestActions Retrieves the record, finds it using this information and then updates it with the given data
   252 //! @SYMTestExpectedResults Updates a decision record without client from successfully
   253 //! @SYMDevelopedForRelease Oghma
   254 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0008
   255 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithoutcliententity
   256 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini updaterecordwithoutcliententity
   257 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieveupdatedrecordwithoutcliententity
   258 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyupdatedrecordwithoutcliententity
   259 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0008
   260 
   261 //! @file
   262 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0009
   263 //! @SYMTestCaseDesc Deletes all records from UPS decision database
   264 //! @SYMTestPriority Medium
   265 //! @SYMTestActions Deletes decision database file
   266 //! @SYMTestExpectedResults Deletes all records from UPS decision database successfully
   267 //! @SYMDevelopedForRelease Oghma
   268 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0009
   269 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecords
   270 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0009
   271 
   272 //! @file
   273 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0010
   274 //! @SYMTestCaseDesc Inserts three decision records and retrieves the second one
   275 //! @SYMTestPriority Medium
   276 //! @SYMTestActions Inserts three decision records and retrieves the second one, and then verifies it.
   277 //! @SYMTestExpectedResults Inserts three decision records and retrieves the second one successfully
   278 //! @SYMDevelopedForRelease Oghma
   279 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0010
   280 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertfullrecord
   281 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertrecordwithoutcliententity
   282 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertrecordwithoutdescription
   283 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordwithoutcliententity
   284 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordwithoutcliententity
   285 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0010
   286 
   287 //! @file
   288 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0011
   289 //! @SYMTestCaseDesc Inserts 20 decision records and retrieves the records whose clientid is equal to 21
   290 //! @SYMTestPriority Medium
   291 //! @SYMTestActions Deletes all records, creates a new one, inserts 20 decision records and retrieves the records with clientid, and then verifies them.
   292 //! @SYMTestExpectedResults Inserts 20 decision records and retrieves the records with clientid successfully
   293 //! @SYMDevelopedForRelease Oghma
   294 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0011
   295 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecords
   296 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insert20records
   297 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswhereclientidlessthan
   298 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswhereclientidlessthanorequal
   299 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswhereclientidgreaterthan
   300 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswhereclientidgreaterthanorequal
   301 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswhereclientidnotequal
   302 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieveallrecords
   303 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithfingerprint
   304 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithfingerprint
   305 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithcliententity
   306 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithcliententity
   307 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithclientid
   308 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithclientid
   309 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithrecordid
   310 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithrecordid
   311 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithrecordidandversion
   312 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithrecordidandversion
   313 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleterecordswithclientid
   314 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordsdeletionwithclientid
   315 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0011
   316 
   317 //! @file
   318 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0012
   319 //! @SYMTestCaseDesc Retrieves the records whose evaluatorid is equal to 1000021
   320 //! @SYMTestPriority Medium
   321 //! @SYMTestActions Retrieves the records with evaluatorid, and then verifies them.
   322 //! @SYMTestExpectedResults Retrieves the records with evaluatorid successfully
   323 //! @SYMDevelopedForRelease Oghma
   324 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0012
   325 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithevaluatorid
   326 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithevaluatorid
   327 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleterecordswithevaluator
   328 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordsdeletionwithevaluatorid
   329 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0012
   330 
   331 //! @file
   332 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0013
   333 //! @SYMTestCaseDesc Retrieves the records whose serviceid is equal to 10020
   334 //! @SYMTestPriority Medium
   335 //! @SYMTestActions Retrieves the records with serviceid, and then verifies them.
   336 //! @SYMTestExpectedResults Retrieves the records with serviceid successfully
   337 //! @SYMDevelopedForRelease Oghma
   338 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0013
   339 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithserviceid 
   340 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithserviceid
   341 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleterecordswithserviceid
   342 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordsdeletionwithserviceid
   343 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0013
   344 
   345 //! @file
   346 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0014
   347 //! @SYMTestCaseDesc Compacts the decision databasedatabase
   348 //! @SYMTestPriority Medium
   349 //! @SYMTestActions Compacts the decision databasedatabase
   350 //! @SYMTestExpectedResults Compacts the decision databasedatabase successfully
   351 //! @SYMDevelopedForRelease Oghma
   352 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0014
   353 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini cancelcompactdatabase
   354 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini compactdatabase
   355 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0014
   356 
   357 
   358 //! @file
   359 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0015
   360 //! @SYMTestCaseDesc Retrieves the records whose serverid is equal to 100020
   361 //! @SYMTestPriority Medium
   362 //! @SYMTestActions Retrieves the records with serverid, and then verifies them.
   363 //! @SYMTestExpectedResults Retrieves the records with serverid successfully
   364 //! @SYMDevelopedForRelease Oghma
   365 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0015
   366 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieverecordswithserverid 
   367 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordswithserverid
   368 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleterecordswithserverid
   369 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyrecordsdeletionwithserverid
   370 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0015
   371 
   372 //! @file
   373 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0016
   374 //! @SYMTestCaseDesc Deletes a decision record
   375 //! @SYMTestPriority Medium
   376 //! @SYMTestActions Inserts a decision record, deletes it and then verifies deletion
   377 //! @SYMTestExpectedResults Deletes a decision record successfully
   378 //! @SYMDevelopedForRelease Oghma
   379 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0016
   380 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertfullrecord
   381 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deletefullrecord
   382 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyfullrecorddeletion
   383 RUN_TEST_STEP_RESULT -1 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini updatenonexistrecord
   384 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0016
   385 
   386 //! @file
   387 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0017
   388 //! @SYMTestCaseDesc Inserts 1000 decision records and retrieves the records whose clientid is equal to 1000
   389 //! @SYMTestPriority Medium
   390 //! @SYMTestActions Deletes all records, creates a new one, inserts 1000 decision records and retrieves the records with clientid, and then verifies them.
   391 //! @SYMTestExpectedResults Inserts 1000 decision records and retrieves the records with clientid successfully
   392 //! @SYMDevelopedForRelease Oghma
   393 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0017
   394 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecords
   395 RUN_TEST_STEP 200 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insert1000records
   396 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrieve1000recordswithclientid
   397 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verify1000recordswithclientid
   398 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini cancelretrieve1000recordswithclientid
   399 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0017
   400 
   401 //! @file
   402 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0018
   403 //! @SYMTestCaseDesc Creates fingerprints from the values between 0-255 and tries to insert them
   404 //! @SYMTestPriority Medium
   405 //! @SYMTestActions Creates fingerprints from the values between 0-255 and tries to insert them. All values between 0-255 are used.
   406 //! @SYMTestExpectedResults Insert every possible fingerprint successfully
   407 //! @SYMDevelopedForRelease Oghma
   408 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0018
   409 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecords
   410 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini allfingerprints
   411 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0018
   412 
   413 //! @file
   414 //! @SYMTestCaseID SEC-UPS-DB-DATABASEOPERATIONS-0019
   415 //! @SYMTestCaseDesc Performs OOM tests
   416 //! @SYMTestPriority Medium
   417 //! @SYMTestActions Performs OOM tests
   418 //! @SYMTestExpectedResults OOM tests are finished successfully
   419 //! @SYMDevelopedForRelease Oghma
   420 START_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0019
   421 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecordsOOM
   422 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertfullrecordOOM
   423 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrievefullrecordOOM
   424 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyfullrecordOOM
   425 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini retrievefullrecordOOM2
   426 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini verifyfullrecordOOM
   427 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deleteallrecords
   428 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insertfullrecord
   429 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini deletefullrecordOOM
   430 //Add some decision records for the next test: dumpupsdb
   431 RUN_TEST_STEP 100 tupsdb RunUpsDbUnitTest z:\tups\tupsdb\scripts\tupsdb.ini insert20records
   432 END_TESTCASE SEC-UPS-DB-DATABASEOPERATIONS-0019
   433