Skip to content

Commit 1d9e934

Browse files
committed
Added url property on get fleet maintained app endpoint
1 parent 41e8324 commit 1d9e934

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

changes/25251-url-fleet-app-response

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Added download url for fleet maintained apps as `url` property on `fleet/software/fleet_maintained_apps/:id`

server/fleet/maintained_apps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type MaintainedApp struct {
1010
Token string `json:"-" db:"token"`
1111
Version string `json:"version" db:"version"`
1212
Platform AppleDevicePlatform `json:"platform" db:"platform"`
13-
InstallerURL string `json:"-" db:"installer_url"`
13+
InstallerURL string `json:"url" db:"installer_url"`
1414
SHA256 string `json:"-" db:"sha256"`
1515
BundleIdentifier string `json:"-" db:"bundle_identifier"`
1616

server/service/integration_enterprise_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16191,6 +16191,7 @@ func (s *integrationEnterpriseTestSuite) TestMaintainedApps() {
1619116191
s.DoJSON(http.MethodGet, fmt.Sprintf("/api/latest/fleet/software/fleet_maintained_apps/%d", listMAResp.FleetMaintainedApps[0].ID), getFleetMaintainedAppRequest{}, http.StatusOK, &getMAResp)
1619216192
// TODO this will change when actual install scripts are created.
1619316193
actualApp := listMAResp.FleetMaintainedApps[0]
16194+
require.NotEmpty(t, getMAResp.FleetMaintainedApp.InstallerURL)
1619416195
require.NotEmpty(t, getMAResp.FleetMaintainedApp.InstallScript)
1619516196
require.NotEmpty(t, getMAResp.FleetMaintainedApp.UninstallScript)
1619616197
getMAResp.FleetMaintainedApp.InstallScript = ""

0 commit comments

Comments
 (0)