Skip to content

Commit 3ac6fe5

Browse files
author
N S Deepika Singh
committed
update message constant
1 parent 9a31c22 commit 3ac6fe5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sdm/src/main/java/com/sap/cds/sdm/constants/SDMConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private SDMConstants() {
4646
public static final String USER_NOT_AUTHORISED_ERROR =
4747
"You do not have the required permissions to upload attachments. Please contact your administrator for access.";
4848
public static final String MIMETYPE_INVALID_ERROR =
49-
"MIME type of the uploaded file is blocked according to your repository configuration. Please contact your administrator for access.";
49+
"This file type is not allowed in this repository. Contact your administrator for assistance.";
5050
public static final String USER_NOT_AUTHORISED_ERROR_LINK =
5151
"You do not have the required permissions to create links. Please contact your administrator for access.";
5252
public static final String FILE_NOT_FOUND_ERROR = "Object not found in repository";

sdm/src/test/java/integration/com/sap/cds/sdm/IntegrationTest_MultipleFacet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ void testDeleteMultipleAttachmentsReferencesFootnotes() throws IOException {
848848

849849
@Test
850850
@Order(17)
851-
void testUploadBlockedMimeTypeZIP() throws IOException {
851+
void testUploadBlockedMimeType() throws IOException {
852852
System.out.println("Test (17) : Upload blocked mimeType .rtf");
853853
Boolean testStatus = false;
854854

@@ -873,7 +873,7 @@ void testUploadBlockedMimeTypeZIP() throws IOException {
873873

874874
String actualResponse = createResponse.get(0);
875875
String expectedJson =
876-
"{\"error\":{\"code\":\"500\",\"message\":\"MIME type of the uploaded file is blocked according to your repository configuration. Please contact your administrator for access.\"}}";
876+
"{\"error\":{\"code\":\"500\",\"message\":\"This file type is not allowed in this repository. Contact your administrator for assistance.\"}}";
877877

878878
if (!expectedJson.equals(actualResponse)) {
879879
allBlocked = false;

sdm/src/test/java/integration/com/sap/cds/sdm/IntegrationTest_SingleFacet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ void testDeleteMultipleAttachments() throws IOException {
846846

847847
@Test
848848
@Order(20)
849-
void testUploadBlockedMimeTypeZIP() throws IOException {
849+
void testUploadBlockedMimeType() throws IOException {
850850
System.out.println("Test (20): Upload blocked mimeType .rtf");
851851
Boolean testStatus = false;
852852
String response = api.createEntityDraft(appUrl, entityName, entityName2, srvpath);
@@ -867,7 +867,7 @@ void testUploadBlockedMimeTypeZIP() throws IOException {
867867
api.createAttachment(appUrl, entityName, facetName, entityID2, srvpath, postData, file);
868868
String actualResponse = createResponse.get(0);
869869
String expectedJson =
870-
"{\"error\":{\"code\":\"500\",\"message\":\"MIME type of the uploaded file is blocked according to your repository configuration. Please contact your administrator for access.\"}}";
870+
"{\"error\":{\"code\":\"500\",\"message\":\"This file type is not allowed in this repository. Contact your administrator for assistance.\"}}";
871871

872872
if (expectedJson.equals(actualResponse)) {
873873
response = api.saveEntityDraft(appUrl, entityName, srvpath, entityID2);

0 commit comments

Comments
 (0)