(t *testing.T)
| 35 | } |
| 36 | |
| 37 | func 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 | |
| 45 | func TestInstanceList(t *testing.T) { |
| 46 | testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { |
nothing calls this directly
no test coverage detected