From f9b0c349a5c83f9278f6b115d334598201d9d7e6 Mon Sep 17 00:00:00 2001 From: Michal Jagiello Date: Thu, 16 Jul 2020 19:16:42 +0200 Subject: First proposal for the structure for pythonsdk based scenarios Issue-ID: TEST-240 Change-Id: Ic989b26442b868363af7b3872bff49dd70d78be0 Signed-off-by: Michal Jagiello --- src/onaptests/steps/cloud/customer_create.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/onaptests/steps/cloud/customer_create.py (limited to 'src/onaptests/steps/cloud/customer_create.py') 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") -- cgit 1.2.3-korg