aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/ims
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-03-15 17:15:38 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2020-07-07 19:49:42 +0200
commitdff56f45d6472725a4b57203c9d0b7d97cc0cc78 (patch)
treed95b4147f118888b5a6e92f2fceb8c38be01eb7f /functest_kubernetes/ims
parentd783537fa4ab779adf9151c91bb82ec31f58a7c2 (diff)
Fix phase conditions
Else it waits 20 minutes for nothing [1] [1] https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-cnf-latest-k8s_vims-run/5/console Change-Id: I6427f28975b465ef503f9a3f2868b878fa92b55e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 83d3161c52c8cc8d9e4f52d7a693bbcc32508379)
Diffstat (limited to 'functest_kubernetes/ims')
-rw-r--r--functest_kubernetes/ims/ims.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/functest_kubernetes/ims/ims.py b/functest_kubernetes/ims/ims.py
index e12c0024..5eb5084c 100644
--- a/functest_kubernetes/ims/ims.py
+++ b/functest_kubernetes/ims/ims.py
@@ -7,7 +7,7 @@
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
-"""Deploy and Test Clearwater vIMS using Kubernetes"""
+"""Deploy and test Clearwater vIMS using Kubernetes"""
from __future__ import division
@@ -25,7 +25,7 @@ from xtesting.core import testcase
class Vims(testcase.TestCase):
- """Deploy and Test Clearwater vIMS using Kubernetes
+ """Deploy and test Clearwater vIMS using Kubernetes
It leverage on the Python kubernetes client to apply operation proposed by
clearwater-docker.
@@ -97,6 +97,7 @@ class Vims(testcase.TestCase):
for event in watch_deployment.stream(
func=self.appsv1.list_namespaced_deployment,
namespace=self.namespace, timeout_seconds=self.watch_timeout):
+ self.__logger.debug(event)
if event["object"].status.ready_replicas == 1:
if event['object'].metadata.name in status:
status.remove(event['object'].metadata.name)
@@ -126,9 +127,10 @@ class Vims(testcase.TestCase):
for event in watch_deployment.stream(
func=self.corev1.list_namespaced_pod,
namespace=self.namespace, timeout_seconds=self.watch_timeout):
+ self.__logger.debug(event)
if event["object"].metadata.name == self.test_container_name:
if (event["object"].status.phase == 'Succeeded' or
- event["object"].status.phase == 'Error'):
+ event["object"].status.phase == 'Failed'):
watch_deployment.stop()
api_response = self.corev1.read_namespaced_pod_log(
name=self.test_container_name, namespace=self.namespace)