add prints for exceptions
Change-Id: I1497a26c3aa8b3b3f89779e55b6ece3183fc90a5
This commit is contained in:
parent
f8f947383a
commit
fa1a5df467
vitrage_tempest_tests/tests/api
@ -46,7 +46,8 @@ class TestAlarms(BaseAlarmsTest):
|
||||
self._compare_alarms_lists(
|
||||
api_alarms, cli_alarms, AODH_DATASOURCE,
|
||||
utils.uni2str(instances[0].id))
|
||||
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._delete_ceilometer_alarms()
|
||||
self._delete_instances()
|
||||
|
@ -54,6 +54,8 @@ class TestAodhAlarm(BaseAlarmsTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._delete_ceilometer_alarms()
|
||||
self._delete_instances()
|
||||
@ -80,6 +82,8 @@ class TestAodhAlarm(BaseAlarmsTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._delete_ceilometer_alarms()
|
||||
|
||||
|
@ -53,5 +53,7 @@ class TestCinderVolume(BaseTopologyTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
@ -64,6 +64,8 @@ class TestHeatStack(BaseTopologyTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._delete_stacks()
|
||||
|
||||
|
@ -61,6 +61,8 @@ class TestNeutron(BaseTopologyTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._delete_instances()
|
||||
|
||||
|
@ -49,5 +49,7 @@ class TestNova(BaseTopologyTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
@ -53,6 +53,8 @@ class TestStaticPhysical(BaseApiTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._delete_switches()
|
||||
|
||||
|
@ -50,8 +50,8 @@ class TestRca(BaseRcaTest):
|
||||
'vitrage rca show ' + vitrage_id, self.conf)
|
||||
|
||||
self._compare_rca(api_rca, cli_rca)
|
||||
except Exception:
|
||||
LOG.error('Got exception', False)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._clean_all()
|
||||
|
||||
|
@ -83,6 +83,8 @@ class TestTopology(BaseTopologyTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
||||
@ -115,6 +117,8 @@ class TestTopology(BaseTopologyTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
||||
@ -145,6 +149,8 @@ class TestTopology(BaseTopologyTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
||||
@ -170,6 +176,8 @@ class TestTopology(BaseTopologyTest):
|
||||
self.num_default_entities,
|
||||
self.num_default_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
||||
@ -195,6 +203,8 @@ class TestTopology(BaseTopologyTest):
|
||||
self.num_default_entities,
|
||||
self.num_default_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
||||
@ -225,6 +235,8 @@ class TestTopology(BaseTopologyTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
||||
@ -251,6 +263,8 @@ class TestTopology(BaseTopologyTest):
|
||||
self.num_default_entities,
|
||||
self.num_default_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
||||
@ -282,6 +296,8 @@ class TestTopology(BaseTopologyTest):
|
||||
num_entities,
|
||||
num_edges,
|
||||
entities)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
||||
@ -330,6 +346,8 @@ class TestTopology(BaseTopologyTest):
|
||||
self.assertEqual(
|
||||
0,
|
||||
len(api_graph['links']), 'num of edges')
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
||||
@ -351,5 +369,7 @@ class TestTopology(BaseTopologyTest):
|
||||
|
||||
# Test Assertions
|
||||
self.assertEqual({}, api_graph)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
finally:
|
||||
self._rollback_to_default()
|
||||
|
Loading…
x
Reference in New Issue
Block a user