Improve netconf max devices test logic 41/91341/5
authorJamo Luhrsen <jluhrsen@gmail.com>
Wed, 15 Jul 2020 21:19:22 +0000 (14:19 -0700)
committerJamo Luhrsen <jluhrsen@gmail.com>
Thu, 16 Jul 2020 23:44:20 +0000 (23:44 +0000)
- there was some race condition where issuing a GET
(using the python getter.py tool) was not able to
get a 200 from every device initially after they
were all reported mounted. running the getter.py
tool once seems to resolve this and running it a
second time to do the actual checks for 200 on each
mounted device.

- also bumped the timeout factor from 2 to 3 since
I saw the larger iterations (750) hitting the timeout
once.

JIRA: NETCONF-711

Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
Change-Id: Iab274d89c44cc0a56bb4959e4ec67a0eaa345873

csit/suites/netconf/scale/max_devices.robot

index 4e8b5d92b1ee93d0698aaa06fe3b3c781fd707a6..fd4ecf3f54aa81302584b0b9a91be90c9429d7e3 100644 (file)
@@ -31,7 +31,7 @@ ${DEVICE_NAME_BASE}    netconf-scaling-device
 ${DEVICE_TYPE}    full-uri-device
 ${BASE_PORT}      17830
 ${NUM_WORKERS}    10
-${TIMEOUT_FACTOR}    2
+${TIMEOUT_FACTOR}    3
 ${MIN_CONNECT_TIMEOUT}    300
 ${DEVICES_RESULT_FILE}    devices.csv
 ${INSTALL_TESTTOOL}    True
@@ -91,10 +91,12 @@ Issue_Requests_On_Devices
     SSHLibrary.Open_Connection    ${client_ip}
     SSHKeywords.Flexible_Mininet_Login
     SSHLibrary.Write    python getter.py --odladdress=${ODL_SYSTEM_IP} --count=${expected_count} --name=${device_name_base} --workers=${worker_count}
+    SSHLibrary.Read_Until    ${DEFAULT_LINUX_PROMPT_STRICT}
+    SSHLibrary.Write    python getter.py --odladdress=${ODL_SYSTEM_IP} --count=${expected_count} --name=${device_name_base} --workers=${worker_count}
     FOR    ${number}    IN RANGE    1    ${expected_count}+1
         Read_Python_Tool_Operation_Result    ${number}
     END
-    SSHLibrary.Read_Until_Prompt
+    SSHLibrary.Read_Until    ${DEFAULT_LINUX_PROMPT_STRICT}
     SSHLibrary.Close_Connection
     SSHKeywords.Restore Current SSH Connection From Index    ${current_ssh_connection.index}