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.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/onaptests/steps/cloud/customer_create.py b/src/onaptests/steps/cloud/customer_create.py
new file mode 100644
index 0000000..2bdf312
--- /dev/null
+++ b/src/onaptests/steps/cloud/customer_create.py
@@ -0,0 +1,16 @@
+from onapsdk.aai.business import Customer
+from onapsdk.configuration import settings
+
+from ..base import BaseStep
+
+
+class CustomerCreateStep(BaseStep):
+ """Customer creation step."""
+
+ def execute(self):
+ """Create cutomer.
+
+ Use settings values:
+ - GLOBAL_CUSTOMER_ID.
+ """
+ Customer.create(settings.GLOBAL_CUSTOMER_ID, settings.GLOBAL_CUSTOMER_ID, "INFRA")