sl@0
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// @file
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
//! @SYMTestSuiteName PDS-TEF-SQL-SUITE
|
sl@0
|
19 |
//! @SYMScriptTestEnvironment TEF
|
sl@0
|
20 |
//! @internalComponent
|
sl@0
|
21 |
//! @test
|
sl@0
|
22 |
|
sl@0
|
23 |
PRINT Run SQL Tests
|
sl@0
|
24 |
|
sl@0
|
25 |
LOAD_SUITE te_SQL_Suite
|
sl@0
|
26 |
LOAD_SUITE te_SQL_Suite_cap1
|
sl@0
|
27 |
LOAD_SUITE te_SQL_Suite_cap2
|
sl@0
|
28 |
|
sl@0
|
29 |
RUN_UTILS MkDir c:\private\
|
sl@0
|
30 |
RUN_UTILS MkDir c:\private\102827c7\
|
sl@0
|
31 |
RUN_UTILS MkDir c:\private\102827c8\
|
sl@0
|
32 |
RUN_UTILS MkDir c:\private\10281e17\
|
sl@0
|
33 |
|
sl@0
|
34 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]sec.db
|
sl@0
|
35 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]sec1.db
|
sl@0
|
36 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]sec2.db
|
sl@0
|
37 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]sec4.db
|
sl@0
|
38 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c8]sec.db
|
sl@0
|
39 |
RUN_UTILS DeleteFile c:\private\102827c7\sec.db
|
sl@0
|
40 |
RUN_UTILS DeleteFile c:\private\102827c8\sec.db
|
sl@0
|
41 |
RUN_UTILS DeleteFile c:\private\102827c8\sec3.db
|
sl@0
|
42 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]sec_copy.db
|
sl@0
|
43 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]secpol.db
|
sl@0
|
44 |
|
sl@0
|
45 |
|
sl@0
|
46 |
START_TESTCASE SYSLIB-SQL-CIT-1839
|
sl@0
|
47 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1839
|
sl@0
|
48 |
//! @SYMTestCaseDesc PlatSec tests creating databases
|
sl@0
|
49 |
//! @SYMTestPriority High
|
sl@0
|
50 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
51 |
//! @SYMTestExpectedResults
|
sl@0
|
52 |
//! The test looks for errors and content
|
sl@0
|
53 |
//! within the database. If these are not seen test errors
|
sl@0
|
54 |
//! will be generated.
|
sl@0
|
55 |
//!
|
sl@0
|
56 |
//! @SYMREQ REQ5794
|
sl@0
|
57 |
|
sl@0
|
58 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create1
|
sl@0
|
59 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create1a
|
sl@0
|
60 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create1b
|
sl@0
|
61 |
RUN_TEST_STEP 100 te_SQL_Suite_cap1 CSQLDDT z:\TEF_SQL\security.ini create2
|
sl@0
|
62 |
RUN_TEST_STEP 100 te_SQL_Suite_cap1 CSQLDDT z:\TEF_SQL\security.ini create3
|
sl@0
|
63 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create4
|
sl@0
|
64 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create5
|
sl@0
|
65 |
RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create6
|
sl@0
|
66 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create7
|
sl@0
|
67 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create8
|
sl@0
|
68 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create9
|
sl@0
|
69 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create10
|
sl@0
|
70 |
RUN_TEST_STEP 100 te_SQL_Suite_cap2 CSQLDDT z:\TEF_SQL\security.ini create11
|
sl@0
|
71 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create12
|
sl@0
|
72 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini create12a
|
sl@0
|
73 |
RUN_TEST_STEP 100 te_SQL_Suite_cap2 CSQLDDT z:\TEF_SQL\security.ini create12b
|
sl@0
|
74 |
END_TESTCASE SYSLIB-SQL-CIT-1839
|
sl@0
|
75 |
|
sl@0
|
76 |
START_TESTCASE SYSLIB-SQL-CIT-1840
|
sl@0
|
77 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1840
|
sl@0
|
78 |
//! @SYMTestCaseDesc PlatSec tests reading databases
|
sl@0
|
79 |
//! @SYMTestPriority High
|
sl@0
|
80 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
81 |
//! @SYMTestExpectedResults
|
sl@0
|
82 |
//! The test looks for errors and content
|
sl@0
|
83 |
//! within the database. If these are not seen test errors
|
sl@0
|
84 |
//! will be generated.
|
sl@0
|
85 |
//!
|
sl@0
|
86 |
//! @SYMREQ REQ5794
|
sl@0
|
87 |
|
sl@0
|
88 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini read1
|
sl@0
|
89 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini read2
|
sl@0
|
90 |
RUN_TEST_STEP 100 te_SQL_Suite_cap1 CSQLDDT z:\TEF_SQL\security.ini read3
|
sl@0
|
91 |
RUN_TEST_STEP 100 te_SQL_Suite_cap1 CSQLDDT z:\TEF_SQL\security.ini read4
|
sl@0
|
92 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini read4
|
sl@0
|
93 |
END_TESTCASE SYSLIB-SQL-CIT-1840
|
sl@0
|
94 |
|
sl@0
|
95 |
|
sl@0
|
96 |
START_TESTCASE SYSLIB-SQL-CIT-1841
|
sl@0
|
97 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1841
|
sl@0
|
98 |
//! @SYMTestCaseDesc PlatSec tests writing to databases
|
sl@0
|
99 |
//! @SYMTestPriority High
|
sl@0
|
100 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
101 |
//! @SYMTestExpectedResults
|
sl@0
|
102 |
//! The test looks for errors and content
|
sl@0
|
103 |
//! within the database. If these are not seen test errors
|
sl@0
|
104 |
//! will be generated.
|
sl@0
|
105 |
//!
|
sl@0
|
106 |
//! @SYMREQ REQ5794
|
sl@0
|
107 |
RUN_TEST_STEP 100 te_SQL_Suite_cap1 CSQLDDT z:\TEF_SQL\security.ini write1
|
sl@0
|
108 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini write2
|
sl@0
|
109 |
END_TESTCASE SYSLIB-SQL-CIT-1841
|
sl@0
|
110 |
|
sl@0
|
111 |
START_TESTCASE SYSLIB-SQL-CIT-1842
|
sl@0
|
112 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1842
|
sl@0
|
113 |
//! @SYMTestCaseDesc PlatSec tests changing the schema of databases
|
sl@0
|
114 |
//! @SYMTestPriority High
|
sl@0
|
115 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
116 |
//! @SYMTestExpectedResults
|
sl@0
|
117 |
//! The test looks for errors and content
|
sl@0
|
118 |
//! within the database. If these are not seen test errors
|
sl@0
|
119 |
//! will be generated.
|
sl@0
|
120 |
//!
|
sl@0
|
121 |
//! @SYMREQ REQ5794
|
sl@0
|
122 |
|
sl@0
|
123 |
RUN_TEST_STEP 100 te_SQL_Suite_cap1 CSQLDDT z:\TEF_SQL\security.ini schema1
|
sl@0
|
124 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini schema2
|
sl@0
|
125 |
END_TESTCASE SYSLIB-SQL-CIT-1842
|
sl@0
|
126 |
|
sl@0
|
127 |
START_TESTCASE SYSLIB-SQL-CIT-1843
|
sl@0
|
128 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1843
|
sl@0
|
129 |
//! @SYMTestCaseDesc PlatSec tests checking the enforcement of security during attach operations
|
sl@0
|
130 |
//! @SYMTestPriority High
|
sl@0
|
131 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
132 |
//! @SYMTestExpectedResults
|
sl@0
|
133 |
//! The test looks for errors and content
|
sl@0
|
134 |
//! within the database. If these are not seen test errors
|
sl@0
|
135 |
//! will be generated.
|
sl@0
|
136 |
//!
|
sl@0
|
137 |
//! @SYMREQ REQ5794
|
sl@0
|
138 |
|
sl@0
|
139 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini attach1
|
sl@0
|
140 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini attach2
|
sl@0
|
141 |
RUN_TEST_STEP -1 te_SQL_Suite_cap1 CSQLDDT z:\TEF_SQL\security.ini attach3
|
sl@0
|
142 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini attach4
|
sl@0
|
143 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini attach5
|
sl@0
|
144 |
// RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini attach6
|
sl@0
|
145 |
END_TESTCASE SYSLIB-SQL-CIT-1843
|
sl@0
|
146 |
|
sl@0
|
147 |
START_TESTCASE SYSLIB-SQL-CIT-1844
|
sl@0
|
148 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1844
|
sl@0
|
149 |
//! @SYMTestCaseDesc PlatSec tests checking the DB Copy operations within the security constraints
|
sl@0
|
150 |
//! @SYMTestPriority High
|
sl@0
|
151 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
152 |
//! @SYMTestExpectedResults
|
sl@0
|
153 |
//! The test looks for errors and content
|
sl@0
|
154 |
//! within the database. If these are not seen test errors
|
sl@0
|
155 |
//! will be generated.
|
sl@0
|
156 |
//!
|
sl@0
|
157 |
//! @SYMREQ REQ5794
|
sl@0
|
158 |
|
sl@0
|
159 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini copy1
|
sl@0
|
160 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini copy2
|
sl@0
|
161 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini copy3
|
sl@0
|
162 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini copy4
|
sl@0
|
163 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini copy5
|
sl@0
|
164 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini copy6
|
sl@0
|
165 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini copy7
|
sl@0
|
166 |
END_TESTCASE SYSLIB-SQL-CIT-1844
|
sl@0
|
167 |
|
sl@0
|
168 |
START_TESTCASE SYSLIB-SQL-CIT-1845
|
sl@0
|
169 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1845
|
sl@0
|
170 |
//! @SYMTestCaseDesc PlatSec tests checking that the table level policy has no effect
|
sl@0
|
171 |
//! as it's not supported yet
|
sl@0
|
172 |
//! @SYMTestPriority High
|
sl@0
|
173 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
174 |
//! @SYMTestExpectedResults
|
sl@0
|
175 |
//! The test looks for errors and content
|
sl@0
|
176 |
//! within the database. If these are not seen test errors
|
sl@0
|
177 |
//! will be generated.
|
sl@0
|
178 |
//!
|
sl@0
|
179 |
//! @SYMREQ REQ5794
|
sl@0
|
180 |
|
sl@0
|
181 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLCDT z:\TEF_SQL\security.ini policy1
|
sl@0
|
182 |
RUN_TEST_STEP 100 te_SQL_Suite_cap1 CSQLCDT z:\TEF_SQL\security.ini policy2
|
sl@0
|
183 |
END_TESTCASE SYSLIB-SQL-CIT-1845
|
sl@0
|
184 |
|
sl@0
|
185 |
RUN_UTILS DeleteFile c:\ext.pol
|
sl@0
|
186 |
|
sl@0
|
187 |
START_TESTCASE SYSLIB-SQL-CIT-1846
|
sl@0
|
188 |
//! @SYMTestCaseID SYSLIB-SQL-CIT-1846
|
sl@0
|
189 |
//! @SYMTestCaseDesc PlatSec tests for RSalSecurity::Externalize and Internalize methods
|
sl@0
|
190 |
//! @SYMTestPriority High
|
sl@0
|
191 |
//! @SYMTestActions See description and the config file.
|
sl@0
|
192 |
//! @SYMTestExpectedResults
|
sl@0
|
193 |
//! The test looks for errors and content
|
sl@0
|
194 |
//! within the database. If these are not seen test errors
|
sl@0
|
195 |
//! will be generated.
|
sl@0
|
196 |
//!
|
sl@0
|
197 |
//! @SYMREQ REQ5794
|
sl@0
|
198 |
|
sl@0
|
199 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini External1
|
sl@0
|
200 |
RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini External2
|
sl@0
|
201 |
RUN_TEST_STEP 100 te_SQL_Suite_cap1 CSQLDDT z:\TEF_SQL\security.ini External3
|
sl@0
|
202 |
RUN_UTILS MakeReadWrite c:\ext.pol
|
sl@0
|
203 |
RUN_UTILS DeleteFile c:\ext.pol
|
sl@0
|
204 |
RUN_UTILS CopyFile z:\TEF_SQL\TestData\ext.pol c:\ext.pol
|
sl@0
|
205 |
RUN_UTILS MakeReadWrite c:\ext.pol
|
sl@0
|
206 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]ext.db
|
sl@0
|
207 |
RUN_PANIC_STEP_RESULT 4 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\security.ini External2
|
sl@0
|
208 |
END_TESTCASE SYSLIB-SQL-CIT-1846
|
sl@0
|
209 |
|
sl@0
|
210 |
RUN_UTILS DeleteFile c:\ext.pol
|
sl@0
|
211 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]sec.db
|
sl@0
|
212 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]sec1.db
|
sl@0
|
213 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]sec2.db
|
sl@0
|
214 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]sec4.db
|
sl@0
|
215 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c8]sec.db
|
sl@0
|
216 |
RUN_UTILS DeleteFile c:\private\102827c7\sec.db
|
sl@0
|
217 |
RUN_UTILS DeleteFile c:\private\102827c8\sec.db
|
sl@0
|
218 |
RUN_UTILS DeleteFile c:\private\102827c8\sec3.db
|
sl@0
|
219 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]sec_copy.db
|
sl@0
|
220 |
RUN_UTILS DeleteFile c:\private\10281e17\[102827c7]secpol.db
|
sl@0
|
221 |
|
sl@0
|
222 |
//cleanup
|
sl@0
|
223 |
RUN_UTILS DeleteDirectory c:\private\102827c7\
|
sl@0
|
224 |
RUN_UTILS DeleteDirectory c:\private\102827c8\
|
sl@0
|
225 |
|