insights-core icon indicating copy to clipboard operation
insights-core copied to clipboard

Avoid test to write in disk if machine-id is not found

Open ahitacat opened this issue 2 years ago • 0 comments

Signed-off-by: ahitacat [email protected]

All Pull Requests:

Check all that apply:

  • [ ] Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • [ ] Is this PR to correct an issue?
  • [ ] Is this PR an enhancement?

Complete Description of Additions/Changes:

Malware test was trying to create a machine-id file if there isn't one in the system. I have mocked the method that tries to create the machine-id as a solution.

ahitacat avatar Oct 07 '22 15:10 ahitacat