Add tempest test for template declaration

Bug #1269566 reported by Jeff Peeler
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Won't Fix
Wishlist
Unassigned

Bug Description

This test will extend the existing template validation to include testing for all supported sections of a template:

AWSTemplateFormatVersion - just a version date
Description - valid JSON string
Parameters - supported properties: Type, Default, NoEcho, AllowedValues, AllowedPattern, MaxLength, MinLength, MaxValue, MinValue, Description, ContraintDescription
Mappings - name-value pairs that are accessed via Fn::FindInMap
Resources - composed of type (specified below) and optionally properties made up of string, list, dict, or result of function or reference - resources also output attributes which define the resource after it has been orchestrated
Outputs - output is composed of a double-quoted key name, a single colon, and one or more properties made up of value and an optional description

Tags: tempest
Jeff Peeler (jpeeler-z)
Changed in heat:
importance: Undecided → Wishlist
status: New → Triaged
assignee: nobody → Jeff Peeler (jpeeler-z)
Jeff Peeler (jpeeler-z)
tags: added: tempest
Jeff Peeler (jpeeler-z)
Changed in heat:
status: Triaged → In Progress
Revision history for this message
Jeff Peeler (jpeeler-z) wrote :
Revision history for this message
Mike Spreitzer (mike-spreitzer) wrote :

I decided to test the claim that the flavors used in the test do not need to exist. I edited the TemplateJSONTestFull class and replaced every occurrence of "m1.small" with "m1.xyzzy". Then I ran `testr run orchestration`. I got 3 failures, including two tracebacks showing the root problem was "ValueError: must be a valid EC2 instance type". Typescript attached.

Revision history for this message
Mike Spreitzer (mike-spreitzer) wrote :

Attached the modified test source.

Revision history for this message
Mike Spreitzer (mike-spreitzer) wrote :

Never mind comment 2 and comment 3, I overlooked the subclassing. When I replace *all* occurrences of "m1.small" with "m1.xyzzy" then the tests all succeed. So I think Jeff is right, no instances are being created.

Revision history for this message
Angus Salkeld (asalkeld) wrote :

tests are in-tree now.

Changed in heat:
assignee: Jeff Peeler (jpeeler-z) → nobody
status: In Progress → Triaged
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.