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 PRINT IntegrityServices tests... |
|
18 // |
|
19 //LOAD_SUITE tintegrityservices |
|
20 LOAD_SUITE tststestserver |
|
21 // |
|
22 # |
|
23 z:\tusif\tsts\tintegrityservices\scripts\ |
|
24 |
|
25 //! @file |
|
26 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0001 |
|
27 //! @SYMTestCaseDesc Simulates successful install of version 1 followed by sucessful uninstall |
|
28 //! @SYMTestPriority Low |
|
29 //! @SYMTestExpectedResults The test completes with KErrNone completion code. All files are cleaned-up. |
|
30 //! @SYMREQ REQ2681.5 |
|
31 //! @SYMTestType UT |
|
32 |
|
33 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0001 |
|
34 |
|
35 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
36 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\install_v1\EFailNone.ini EFailNone |
|
37 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\uninstall_v1\EFailNone.ini EFailNone |
|
38 |
|
39 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0001 |
|
40 |
|
41 |
|
42 //! @file |
|
43 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0002 |
|
44 //! @SYMTestCaseDesc Simulates successful install of version 1, then upgrade to version 2 followed by sucessful uninstall |
|
45 //! @SYMTestPriority Low |
|
46 //! @SYMTestExpectedResults The test completes with KErrNone completion code. All files are cleaned-up. |
|
47 //! @SYMREQ REQ2681.5 |
|
48 //! @SYMTestType UT |
|
49 |
|
50 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0002 |
|
51 |
|
52 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
53 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\install_v1\EFailNone.ini EFailNone |
|
54 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\upgrade_v1-v2\EFailNone.ini EFailNone |
|
55 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\uninstall_v2\EFailNone.ini EFailNone |
|
56 |
|
57 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0002 |
|
58 |
|
59 |
|
60 //! @file |
|
61 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0003 |
|
62 //! @SYMTestCaseDesc Simulates successful install of version 2 followed by sucessful uninstall |
|
63 //! @SYMTestPriority Low |
|
64 //! @SYMTestExpectedResults The test completes with KErrNone completion code. All files are cleaned-up. |
|
65 //! @SYMREQ REQ2681.5 |
|
66 //! @SYMTestType UT |
|
67 |
|
68 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0003 |
|
69 |
|
70 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
71 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\install_v2\EFailNone.ini EFailNone |
|
72 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\uninstall_v2\EFailNone.ini EFailNone |
|
73 |
|
74 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0003 |
|
75 |
|
76 |
|
77 //! @file |
|
78 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0004 |
|
79 //! @SYMTestCaseDesc Simulates failure during installation of version 1 before adding the file c:\DataFileA.dat followed by sucessful rollback. |
|
80 //! @SYMTestPriority Low |
|
81 //! @SYMTestExpectedResults The test completes with KErrNone completion code. All files are cleaned-up. |
|
82 //! @SYMREQ REQ2681.5 |
|
83 //! @SYMTestType UT |
|
84 |
|
85 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0004 |
|
86 |
|
87 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
88 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\install_v1\EFailAddingNewFile.ini EBeforeAction_c:\DataFileA.dat |
|
89 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\rollback_install_v1\EFailNone.ini EFailNone |
|
90 |
|
91 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0004 |
|
92 |
|
93 |
|
94 //! @file |
|
95 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0005 |
|
96 //! @SYMTestCaseDesc Simulates failure during installation of version 1 after logging that the installation completed. Recovery rolls-forward the installation to completion. It is then uninstalled successfully. |
|
97 //! @SYMTestPriority Low |
|
98 //! @SYMTestExpectedResults The test completes with KErrNone completion code. All files are cleaned-up. |
|
99 //! @SYMREQ REQ2681.5 |
|
100 //! @SYMTestType UT |
|
101 |
|
102 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0005 |
|
103 |
|
104 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
105 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\install_v1\EFailInstallComplete.ini EAfterJournal |
|
106 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\install_v1\EFailNone.ini EFailNone |
|
107 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\uninstall_v1\EFailNone.ini EFailNone |
|
108 |
|
109 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0005 |
|
110 |
|
111 |
|
112 //! @file |
|
113 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0006 |
|
114 //! @SYMTestCaseDesc Simulates failure during installation of version 1 and again during the recovery before finally recovering successfully. |
|
115 //! @SYMTestPriority Low |
|
116 //! @SYMTestExpectedResults The test completes with KErrNone completion code. All files are cleaned-up. |
|
117 //! @SYMREQ REQ2681.5 |
|
118 //! @SYMTestType UT |
|
119 |
|
120 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0006 |
|
121 |
|
122 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
123 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\install_v1\EFailAddingNewFile.ini EBeforeAction_c:\DataFileA.dat |
|
124 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\rollback_install_v1\EFailOldFilesRestored.ini EFailBeforeJournal |
|
125 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\rollback_install_v1\EFailNone.ini EFailNone |
|
126 |
|
127 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0006 |
|
128 |
|
129 |
|
130 //! @file |
|
131 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0007 |
|
132 //! @SYMTestCaseDesc Simulates installation of version 1 followed by failure during upgrade to version 2. A sucessful recovery is followed by sucessfull uninstall. |
|
133 //! @SYMTestPriority Low |
|
134 //! @SYMTestExpectedResults The test completes with KErrNone completion code. All files are cleaned-up. |
|
135 //! @SYMREQ REQ2681.5 |
|
136 //! @SYMTestType UT |
|
137 |
|
138 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0007 |
|
139 |
|
140 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
141 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\install_v1\EFailNone.ini EFailNone |
|
142 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\upgrade_v1-v2\EFailAddingNewFile.ini EBeforeAction_e:\DataFileC.dat |
|
143 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\rollback_upgrade_v1-v2\EFailNone.ini EFailNone |
|
144 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\uninstall_v1\EFailNone.ini EFailNone |
|
145 |
|
146 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0007 |
|
147 |
|
148 |
|
149 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0009 |
|
150 //! @SYMTestCaseDesc Test that rollback after adding then removing a file will not leave the file in place. |
|
151 //! @SYMTestPriority Medium |
|
152 //! @SYMTestExpectedResults The test completes with all files cleaned-up. |
|
153 //! @SYMDEF DEF088970 |
|
154 //! @SYMDevelopedForRelease Argus |
|
155 |
|
156 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0009 |
|
157 |
|
158 // Preliminary cleanup |
|
159 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
160 |
|
161 // Copy file into place to be removed during the rollback. |
|
162 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\datafileb.dat |
|
163 RUN_UTILS MakeReadWrite c:\datafileb.dat |
|
164 |
|
165 // Run test step that removes c:\datafileb.dat, adds then removes c:\DataFileA, then fails after adding another file. |
|
166 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini failafteraddandremove |
|
167 |
|
168 // Roll back from previous failure, ensure that files added in the previous step are deleted and the one deleted during the |
|
169 // previous step is recovered. |
|
170 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini recoverafterfailedaddandremove |
|
171 |
|
172 // Delete test file |
|
173 RUN_UTILS DeleteFile c:\datafileb.dat |
|
174 |
|
175 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0009 |
|
176 |
|
177 |
|
178 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0010 |
|
179 //! @SYMTestCaseDesc Test that transient rollback failure while deleting temp files will not block future rollbacks. |
|
180 //! @SYMTestPriority Medium |
|
181 //! @SYMTestActions Journal addition of multiple temp files without commit, fail rollback while deleting temp files, check |
|
182 //! that subsequent rollback succeeds. |
|
183 //! @SYMTestExpectedResults Last rollback succeeds, all temp files removed. |
|
184 //! @SYMDEF DEF088011 |
|
185 //! @SYMDevelopedForRelease Argus |
|
186 |
|
187 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0010 |
|
188 |
|
189 // Run test step that adds a number of temporary files, failing after the last one so it doesn't commit |
|
190 RUN_TEST_STEP 10 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini failonlasttemp |
|
191 |
|
192 // Run a recovery step which fails deleting one of the temp files |
|
193 RUN_TEST_STEP 10 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini rollbackfailondeletetemp |
|
194 |
|
195 // Make sure that rollback can succeed on another attempt. |
|
196 RUN_TEST_STEP 10 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini rollbacksuccess |
|
197 |
|
198 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0010 |
|
199 |
|
200 |
|
201 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0011 |
|
202 //! @SYMTestCaseDesc Test that failure before adding a journal entry for removal is handled gracefully |
|
203 //! @SYMTestPriority Medium |
|
204 //! @SYMTestExpectedResults The test completes with all files present. |
|
205 //! @SYMDEF DEF101378 |
|
206 //! @SYMDevelopedForRelease Argus |
|
207 |
|
208 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0011 |
|
209 |
|
210 // Preliminary cleanup |
|
211 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
212 |
|
213 RUN_UTILS MkDir c:\dummyDir |
|
214 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\dummyDir\datafileb.dat |
|
215 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\dummyDir\datafilea.dat |
|
216 RUN_UTILS MakeReadWrite c:\dummyDir\datafileb.dat |
|
217 RUN_UTILS MakeReadWrite c:\dummyDir\datafilea.dat |
|
218 |
|
219 // Run test step that fails before adding to the journal entry that dummyDir is to be removed |
|
220 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini fail_before_journal_remove_dir |
|
221 |
|
222 // Roll back from previous failure, ensure that the files are still there |
|
223 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini directory_present |
|
224 |
|
225 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0011 |
|
226 |
|
227 |
|
228 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0012 |
|
229 //! @SYMTestCaseDesc Test that failure after adding a journal entry for removal is handled gracefully |
|
230 //! @SYMTestPriority Medium |
|
231 //! @SYMTestExpectedResults The test completes with all files present. |
|
232 //! @SYMDEF DEF101378 |
|
233 //! @SYMDevelopedForRelease Argus |
|
234 |
|
235 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0012 |
|
236 |
|
237 // Preliminary cleanup |
|
238 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
239 |
|
240 RUN_UTILS MkDir c:\dummyDir |
|
241 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\dummyDir\datafileb.dat |
|
242 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\dummyDir\datafilea.dat |
|
243 RUN_UTILS MakeReadWrite c:\dummyDir\datafileb.dat |
|
244 RUN_UTILS MakeReadWrite c:\dummyDir\datafilea.dat |
|
245 |
|
246 // Run test step that fails after adding to the journal entry that dummyDir is to be removed |
|
247 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini fail_after_journal_remove_dir |
|
248 |
|
249 // Roll back from previous failure, ensure the files are still there |
|
250 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini directory_present |
|
251 |
|
252 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0012 |
|
253 |
|
254 |
|
255 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0013 |
|
256 //! @SYMTestCaseDesc Test that failure before removing a directory is handled gracefully |
|
257 //! @SYMTestPriority Medium |
|
258 //! @SYMTestExpectedResults The test completes with all files present. |
|
259 //! @SYMDEF DEF101378 |
|
260 //! @SYMDevelopedForRelease Argus |
|
261 |
|
262 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0013 |
|
263 |
|
264 // Preliminary cleanup |
|
265 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
266 |
|
267 RUN_UTILS MkDir c:\dummyDir |
|
268 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\dummyDir\datafileb.dat |
|
269 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\dummyDir\datafilea.dat |
|
270 RUN_UTILS MakeReadWrite c:\dummyDir\datafileb.dat |
|
271 RUN_UTILS MakeReadWrite c:\dummyDir\datafilea.dat |
|
272 |
|
273 // Run test step that fails before removing dummyDir |
|
274 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini fail_before_action_remove_dir |
|
275 |
|
276 // Roll back from previous failure, ensure the files are still there |
|
277 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini directory_present |
|
278 |
|
279 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0013 |
|
280 |
|
281 |
|
282 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0014 |
|
283 //! @SYMTestCaseDesc Test that failure after removing a directory is handled gracefully |
|
284 //! @SYMTestPriority Medium |
|
285 //! @SYMTestExpectedResults The test completes with all files present. |
|
286 //! @SYMDEF DEF101378 |
|
287 //! @SYMDevelopedForRelease Argus |
|
288 |
|
289 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0014 |
|
290 // Preliminary cleanup |
|
291 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
292 |
|
293 RUN_UTILS MkDir c:\dummyDir |
|
294 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\dummyDir\datafileb.dat |
|
295 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\dummyDir\datafilea.dat |
|
296 RUN_UTILS MakeReadWrite c:\dummyDir\datafileb.dat |
|
297 RUN_UTILS MakeReadWrite c:\dummyDir\datafilea.dat |
|
298 |
|
299 // Run test step that fails after removing dummyDir |
|
300 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini fail_after_action_remove_dir |
|
301 |
|
302 // Roll back from previous failure, ensure the files are still there |
|
303 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini directory_present |
|
304 |
|
305 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0014 |
|
306 |
|
307 |
|
308 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0015 |
|
309 //! @SYMTestCaseDesc Test that roll forward of directory uninstallation works correctly |
|
310 //! @SYMTestPriority Medium |
|
311 //! @SYMTestExpectedResults The test completes with all files deleted. |
|
312 //! @SYMDEF DEF101378 |
|
313 //! @SYMDevelopedForRelease Argus |
|
314 |
|
315 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0015 |
|
316 |
|
317 // Preliminary cleanup |
|
318 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
319 |
|
320 RUN_UTILS MkDir c:\dummyDir |
|
321 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\dummyDir\datafileb.dat |
|
322 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini c:\dummyDir\datafilea.dat |
|
323 RUN_UTILS MakeReadWrite c:\dummyDir\datafileb.dat |
|
324 RUN_UTILS MakeReadWrite c:\dummyDir\datafilea.dat |
|
325 |
|
326 // Run test step that fails after removing dummyDir |
|
327 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini fail_before_action_remove_dir |
|
328 |
|
329 // Roll forward - check that files will get deleted |
|
330 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini fail_none |
|
331 |
|
332 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0015 |
|
333 |
|
334 |
|
335 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0016 |
|
336 //! @SYMTestCaseDesc Test that adding and removing a directory in the same transaction will remove it |
|
337 //! @SYMTestPriority Medium |
|
338 //! @SYMTestExpectedResults The test completes with all files cleaned-up. |
|
339 //! @SYMDEF DEF101378 |
|
340 //! @SYMDevelopedForRelease Argus |
|
341 |
|
342 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0016 |
|
343 |
|
344 // Preliminary cleanup |
|
345 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
346 |
|
347 // Run test step that creates c:\dummyDir with a test file, and then removes it in the same transaction. |
|
348 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini add_and_remove_dir |
|
349 |
|
350 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0016 |
|
351 |
|
352 |
|
353 //! @SYMTestCaseID API-SEC-INTEGRITYSERVICES-B-0017 |
|
354 //! @SYMTestCaseDesc Test that adding and removing a directory in the same transaction with failure before removal will rollback correctly |
|
355 //! @SYMTestPriority Medium |
|
356 //! @SYMTestExpectedResults The test completes with all files cleaned-up. |
|
357 //! @SYMDEF DEF101378 |
|
358 //! @SYMDevelopedForRelease Argus |
|
359 |
|
360 START_TESTCASE API-SEC-INTEGRITYSERVICES-B-0017 |
|
361 |
|
362 // Preliminary cleanup |
|
363 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
364 |
|
365 // Run test step that creates c:\dummyDir with a test file, and then removes it in the same transaction while failing before removal. |
|
366 RUN_TEST_STEP 100 tststestserver Install z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini add_and_remove_dir_fail_before_remove |
|
367 |
|
368 // Roll back from previous failure, ensure that no files are present |
|
369 RUN_TEST_STEP 100 tststestserver Recover z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini directory_absent |
|
370 |
|
371 END_TESTCASE API-SEC-INTEGRITYSERVICES-B-0017 |
|
372 |
|
373 |
|
374 RUN_TEST_STEP 100 tststestserver Cleanup z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Cleanup |
|
375 |
|
376 |
|
377 //! @SYMTestCaseID API-SEC-Journalfile_unit_tests-0001 |
|
378 //! @SYMTestStatus 3. Released |
|
379 |
|
380 START_TESTCASE API-SEC-Journalfile_unit_tests-0001 |
|
381 |
|
382 RUN_TEST_STEP 100 tststestserver JournalFileUnitTest z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini JournalFile_unit_tests |
|
383 |
|
384 END_TESTCASE API-SEC-Journalfile_unit_tests-0001 |
|
385 |
|
386 |
|
387 //! @SYMTestCaseID API-SEC-Journalfile_unit_tests_OOM-0001 |
|
388 //! @SYMTestStatus 3. Released |
|
389 |
|
390 START_TESTCASE API-SEC-Journalfile_unit_tests_OOM-0001 |
|
391 |
|
392 RUN_TEST_STEP 100 tststestserver JournalFileUnitTestAdd z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini JournalFile_unit_tests_oom |
|
393 RUN_TEST_STEP 100 tststestserver JournalFileUnitTestTemp z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini JournalFile_unit_tests_oom |
|
394 RUN_TEST_STEP 100 tststestserver JournalFileUnitTestRemove z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini JournalFile_unit_tests_oom |
|
395 RUN_UTILS CopyFile z:\tusif\tsts\tintegrityservices\scripts\data\unittests\myjournal.log c:\sts_test_dir\myjournal.log |
|
396 RUN_TEST_STEP 100 tststestserver JournalFileUnitTestRead z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini JournalFile_unit_tests_oom |
|
397 RUN_UTILS DeleteFile c:\sts_test_dir\myjournal.log |
|
398 RUN_TEST_STEP 100 tststestserver JournalFileUnitTestEvent z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini JournalFile_unit_tests_oom |
|
399 |
|
400 END_TESTCASE API-SEC-Journalfile_unit_tests_OOM-0001 |
|
401 |
|
402 |
|
403 //! @SYMTestCaseID API-SEC-Journal_unit_tests-0001 |
|
404 //! @SYMTestStatus 3. Released |
|
405 |
|
406 START_TESTCASE API-SEC-Journal_unit_tests-0001 |
|
407 |
|
408 RUN_TEST_STEP 100 tststestserver JournalUnitTest z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Journal_unit_tests |
|
409 |
|
410 END_TESTCASE API-SEC-Journal_unit_tests-0001 |
|
411 |
|
412 |
|
413 //! @SYMTestCaseID API-SEC-Journal_unit_tests_OOM-0001 |
|
414 //! @SYMTestStatus 3. Released |
|
415 |
|
416 START_TESTCASE API-SEC-Journal_unit_tests_OOM-0001 |
|
417 |
|
418 RUN_TEST_STEP 100 tststestserver JournalUnitTestInstall z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Journal_unit_tests_oom |
|
419 RUN_TEST_STEP 100 tststestserver JournalUnitTestRollback z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Journal_unit_tests_oom |
|
420 |
|
421 END_TESTCASE API-SEC-Journal_unit_tests_OOM-0001 |
|
422 |
|
423 |
|
424 //START_TESTCASE Integrityservices_unit_tests_OOM |
|
425 //RUN_TEST_STEP 100 tststestserver IntegrityservicesUnitTestInstall z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Integrityservices_unit_tests_OOM |
|
426 //RUN_TEST_STEP 100 tststestserver IntegrityservicesUnitTestRollback z:\tusif\tsts\tintegrityservices\scripts\tintegrityservices.ini Integrityservices_unit_tests_OOM |
|
427 //END_TESTCASE Integrityservices_unit_tests_OOM |
|