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.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Added/updated automated tests
This commit is contained in:
Jahziel Villasana-Espinoza 2025-06-24 20:20:13 -04:00 committed by GitHub
parent 3aadb0f0be
commit dbe020e19f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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