CCSDK-3531 improve cmd-exec returned err msg 48/125848/4
authorOleg Mitsura <oleg.mitsura@amdocs.com>
Tue, 23 Nov 2021 14:23:44 +0000 (09:23 -0500)
committerOleg Mitsura <oleg.mitsura@amdocs.com>
Tue, 30 Nov 2021 12:08:10 +0000 (07:08 -0500)
commitc5684c3e3a81d58eedc3dbee3d943ba20c6ddfa5
treed5723abaa74498da933299e3887ca25d7717ecc4
parent886d02197ce3a6b3ecb0c40d191e649b23e3bb91
CCSDK-3531 improve cmd-exec returned err msg

Issue-ID: CCSDK-3531

Improve end-user CBA's Python scripts ability to return
error messages on failues.
See JIRA story for examples: https://jira.onap.org/browse/CCSDK-3531

adds functions send_response_err_msg(err_message)
and send_response_err_msg_and_exit(ret_err_msg, code=1)

Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
Change-Id: Ideda64dd108f987c3c4515c70daf9f7b6d2b1f2f
components/model-catalog/proto-definition/proto/CommandExecutor.proto
ms/blueprintsprocessor/functions/python-executor/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/python/executor/ComponentRemotePythonExecutor.kt
ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/api/data/BlueprintRemoteProcessorData.kt
ms/blueprintsprocessor/modules/services/execution-service/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/RemoteScriptExecutionService.kt
ms/command-executor/src/main/python/cds_utils/payload_coder.py
ms/command-executor/src/main/python/command_executor_handler.py
ms/command-executor/src/main/python/command_executor_server.py
ms/command-executor/src/main/python/proto/CommandExecutor_pb2.py
ms/command-executor/src/main/python/server.py
ms/command-executor/src/main/python/utils.py