Commit 4c96033
authored
Improve cluster metadata and metadata persistence tests (temporalio#7249)
## What changed?
Improved persistence tests to account for differing behavior of some
persistence backends.
## Why?
These tests made assumptions about persistence that don't necessarily
apply to all persistence backends. Specifically the tests assumed:
- All persistence backends return a final empty page when paginating
results
- All persistence backends are guaranteed to expire TTL'd records
(nearly) instantly upon expiration.
## How did you test it?
Ran the tests with various persistence backends
## Potential risks
This is a test-only update
## Documentation
No changes.
## Is hotfix candidate?
No1 parent 833193c commit 4c96033
File tree
2 files changed
+44
-33
lines changed- common/persistence/persistence-tests
2 files changed
+44
-33
lines changedLines changed: 26 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| 106 | + | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| |||
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | | - | |
152 | | - | |
153 | | - | |
| 150 | + | |
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
| |||
223 | 220 | | |
224 | 221 | | |
225 | 222 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 223 | + | |
230 | 224 | | |
231 | 225 | | |
232 | 226 | | |
| |||
263 | 257 | | |
264 | 258 | | |
265 | 259 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 260 | + | |
| 261 | + | |
270 | 262 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
275 | 277 | | |
276 | | - | |
277 | | - | |
278 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
1337 | | - | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1338 | 1341 | | |
1339 | 1342 | | |
1340 | 1343 | | |
1341 | 1344 | | |
1342 | 1345 | | |
1343 | | - | |
1344 | | - | |
| 1346 | + | |
| 1347 | + | |
1345 | 1348 | | |
1346 | 1349 | | |
1347 | 1350 | | |
| |||
1415 | 1418 | | |
1416 | 1419 | | |
1417 | 1420 | | |
1418 | | - | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
1419 | 1425 | | |
1420 | 1426 | | |
1421 | 1427 | | |
1422 | 1428 | | |
1423 | 1429 | | |
1424 | | - | |
1425 | | - | |
| 1430 | + | |
| 1431 | + | |
1426 | 1432 | | |
1427 | 1433 | | |
1428 | 1434 | | |
| |||
1435 | 1441 | | |
1436 | 1442 | | |
1437 | 1443 | | |
1438 | | - | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
1439 | 1448 | | |
1440 | 1449 | | |
1441 | 1450 | | |
1442 | 1451 | | |
1443 | 1452 | | |
1444 | | - | |
1445 | | - | |
| 1453 | + | |
| 1454 | + | |
1446 | 1455 | | |
1447 | 1456 | | |
1448 | 1457 | | |
| |||
0 commit comments