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

Function TestInstanceKeyroll

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

Source from the content-addressed store, hash-verified

27}
28
29func TestInstanceKeyroll(t *testing.T) {
30 testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) {
31 p.On("InstanceKeyroll").Return(nil)
32 err := c.Post("/instances/keyroll", stdsdk.RequestOptions{}, nil)
33 require.NoError(t, err)
34 })
35}
36
37func TestInstanceKeyrollError(t *testing.T) {
38 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