summaryrefslogtreecommitdiff
path: root/heat/tests/utils.py
diff options
context:
space:
mode:
authorAngus Salkeld <asalkeld@mirantis.com>2014-09-09 10:56:09 +1000
committerAngus Salkeld <asalkeld@mirantis.com>2014-09-09 10:56:09 +1000
commit5131d6c9b29b829b2283354f3824cca32eec9906 (patch)
tree877b16e2a69a2032c64b299fa3fde8bcba2e0d78 /heat/tests/utils.py
parent35d7465c1172400a61cbc7def2eb2fa07243b1f2 (diff)
downloadheat-5131d6c9b29b829b2283354f3824cca32eec9906.tar.gz
Import the stack module directly
Note: the patch imports "stack as parser" in some places to maintain API (service.py and event.py). Change-Id: I0409a04789f0ca362cb9ab0b612d47226d785334
Diffstat (limited to 'heat/tests/utils.py')
-rw-r--r--heat/tests/utils.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/heat/tests/utils.py b/heat/tests/utils.py
index ee7000d61..f3a324aca 100644
--- a/heat/tests/utils.py
+++ b/heat/tests/utils.py
@@ -22,8 +22,8 @@ import sqlalchemy
from heat.common import context
from heat.db import api as db_api
from heat.engine import environment
-from heat.engine import parser
from heat.engine import resource
+from heat.engine import stack
from heat.engine import template
get_engine = db_api.get_engine
@@ -87,12 +87,12 @@ def parse_stack(t, params=None, stack_name='test_stack', stack_id=None,
params = params or {}
ctx = dummy_context()
templ = template.Template(t)
- stack = parser.Stack(ctx, stack_name, templ,
- environment.Environment(params), stack_id,
- timeout_mins=timeout_mins)
- stack.store()
+ stk = stack.Stack(ctx, stack_name, templ,
+ environment.Environment(params), stack_id,
+ timeout_mins=timeout_mins)
+ stk.store()
- return stack
+ return stk
class PhysName(object):
@@ -109,7 +109,7 @@ class PhysName(object):
def __eq__(self, physical_name):
try:
- stack, res, short_id = str(physical_name).rsplit('-', 2)
+ stk, res, short_id = str(physical_name).rsplit('-', 2)
except ValueError:
return False