Closed sunao-uehara closed 9 years ago
I suspect you can remove your monkey-patch and simply remove the SQSQueueUrls plugin from the SDK while under test.
# in your spec/test helper
Aws::SQS::Client.remove_plugin(Aws::Plugins::SQSQueueUrls)
This will prevent the client from redirecting the request to the given queue URL. Let me know if this does not work.
Thanks trevorrowe,
It works perfectly fine. I still need to check condition of env to include that code, but I think it is fine for now.
Hi There,
I am using ver 2.0.38 for SQS with elasticMQ to simulate SQS on my localhost development. but I have a trouble using APIs because of localhost domain.
So I ended up adding monkey-patch like below to allow "localhost" by overriding SQSQueueUrls class, but do you guys have any plan fixing it or allowing
localhost
or non-dot-separated host? I know it is nothing to do with real aws environment, besides ElasticMQ is not aws supported lib, but it is convenient for developer to working on localhost.Thanks