From dbe020e19fbe5b30c77ea6db42ecc8adb2b1532f Mon Sep 17 00:00:00 2001 From: Jahziel Villasana-Espinoza Date: Tue, 24 Jun 2025 20:20:13 -0400 Subject: [PATCH] make it so the vpp token can't expire (#30298) > No issue, fixes broken test # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Added/updated automated tests --- server/service/integration_mdm_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/service/integration_mdm_test.go b/server/service/integration_mdm_test.go index 2d90316006..73eef2eaae 100644 --- a/server/service/integration_mdm_test.go +++ b/server/service/integration_mdm_test.go @@ -11071,7 +11071,8 @@ func (s *integrationMDMTestSuite) TestBatchAssociateAppStoreApps() { // Valid token orgName := "Fleet Device Management Inc." token := "mycooltoken" - expDate := "2025-06-24T15:50:50+0000" + expTime := time.Now().Add(200 * time.Hour).UTC().Round(time.Second) + expDate := expTime.Format(fleet.VPPTimeFormat) tokenJSON := fmt.Sprintf(`{"expDate":"%s","token":"%s","orgName":"%s"}`, expDate, token, orgName) t.Setenv("FLEET_DEV_VPP_URL", s.appleVPPConfigSrv.URL) var vppRes uploadVPPTokenResponse