Skip to content

Commit

Permalink
[DSC-1662] fixing ITs
Browse files Browse the repository at this point in the history
  • Loading branch information
eskander committed Aug 23, 2024
1 parent 4430851 commit d102c55
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ public void destroy() {

@Test
public void testGetAccessStatus() throws Exception {
context.turnOffAuthorisationSystem();
itemService.addMetadata(context, item, "datacite", "rights", null, Item.ANY, "openaccess");
itemService.update(context, item);
context.restoreAuthSystemState();
String status = accessStatusService.getAccessStatus(context, item);
assertNotEquals("testGetAccessStatus 0", status, DefaultAccessStatusHelper.UNKNOWN);
}
Expand Down

0 comments on commit d102c55

Please sign in to comment.