unioslo / mreg-cli

Command Line Interface for Mreg
GNU General Public License v3.0
2 stars 7 forks source link

Write back original lines in diff review #290

Closed pederhan closed 1 month ago

pederhan commented 1 month ago

This PR makes diff.py write back the original lines (before placeholders have been inserted) to testsuite-result.json when they are accepted in review mode.

The code for loading and processing of the test suite results has been refactored into a class-based approach to reduce the amount of noise when iterating over them in CommandDiffer.diff_command_results().


After merging #289, we should do a manual pass where we run the test suite and replace testsuite-result.json with the resulting new_testsuite_log.json to restore all values replaced by placeholders. This has no effect on the actual tests, but makes it easier for us to search through the log to find specific IPs, MACs, etc.