From 5b0a36454780e8f29df5c7f2c0da91efc62e89a6 Mon Sep 17 00:00:00 2001 From: mojahidi Date: Thu, 15 Mar 2018 18:45:49 +0530 Subject: Added validation for Interface Operation Added validation for interface Operation, added input parameter names validation Change-Id: Ib02ec89f7fb53bd08481631c705c9f15757bf768 Issue-ID: SDC-1060 Signed-off-by: mojahidi --- .../main/resources/config/error-configuration.yaml | 54 +++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) (limited to 'catalog-be/src/main/resources/config/error-configuration.yaml') diff --git a/catalog-be/src/main/resources/config/error-configuration.yaml b/catalog-be/src/main/resources/config/error-configuration.yaml index 56d0e74b73..56eaaea830 100644 --- a/catalog-be/src/main/resources/config/error-configuration.yaml +++ b/catalog-be/src/main/resources/config/error-configuration.yaml @@ -2031,4 +2031,56 @@ errors: message: "Error: External Reference '%1' was not found.", messageId: "SVC4694" } - +#---------SVC4695----------------------------- +# %1 - Interface operation type + INTERFACE_OPERATION_TYPE_ALREADY_IN_USE: { + code: 400, + message: "Error: Interface Operation type %1 already in use", + messageId: "SVC4695" + } +#---------SVC4696----------------------------- +# %1 - workflow operation type + INTERFACE_OPERATION_TYPE_INVALID: { + code: 400, + message: "Error: Interface Operation type %1 is Invalid, Operation type should not contain + Special character, space and should not be greater than 200 characters ", + messageId: "SVC4696" + } +#---------SVC4697----------------------------- + INTERFACE_OPERATION_TYPE_MANDATORY: { + code: 404, + message: "Error: Interface Operation type is mandatory, Operation type can't be empty", + messageId: "SVC4697" + } +#---------SVC4698----------------------------- +# %1 - workflow operation description + INTERFACE_OPERATION_DESCRIPTION_MAX_LENGTH: { + code: 400, + message: "Error: Interface Operation description %1 is invalid, maximum 200 characters allowed", + messageId: "SVC4698" + } +#---------SVC4699----------------------------- + INTERFACE_OPERATION_INPUT_NAME_INVALID: { + code: 400, + message: "Error: Interface Operation input parameter names %1 are invalid ,Input parameters name should be unique", + messageId: "SVC4699" + } +#---------SVC4700----------------------------- + INTERFACE_OPERATION_OUTPUT_NAME_INVALID: { + code: 400, + message: "Error: Interface Operation output parameters invalid, should be unique and mandatory", + messageId: "SVC4700" + } +#---------SVC4701----------------------------- +# %1 - resource Id + INTERFACE_OPERATION_NOT_FOUND: { + code: 404, + message: "Error: Interface operations not found in the resource %1", + messageId: "SVC4701" + } +#---------SVC46702----------------------------- + INTERFACE_OPERATION_NOT_DELETED: { + code: 404, + message: "Error: Failed to delete interface operation.", + messageId: "SVC4702" + } -- cgit 1.2.3-korg