softwaremill / elasticmq

In-memory message queue with an Amazon SQS-compatible interface. Runs stand-alone or embedded.

Home Page:https://softwaremill.com/open-source/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`get-queue-url` returns queueUrl even if queue does not exist

godu opened this issue · comments

Since v1.4.0, the behavior of aws cli changes on sqs get-queue-url.

Actual

$ AWS_PROFILE=local aws sqs --endpoint=http://localhost:9324 get-queue-url --queue-name noop
{
    "QueueUrl": "http://localhost:9324/000000000000/noop"
}

Before with v1.3.14

$ AWS_PROFILE=local aws sqs --endpoint=http://localhost:9324 get-queue-url --queue-name noop
An error occurred (AWS.SimpleQueueService.NonExistentQueue) when calling the GetQueueUrl operation: AWS.SimpleQueueService.NonExistentQueue; see the SQS docs.

With AWS

$ AWS_PROFILE=aws aws sqs get-queue-url --queue-name noop
An error occurred (AWS.SimpleQueueService.NonExistentQueue) when calling the GetQueueUrl operation: The specified queue does not exist for this wsdl version.

We expect that get-queue-url returns a error if the queue does not exist.

fixed in v1.4.1