Skip to content

Commit

Permalink
Fixed config profile test.
Browse files Browse the repository at this point in the history
  • Loading branch information
getvictor committed Nov 22, 2024
1 parent a976f95 commit 57d640d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/service/apple_mdm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,9 @@ func TestNewMDMAppleConfigProfile(t *testing.T) {
svc, ctx, ds := setupAppleMDMService(t, &fleet.LicenseInfo{Tier: fleet.TierPremium})
ctx = viewer.NewContext(ctx, viewer.Viewer{User: &fleet.User{GlobalRole: ptr.String(fleet.RoleAdmin)}})

identifier := "Bar.$FLEET_VAR_HOST_END_USER_EMAIL_IDP"
mcBytes := mcBytesForTest("Foo", identifier, "UUID")
identifier := "Bar."
identifierWithVar := identifier + "$FLEET_VAR_HOST_END_USER_EMAIL_IDP"
mcBytes := mcBytesForTest("Foo", identifierWithVar, "UUID")
r := bytes.NewReader(mcBytes)

ds.NewMDMAppleConfigProfileFunc = func(ctx context.Context, cp fleet.MDMAppleConfigProfile) (*fleet.MDMAppleConfigProfile, error) {
Expand Down

0 comments on commit 57d640d

Please sign in to comment.