time.sleep(5)
status = self.heat_manager.check_stack_status(stack_name)
return True
- except:
+ except Exception as e:
+ common.LOG.debug(e.message)
return False
def destroy_all_deployed_stacks(self):
self.heat_manager.create_stack(template_file, stack_name,
parameters)
deployed = True
- except:
+ except Exception as e:
+ common.LOG.debug(e.message)
deployed = False
if not deployed and 'COMPLETE' in \
self.heat_manager.check_stack_status(stack_name):
try:
self.destroy_heat_template(stack_name)
- except:
+ except Exception as e:
+ common.LOG.debug(e.message)
pass
status = self.heat_manager.check_stack_status(stack_name)
if stack.stack_name == stack_name:
self.heat.stacks.delete(stack.id)
return True
- except:
+ except Exception as e:
+ common.LOG.debug(e.message)
pass
return False
# limitations under the License.
import unittest
+import logging
import mock
import experimental_framework.deployment_unit as mut
+import experimental_framework.common as common
__author__ = 'vmriccox'
template_file = ''
stack_name = ''
parameters = ''
+ common.LOG = logging.getLogger()
output = du.deploy_heat_template(template_file, stack_name,
parameters, 0)
self.assertEqual(output, True)
template_file = ''
stack_name = ''
parameters = ''
+ common.LOG = logging.getLogger()
output = du.deploy_heat_template(template_file, stack_name,
parameters, 0)
self.assertEqual(output, True)
template_file = ''
stack_name = ''
parameters = ''
+ common.LOG = logging.getLogger()
output = du.deploy_heat_template(template_file, stack_name,
parameters, 0)
self.assertEqual(output, True)
# limitations under the License.
import unittest
+import logging
+import experimental_framework.common as common
+
from experimental_framework import heat_manager
import mock
pass
def test_delete_stack_for_success_2(self):
+ common.LOG = logging.getLogger()
self.assertFalse(self.heat_manager.delete_stack('stack_1'))