(t *testing.T)
| 844 | } |
| 845 | |
| 846 | func 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 | |
| 860 | func TestRegistryAdd(t *testing.T) { |
| 861 | rs := &structs.Registry{ |
nothing calls this directly
no test coverage detected