(t *testing.T)
| 661 | } |
| 662 | |
| 663 | func TestServerResourcesGetAllHandlerNonIntCount(t *testing.T) { |
| 664 | req := httptest.NewRequest(http.MethodGet, "/Users?count=BadBanana", nil) |
| 665 | rr := httptest.NewRecorder() |
| 666 | newTestServer().ServeHTTP(rr, req) |
| 667 | |
| 668 | assertEqualStatusCode(t, http.StatusBadRequest, rr.Code) |
| 669 | |
| 670 | var response errors.ScimError |
| 671 | assertUnmarshalNoError(t, json.Unmarshal(rr.Body.Bytes(), &response)) |
| 672 | assertEqual(t, http.StatusBadRequest, response.Status) |
| 673 | assertEqual(t, "Bad Request. Invalid parameter provided in request: count.", response.Detail) |
| 674 | } |
| 675 | |
| 676 | func TestServerResourcesGetAllHandlerNonIntStartIndex(t *testing.T) { |
| 677 | req := httptest.NewRequest(http.MethodGet, "/Users?startIndex=BadBanana", nil) |
nothing calls this directly
no test coverage detected
searching dependent graphs…