Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the SNTApplicationTest unit tests to function correctly #885

Merged

Conversation

pmarkowsky
Copy link
Contributor

@pmarkowsky pmarkowsky commented Aug 29, 2022

The tests were originally written in a table style and were impacted by the lack of mocking the configurator. This caused issues with static rules to impact the unit tests.

Additionally added:

  • Missing "goodbinary" for tests.
  • Improved logging messages for critical binaries.

The tests were originally written in a table style and were impacted by the lack of mocking the configurator. This caused issues with static rules to impact the unit tests.

Additionally added improved logging messages for critical binaries and a todo for macOS 13 unit tests.
Copy link
Contributor

@russellhancox russellhancox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Source/santad/testdata/binaryrules/goodbinary and Source/santad/testdata/binaryrules/rules.db to the allstar config

Source/santad/DataLayer/SNTRuleTable.m Outdated Show resolved Hide resolved
Source/santad/SNTApplicationTest.m Outdated Show resolved Hide resolved
@pmarkowsky pmarkowsky merged commit dc6732e into google:main Aug 29, 2022
@pmarkowsky pmarkowsky deleted the markowsky/fix-sntapplication-unit-tests branch August 29, 2022 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants