aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps/cloud/customer_create.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/onaptests/steps/cloud/customer_create.py')
-rw-r--r--src/onaptests/steps/cloud/customer_create.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/onaptests/steps/cloud/customer_create.py b/src/onaptests/steps/cloud/customer_create.py
index 6c78d55..1cc0879 100644
--- a/src/onaptests/steps/cloud/customer_create.py
+++ b/src/onaptests/steps/cloud/customer_create.py
@@ -1,5 +1,6 @@
from onapsdk.aai.business import Customer
from onapsdk.configuration import settings
+from onapsdk.exceptions import APIError
from ..base import BaseStep
@@ -25,4 +26,7 @@ class CustomerCreateStep(BaseStep):
- GLOBAL_CUSTOMER_ID.
"""
super().execute()
- Customer.create(settings.GLOBAL_CUSTOMER_ID, settings.GLOBAL_CUSTOMER_ID, "INFRA")
+ try:
+ Customer.create(settings.GLOBAL_CUSTOMER_ID, settings.GLOBAL_CUSTOMER_ID, "INFRA")
+ except APIError:
+ self._logger.warn("Try to update the Customer failed.")