(t *testing.T)
| 674 | } |
| 675 | |
| 676 | func TestServerResourcesGetAllHandlerNonIntStartIndex(t *testing.T) { |
| 677 | req := httptest.NewRequest(http.MethodGet, "/Users?startIndex=BadBanana", nil) |
| 678 | rr := httptest.NewRecorder() |
| 679 | newTestServer().ServeHTTP(rr, req) |
| 680 | |
| 681 | assertEqualStatusCode(t, http.StatusBadRequest, rr.Code) |
| 682 | |
| 683 | var response errors.ScimError |
| 684 | assertUnmarshalNoError(t, json.Unmarshal(rr.Body.Bytes(), &response)) |
| 685 | assertEqual(t, http.StatusBadRequest, response.Status) |
| 686 | assertEqual(t, "Bad Request. Invalid parameter provided in request: startIndex.", response.Detail) |
| 687 | } |
| 688 | |
| 689 | func TestServerResourcesGetHandler(t *testing.T) { |
| 690 | req := httptest.NewRequest(http.MethodGet, "/Users", nil) |
nothing calls this directly
no test coverage detected
searching dependent graphs…