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

Function TestProcessStop

sdk/methods_test.go:846–858  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

844}
845
846func TestProcessStop(t *testing.T) {
847 app := "app1"
848 pid := "pid"
849 s := stdapi.New("api", "api")
850 s.Route("DELETE", fmt.Sprintf("/apps/%s/processes/%s", app, pid), func(c *stdapi.Context) error {
851 return c.RenderOK()
852 })
853
854 testServer(t, s, func(c *sdk.Client) {
855 err := c.ProcessStop(app, pid)
856 require.NoError(t, err)
857 })
858}
859
860func TestRegistryAdd(t *testing.T) {
861 rs := &structs.Registry{

Callers

nothing calls this directly

Calls 2

testServerFunction · 0.70
ProcessStopMethod · 0.65

Tested by

no test coverage detected