Fix NETCONF notification test setup for Python scripts 70/102470/1
authorSangwook Ha <sangwook.ha@verizon.com>
Fri, 23 Sep 2022 20:30:37 +0000 (13:30 -0700)
committerSangwook Ha <sangwook.ha@verizon.com>
Fri, 23 Sep 2022 20:30:57 +0000 (13:30 -0700)
The test setup for Python scripts used in the notifications_basic test
suite is not consistent - mix of Python 2 & 3.

Clean that up so that all the packages are available for Python 3, and
upgrade basic tools for package installation to make the following
installation process more reliable.

Change-Id: I979a6872e45412004ab024b15f83c2ee832eacf0
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
csit/suites/netconf/notifications/notifications_basic.robot

index 1e2e45aa457b2c5b552e0c9ac225592fb9f675c0..eb823a5ed9f82a0e4a5873382e1c5e22d1e1241b 100644 (file)
@@ -156,10 +156,10 @@ Setup_Everything
     SSHKeywords.Open_Connection_To_Tools_System
     SSHLibrary.Put_File    ${CURDIR}/../../../../tools/wstools/wsreceiver.py
     SSHLibrary.Put_File    ${CURDIR}/../../../../tools/wstools/ssereceiver.py
-    SSHLibrary.Execute Command    sudo apt-get install -y python-pip    return_stdout=True    return_stderr=True
-    SSHLibrary.Execute_Command    sudo pip install websocket-client    return_stdout=True    return_stderr=True
-    SSHLibrary.Execute Command    sudo python3 -m pip install asyncio aiohttp aiohttp-sse-client coroutine    return_stdout=True    return_stderr=True
-    RequestsLibrary.Create Session    restconf    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}
+    SSHLibrary.Execute_Command    sudo apt-get install -y python3-pip    return_stdout=True    return_stderr=True
+    SSHLibrary.Execute_Command    sudo python3 -m pip install --upgrade pip setuptools wheel    return_stdout=True    return_stderr=True
+    SSHLibrary.Execute_Command    sudo python3 -m pip install websocket-client asyncio aiohttp aiohttp-sse-client coroutine    return_stdout=True    return_stderr=True
+    RequestsLibrary.Create_Session    restconf    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}
     KarafKeywords.Execute_Controller_Karaf_Command_On_Background    log:set ${CONTROLLER_LOG_LEVEL}
 
 Teardown_Everything