At the end of cf push the CF CLI will list all of the Processes for an App and then fetch each individual Process to discover information about its health check, scaling properties, etc.
Implement the GET /v3/apps/:guid/processes and GET /v3/processes/:guid to discover any unknown issues around fetching Processes so that we have confidence that the CF CLI will be able to successfully push an app.
Acceptance Criteria / Scenarios
Fetching a single Process
GIVEN I have a Process CR on the cluster
WHEN I make the following request
curl "https://api-shim.example.org/v3/processes/<process-guid-here>" \
-X GET
THEN I get information about the Process back in the response that matches the existing CF API response. Example:
Context / Background
At the end of
cf push
the CF CLI will list all of the Processes for an App and then fetch each individual Process to discover information about its health check, scaling properties, etc.GET /v3/processes/:guid
-- https://v3-apidocs.cloudfoundry.org/version/3.102.0/index.html#get-a-processGET /v3/apps/:guid/processes
-- https://v3-apidocs.cloudfoundry.org/version/3.102.0/index.html#list-processes-for-appDesired outcomes
Implement the
GET /v3/apps/:guid/processes
andGET /v3/processes/:guid
to discover any unknown issues around fetching Processes so that we have confidence that the CF CLI will be able to successfully push an app.Acceptance Criteria / Scenarios
Fetching a single Process
GIVEN I have a Process CR on the cluster WHEN I make the following request
THEN I get information about the Process back in the response that matches the existing CF API response. Example:
Listing Processes for an App with Processes
GIVEN I have multiple Process CRs for different Apps WHEN I make the following request
THEN I receive a response containing a list of processes associated with that App (and no others)
See the docs for an example response.
Listing Processes for an App with NO Processes
GIVEN I have Process CRs, but they are associated with some other App WHEN I make the following request
THEN I receive a response containing an empty list of Processes
Notes
Add any additional notes