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

Function TestInstanceTerminate

pkg/api/instance_test.go:107–113  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

105}
106
107func TestInstanceTerminate(t *testing.T) {
108 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
109 p.On("InstanceTerminate", "instance1").Return(nil)
110 err := c.Delete("/instances/instance1", stdsdk.RequestOptions{}, nil)
111 require.NoError(t, err)
112 })
113}
114
115func TestInstanceTerminateError(t *testing.T) {
116 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {

Callers

nothing calls this directly

Calls 1

testServerFunction · 0.70

Tested by

no test coverage detected