Commit daccd2a
committed
fix(V2): scope live-api empty-db check to home org
Enabling GOVERNANCE_BODY_ID in the v2 live-api job makes the node sync
in data owned by other organizations. checkDatabaseEmpty counted every
record across all tables, so the synced non-home data tripped the POST
phase's empty-database precondition and aborted the whole run before any
data tests executed.
Query each table with orgUid=me so the precondition only considers
home-org-owned records (leftover test state), ignoring legitimately
synced foreign data.1 parent 29c6003 commit daccd2a
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
505 | 508 | | |
506 | 509 | | |
507 | 510 | | |
| |||
513 | 516 | | |
514 | 517 | | |
515 | 518 | | |
516 | | - | |
| 519 | + | |
517 | 520 | | |
518 | 521 | | |
519 | 522 | | |
520 | | - | |
| 523 | + | |
521 | 524 | | |
522 | 525 | | |
523 | 526 | | |
| |||
0 commit comments