using the calculated path for the template tests
Change-Id: Ifc5f142cf36a387d32f2ea70dfcb1bb33a44a056
This commit is contained in:
parent
5467f40da3
commit
b009878681
@ -30,7 +30,7 @@ class instancesTest(unittest.TestCase):
|
|||||||
print "instancesTest teardown complete"
|
print "instancesTest teardown complete"
|
||||||
|
|
||||||
def test_instance_create(self):
|
def test_instance_create(self):
|
||||||
f = open('templates/WordPress_Single_Instance_gold.template')
|
f = open("%s/WordPress_Single_Instance_gold.template" % self.path)
|
||||||
t = json.loads(f.read())
|
t = json.loads(f.read())
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ class instancesTest(unittest.TestCase):
|
|||||||
assert(instance.id > 0)
|
assert(instance.id > 0)
|
||||||
|
|
||||||
def test_instance_create_delete(self):
|
def test_instance_create_delete(self):
|
||||||
f = open('templates/WordPress_Single_Instance_gold.template')
|
f = open("%s/WordPress_Single_Instance_gold.template" % self.path)
|
||||||
t = json.loads(f.read())
|
t = json.loads(f.read())
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class stacksTest(unittest.TestCase):
|
|||||||
|
|
||||||
# We use this in a number of tests so it's factored out here.
|
# We use this in a number of tests so it's factored out here.
|
||||||
def start_wordpress_stack(self, stack_name):
|
def start_wordpress_stack(self, stack_name):
|
||||||
f = open('templates/WordPress_Single_Instance_gold.template')
|
f = open("%s/WordPress_Single_Instance_gold.template" % self.path)
|
||||||
t = json.loads(f.read())
|
t = json.loads(f.read())
|
||||||
f.close()
|
f.close()
|
||||||
params = {}
|
params = {}
|
||||||
@ -148,7 +148,7 @@ class stacksTest(unittest.TestCase):
|
|||||||
self.m.ReplayAll()
|
self.m.ReplayAll()
|
||||||
stack.create_blocking()
|
stack.create_blocking()
|
||||||
|
|
||||||
f = open('templates/WordPress_Single_Instance_gold.template')
|
f = open("%s/WordPress_Single_Instance_gold.template" % self.path)
|
||||||
t = json.loads(f.read())
|
t = json.loads(f.read())
|
||||||
params = {}
|
params = {}
|
||||||
parameters = {}
|
parameters = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user