Skip to content

chore(coderd/notifications/notificationstest): enqueue messages in FakeEnqueuer #17449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Apr 17, 2025

Goes part of the way towards #15481

We now insert notification messages in FakeEnqueuer which should still have the desired effect of testing RBAC while also exercising these code paths in the rest of our tests.

As part of #17412 I'll want to be testing that pubsub notifications are actually sent, and this should ensure that the code path gets hit.

Longer-term, I'd like to phase out FakeEnqueuer entirely, but this would require all of the below tests to be rewritten.

Right now this doesn't work with dbmem due to a re-entrant lock when attempting to call EnqueueNotificationMessage().

@johnstcn johnstcn self-assigned this Apr 17, 2025
@johnstcn johnstcn changed the title chore(notificationstest): enqueue messages in FakeEnqueuer chore(notifications/notificationstest): enqueue messages in FakeEnqueuer Apr 17, 2025
@johnstcn johnstcn changed the title chore(notifications/notificationstest): enqueue messages in FakeEnqueuer chore(coderd/notifications/notificationstest): enqueue messages in FakeEnqueuer Apr 17, 2025
@johnstcn johnstcn closed this Apr 17, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant