Skip to content

Commit

Permalink
fix integration test #EA-3871
Browse files Browse the repository at this point in the history
  • Loading branch information
GordeaS authored and GordeaS committed Jul 17, 2024
1 parent 34b9ff0 commit 98ca962
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,13 @@ public void deleteUserSet_Success() throws Exception {

@Test
void insertItems_Collection_limitReached() throws Exception {
WebUserSetImpl userSet = createTestUserSet(USER_SET_LARGE, editorUserToken);
WebUserSetImpl userSet = createTestUserSet(USER_SET_LARGE, regularUserToken);
String identifier = userSet.getIdentifier();

String result = mockMvc
.perform(put(BASE_URL + "{identifier}/{datasetId}/{localId}", identifier, "01", "123_test")
.queryParam(CommonApiConstants.QUERY_PARAM_PROFILE, LdProfiles.STANDARD.name())
.header(HttpHeaders.AUTHORIZATION, editor2UserToken)
.header(HttpHeaders.AUTHORIZATION, regularUserToken)
.header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE))
.andExpect(status().is(HttpStatus.BAD_REQUEST.value())).andReturn().getResponse()
.getContentAsString();
Expand Down

0 comments on commit 98ca962

Please sign in to comment.