diff options
author | 2020-10-13 09:36:34 +0000 | |
---|---|---|
committer | 2020-10-13 09:36:34 +0000 | |
commit | 6276bed4df9b8458c4b6805edab81652fb15de76 (patch) | |
tree | 033870a5864fc9a7f2d172bb5cbf4c29660e4302 /src/onaptests/steps/cloud/k8s_connectivity_info_create.py | |
parent | 3665193f16a9be666fce10c562bdf459c95c22b2 (diff) | |
parent | ded9ae3b507b9687a68cc00dfc75e13130be13ff (diff) |
Merge "Revert "Create basic_cnf test leveraging onapsdk""
Diffstat (limited to 'src/onaptests/steps/cloud/k8s_connectivity_info_create.py')
-rw-r--r-- | src/onaptests/steps/cloud/k8s_connectivity_info_create.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/onaptests/steps/cloud/k8s_connectivity_info_create.py b/src/onaptests/steps/cloud/k8s_connectivity_info_create.py deleted file mode 100644 index ef95876..0000000 --- a/src/onaptests/steps/cloud/k8s_connectivity_info_create.py +++ /dev/null @@ -1,33 +0,0 @@ -from onapsdk.configuration import settings -from onapsdk.msb.k8s import ConnectivityInfo - -from ..base import BaseStep - -class K8SConnectivityInfoStep(BaseStep): - """CreateConnnectivityInfoStep.""" - - @BaseStep.store_state - def execute(self): - """Creation k8s connectivity information - - Use settings values: - - CLOUD_REGION_ID, - - CLOUD_REGION_CLOUD_OWNER, - - K8S_KUBECONFIG_FILE. - """ - super().execute() - ######## Create Connectivity Info ######################################### - try: - ConnectivityInfo.get_connectivity_info_by_region_id(settings.CLOUD_REGION_ID) - except ValueError: - ConnectivityInfo.create(settings.CLOUD_REGION_ID, - settings.CLOUD_REGION_CLOUD_OWNER, - open(settings.K8S_KUBECONFIG_FILE, 'rb').read()) - - def cleanup(self) -> None: - """Cleanup K8S Connectivity information. - """ - self._logger.info("*Clean the k8s connectivity information *") - super().cleanup() - connectinfo = ConnectivityInfo.get_connectivity_info_by_region_id(settings.CLOUD_REGION_ID) - connectinfo.delete() |