Fix nodeport check certs assertion 98/143398/1 master
authorFiete Ostkamp <fiete.ostkamp@telekom.de>
Fri, 27 Feb 2026 07:23:28 +0000 (08:23 +0100)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Fri, 27 Feb 2026 07:23:28 +0000 (08:23 +0100)
- adjust condition in nodeport check certs script
  that marks test as successful

Issue-ID: INT-2363
Change-Id: I43252eeb0c02d776b489c9f9ec0f86d722101635
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
infra-healthcheck/infra_healthcheck/k8stest.py

index ec25ca4..0f0da32 100644 (file)
@@ -68,7 +68,7 @@ class K8sTesting(testcase.TestCase):
                 remarks.append(log.replace('>', ''))
             else:
                 remarks.append(log)
                 remarks.append(log.replace('>', ''))
             else:
                 remarks.append(log)
-        if 'PASS' in remarks:
+        if any('PASS' in remark for remark in remarks):
             success = True
 
         self.details = details
             success = True
 
         self.details = details