MCPcopy Create free account
hub / github.com/convox/rack / TestProcessRunValidate

Function TestProcessRunValidate

pkg/api/process_test.go:246–254  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

244}
245
246func TestProcessRunValidate(t *testing.T) {
247 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
248 var p1 *structs.Process
249 p.On("AppGet", "app1").Return(nil, fmt.Errorf("no such app: app1"))
250 err := c.Post("/apps/app1/services/service1/processes", stdsdk.RequestOptions{}, p1)
251 require.EqualError(t, err, "no such app: app1")
252 require.Nil(t, p1)
253 })
254}
255
256func TestProcessStop(t *testing.T) {
257 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {

Callers

nothing calls this directly

Calls 2

PostMethod · 0.80
testServerFunction · 0.70

Tested by

no test coverage detected