Skip to content

fix(tests): align tombstone assertions with actual SQL - #644

Open
jacoby149 wants to merge 2 commits into
devfrom
fix/tombstone-test-assertions
Open

fix(tests): align tombstone assertions with actual SQL#644
jacoby149 wants to merge 2 commits into
devfrom
fix/tombstone-test-assertions

Conversation

@jacoby149

Copy link
Copy Markdown
Owner

Fixes 5 failing tests in PR #643's api (lint + test) check.

The tests asserted that SQL queries contained QUALIFY and now() but the actual implementation uses:

  • row_number() OVER(...) subqueries (not QUALIFY) for deduplication in read_documents, get_app_contracts, and get_provider_service_contracts
  • now64(6) (not now()) for tombstone timestamps in delete_group and revoke_app_contract

Tests updated to assert against the actual SQL patterns used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant