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

Function createProgressEndpoint

cf/api/applicationbits/application_bits_test.go:396–412  ·  view source on GitHub ↗
(status string)

Source from the content-addressed store, hash-verified

394}
395
396func createProgressEndpoint(status string) (req testnet.TestRequest) {
397 body := fmt.Sprintf(`
398 {
399 "entity":{
400 "status":"%s"
401 }
402 }`, status)
403
404 req.Method = "GET"
405 req.Path = "/v2/jobs/my-job-guid"
406 req.Response = testnet.TestResponse{
407 Status: http.StatusCreated,
408 Body: body,
409 }
410
411 return
412}
413
414var matchExcludedResourceRequest = testnet.TestRequest{
415 Method: "PUT",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected