mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Update wording of error message
This commit is contained in:
parent
5c7783eca0
commit
1e7645ea13
3 changed files with 4 additions and 4 deletions
|
|
@ -597,7 +597,7 @@ func (r *MDMAppleRawDeclaration) ValidateUserProvided() error {
|
|||
|
||||
// Check against types we don't allow
|
||||
if r.Type == `com.apple.configuration.softwareupdate.enforcement.specific` {
|
||||
return NewInvalidArgumentError(r.Type, "Declaration profile can’t include OS updates settings. OS updates coming soon!")
|
||||
return NewInvalidArgumentError(r.Type, "Declaration profile can’t include OS updates settings. To control these settings, go to OS updates.")
|
||||
}
|
||||
|
||||
if _, forbidden := ForbiddenDeclTypes[r.Type]; forbidden {
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ func (s *integrationMDMTestSuite) TestAppleDDMBatchUpload() {
|
|||
}}, http.StatusUnprocessableEntity)
|
||||
|
||||
errMsg = extractServerErrorText(res.Body)
|
||||
require.Contains(t, errMsg, "Declaration profile can’t include OS updates settings. OS updates coming soon!")
|
||||
require.Contains(t, errMsg, "Declaration profile can’t include OS updates settings. To control these settings, go to OS updates.")
|
||||
|
||||
// Types from our list of forbidden types should fail
|
||||
for ft := range fleet.ForbiddenDeclTypes {
|
||||
|
|
|
|||
|
|
@ -8935,7 +8935,7 @@ func (s *integrationMDMTestSuite) TestMDMConfigProfileCRUD() {
|
|||
mysql.ExecAdhocSQL(t, s.ds, func(q sqlx.ExtContext) error {
|
||||
stmt := `
|
||||
SELECT COALESCE(apple_profile_uuid, windows_profile_uuid) as profile_uuid, label_name, COALESCE(label_id, 0) as label_id
|
||||
FROM mdm_configuration_profile_labels
|
||||
FROM mdm_configuration_profile_labels
|
||||
UNION SELECT apple_declaration_uuid as profile_uuid, label_name, COALESCE(label_id, 0) as label_id
|
||||
FROM mdm_declaration_labels ORDER BY profile_uuid, label_name;`
|
||||
return sqlx.SelectContext(context.Background(), q, &profileLabels, stmt)
|
||||
|
|
@ -10919,7 +10919,7 @@ func (s *integrationMDMTestSuite) TestBatchSetMDMProfiles() {
|
|||
{Name: "N4", Contents: declarationForTestWithType("D1", "com.apple.configuration.softwareupdate.enforcement.specific")},
|
||||
}}, http.StatusUnprocessableEntity, "team_id", strconv.Itoa(int(tm.ID)))
|
||||
errMsg := extractServerErrorText(res.Body)
|
||||
require.Contains(t, errMsg, "Declaration profile can’t include OS updates settings. OS updates coming soon!")
|
||||
require.Contains(t, errMsg, "Declaration profile can’t include OS updates settings. To control these settings, go to OS updates.")
|
||||
|
||||
// invalid JSON
|
||||
res = s.Do("POST", "/api/v1/fleet/mdm/profiles/batch", batchSetMDMProfilesRequest{Profiles: []fleet.MDMProfileBatchPayload{
|
||||
|
|
|
|||
Loading…
Reference in a new issue