Browse Source

Merge "Fix show validation stats with correct number"

changes/03/758803/2
Zuul 6 months ago
committed by Gerrit Code Review
parent
commit
96cf2f27c2
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      validations_libs/tests/test_validation_actions.py
  2. +1
    -1
      validations_libs/validation_actions.py

+ 1
- 1
validations_libs/tests/test_validation_actions.py View File

@ -144,7 +144,7 @@ class TestValidationActions(TestCase):
@mock.patch('validations_libs.validation.Validation._get_content',
return_value=fakes.FAKE_PLAYBOOK[0])
@mock.patch('validations_libs.validation_logs.ValidationLogs.'
'get_all_logfiles_content',
'get_logfile_content_by_validation',
return_value=fakes.VALIDATIONS_LOGS_CONTENTS_LIST)
@mock.patch('six.moves.builtins.open')
@mock.patch('os.path.exists', return_value=True)


+ 1
- 1
validations_libs/validation_actions.py View File

@ -58,7 +58,7 @@ class ValidationActions(object):
validation,
self.validation_path)
raise RuntimeError(msg)
logfiles = vlog.get_all_logfiles_content()
logfiles = vlog.get_logfile_content_by_validation(validation)
format = vlog.get_validations_stats(logfiles)
data.update(format)
return data


Loading…
Cancel
Save