mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
Allow failed profiles to become verified if subsequently reported by osquery (#13343)
This commit is contained in:
parent
a1b8226a15
commit
d140a57355
@ -1661,14 +1661,14 @@ SET
|
||||
status = ?
|
||||
WHERE
|
||||
host_uuid = ?
|
||||
AND status = ?
|
||||
AND status IN(?)
|
||||
AND operation_type = ?
|
||||
AND profile_identifier IN(?)`
|
||||
|
||||
args := []interface{}{
|
||||
fleet.MDMAppleDeliveryVerified,
|
||||
host.UUID,
|
||||
fleet.MDMAppleDeliveryVerifying,
|
||||
[]interface{}{fleet.MDMAppleDeliveryVerifying, fleet.MDMAppleDeliveryFailed},
|
||||
fleet.MDMAppleOperationTypeInstall,
|
||||
identifiers,
|
||||
}
|
||||
|
@ -4838,7 +4838,7 @@ func TestMDMProfileVerification(t *testing.T) {
|
||||
{
|
||||
name: "FailedThenFoundExpected",
|
||||
initialStatus: fleet.MDMAppleDeliveryFailed,
|
||||
expectedStatus: fleet.MDMAppleDeliveryFailed, // no change
|
||||
expectedStatus: fleet.MDMAppleDeliveryVerified, // failed can become verified if found later
|
||||
expectedDetail: "",
|
||||
},
|
||||
}
|
||||
@ -4901,7 +4901,7 @@ func TestMDMProfileVerification(t *testing.T) {
|
||||
{
|
||||
name: "FailedThenFoundExpectedAndUnexpected",
|
||||
initialStatus: fleet.MDMAppleDeliveryFailed,
|
||||
expectedStatus: fleet.MDMAppleDeliveryFailed, // no change
|
||||
expectedStatus: fleet.MDMAppleDeliveryVerified, // failed can become verified if found later
|
||||
expectedDetail: "",
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user