Commit Graph

41 Commits

Author SHA1 Message Date
jitendracandela
c754751414 Added test tag
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
2022-04-16 17:20:35 +05:30
Matthew Stidham
86d5d7f21b lf_dataplane_test: Fix mutable default arguments
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-24 15:52:33 -08:00
Matthew Stidham
d245f9faac lf_dataplane_test: Fix bare except clauses
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-24 15:51:55 -08:00
Matthew Stidham
929aaf406e lf_dataplane_test: mixed spaces and tabs
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-24 15:49:11 -08:00
Matthew Stidham
703749772c lf_dataplane_test: Remove unused argument
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-19 10:05:36 -08:00
Matthew Stidham
20cb3895b8 lf_dataplane_test autopep8
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-10 15:00:33 -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
cc6987d55f Revert "importlib refactor lf_dataplane_test.py"
This reverts commit 685f78ff08.
2021-09-10 17:58:12 -07:00
erinnerim
4c16ab8116 Revert "importlib refactor create_chamberview_dut.py"
This reverts commit aa2e67432b.
2021-09-10 17:57:58 -07:00
erinnerim
03a4f95153 Revert "importlib refactor ../ typo"
This reverts commit 34afad944f.
2021-09-10 17:57:48 -07:00
erinnerim
34afad944f importlib refactor ../ typo 2021-09-10 15:35:45 -07:00
erinnerim
aa2e67432b importlib refactor create_chamberview_dut.py 2021-09-10 15:35:45 -07:00
erinnerim
685f78ff08 importlib refactor lf_dataplane_test.py 2021-09-10 15:35:45 -07:00
Chuck SmileyRekiere
097fe1e522 Revert "lf_dataplane_test.py : test_tag added to the command line args and"
This reverts commit c8e386186b.
2021-08-03 05:52:21 -06:00
Chuck SmileyRekiere
c8e386186b lf_dataplane_test.py : test_tag added to the command line args and
to the lf_dataplane_test

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-08-03 05:25:46 -06: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
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
5ef8761d9c lf_dataplane_test.py : fir pull_report be able to select the local path
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-06-25 10:58:47 -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
Chuck SmileyRekiere
e7b1a639c8 lf_dataplane_test.py : added influx config read from json
lf_influx_db.json : sample file - may need a place for sample files

The influx db configuration can be read from a passed in json file
--influx_json <file.json> , there is not error checking
on if the parameters are entered correctly.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-06-20 10:04:14 -06:00
Chuck SmileyRekiere
bb1da78e28 lf_dataplane_test.py lf_dataplane_config.json : support for pulling report in the json file
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-06-16 07:19:21 -06:00
Chuck SmileyRekiere
76a1b7f09b lf_dataplane_test.py : update comments for using -cli-socket 3990 -s LF_MGR
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-06-15 09:59:05 -06:00
Chuck SmileyRekiere
53c83af038 lf_dataplane_test.py : added support for json
lf_dataplane_config.json : sample json file for configuration of lf_dataplane_test.py

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-06-14 13:23:10 -06:00
sushant
1d71cee5f4 -help started working added %%
Signed-off-by: sushant <sushant.bawiskar@candelatech.com>
2021-06-14 21:41:44 +05:30
sushant
d08ff5ad3b -help started working
Signed-off-by: sushant <sushant.bawiskar@candelatech.com>
2021-06-14 21:32:31 +05:30
shivamcandela
4e63eddfa2 Added missing Port and local path details
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-06-02 01:40:25 +05:30
shivamcandela
3c76df8d41 cv report ssh port and local path added, cv manager report name variable added
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-05-31 23:27:38 +05:30
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
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
63ff3e8989 cv-rvr: Fix up rvr test
And tweak a few others to not have default args so that
if nothing is entered, defaults (or raw config lines/files
content is used if it exists.)

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-19 16:59:15 -07:00
Ben Greear
caed45086b cv-dataplane: Support putting kpi into influxdb.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-18 21:54:23 -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
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
Ben Greear
61b18233e2 cv: dataplane test converted to use base-class methods.
And tweak default cmd line args for others so that they
must be specified in order to override the other config
options (such as raw files).

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-16 21:07:56 -07:00
Ben Greear
7feda49d15 cv-dataplane: Support automating dataplane tests.
Similar to how the ap-auto script was implemented.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-15 15:45:29 -07:00