MCPcopy
hub / github.com/cloudfoundry/cli / downloadFirstAppPackage

Function downloadFirstAppPackage

integration/helpers/package.go:53–57  ·  view source on GitHub ↗
(appName string, tmpZipFilepath string)

Source from the content-addressed store, hash-verified

51}
52
53func downloadFirstAppPackage(appName string, tmpZipFilepath string) {
54 appGUID := GetFirstAppPackageGuid(appName)
55 session := CF("curl", fmt.Sprintf("/v3/packages/%s/download", appGUID), "--output", tmpZipFilepath)
56 Eventually(session).Should(Exit(0))
57}
58
59// VerifyAppPackageContentsV2 verifies the contents of a V2 app package by downloading the package zip and
60// verifying the zipped files match the passed files.

Callers 1

Calls 2

GetFirstAppPackageGuidFunction · 0.85
CFFunction · 0.85

Tested by

no test coverage detected