-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add Unit test for AMQP Client Link with max message size = 0 #43582
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a unit test to verify AMQP link negotiation behavior when the client sets max_message_size=0 (unlimited) and the server responds with a specific limit (20MB). The test ensures the link correctly adopts the server's limit as the final maximum message size.
Key Changes:
- Added test case
test_max_message_size_negotiation_with_client_unlimitedto validate AMQP attach frame negotiation - Imported additional dependencies (
Source,Target,Mock,patch,LINK_MAX_MESSAGE_SIZE) to support the new test
sdk/eventhub/azure-eventhub/tests/pyamqp_tests/unittest/test_link.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhub/tests/pyamqp_tests/unittest/test_link.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhub/tests/pyamqp_tests/unittest/test_link.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhub/tests/pyamqp_tests/unittest/test_link.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhub/tests/pyamqp_tests/unittest/test_link.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhub/tests/pyamqp_tests/unittest/test_link.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhub/tests/pyamqp_tests/unittest/test_link.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhub/tests/pyamqp_tests/unittest/test_link.py
Outdated
Show resolved
Hide resolved
|
Once the PR tests pass, we are good to merge the PR. |
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines