Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aws
GitHub Repository: aws/aws-cli
Path: blob/develop/tests/functional/cloudformation/test_describe_stacks.py
1567 views
1
#!/usr/bin/env python
2
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
#
4
# Licensed under the Apache License, Version 2.0 (the "License"). You
5
# may not use this file except in compliance with the License. A copy of
6
# the License is located at
7
#
8
# http://aws.amazon.com/apache2.0/
9
#
10
# or in the "license" file accompanying this file. This file is
11
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
12
# ANY KIND, either express or implied. See the License for the specific
13
# language governing permissions and limitations under the License.
14
from awscli.testutils import BaseAWSCommandParamsTest
15
16
17
class TestDescribeStacks(BaseAWSCommandParamsTest):
18
19
prefix = 'cloudformation describe-stacks '
20
21
def test_can_single_argument(self):
22
cmdline = self.prefix + '--stack-name test-stack'
23
result = {'StackName': 'test-stack'}
24
self.assert_params_for_cmd(cmdline, result)
25
26
def test_can_specify_no_paginate(self):
27
cmdline = self.prefix + '--stack-name test-stack --no-paginate'
28
result = {'StackName': 'test-stack'}
29
self.assert_params_for_cmd(cmdline, result)
30
31