Commit Graph

183 Commits

Author SHA1 Message Date
Chuck SmileyRekiere
bcfdb1063f lf_check.py : look for error in stdout
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-05 22:33:30 -06:00
Chuck SmileyRekiere
b5cad4a698 ct_ QA fixed network dictionary typo
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-05 17:45:44 -06:00
Chuck SmileyRekiere
daabc352f8 lf_check.py : updating code to work with wireless network configuration
upto endless number of network configurations .

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-05 16:43:41 -06:00
Chuck SmileyRekiere
1ea61f07ee lf_check.py : exit if there are exceptions reading the radio data.
No radio data indicates that the LANforge GUI may not be running

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-05 07:03:47 -06:00
Chuck SmileyRekiere
8d8585fa31 lf_check.py : making the relationship between the json and test parameters
better understood.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-04 16:17:34 -06:00
Matthew Stidham
097d2f42f5 Improving py-scripts files to fix errors with regression test
updating to_pip.sh

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-10-04 11:51:37 -07:00
Chuck SmileyRekiere
556045bb2b lf_check.py : save logs and gather data on Timeout condition if possible
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-01 08:34:57 -06:00
Chuck SmileyRekiere
2bae23156c lf_check.py : fixed funtion calls to loading databases
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-01 08:11:42 -06:00
Chuck SmileyRekiere
8e745d3f75 lf_check.py : removed the ghost post information
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-24 18:49:38 -06:00
Chuck SmileyRekiere
d24ff054f7 lf_check.py : if the radio dictionary is empty to not error.
ct_us_003_tests.json updated for ASUS AP
ct_003_AX88U_dut.json : added the ASUS AP configuration

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-24 15:09:15 -06:00
Chuck SmileyRekiere
a6c6055fa2 lf_check.py : removed exit if radio dictionary not present.
The radio dictionay can be read from the device

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-24 13:12:57 -06:00
Chuck SmileyRekiere
4795541e86 lf_check.py updated comments
ct_us_003_tests.json - initial checkin

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-24 12:52:46 -06:00
Chuck SmileyRekiere
de62fbd041 lf_check.py added the lanforge GUI version
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-22 11:54:02 -06:00
Chuck SmileyRekiere
1dde46c7bd lf_check.py : LANforge server version in the output
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-22 06:20:31 -06:00
Chuck SmileyRekiere
0514f9a6f7 lf_check.py removed references for deprecated functionality igg
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-21 08:27:38 -06:00
Chuck SmileyRekiere
96f3366bfb lf_check.py : removed unused parameters
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-21 08:25:56 -06:00
Chuck SmileyRekiere
d509e02e10 lf_check.py : code cleanup for deprecated functionality
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-21 08:24:06 -06:00
Chuck SmileyRekiere
4b3e25e6bf lf_check.py , X.json - updated test_parameters to test_rig_parameters to
avoid confusion

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-21 07:06:35 -06:00
Chuck SmileyRekiere
4d8001da08 lf_check.py code cleanup for supported QA funtionality. Removal of igg
support.  lf_check_igg.py in sandbox maintinas support.
Updated references in json files

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-21 06:58:41 -06:00
Chuck SmileyRekiere
a64ac7da83 lf_check.py ct_002_AX12_dut.json : comments updates
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-19 08:07:50 -06:00
Chuck SmileyRekiere
a40e77b0d1 lf_check.py added user and password as a variable
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-15 22:35:14 -06: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
Chuck SmileyRekiere
a6fdd8acdc lf_check.py: updates for reading dut json
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-10 08:04:45 -06:00
Chuck SmileyRekiere
15e1f3cd18 lf_check.py : update for read_json_dut
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-10 07:30:46 -06:00
Chuck SmileyRekiere
abe53d0dab lf_check.py : separated out the device under test parameters in separate
json file

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-10 07:24:03 -06:00
Chuck SmileyRekiere
3402de4971 lf_check.py : fix for 6g parameter
self.ssid_6g = self.json_dut["test_dut"]["ssid_6g_used"]

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-10 07:10:22 -06:00
Chuck SmileyRekiere
bb5a98e6eb lf_check.py : typo on class name
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-09 11:09:23 -06:00
Chuck SmileyRekiere
22ee410881 ct_us_001_tests.json : configuration updates for using veriables from
json_dut (AX88U)

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-09 09:51:04 -06:00
Chuck SmileyRekiere
d7e3810867 lf_check.py : create the meta.txt if it does not exist
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-08 20:48:42 -06:00
Chuck SmileyRekiere
f672fc935b lf_check.py : MAX_VIF to MAX_VIFS
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-08 11:15:39 -06:00
Chuck SmileyRekiere
a4ddc359e8 lf_check.py : dictionary typo fix for self.radio_dict
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-08 11:14:00 -06:00
Chuck SmileyRekiere
e35a418f68 lf_check.py : added LF_MGR_USER, LF_MGR_PASS to the configuration
Updated ct_us_001/2/4/ and ct-us_001_tests.json

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-08 11:06:57 -06:00
Chuck SmileyRekiere
bfc6788ab0 lf_check.py : added radio dictionary to reflect LANforge configuration
ct_us_001.json, ct_us_004.json : updated for the radio configuriaton

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-08 10:29:36 -06:00
Chuck SmileyRekiere
71835ece58 lf_check.py moved the upstream port to the test parameters , removed the
generic section as it is not use
updated the test rig json

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-08 08:08:50 -06:00
Chuck SmileyRekiere
7c0383185d lf_check.py : updated parameters to be specific for influx, grafana and ghost
updated associated json files

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-08 06:59:14 -06:00
Chuck SmileyRekiere
e10d4c4605 lf_check.py : made the rig, dut, and test json required
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-08 06:39:38 -06:00
Chuck SmileyRekiere
3906d9e469 lf_check.py : separating out the test_dut information from the test_rig
information
ct_us_001.json : removed the dut specific information
ct_AX88U_dut.json : json specific to the ASUS dut
lf_qa.py : added comment on future feature

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-08 06:35:25 -06:00
Chuck SmileyRekiere
426ed83005 lf_check.py : added support for infinite timeout
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-07 11:22:11 -06:00
Chuck SmileyRekiere
195ba76a65 lf_check.py : initial checkin for separating out the dut configuration
ct_us_001_test.json : initial AP testing to work through subtest pass / fail

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-07 10:25:14 -06:00
Chuck SmileyRekiere
e8ac402776 lf_check.py : comment update
ct_us_002_tests.json : updates to get the tests working

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-02 16:08:19 -06:00
Chuck SmileyRekiere
0589ab684f ct_001_igg.json : new influx token
lf_check.py : support for 5.4.3 not radio fw

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-01 16:49:11 -06:00
Chuck SmileyRekiere
76f77af807 lf_check.py : update to results table
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-01 08:42:22 -06:00
Chuck SmileyRekiere
8dcbdc751c lf_check.py: radio information on lf_check report, added test rig to title
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-01 06:59:21 -06:00
Chuck SmileyRekiere
ff8c8d942f lf_check.py : put radio information in test run summary
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-08-31 23:41:13 -06:00
Chuck SmileyRekiere
f5dc2aa7c9 lf_check.py typo fix on ghost address
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-08-31 07:06:22 -06:00
Chuck SmileyRekiere
b021d56118 lf_check.py : updates for staring lanforge
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-08-28 12:55:37 -06:00
Chuck SmileyRekiere
b809e10747 lf_check.py : initial work on getting radio information
ct_us_001_tests.json : created a shorter test

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-08-27 18:04:36 -06:00
Jed Reynolds
fe135708de lf_check.py: tests for fully qualified host name to see if it has a domain name, otherwise use IP address
Browsers can do weird things like transform $host to "www.${host}.com" if they don't detect a domain.

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-26 16:32:11 -07:00
Jed Reynolds
8e273b8b37 lf_check.py: improves styling and layout to minimize impact of very large command text
- command text is given a row to itself
- command row is one-click copyable to clipboard
- command column is now just the short (first word) command
- applies style tags to several columns to reduce word wrapping
- uses hostname in alert instead of IP address

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-26 14:31:16 -07:00
Chuck SmileyRekiere
7b7d101ff1 lf_check.py : removed unused input parameters --use_json and --ini ,
lf_check.py no longer supports .ini files (too difficult) and only uses
json so --use_json was redudant.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-08-24 07:19:56 -06:00