Closed grahamgilbert closed 1 year ago
ff6c817
during Test Coverage #12Summary coverage rate: lines......: 43.0% (246 of 572 lines) functions..: no data found branches...: no data found Files changed coverage rate: |Lines |Functions |Branches Filename |Rate Num|Rate Num|Rate Num ======================================================================================= tables/mdm/mdm.go |40.6% 180| - 0| - 0
the condition to evaluate if the cached value should be read was wrong, causing the
mdm
table to invokeprofiles show --type enrollment
almost every time it was called.this changeset fixes the condition and adds tests for this specific scenario.
This was originally submitted in https://github.com/macadmins/osquery-extension/pull/37