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