VOL-1057: Test Case: ONU discovery
Reverse previous solution to use onos from repo with encryption disabled and use new
voltha-apps charts to load onos-apps
Instead, wtih onos encryption disabled as the outcome of VOL-1343,
the original case where we use all locally built voltha images including onos
will now work
Change-Id: I3f5ac9e511e33cca0eee53f8d8fae53819586354
diff --git a/tests/atests/common/auto_test.py b/tests/atests/common/auto_test.py
index 709d218..e6d21db 100755
--- a/tests/atests/common/auto_test.py
+++ b/tests/atests/common/auto_test.py
@@ -24,12 +24,15 @@
import argparse
import volthaMngr
import preprovisioning
+import discovery
+import logging
DEFAULT_LOG_DIR = '/tmp/voltha_test_results'
+logging.basicConfig(level=logging.INFO)
def dirInit(logDir=DEFAULT_LOG_DIR,
volthaDir=os.environ['VOLTHA_BASE']):
- print(__file__)
+ logging.info(__file__)
"""
Init automated testing environment and return three directories: root dir,
voltha sources dir and log dir
@@ -45,7 +48,7 @@
os.system('mkdir -p ' + logDir + ' > /dev/null 2>&1')
os.system('rm -rf %s/*' % logDir)
- print('Start Provisioning Test at: %s\nRoot Directory: %s\n'
+ logging.info('Start Provisioning Test at: %s\nRoot Directory: %s\n'
'VOLTHA Directory: %s\nLog Directory: %s' %
(currentTime, rootDir, volthaDir, logDir))
@@ -70,5 +73,7 @@
volthaMngr.voltha_Initialize(ROOT_DIR, VOLTHA_DIR, LOG_DIR)
preprovisioning.runTest('olt.voltha.svc', 50060, 'ponsim_olt', 'ponsim_onu', LOG_DIR)
+
+ discovery.runTest('ponsim_olt', 'ponsim_onu', LOG_DIR)
time.sleep(5)