]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix scoping issue
authorJeff Peeler <jpeeler@redhat.com>
Wed, 19 Sep 2012 04:41:37 +0000 (00:41 -0400)
committerJeff Peeler <jpeeler@redhat.com>
Wed, 19 Sep 2012 04:48:12 +0000 (00:48 -0400)
Change-Id: I03ed3e503b7888591dd10c647296792f24679743
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
heat/tests/functional/test_WordPress_2_Instances_With_EBS_EIP.py

index 7b9e179d8e601fb8eaa0bb8602c16fc8b97b8c37..855ba6c83888af0859bc05ee2fe46f5bc889784d 100644 (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'