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 validation integration test for memory_devices #7722

Merged

Conversation

josephsweeney
Copy link
Contributor

Adds validation integration test for the memory_devices table.

@josephsweeney josephsweeney force-pushed the joesweeney/fix-integration-test branch from 49e4a90 to 54ed362 Compare August 9, 2022 16:09
@josephsweeney josephsweeney marked this pull request as ready for review August 9, 2022 18:28
@josephsweeney josephsweeney requested review from a team as code owners August 9, 2022 18:28
@Smjert
Copy link
Member

Smjert commented Aug 10, 2022

@josephsweeney Are those values actually allowed to be sometime empty, with other values being returned, or the IntOrEmpty is being used because sometimes there's no row returned?

Because if the latter is the case, it should already be handled by validate_rows, since if there are no rows, no check is done.

@josephsweeney
Copy link
Contributor Author

Yes, most of the integer columns are empty on at least one platform. For example M1 Macs have basically none of those columns filled. Maybe the size column could be IntType instead of IntOrEmpty, but that is the only one.

@mike-myers-tob mike-myers-tob added virtual tables macOS ready for review Pull requests that are ready to be reviewed by a maintainer test labels Aug 10, 2022
@directionless directionless merged commit 3da346d into osquery:master Aug 11, 2022
@Smjert Smjert deleted the joesweeney/fix-integration-test branch August 11, 2022 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS ready for review Pull requests that are ready to be reviewed by a maintainer test virtual tables
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants