diff --git a/src/KubeLibrary/KubeLibrary.py b/src/KubeLibrary/KubeLibrary.py index 3f73adc..7d5de55 100755 --- a/src/KubeLibrary/KubeLibrary.py +++ b/src/KubeLibrary/KubeLibrary.py @@ -277,6 +277,7 @@ def _add_api(self, reference, class_name): self.__dict__[reference] = class_name(self.api_client) if not self.cert_validation: self.__dict__[reference].api_client.rest_client.pool_manager.connection_pool_kw['cert_reqs'] = ssl.CERT_NONE + self.__dict__[reference].api_client.configuration.verify_ssl = False def k8s_api_ping(self): """Performs GET on /api/v1/ for simple check of API availability. diff --git a/testcases/reload-config/reload-config_kw.robot b/testcases/reload-config/reload-config_kw.robot index 7e64921..611bbdd 100755 --- a/testcases/reload-config/reload-config_kw.robot +++ b/testcases/reload-config/reload-config_kw.robot @@ -11,7 +11,7 @@ ${KUBE_CONFIG2} %{KUBE_CONFIG2=./cluster2-conf} *** Keywords *** Connected to cluster-1 - Reload Config kube_config=${KUBE_CONFIG1} incluster=False cert_validation=False + Reload Config kube_config=${KUBE_CONFIG1} incluster=False cert_validation=True K8s Api Ping Cluster has namespace