mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
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:
parent
3aadb0f0be
commit
dbe020e19f
1 changed files with 2 additions and 1 deletions
|
|
@ -11071,7 +11071,8 @@ func (s *integrationMDMTestSuite) TestBatchAssociateAppStoreApps() {
|
||||||
// Valid token
|
// Valid token
|
||||||
orgName := "Fleet Device Management Inc."
|
orgName := "Fleet Device Management Inc."
|
||||||
token := "mycooltoken"
|
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)
|
tokenJSON := fmt.Sprintf(`{"expDate":"%s","token":"%s","orgName":"%s"}`, expDate, token, orgName)
|
||||||
t.Setenv("FLEET_DEV_VPP_URL", s.appleVPPConfigSrv.URL)
|
t.Setenv("FLEET_DEV_VPP_URL", s.appleVPPConfigSrv.URL)
|
||||||
var vppRes uploadVPPTokenResponse
|
var vppRes uploadVPPTokenResponse
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue