Fix scoping issue

Change-Id: I03ed3e503b7888591dd10c647296792f24679743
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
This commit is contained in:
Jeff Peeler 2012-09-19 00:41:37 -04:00
parent 52f5d7c7fe
commit ed282f09cc

View File

@ -24,13 +24,13 @@ import os
@attr(tag=['func', 'wordpress', 'eip', 'ebs', 'F17'])
class WordPress2EBSEIPFunctionalTest(unittest.TestCase):
def setUp(self):
template = 'WordPress_2_Instances_With_EBS_EIP.template'
self.template = 'WordPress_2_Instances_With_EBS_EIP.template'
stack_paramstr = ';'.join(['InstanceType=m1.xlarge',
'DBUsername=dbuser',
'DBPassword=' + os.environ['OS_PASSWORD']])
self.stack = util.Stack(template, 'F17', 'x86_64', 'cfntools',
self.stack = util.Stack(self.template, 'F17', 'x86_64', 'cfntools',
stack_paramstr)
self.webserver = util.Instance('WebServer')
@ -46,12 +46,12 @@ class WordPress2EBSEIPFunctionalTest(unittest.TestCase):
self.webserver.wait_for_boot()
self.webserver.check_cfntools()
self.webserver.wait_for_provisioning()
self.webserver.check_user_data(template)
self.webserver.check_user_data(self.template)
self.database.wait_for_boot()
self.database.check_cfntools()
self.database.wait_for_provisioning()
self.database.check_user_data(template)
self.database.check_user_data(self.template)
# Check wordpress installation
wp_config_file = '/etc/wordpress/wp-config.php'