Skip to content
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

Disable paramfile for sqs purge-queue #1126

Merged
merged 3 commits into from
Feb 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Next Release (TBD)
* bugfix:Locale Settings: Fix issue when Mac OS X has an ``LC_CTYPE`` value
of ``UTF-8``
(`issue 945 <https://github.com/aws/aws-cli/issues/945>`__)
* bugfix:``aws sqs purge-queue``: Fix issue with the processing
of the ``--queue-url`` parameter
(`issue 1126 <https://github.com/aws/aws-cli/issues/1126>`__)


1.7.4
Expand Down
1 change: 1 addition & 0 deletions awscli/paramfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
'sqs.send-message.queue-url',
'sqs.send-message-batch.queue-url',
'sqs.set-queue-attributes.queue-url',
'sqs.purge-queue.queue-url',

's3.copy-object.website-redirect-location',
's3.create-multipart-upload.website-redirect-location',
Expand Down
31 changes: 31 additions & 0 deletions tests/unit/sqs/test_purge_queue.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env python
# Copyright 2012-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
from awscli.testutils import BaseAWSCommandParamsTest
import awscli.clidriver


class TestPurgeQueue(BaseAWSCommandParamsTest):

prefix = 'sqs purge-queue'

def test_simple(self):
url = 'https://foo.bar/queue'
cmdline = self.prefix
cmdline += ' --queue-url %s' % url
result = {'QueueUrl': url}
self.assert_params_for_cmd(cmdline, result)


if __name__ == "__main__":
unittest.main()