]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix test_WordPress_2_Instances_With_EBS.py
authorSteven Dake <sdake@redhat.com>
Mon, 17 Sep 2012 17:41:41 +0000 (10:41 -0700)
committerSteven Dake <sdake@redhat.com>
Mon, 17 Sep 2012 17:41:41 +0000 (10:41 -0700)
Change-Id: Iee70c20b4dc771da5cc84bcfe7bb1cd1ba5280d1
Signed-off-by: Steven Dake <sdake@redhat.com>
heat/tests/functional/test_WordPress_2_Instances_With_EBS.py

index 2af7b11509ced949f19ef5d56665c5c5d37c95b7..8996dc18c3cf29a3ee06cc3bd0105a8126d63d75 100644 (file)
@@ -20,6 +20,7 @@ from nose.plugins.attrib import attr
 from heat.common import context
 from heat.engine import manager
 import unittest
+import os
 
 
 @attr(speed='slow')
@@ -29,7 +30,13 @@ class WordPress2InstancesWithEBS(unittest.TestCase):
     def setUp(self):
         template = 'WordPress_2_Instances_With_EBS.template'
 
-        self.stack = util.Stack(template, 'F17', 'x86_64', 'cfntools')
+        stack_paramstr = ';'.join(['InstanceType=m1.xlarge',
+            'DBUsername=dbuser',
+            'DBPassword=' + os.environ['OS_PASSWORD']])
+
+        self.stack = util.Stack(template, 'F17', 'x86_64', 'cfntools',
+            stack_paramstr)
+
         self.WikiDatabase = util.Instance('WikiDatabase')
         self.WebServer = util.Instance('WebServer')