diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2020-11-03 15:25:58 +0000 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2020-11-04 17:23:40 +0000 |
commit | eeeb7190de7185c9994e460cc0472e8817ab68aa (patch) | |
tree | a6385b3748f32b583b326abf016c1b8628bac254 /src/onaptests/steps/cloud | |
parent | 31dc9d07a9bd5c98304ae7d58e995321d3e1507f (diff) |
Integration tests report enrichment
Improve the step description for better reporting
Add duration step in pythonsdk-test reporting
Issue-ID: TEST-271
Issue-ID: TEST-272
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I6d46cb38ae236bc578eb15982c2c0b8f2b0c0791
Diffstat (limited to 'src/onaptests/steps/cloud')
7 files changed, 70 insertions, 0 deletions
diff --git a/src/onaptests/steps/cloud/complex_create.py b/src/onaptests/steps/cloud/complex_create.py index b4d110d..1bb7e51 100644 --- a/src/onaptests/steps/cloud/complex_create.py +++ b/src/onaptests/steps/cloud/complex_create.py @@ -7,6 +7,16 @@ from ..base import BaseStep class ComplexCreateStep(BaseStep): """Complex creation step.""" + @property + def description(self) -> str: + """Step description.""" + return "Create complex." + + @property + def component(self) -> str: + """Component name.""" + return "AAI" + @BaseStep.store_state def execute(self): """Create complex. diff --git a/src/onaptests/steps/cloud/connect_service_subscription_to_cloud_region.py b/src/onaptests/steps/cloud/connect_service_subscription_to_cloud_region.py index 1d0dbfb..97a7823 100644 --- a/src/onaptests/steps/cloud/connect_service_subscription_to_cloud_region.py +++ b/src/onaptests/steps/cloud/connect_service_subscription_to_cloud_region.py @@ -28,6 +28,16 @@ class ConnectServiceSubToCloudRegionStep(BaseStep): self.add_step(LinkCloudRegionToComplexStep(cleanup=cleanup)) self.add_step(CustomerServiceSubscriptionCreateStep(cleanup=cleanup)) + @property + def description(self) -> str: + """Step description.""" + return "Connect service subscription with cloud region." + + @property + def component(self) -> str: + """Component name.""" + return "AAI" + @BaseStep.store_state def execute(self): """Connect service subsription to cloud region and tenant. diff --git a/src/onaptests/steps/cloud/customer_create.py b/src/onaptests/steps/cloud/customer_create.py index 3c0ef11..b99fdb1 100644 --- a/src/onaptests/steps/cloud/customer_create.py +++ b/src/onaptests/steps/cloud/customer_create.py @@ -7,6 +7,16 @@ from ..base import BaseStep class CustomerCreateStep(BaseStep): """Customer creation step.""" + @property + def description(self) -> str: + """Step description.""" + return "Create customer." + + @property + def component(self) -> str: + """Component name.""" + return "AAI" + @BaseStep.store_state def execute(self): """Create cutomer. diff --git a/src/onaptests/steps/cloud/customer_service_subscription_create.py b/src/onaptests/steps/cloud/customer_service_subscription_create.py index 707d79b..b318dc7 100644 --- a/src/onaptests/steps/cloud/customer_service_subscription_create.py +++ b/src/onaptests/steps/cloud/customer_service_subscription_create.py @@ -18,6 +18,16 @@ class CustomerServiceSubscriptionCreateStep(BaseStep): super().__init__(cleanup=cleanup) self.add_step(CustomerCreateStep(cleanup=cleanup)) + @property + def description(self) -> str: + """Step description.""" + return "Create customer's service subscription." + + @property + def component(self) -> str: + """Component name.""" + return "AAI" + @BaseStep.store_state def execute(self): """Create customer service subsription. diff --git a/src/onaptests/steps/cloud/k8s_connectivity_info_create.py b/src/onaptests/steps/cloud/k8s_connectivity_info_create.py index 6106d7e..279ae0d 100644 --- a/src/onaptests/steps/cloud/k8s_connectivity_info_create.py +++ b/src/onaptests/steps/cloud/k8s_connectivity_info_create.py @@ -6,6 +6,16 @@ from ..base import BaseStep class K8SConnectivityInfoStep(BaseStep): """CreateConnnectivityInfoStep.""" + @property + def description(self) -> str: + """Step description.""" + return "Create K8S connectivity info." + + @property + def component(self) -> str: + """Component name.""" + return "K8S plugin" + @BaseStep.store_state def execute(self): """Creation k8s connectivity information diff --git a/src/onaptests/steps/cloud/link_cloud_to_complex.py b/src/onaptests/steps/cloud/link_cloud_to_complex.py index 22c4aac..fcfa711 100644 --- a/src/onaptests/steps/cloud/link_cloud_to_complex.py +++ b/src/onaptests/steps/cloud/link_cloud_to_complex.py @@ -18,6 +18,16 @@ class LinkCloudRegionToComplexStep(BaseStep): super().__init__(cleanup=cleanup) self.add_step(ComplexCreateStep(cleanup=cleanup)) + @property + def description(self) -> str: + """Step description.""" + return "Connect cloud region with complex." + + @property + def component(self) -> str: + """Component name.""" + return "AAI" + @BaseStep.store_state def execute(self): """Link cloud region to complex. diff --git a/src/onaptests/steps/cloud/register_cloud.py b/src/onaptests/steps/cloud/register_cloud.py index 8931847..341fc1c 100644 --- a/src/onaptests/steps/cloud/register_cloud.py +++ b/src/onaptests/steps/cloud/register_cloud.py @@ -10,6 +10,16 @@ from ..base import BaseStep class RegisterCloudRegionStep(BaseStep): """Cloud region registration step.""" + @property + def description(self) -> str: + """Step description.""" + return "Register cloud region." + + @property + def component(self) -> str: + """Component name.""" + return "AAI" + @BaseStep.store_state def execute(self): """Register cloud region |