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

Function TestInstanceKeyrollError

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

Source from the content-addressed store, hash-verified

35}
36
37func TestInstanceKeyrollError(t *testing.T) {
38 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
39 p.On("InstanceKeyroll").Return(fmt.Errorf("err1"))
40 err := c.Post("/instances/keyroll", stdsdk.RequestOptions{}, nil)
41 require.EqualError(t, err, "err1")
42 })
43}
44
45func TestInstanceList(t *testing.T) {
46 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