forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
different required fileds when download hamledt (#729)
* send email when SEND_TOKEN is required to EXTRA_EMAIL address * removed unwanted line
- Loading branch information
1 parent
3a8443b
commit b4adbad
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,12 +170,16 @@ public void notAuthorizedUser_shouldSendEmail() throws Exception { | |
|
||
ClarinUserMetadataRest clarinUserMetadata3 = new ClarinUserMetadataRest(); | ||
clarinUserMetadata3.setMetadataKey("SEND_TOKEN"); | ||
clarinUserMetadata3.setMetadataValue("[email protected]"); | ||
|
||
ClarinUserMetadataRest clarinUserMetadata4 = new ClarinUserMetadataRest(); | ||
clarinUserMetadata4.setMetadataKey("EXTRA_EMAIL"); | ||
clarinUserMetadata4.setMetadataValue("[email protected]"); | ||
|
||
List<ClarinUserMetadataRest> clarinUserMetadataRestList = new ArrayList<>(); | ||
clarinUserMetadataRestList.add(clarinUserMetadata1); | ||
clarinUserMetadataRestList.add(clarinUserMetadata2); | ||
clarinUserMetadataRestList.add(clarinUserMetadata3); | ||
clarinUserMetadataRestList.add(clarinUserMetadata4); | ||
|
||
String adminToken = getAuthToken(admin.getEmail(), password); | ||
// Load bitstream from the item. | ||
|
@@ -256,12 +260,16 @@ public void authorizedUserWithoutMetadata_shouldSendEmail() throws Exception { | |
|
||
ClarinUserMetadataRest clarinUserMetadata3 = new ClarinUserMetadataRest(); | ||
clarinUserMetadata3.setMetadataKey("SEND_TOKEN"); | ||
clarinUserMetadata3.setMetadataValue("[email protected]"); | ||
|
||
ClarinUserMetadataRest clarinUserMetadata4 = new ClarinUserMetadataRest(); | ||
clarinUserMetadata4.setMetadataKey("EXTRA_EMAIL"); | ||
clarinUserMetadata4.setMetadataValue("[email protected]"); | ||
|
||
List<ClarinUserMetadataRest> clarinUserMetadataRestList = new ArrayList<>(); | ||
clarinUserMetadataRestList.add(clarinUserMetadata1); | ||
clarinUserMetadataRestList.add(clarinUserMetadata2); | ||
clarinUserMetadataRestList.add(clarinUserMetadata3); | ||
clarinUserMetadataRestList.add(clarinUserMetadata4); | ||
|
||
String adminToken = getAuthToken(admin.getEmail(), password); | ||
|
||
|
@@ -359,12 +367,16 @@ public void authorizedUserWithMetadata_shouldSendEmail() throws Exception { | |
|
||
ClarinUserMetadataRest clarinUserMetadata3 = new ClarinUserMetadataRest(); | ||
clarinUserMetadata3.setMetadataKey("SEND_TOKEN"); | ||
clarinUserMetadata3.setMetadataValue("[email protected]"); | ||
|
||
ClarinUserMetadataRest clarinUserMetadata4 = new ClarinUserMetadataRest(); | ||
clarinUserMetadata4.setMetadataKey("EXTRA_EMAIL"); | ||
clarinUserMetadata4.setMetadataValue("[email protected]"); | ||
|
||
List<ClarinUserMetadataRest> clarinUserMetadataRestList = new ArrayList<>(); | ||
clarinUserMetadataRestList.add(clarinUserMetadata1); | ||
clarinUserMetadataRestList.add(clarinUserMetadata2); | ||
clarinUserMetadataRestList.add(clarinUserMetadata3); | ||
clarinUserMetadataRestList.add(clarinUserMetadata4); | ||
|
||
String adminToken = getAuthToken(admin.getEmail(), password); | ||
|
||
|