Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Messenger] fixed queue_name option on amazon sqs connection#37364
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
d2e5518 to0a6ed8cCompare0a6ed8c todf7e562Comparesrc/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/ConnectionTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
54d8124 tof60068dCompare
Nyholm left a comment
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.
Thank you.
What about adding a test for when you provide both a parameter and add a DSN with a queue name in it?
What should be the preferred result?
| newConnection(['queue_name' =>'queue'],newSqsClient(['region' =>'eu-west-1','accessKeyId' =>null,'accessKeySecret' =>null],null,$httpClient)), | ||
| Connection::fromDsn('sqs://default', ['queue_name' =>'queue'],$httpClient) | ||
| ); | ||
| } |
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.
| } | |
| $this->assertEquals( | |
| newConnection(['queue_name' =>'my_queue'],newSqsClient(['region' =>'eu-west-1','accessKeyId' =>null,'accessKeySecret' =>null],null,$httpClient)), | |
| Connection::fromDsn('sqs://default/my_queue', ['queue_name' =>'queue_ignored'],$httpClient) | |
| ); | |
| } |
f60068d toa6cb24dCompare
Nyholm left a comment
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.
Thank you
chalasr commentedJun 20, 2020
Good catch, thanks@ck-developer. |
Uh oh!
There was an error while loading.Please reload this page.