mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Test that OS updates declaration does not show up in summaries
This commit is contained in:
parent
c62ed8bd0f
commit
319e331614
1 changed files with 21 additions and 0 deletions
|
|
@ -719,6 +719,27 @@ func (s *integrationMDMTestSuite) TestAppleProfileManagement() {
|
|||
|
||||
s.checkMDMProfilesSummaries(t, nil, expectedNoTeamSummary, &expectedNoTeamSummary) // empty because host was transferred
|
||||
s.checkMDMProfilesSummaries(t, &tm.ID, expectedTeamSummary, &expectedTeamSummary) // host still verifying team profiles
|
||||
|
||||
// set OS updates settings for no-team and team, should not change the
|
||||
// summaries as this profile is ignored.
|
||||
s.Do("PATCH", "/api/latest/fleet/config", json.RawMessage(`{
|
||||
"mdm": {
|
||||
"macos_updates": {
|
||||
"deadline": "2023-12-31",
|
||||
"minimum_version": "13.3.7"
|
||||
}
|
||||
}
|
||||
}`), http.StatusOK)
|
||||
s.Do("PATCH", fmt.Sprintf("/api/latest/fleet/teams/%d", tm.ID), fleet.TeamPayload{
|
||||
MDM: &fleet.TeamPayloadMDM{
|
||||
MacOSUpdates: &fleet.MacOSUpdates{
|
||||
Deadline: optjson.SetString("1992-01-01"),
|
||||
MinimumVersion: optjson.SetString("13.1.1"),
|
||||
},
|
||||
},
|
||||
}, http.StatusOK)
|
||||
s.checkMDMProfilesSummaries(t, nil, expectedNoTeamSummary, &expectedNoTeamSummary)
|
||||
s.checkMDMProfilesSummaries(t, &tm.ID, expectedTeamSummary, &expectedTeamSummary)
|
||||
}
|
||||
|
||||
func (s *integrationMDMTestSuite) TestAppleProfileRetries() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue