aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps/cloud/cloud_region_create.py
diff options
context:
space:
mode:
authorThierry Hardy <thierry.hardy@orange.com>2020-09-24 11:03:54 +0200
committerThierry Hardy <thierry.hardy@orange.com>2020-09-24 12:37:57 +0200
commitc07e351a18ab99bccb96ffd97da623a8bb7b8e6d (patch)
tree4000553cdc03f9d331651a3a97e9416d878ddfe0 /src/onaptests/steps/cloud/cloud_region_create.py
parentd53b9bcaf16fc22554bd8b18e293d310a6056859 (diff)
Avoid to add vim info with ESR if the vim is already provisionned
- Optimization of the cloud configuration - CloudRegionCreateStep was called twice - Change the name of RegisterCloudRegionToMulticloud to RegisterCloudRegion to be more generic - Having the cloud creation in RegisterCloudRegionStep avoid adding the ESR each time an instantiation is launched so the CloudRegionCreateStep is now inserted in RegisterCloudRegionStep - USE_MULTICLOUD was no longer checked - The adding of availability zone and tenant is also moved to RegisterCloudRegionStep Pylint issue corrected Minor errors (init without added step) Issue-ID: TEST-264 Signed-off-by: Thierry Hardy <thierry.hardy@orange.com> Change-Id: Ibfd5506412fd7472144165c19bfe9e4dc53d6e08 Signed-off-by: Thierry Hardy <thierry.hardy@orange.com>
Diffstat (limited to 'src/onaptests/steps/cloud/cloud_region_create.py')
-rw-r--r--src/onaptests/steps/cloud/cloud_region_create.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/onaptests/steps/cloud/cloud_region_create.py b/src/onaptests/steps/cloud/cloud_region_create.py
deleted file mode 100644
index dafd6ec..0000000
--- a/src/onaptests/steps/cloud/cloud_region_create.py
+++ /dev/null
@@ -1,28 +0,0 @@
-from onapsdk.aai.cloud_infrastructure import CloudRegion
-from onapsdk.configuration import settings
-
-from ..base import BaseStep
-
-
-class CloudRegionCreateStep(BaseStep):
- """Cloud region creation step."""
-
- def execute(self):
- """Create cloud region.
-
- Use settings values:
- - CLOUD_REGION_CLOUD_OWNER,
- - CLOUD_REGION_ID,
- - CLOUD_REGION_TYPE,
- - CLOUD_REGION_VERSION.
-
- """
- super().execute()
- CloudRegion.create(
- cloud_owner=settings.CLOUD_REGION_CLOUD_OWNER,
- cloud_region_id=settings.CLOUD_REGION_ID,
- orchestration_disabled=False,
- in_maint=False,
- cloud_type=settings.CLOUD_REGION_TYPE,
- cloud_region_version=settings.CLOUD_REGION_VERSION
- )