aboutsummaryrefslogtreecommitdiffstats
path: root/onap-client/onap_client/sdc/catalog/license_model_catalog.py
diff options
context:
space:
mode:
authorstark, steven <steven.stark@att.com>2020-11-17 12:02:50 -0800
committerstark, steven <steven.stark@att.com>2020-11-17 12:02:50 -0800
commite618989d37d8b786b5b0a9f2fa42bafa32475eed (patch)
treeadc989060dce1405908eb22b4c79f45974d21390 /onap-client/onap_client/sdc/catalog/license_model_catalog.py
parent8d35775b374116182a5262fa6249c989d3d7509e (diff)
[VVP] Add urllib3 retry to OC requestsguilin
Adding retry to OC for requests. - Retry limit is 3, back_off time is 2.5, 5, then 10 seconds for last retry. Fixing an issue w/ delete SI payload. Removing auto-generated X-Transaction-ID header from SDC requests. Issue-ID: VVP-487 Signed-off-by: stark, steven <steven.stark@att.com> Change-Id: I3eb2b3b65ce00307066867f65f2ef9a03f7d5524
Diffstat (limited to 'onap-client/onap_client/sdc/catalog/license_model_catalog.py')
-rw-r--r--onap-client/onap_client/sdc/catalog/license_model_catalog.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/onap-client/onap_client/sdc/catalog/license_model_catalog.py b/onap-client/onap_client/sdc/catalog/license_model_catalog.py
index 87a9346..484598c 100644
--- a/onap-client/onap_client/sdc/catalog/license_model_catalog.py
+++ b/onap-client/onap_client/sdc/catalog/license_model_catalog.py
@@ -34,7 +34,6 @@
# limitations under the License.
#
# ============LICENSE_END============================================
-import uuid
from functools import partial
from onap_client.sdc.client import SDCClient
@@ -63,7 +62,6 @@ class LicenseModelClient(SDCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"USER_ID": self.sdc_designer_user_id,
- "X-TransactionId": str(uuid.uuid4()),
"X-FromAppId": self.config.application_id,
},
"return_data": {
@@ -92,7 +90,6 @@ class LicenseModelClient(SDCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"USER_ID": self.sdc_designer_user_id,
- "X-TransactionId": str(uuid.uuid4()),
"X-FromAppId": self.config.application_id,
},
"return_data": {"key_group_id": ("value",)},
@@ -118,7 +115,6 @@ class LicenseModelClient(SDCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"USER_ID": self.sdc_designer_user_id,
- "X-TransactionId": str(uuid.uuid4()),
"X-FromAppId": self.config.application_id,
},
"return_data": {"entitlement_pool_id": ("value",)},
@@ -145,7 +141,6 @@ class LicenseModelClient(SDCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"USER_ID": self.sdc_designer_user_id,
- "X-TransactionId": str(uuid.uuid4()),
"X-FromAppId": self.config.application_id,
},
"return_data": {"feature_group_id": ("value",)},
@@ -167,7 +162,6 @@ class LicenseModelClient(SDCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"USER_ID": self.sdc_designer_user_id,
- "X-TransactionId": str(uuid.uuid4()),
"X-FromAppId": self.config.application_id,
},
"return_data": {"license_agreement_id": ("value",)},
@@ -189,7 +183,6 @@ class LicenseModelClient(SDCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"USER_ID": self.sdc_designer_user_id,
- "X-TransactionId": str(uuid.uuid4()),
"X-FromAppId": self.config.application_id,
},
"auth": self.auth,
@@ -208,7 +201,6 @@ class LicenseModelClient(SDCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"USER_ID": self.sdc_designer_user_id,
- "X-TransactionId": str(uuid.uuid4()),
"X-FromAppId": self.config.application_id,
},
"return_data": {
@@ -232,7 +224,6 @@ class LicenseModelClient(SDCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"USER_ID": self.sdc_designer_user_id,
- "X-TransactionId": str(uuid.uuid4()),
"X-FromAppId": self.config.application_id,
},
"auth": self.auth,
@@ -251,7 +242,6 @@ class LicenseModelClient(SDCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"USER_ID": self.sdc_designer_user_id,
- "X-TransactionId": str(uuid.uuid4()),
"X-FromAppId": self.config.application_id,
},
"auth": self.auth,
@@ -269,7 +259,6 @@ class LicenseModelClient(SDCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"USER_ID": self.sdc_designer_user_id,
- "X-TransactionId": str(uuid.uuid4()),
"X-FromAppId": self.config.application_id,
},
"return_data": {"results": ("results",)},