Prevent occasional test failures due to duplicate stack names
Change-Id: I58a5e9cdf3ec68df47541c1a64931b139de9519f
diff --git a/functional/test_remote_stack.py b/functional/test_remote_stack.py
index ee4bdc0..d9eec79 100644
--- a/functional/test_remote_stack.py
+++ b/functional/test_remote_stack.py
@@ -81,7 +81,7 @@
self.assertEqual(remote_resources, self.list_resources(remote_id))
def test_stack_create_bad_region(self):
- stack_name = 'stack_to_fail'
+ stack_name = self._stack_rand_name()
tmpl_bad_region = self.template.replace('RegionOne', 'DARKHOLE')
files = {'remote_stack.yaml': self.remote_template}
kwargs = {
@@ -97,7 +97,7 @@
self.assertEqual(error_msg, six.text_type(ex))
def test_stack_resource_validation_fail(self):
- stack_name = 'stack_to_fail'
+ stack_name = self._stack_rand_name()
tmpl_bad_format = self.remote_template.replace('resources', 'resource')
files = {'remote_stack.yaml': tmpl_bad_format}
kwargs = {'stack_name': stack_name, 'files': files}