mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
fix test
This commit is contained in:
@@ -210,6 +210,7 @@ public class VersionHistoryRestRepositoryIT extends AbstractControllerIntegratio
|
||||
|
||||
@Test
|
||||
public void findVersionsOfVersionHistoryUnauthorizedTest() throws Exception {
|
||||
configurationService.setProperty("versioning.item.history.view.admin", true);
|
||||
context.turnOffAuthorisationSystem();
|
||||
parentCommunity = CommunityBuilder.createCommunity(context)
|
||||
.withName("Parent Community")
|
||||
@@ -232,6 +233,8 @@ public class VersionHistoryRestRepositoryIT extends AbstractControllerIntegratio
|
||||
|
||||
getClient().perform(get("/api/versioning/versionhistories/" + versionHistory.getID() + "/versions"))
|
||||
.andExpect(status().isUnauthorized());
|
||||
|
||||
configurationService.setProperty("versioning.item.history.view.admin", true);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user