Skip to content

test: add integration test for post list endpoint creator scoping - #772

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
oluwa1to9-web:feature/integration-test-post-list-creator-scoping
Aug 26, 2026
Merged

test: add integration test for post list endpoint creator scoping#772
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
oluwa1to9-web:feature/integration-test-post-list-creator-scoping

Conversation

@oluwa1to9-web

Copy link
Copy Markdown
Contributor

Summary

Adds an integration test that verifies the GET /api/v1/creators/:id/posts endpoint correctly scopes posts to the requested creator's wallet, preventing cross-creator post leakage.

What changed

New integration test file: src/modules/creator/post-list-creator-scoping.integration.test.ts

The test seeds 2 posts from Creator A and 3 posts from Creator B, then hits the post list endpoint for each creator and asserts:

  • Exactly 2 posts returned when requesting Creator A
  • Exactly 3 posts returned when requesting Creator B
  • No cross-creator leakage — none of Creator B's posts appear in Creator A's response and vice versa

Acceptance Criteria

  • Only creator A's posts returned when requesting creator A
  • Correct count returned
  • No cross-creator post leakage

Closes #771

Adds an integration test that seeds posts from two different creators
and verifies the post list endpoint is correctly scoped to the requested
creator's wallet, preventing cross-creator post leakage.

Closes accesslayerorg#771
@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@oluwa1to9-web Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@oluwa1to9-web
oluwa1to9-web force-pushed the feature/integration-test-post-list-creator-scoping branch 2 times, most recently from 5e20a37 to 35f61db Compare August 25, 2026 17:10
@Chucks1093
Chucks1093 merged commit 21bdcc5 into accesslayerorg:main Aug 26, 2026
1 check passed
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.

Add integration test for the post list endpoint returning only posts belonging to the requested creator

2 participants