Reset the stored logs at each notification test steps
This is an atempt to solve a new appearance of bug 1813147 where the long test_instance_action notification sample test case logs too much. This patch drops the logs of each successful test step to try to avoid the overload of the logging system. Change-Id: I0e5db9b2f423ab92ff93b6b3aada7d6b79a7abf6 Related-Bug: #1813147
This commit is contained in:
@@ -408,6 +408,11 @@ class TestInstanceNotificationSample(
|
||||
# Ensure that instance is in active state after an action
|
||||
self._wait_for_state_change(self.admin_api, server, 'ACTIVE')
|
||||
|
||||
# if the test step did not raised then we consider the step as
|
||||
# succeeded. We drop the logs to avoid causing subunit parser
|
||||
# errors due to logging too much at the end of the test case.
|
||||
self.stdlog.delete_stored_logs()
|
||||
|
||||
def test_create_delete_server(self):
|
||||
fake_trusted_certs = ['cert-id-1', 'cert-id-2']
|
||||
server = self._boot_a_server(
|
||||
|
||||
Reference in New Issue
Block a user