Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Call NameLoad Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list decorator_list
N/A N/A 
test_stack
----------------------------------

Functional tests for `shade` stack methods.
 N/A tempfile shade exc shade openstack_cloud shade.tests base N/A simple_template heat_template_version: 2014-10-16
parameters:
  length:
    type: number
    default: 10

resources:
  my_rand:
    type: OS::Heat::RandomString
    properties:
      length: {get_param: length}
outputs:
  rand:
    value:
      get_attr: [my_rand, value]
 N/A root_template heat_template_version: 2014-10-16
parameters:
  length:
    type: number
    default: 10
  count:
    type: number
    default: 5

resources:
  my_rands:
    type: OS::Heat::ResourceGroup
    properties:
      count: {get_param: count}
      resource_def:
        type: My::Simple::Template
        properties:
          length: {get_param: length}
outputs:
  rands:
    value:
      get_attr: [my_rands, attributes, rand]
 N/A environment 
resource_registry:
  My::Simple::Template: %s
 N/A validate_template heat_template_version: asdf-no-such-version  TestStack N/A N/A base TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestStack self setUp N/A N/A self cloud N/A openstack_cloud cloud devstack N/A N/A N/A N/A N/A self cloud has_service orchestration N/A N/A N/A N/A self skipTest Orchestration service not supported by cloud N/A _cleanup_stack N/A N/A self N/A N/A N/A N/A N/A N/A self cloud delete_stack N/A self stack_name wait True N/A N/A N/A self assertIsNone N/A N/A N/A self cloud get_stack N/A self stack_name N/A test_stack_validation N/A N/A self N/A N/A N/A test_template N/A N/A tempfile NamedTemporaryFile delete False N/A N/A N/A test_template write validate_template N/A N/A N/A test_template close N/A stack_name N/A N/A self getUniqueString validate_template N/A N/A N/A self assertRaises N/A exc OpenStackCloudException N/A N/A self cloud create_stack name stack_name template_file N/A test_template name N/A test_stack_simple N/A N/A self N/A N/A N/A test_template N/A N/A tempfile NamedTemporaryFile delete False N/A N/A N/A test_template write simple_template N/A N/A N/A test_template close N/A N/A self stack_name N/A N/A self getUniqueString simple_stack N/A N/A N/A self addCleanup N/A self _cleanup_stack N/A stack N/A N/A N/A self cloud create_stack name N/A self stack_name template_file N/A test_template name wait True N/A N/A N/A self assertEqual CREATE_COMPLETE N/A stack N/A stack_status N/A rand N/A N/A N/A stack N/A outputs N/A 0 N/A output_value N/A N/A N/A self assertEqual 10 N/A len rand N/A stack N/A N/A N/A self cloud get_stack N/A self stack_name N/A N/A N/A self assertEqual CREATE_COMPLETE N/A stack N/A stack_status N/A N/A N/A self assertEqual rand N/A N/A N/A stack N/A outputs N/A 0 N/A output_value N/A stacks N/A N/A N/A self cloud list_stacks N/A stack_ids N/A N/A s N/A id N/A s stacks N/A N/A N/A self assertIn N/A stack N/A id stack_ids N/A stack N/A N/A N/A self cloud update_stack N/A self stack_name template_file N/A test_template name wait True N/A N/A N/A self assertEqual UPDATE_COMPLETE N/A stack N/A stack_status N/A rand N/A N/A N/A stack N/A outputs N/A 0 N/A output_value N/A N/A N/A self assertEqual rand N/A N/A N/A stack N/A outputs N/A 0 N/A output_value N/A stack N/A N/A N/A self cloud update_stack N/A self stack_name template_file N/A test_template name wait True length 12 N/A stack N/A N/A N/A self cloud get_stack N/A self stack_name N/A N/A N/A self assertEqual UPDATE_COMPLETE N/A stack N/A stack_status N/A new_rand N/A N/A N/A stack N/A outputs N/A 0 N/A output_value N/A N/A N/A self assertNotEqual rand new_rand N/A N/A N/A self assertEqual 12 N/A len new_rand N/A test_stack_nested N/A N/A self N/A N/A N/A test_template N/A N/A tempfile NamedTemporaryFile suffix .yaml delete False N/A N/A N/A test_template write root_template N/A N/A N/A test_template close N/A simple_tmpl N/A N/A tempfile NamedTemporaryFile suffix .yaml delete False N/A N/A N/A simple_tmpl write simple_template N/A N/A N/A simple_tmpl close N/A env N/A N/A tempfile NamedTemporaryFile suffix .yaml delete False N/A N/A N/A env write N/A environment N/A simple_tmpl name N/A N/A N/A env close N/A N/A self stack_name N/A N/A self getUniqueString nested_stack N/A N/A N/A self addCleanup N/A self _cleanup_stack N/A stack N/A N/A N/A self cloud create_stack name N/A self stack_name template_file N/A test_template name environment_files N/A N/A env name wait True N/A N/A N/A self assertEqual CREATE_COMPLETE N/A stack N/A stack_status N/A rands N/A N/A N/A stack N/A outputs N/A 0 N/A output_value N/A N/A N/A self assertEqual N/A 0 1 2 3 4 N/A sorted N/A N/A rands keys N/A rand N/A N/A rands values N/A N/A N/A N/A self assertEqual 10 N/A len rand N/A N/A