(t *testing.T)
| 14 | ) |
| 15 | |
| 16 | func TestDiskUsageError(t *testing.T) { |
| 17 | client, err := New(WithMockClient(errorMock(http.StatusInternalServerError, "Server error"))) |
| 18 | assert.NilError(t, err) |
| 19 | _, err = client.DiskUsage(t.Context(), DiskUsageOptions{}) |
| 20 | assert.Check(t, is.ErrorType(err, cerrdefs.IsInternal)) |
| 21 | } |
| 22 | |
| 23 | func TestDiskUsage(t *testing.T) { |
| 24 | const expectedURL = "/system/df" |