aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps/cloud/customer_create.py
blob: 3c0ef116727d61fcb6eab80acca2b7e07c572a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from onapsdk.aai.business import Customer
from onapsdk.configuration import settings

from ..base import BaseStep


class CustomerCreateStep(BaseStep):
    """Customer creation step."""

    @BaseStep.store_state
    def execute(self):
        """Create cutomer.

        Use settings values:
         - GLOBAL_CUSTOMER_ID.
        """
        Customer.create(settings.GLOBAL_CUSTOMER_ID, settings.GLOBAL_CUSTOMER_ID, "INFRA")