Skip to content

test(integration): assert project_id is stored on write path - #28

Merged
jpricardo merged 2 commits into
feat/multi-tenancyfrom
feat/project-id-ingest
Apr 19, 2026
Merged

test(integration): assert project_id is stored on write path#28
jpricardo merged 2 commits into
feat/multi-tenancyfrom
feat/project-id-ingest

Conversation

@jpricardo

Copy link
Copy Markdown
Owner

Summary

  • All pipeline changes for threading project_id were already in place on feat/multi-tenancy (middleware stores key.ProjectID in context, handlers pass it to RabbitMQ and RPC calls, listener forwards it via RPCLogPayload)
  • TestWritePathRoundTrip polled MongoDB but returned on the first document hit without checking the project_id field — leaving acceptance criterion Add batched event delivery with retry, timeout, and queue management #1 uncovered
  • This PR breaks out of the poll loop and then asserts project_id == "integration" (the project seeded by testAPIKey) before the test exits

Closes #11

Test plan

  • go test -tags integration ./... -v -timeout 5m in logwolf-server/integration passes
  • TestWritePathRoundTrip fails if project_id is not stored (regression guard)

🤖 Generated with Claude Code

Closes #11

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
logwolf-docs Ready Ready Preview, Comment Apr 19, 2026 8:08pm

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jpricardo
jpricardo merged commit f098f72 into feat/multi-tenancy Apr 19, 2026
5 checks 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.

1 participant