-
Notifications
You must be signed in to change notification settings - Fork 34
lf_interop_throughput.py: Added testhouse changes and individual device configuration in the script. #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lf_interop_throughput.py: Added testhouse changes and individual device configuration in the script. #134
Conversation
py-scripts/lf_interop_throughput.py
Outdated
if "devices" in interop_response.keys(): | ||
interop_devices = interop_response['devices'] | ||
# Extract usernames of devices that match the current eid | ||
if(len([v['user-name'] for d in interop_devices for k, v in d.items() if v.get('resource-id') == b['eid']]) == 0): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linting will catch this later, but best not to introduce from the start. Conditionals in Python should not have parentheses around sections that don't require it. Spacing will also be flagged too.
For conditionals, see example:
# Good
if my_var == 1:
pass
# Good, the `and` requires parentheses
if (my_var % 2 == 0 and my_var != 0) and my_var < 10:
pass
# Redundant parentheses
if (my_var == 1):
pass
# Redundant parentheses
if (my_var % 2 == 0 and my_var != 0):
pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it,
Sure @a-gavin, will remove the parentheses in the coming commits.
py-scripts/lf_interop_throughput.py
Outdated
for i in range(len(download_throughput)): | ||
individual_df_data.extend([download_throughput[i], upload_throughput[i], drop_a_per[i], drop_b_per[i], int(signal_list[i]), link_speed_list[i], rx_rate_list[i]]) | ||
individual_df_data.extend([download_throughput[i], upload_throughput[i], drop_a_per[i], drop_b_per[i], temp_avg_rtt[i][0], int(signal_list[i]), link_speed_list[i], rx_rate_list[i]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine as is, but any more complexity here probably warrants a dedicated test class to pass data around more succinctly.
…redundant URL formatting in Clear Wi-Fi Profiles API call Signed-off-by: litincandela <litin.ommi@candelatech.com>
Signed-off-by: litincandela <litin.ommi@candelatech.com>
…all CSV data. VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75 \ --mgr_port 8080 \ --upstream_port eth1 \ --test_duration 1m \ --download 10000000 \ --traffic_type lf_udp Signed-off-by: litincandela <litin.ommi@candelatech.com>
…and the report. VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75\ --mgr_port 8080\ --upstream_port eth1\ --test_duration 1m\ --download 10000000\ --traffic_type lf_udp - Took Average RTT data from Layer 3 Tab. Signed-off-by: litincandela <litin.ommi@candelatech.com>
…o 1 second for WebGUI. VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.74 \ --mgr_port 8080 \ --upstream_port eth0 \ --test_duration 30s \ --traffic_type lf_udp \ --ssid NETGEAR_2G_wpa2 \ --passwd Password@123 \ --security wpa2 \ --device_list 1.15,1.400 \ --download 10000000 \ --do_webgui Signed-off-by: litincandela <litin.ommi@candelatech.com>
…teroperability test. VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75\ --mgr_port 8080\ --upstream_port eth0\ --test_duration 1m\ --traffic_type lf_udp\ --ssid NETGEAR_2G_wpa2\ --passwd Password@123\ --security wpa2\ --do_interopability\ --download 10000000\ --interopability_config - Added table for pass/fail to check whether device connected to the specific SSID. - Skipping the devices failed to connect to the specific SSID to run the cx. Signed-off-by: litincandela <litin.ommi@candelatech.com>
…report. VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75\ --mgr_port 8080\ --upstream_port eth1\ --test_duration 1m\ --download 10000000\ --traffic_type lf_udp\ --dowebgui\ --get_live_view\ --total_floors Signed-off-by: litincandela <litin.ommi@candelatech.com>
…as Mbps instead of bytes VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75 \ --mgr_port 8080 \ --upstream_port eth1 \ --test_duration 1m \ --download 10000000 \ --traffic_type lf_udp \ --tput_mbps Signed-off-by: litincandela <litin.ommi@candelatech.com>
… CSV and the report. VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75 \ --mgr_port 8080 \ --upstream_port eth0 \ --test_duration 1m \ --traffic_type lf_udp \ --ssid NETGEAR_2G_wpa2 \ --passwd Password@123 \ --security wpa2 \ --download 10000000 - Made some reporting changes in the report. Signed-off-by: litincandela <litin.ommi@candelatech.com>
VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75\ --mgr_port 8080 \ --upstream_port eth0 \ --test_duration 1m \ --traffic_type lf_udp \ --ssid NETGEAR_2G_wpa2 \ --passwd Password@123 \ --security wpa2 \ --download 10000000 Signed-off-by: litincandela <litin.ommi@candelatech.com>
…al loops VERIFIED CLI: lf_interop_throughput.py python3 lf_interop_throughput.py --mgr 192.168.204.75\ --mgr_port 8080\ --upstream_port eth0\ --test_duration 1m\ --traffic_type lf_udp\ --ssid NETGEAR_2G_wpa2\ --passwd Password@123\ --security wpa2\ --download 10000000 Signed-off-by: litincandela <litin.ommi@candelatech.com>
d6398a7
to
0db0272
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing items I commented on.
Thanks for reviewing @a-gavin . |
No description provided.