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

Add test to check and log mdatp install/config info #3231

Merged
merged 6 commits into from
Apr 15, 2024
Merged

Conversation

mcgov
Copy link
Collaborator

@mcgov mcgov commented Mar 26, 2024

Adding an mdatp test to check configuration info in a VM if defender is installed.

@mcgov mcgov force-pushed the mcgov/defender branch 4 times, most recently from 6c8c691 to 205a802 Compare March 26, 2024 02:41
@mcgov mcgov changed the title Add test to check and log defender install/config info Add test to check and log mdatp install/config info Mar 26, 2024
microsoft/testsuites/mdatp/check-mdatp.sh Outdated Show resolved Hide resolved
microsoft/testsuites/mdatp/check-mdatp.sh Outdated Show resolved Hide resolved
@mcgov mcgov force-pushed the mcgov/defender branch 3 times, most recently from c248a4d to e65341f Compare March 27, 2024 18:32
@mcgov mcgov force-pushed the mcgov/defender branch 7 times, most recently from bd441b0 to 0ea46fc Compare April 3, 2024 20:50
@mcgov mcgov requested a review from squirrelsc April 4, 2024 01:53
@squirrelsc
Copy link
Member

@LiliDeng LGTM

@mcgov mcgov force-pushed the mcgov/defender branch 3 times, most recently from cc2fd92 to 1394942 Compare April 5, 2024 00:31
Copy link

@srkoripe srkoripe left a comment

Choose a reason for hiding this comment

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

LGTM from mdatp side. Pls get a review from the MDC agent side too if possible

@mcgov
Copy link
Collaborator Author

mcgov commented Apr 10, 2024

LGTM from mdatp side. Pls get a review from the MDC agent side too if possible

Already reviewed! Thanks so much. @LiliDeng can we merge this ASAP?

- stop lisa from overwriting lf to crlf in bash files

- mdatp script to check for json files, ascii or utf8 text

script fails on detection of any logs or installation,
uses exit code as issue signal instead of string parsing
- Add more comments describing the code paths
- Add explanation of SKIP if an unexpected error code is found.
	this implies we're not running in a unix shell,
	which should not occur, but anything is possible.
	If that occurs, skip instead of fail or pass.
-Move to using an int as return code to avoid conflicting
with existing shell exit codes.

This is done to help differentiate between os/shell errors and
a successful validation (either fail or pass)
…ted' code path to a failure with prompt to open a bug
@squirrelsc
Copy link
Member

@LiliDeng Current version LGTM.

@LiliDeng LiliDeng merged commit 7630375 into main Apr 15, 2024
45 checks passed
@LiliDeng LiliDeng deleted the mcgov/defender branch April 15, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants