Commit 82ae2cf
authored
Abstract polaris-runtime-service tests for all persistence implementations (#2106)
The NoSQL persistence implementation has to run the Iceberg table & view catalog plus the Polaris specific tests as well. Reusing existing tests is beneficial to avoid a lot of code duplcation.
This change moves the actual tests to `Abstract*` classes and refactors the existing tests to extend those. The NoSQL persistence work extends the same `Abstract*` classes but runs with different Quarkus test profiles.1 parent 79ebe84 commit 82ae2cf
File tree
11 files changed
+182
-121
lines changed- runtime/service/src/test/java/org/apache/polaris/service/quarkus
- admin
- catalog
11 files changed
+182
-121
lines changedLines changed: 11 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
132 | 124 | | |
133 | 125 | | |
134 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
116 | | - | |
| 114 | + | |
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
| |||
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
182 | | - | |
183 | | - | |
| 180 | + | |
184 | 181 | | |
185 | 182 | | |
186 | 183 | | |
| |||
195 | 192 | | |
196 | 193 | | |
197 | 194 | | |
198 | | - | |
199 | | - | |
| 195 | + | |
200 | 196 | | |
201 | 197 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
219 | 203 | | |
220 | 204 | | |
221 | 205 | | |
| |||
271 | 255 | | |
272 | 256 | | |
273 | 257 | | |
274 | | - | |
| 258 | + | |
275 | 259 | | |
276 | 260 | | |
| 261 | + | |
| 262 | + | |
277 | 263 | | |
278 | 264 | | |
279 | 265 | | |
280 | 266 | | |
281 | 267 | | |
282 | 268 | | |
283 | 269 | | |
| 270 | + | |
| 271 | + | |
284 | 272 | | |
285 | 273 | | |
286 | 274 | | |
| |||
301 | 289 | | |
302 | 290 | | |
303 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
304 | 296 | | |
305 | 297 | | |
306 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 25 | | |
29 | 26 | | |
30 | 27 | | |
| |||
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
61 | | - | |
62 | 58 | | |
63 | 59 | | |
64 | 60 | | |
| |||
89 | 85 | | |
90 | 86 | | |
91 | 87 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 88 | + | |
95 | 89 | | |
96 | 90 | | |
97 | 91 | | |
98 | 92 | | |
99 | | - | |
100 | | - | |
| 93 | + | |
101 | 94 | | |
102 | 95 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
118 | 102 | | |
119 | 103 | | |
120 | 104 | | |
| |||
159 | 143 | | |
160 | 144 | | |
161 | 145 | | |
| 146 | + | |
| 147 | + | |
162 | 148 | | |
163 | 149 | | |
164 | 150 | | |
165 | 151 | | |
166 | 152 | | |
167 | 153 | | |
| 154 | + | |
168 | 155 | | |
169 | 156 | | |
170 | 157 | | |
| |||
184 | 171 | | |
185 | 172 | | |
186 | 173 | | |
187 | | - | |
| 174 | + | |
| 175 | + | |
188 | 176 | | |
189 | 177 | | |
190 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| |||
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
62 | | - | |
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
| |||
91 | 87 | | |
92 | 88 | | |
93 | 89 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 90 | + | |
113 | 91 | | |
114 | 92 | | |
115 | 93 | | |
| |||
152 | 130 | | |
153 | 131 | | |
154 | 132 | | |
| 133 | + | |
| 134 | + | |
155 | 135 | | |
156 | 136 | | |
157 | 137 | | |
158 | 138 | | |
159 | 139 | | |
160 | 140 | | |
161 | 141 | | |
| 142 | + | |
| 143 | + | |
162 | 144 | | |
163 | 145 | | |
164 | 146 | | |
| |||
176 | 158 | | |
177 | 159 | | |
178 | 160 | | |
179 | | - | |
| 161 | + | |
| 162 | + | |
180 | 163 | | |
181 | 164 | | |
182 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
43 | | - | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
| |||
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
71 | | - | |
72 | 67 | | |
73 | 68 | | |
74 | 69 | | |
| |||
108 | 103 | | |
109 | 104 | | |
110 | 105 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 106 | + | |
129 | 107 | | |
130 | 108 | | |
131 | 109 | | |
| |||
178 | 156 | | |
179 | 157 | | |
180 | 158 | | |
| 159 | + | |
| 160 | + | |
181 | 161 | | |
182 | 162 | | |
183 | 163 | | |
184 | 164 | | |
185 | 165 | | |
186 | 166 | | |
187 | 167 | | |
| 168 | + | |
| 169 | + | |
188 | 170 | | |
189 | 171 | | |
190 | 172 | | |
| |||
202 | 184 | | |
203 | 185 | | |
204 | 186 | | |
205 | | - | |
| 187 | + | |
| 188 | + | |
206 | 189 | | |
207 | 190 | | |
208 | 191 | | |
| |||
0 commit comments