Adding assert checks to Logical Device test recently added to
Olt/Onu Discovery Test Case
Add calico-node container specifier to log request for calico-node
similar to what was done to onos pod
Change-Id: I251ba94704bb7e1c9028f8d4df916db0ef2934f1
diff --git a/tests/atests/common/volthaMngr.py b/tests/atests/common/volthaMngr.py
index 9b314c2..20b45bc 100755
--- a/tests/atests/common/volthaMngr.py
+++ b/tests/atests/common/volthaMngr.py
@@ -90,12 +90,15 @@
for nsName in allRunningPods:
Namespace = nsName.get('NS')
podName = nsName.get('Name')
- if 'onos' not in podName:
- os.system('/usr/bin/kubectl logs -n %s -f %s > %s/%s.log 2>&1 &' %
- (Namespace, podName, testCaseUtils.get_dir(self, 'log'), podName))
- else:
+ if 'onos' in podName:
os.system('/usr/bin/kubectl logs -n %s -f %s onos > %s/%s.log 2>&1 &' %
(Namespace, podName, testCaseUtils.get_dir(self, 'log'), podName))
+ elif 'calico-node' in podName:
+ os.system('/usr/bin/kubectl logs -n %s -f %s calico-node > %s/%s.log 2>&1 &' %
+ (Namespace, podName, testCaseUtils.get_dir(self, 'log'), podName))
+ else:
+ os.system('/usr/bin/kubectl logs -n %s -f %s > %s/%s.log 2>&1 &' %
+ (Namespace, podName, testCaseUtils.get_dir(self, 'log'), podName))
def get_all_running_pods():