Commit Graph

34 Commits

Author SHA1 Message Date
Matthew Stidham
3157b938b0 lf_wifi_capacity_test: fix mutable default arguments
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-29 14:18:56 -08:00
Matthew Stidham
4e7e8b9360 1. Updating argparse commands so they include flags
2. Create check_argparse which allows us to check which flags are or are not included in argparse statements.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-21 16:13:07 -07:00
Matthew Stidham
e6cf6b9337 1. Create pandas_extensions.py
2. Remove unused imports

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-21 11:11:04 -07:00
Matthew Stidham
36400e003d Making it so that lanforge-scripts can work if the repository isn't named exactly the same way
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-17 15:29:15 -07:00
erinnerim
1d7578251c Updates to import statements:
- Import importlib, os, and sys to each python script.
 - Append "lanforge-scripts" root directory to the system path, allowing each script to be called from an antecedent directory. e.g.
if 'lanforge-scripts' not in sys.path:
    sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../../")))
 - All statements of the form 'from <module> import <class>' replace with:
<module> = importlib.import_module("lanforge-scripts.<directory>.<module>")
<class> = <module>.<class>
2021-09-15 16:17:16 -07:00
erinnerim
e992055fc1 Revert "importlib refactor lf_wifi_capacity_test.py"
This reverts commit 1285f3207c.
2021-09-10 18:02:13 -07:00
erinnerim
1285f3207c importlib refactor lf_wifi_capacity_test.py 2021-09-10 15:35:45 -07:00
anjali
9aaf733cb7 add ssh_port option 2021-08-11 23:29:41 +05:30
Matthew Stidham
53015a5501 Updating to make better Ghost posts, with more details in the first table, and enabling reading test_tags from the kpi.csv files.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-22 15:27:20 -07:00
Chuck SmileyRekiere
c18d33f362 Revert "Add optional debug output to Chamberview test scripts, wifi capacity, dataplane"
This reverts commit a7ff3e9227.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-07-15 06:53:37 -06:00
Matthew Stidham
a7ff3e9227 Add optional debug output to Chamberview test scripts, wifi capacity, dataplane
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-14 16:07:56 -07:00
Matthew Stidham
864878b3e6 Fix instructions to set DUT in lf_wifi_capacity_test
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-02 13:27:21 -07:00
Chuck SmileyRekiere
9945e42f3c py-json: cv_test_manager.py , cv_test_reports.py
py-scripts: lf_dataplane_test.py lf_wifi_capacity_test.py

local_path updated to local_lf_report_dir

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-06-29 10:33:52 -06:00
Chuck SmileyRekiere
04c7a4135b lf_wif_capacity_test.py : set the report path location using local_path
Added the arg for args parser.  the local_path was already plumbed though
cv_test_manager.py and cv_test_reports.py

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-06-25 15:32:06 -06:00
Matthew Stidham
d1e4351b70 test rig command and other improvements to automation
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-06-24 16:59:13 -07:00
Matthew Stidham
f655d0df2e Run AP Auto Test from cv_to_grafana.py
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-21 10:34:21 -07:00
Matthew Stidham
21aa062244 Create cv_to_grafana and make fixes
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-14 15:23:24 -07:00
Matthew Stidham
371cde5843 More reliable way to parse CSV files
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-12 09:57:06 -07:00
Matthew Stidham
79fb905fd7 Building Grafana automation
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-07 16:59:04 -07:00
Matthew Stidham
c2cc40708a Properly load scenario, run wifi capacity test, scp kpi file to localhost, and save to grafana.
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-05-06 10:43:09 -07:00
Matthew Stidham
e9aef2eb0f upstream-port fix
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-05-04 16:05:41 -07:00
SushantBawiskar
84731c8e1b - all test will be using cv_test_manager to sync.
Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-26 19:12:05 +05:30
Ben Greear
84f0c79f02 ap-auto: Add influxdb support.
And tweak base class to be a bit more friendly about
reporting on what the influxdb code is doing or not.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-18 15:33:50 -07:00
Ben Greear
280099b8b2 cv-capacity: Support importing kpi.csv directly into influxdb
And update example command to what works for me on the c7-graphana
instance.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-17 16:18:04 -07:00
Ben Greear
ee8728f51e cv-dataplane: Add test-rig support.
For better KPI.csv output.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-17 08:33:33 -07:00
Ben Greear
a882659c93 cv: Capacity comments, fix 'sets' logic.
And add --test_rig cmd line arg so that KPI column can be properly
specified.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-17 08:24:04 -07:00
Ben Greear
f86eac4e55 cv: Make capacity use base class methods.
Also do better job of dealing with tests that do not start,
and ones with multiple popups.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-16 21:53:11 -07:00
SushantBawiskar
2a24c02ca8 - added stations creation to wifi capacity test
- added example

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-14 18:26:12 +05:30
Ben Greear
57a40d7668 cv-scripts: create tests with 'do not load old cfg' option.
This puts test in known state each time.  Requires code I just
committed to the GUI to function properly.

Also, add a sleep after submitting and requesting text
blobs (bad me, will have to find a better way to do this
in the future so that we don't depend on sleep and
races).

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-13 18:08:23 -07:00
Ben Greear
3c171bc260 cv-capacity: Re-work user input a bit.
*  Use realm method to query for all stations instead
of matching by name (which would miss wlan* devices)

*  Support interleave and linear sorting options.

*  Support setting upload/download speed.

*  Use args.foo variables directly much of the time,
  instead of making local copies of the same info.
  This simplifies code in my mind.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-13 15:23:35 -07:00
SushantBawiskar
0047ab216b - added notes in lf_wifi_capacity_test
Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-14 02:28:13 +05:30
SushantBawiskar
565a538c32 added manual ports selection in wifi capacity test 2021-04-14 02:28:13 +05:30
Chuck SmileyRekiere
03fb5f3b2b create_chamberview.py , lf_wifi_capacity_test.py modified file permissions
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-04-12 11:13:38 -06:00
SushantBawiskar
0f0852efed - Changes args parser for chamberview
- added Resource, VLAN, uses-2
- Changes import in lf_wifi_capacity_test.py

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-12 16:46:57 +05:30