(t *testing.T)
| 76 | } |
| 77 | |
| 78 | func TestExecStartError(t *testing.T) { |
| 79 | client, err := New( |
| 80 | WithMockClient(errorMock(http.StatusInternalServerError, "Server error")), |
| 81 | ) |
| 82 | assert.NilError(t, err) |
| 83 | |
| 84 | _, err = client.ExecStart(t.Context(), "nothing", ExecStartOptions{}) |
| 85 | assert.Check(t, is.ErrorType(err, cerrdefs.IsInternal)) |
| 86 | } |
| 87 | |
| 88 | func TestExecStart(t *testing.T) { |
| 89 | const expectedURL = "/exec/exec_id/start" |