Skip to content

tests: improve pulse integration tests (bug 2024547)#86

Open
shtrom wants to merge 6 commits intomainfrom
bug2024547/improve-integration-tests
Open

tests: improve pulse integration tests (bug 2024547)#86
shtrom wants to merge 6 commits intomainfrom
bug2024547/improve-integration-tests

Conversation

@shtrom
Copy link
Copy Markdown
Member

@shtrom shtrom commented Mar 27, 2026

  • docker: use container naming consistent across projects

  • tests: improve pulse integration tests

    Add tests to exercise routing_key mismatches, and fix tests for
    successful delivery that were passing by luck.

    One key learning here is that each binding needs to be attached to a
    separate queue, otherwise any worker listening to a given queue may
    receive all messages matching any of the bindings.

  • lint: format test_config_files with ruff

  • tests: skip suite configuration placeholder

  • build: add rudimentary Makefile

shtrom added 3 commits March 26, 2026 18:00
Add tests to exercise routing_key mismatches, and fix tests for
successful delivery that were passing by luck.

One key learning here is that each binding needs to be attached to a
separate queue, otherwise any worker listening to a given queue may
receive all messages matching the bindings.
@shtrom shtrom requested review from cgsheeh and dklawren March 27, 2026 08:15
@shtrom shtrom force-pushed the bug2024547/improve-integration-tests branch from f95c481 to 8831746 Compare March 30, 2026 07:07
@shtrom shtrom force-pushed the bug2024547/improve-integration-tests branch from 8831746 to 09a81f9 Compare March 30, 2026 07:08

with (
connection.Consumer(queue, auto_declare=False, callbacks=[callback]),
pytest.raises(TimeoutError),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we check the TimeoutError for a specific message?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean when a specific message is expected?

I don't think so, except for the structure of the test: here we send a single message with a non-default routing key, and listen on the default queue, to make sure that message doesn't show up there. So our expectations are never to get into the callback for the consumer, and a Timeout when it gives up waiting.

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.

2 participants