aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/tools/build/scripts/action_library_client
diff options
context:
space:
mode:
authorAviZi <avi.ziv@amdocs.com>2017-06-09 02:39:56 +0300
committerAviZi <avi.ziv@amdocs.com>2017-06-09 02:39:56 +0300
commit280f8015d06af1f41a3ef12e8300801c7a5e0d54 (patch)
tree9c1d3978c04cd28068f02073038c936bb49ca9e0 /openecomp-be/tools/build/scripts/action_library_client
parentfd3821dad11780d33c5373d74c957c442489945e (diff)
[SDC-29] Amdocs OnBoard 1707 initial commit.
Change-Id: Ie4d12a3f574008b792899b368a0902a8b46b5370 Signed-off-by: AviZi <avi.ziv@amdocs.com>
Diffstat (limited to 'openecomp-be/tools/build/scripts/action_library_client')
-rw-r--r--openecomp-be/tools/build/scripts/action_library_client/action_library_client.py16
-rw-r--r--openecomp-be/tools/build/scripts/action_library_client/doc/ASDC_Action_Lib_API_AID_1610_13.pdfbin0 -> 1619194 bytes
2 files changed, 8 insertions, 8 deletions
diff --git a/openecomp-be/tools/build/scripts/action_library_client/action_library_client.py b/openecomp-be/tools/build/scripts/action_library_client/action_library_client.py
index 7d6e32e4a8..7f513afe86 100644
--- a/openecomp-be/tools/build/scripts/action_library_client/action_library_client.py
+++ b/openecomp-be/tools/build/scripts/action_library_client/action_library_client.py
@@ -4,7 +4,7 @@
#
# action_library_client.py
#
-# A command-line client for the SDC Action Library.
+# A command-line client for the ASDC Action Library.
#
#
# Usage:
@@ -60,14 +60,14 @@
# - ALC_HTTP_INSECURE - allow untrusted SSL (server) connections.
# - ALC_TIMEOUT_SECONDS - invocation (e.g. HTTP) timeout in seconds.
# - ALC_JSON_DELIMITER - JSON delimiter in ouput.
-# - ALC_ECOMP_INSTANCE_ID - X-ECOMP-InstanceID header
+# - ALC_ECOMP_INSTANCE_ID - X-OPENECOMP-InstanceID header
#
# Configuration by 0600-mode INI file (section "action_library_client") is preferred.
#
# See:
# http://10.147.97.199:8080/api-docs/ - REST API Swagger docs
# https://www.python.org/dev/peps/pep-0008/ - style guide
-# ../doc/SDC_Action_Lib_API_AID_1610_13.pdf - REST API dev guide
+# ../doc/ASDC_Action_Lib_API_AID_1610_13.pdf - REST API dev guide
#
# Version history:
# - 1.0.0 November 28th 2016, LP, initial impl.
@@ -102,7 +102,7 @@ class Constants(object):
VERSION = "1.1.0"
APPLICATION = "action_library_client"
ACTIONS_URI = "onboarding-api/workflow/v1.0/actions"
- ECOMP_INSTANCE_ID = "sdc_alc"
+ ECOMP_INSTANCE_ID = "asdc_alc"
TIMEOUT_SECONDS_DEFAULT = 30
JSON_DELIMITER_DEFAULT = "----------"
LOG_FORMAT = "%(name)s\t%(levelname)s\t%(asctime)s\t%(message)s"
@@ -428,8 +428,8 @@ class NativeRESTClient(IRESTClient):
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Basic {0}".format(self.get_basic_credentials()),
- "X-ECOMP-InstanceID": Constants.ECOMP_INSTANCE_ID,
- "X-ECOMP-RequestID": IRESTClient.new_uuid()
+ "X-OPENECOMP-InstanceID": Constants.ECOMP_INSTANCE_ID,
+ "X-OPENECOMP-RequestID": IRESTClient.new_uuid()
}
handler = urllib2.HTTPHandler
@@ -520,8 +520,8 @@ class CURLRESTClient(IRESTClient):
cmd.extend(["--header", "Accept: application/json"])
cmd.extend(["--header", "Content-Type: application/json"])
cmd.extend(["--header", "Authorization: Basic {0}".format(self.get_basic_credentials())])
- cmd.extend(["--header", "X-ECOMP-InstanceID: {0}".format(Constants.ECOMP_INSTANCE_ID)])
- cmd.extend(["--header", "X-ECOMP-RequestID: {0}".format(IRESTClient.new_uuid())])
+ cmd.extend(["--header", "X-OPENECOMP-InstanceID: {0}".format(Constants.ECOMP_INSTANCE_ID)])
+ cmd.extend(["--header", "X-OPENECOMP-RequestID: {0}".format(IRESTClient.new_uuid())])
if extra_args:
for extra_arg in extra_args:
cmd.append(extra_arg)
diff --git a/openecomp-be/tools/build/scripts/action_library_client/doc/ASDC_Action_Lib_API_AID_1610_13.pdf b/openecomp-be/tools/build/scripts/action_library_client/doc/ASDC_Action_Lib_API_AID_1610_13.pdf
new file mode 100644
index 0000000000..966cbd9447
--- /dev/null
+++ b/openecomp-be/tools/build/scripts/action_library_client/doc/ASDC_Action_Lib_API_AID_1610_13.pdf
Binary files differ