Matthew Stidham
25f537a027
sta_connect: Fix whitespace
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-12-06 15:12:39 -08:00
Matthew Stidham
4d7451a287
sta_connect: sta_connect works now
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-17 17:35:27 -08:00
Matthew Stidham
d50946f53c
sta_connect: Remove invalid comparisons
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-16 11:05:42 -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
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
Chuck SmileyRekiere
743b5f56c9
Revert "Update py_scripts to be in line with pip standards"
...
This reverts commit 37df48594e .
2021-09-09 05:32:05 -06:00
Matthew Stidham
37df48594e
Update py_scripts to be in line with pip standards
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-09-08 16:57:10 -07:00
Matthew Stidham
952bab4acb
Making it so customers can use sta_connect_example, fixing a github issue report.
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-24 10:03:53 -07:00
Jed Reynolds
8bc4a214d9
JSON: sta_connect.py: renames use_preexec_ parameter to suppress_related_commands_
2020-06-29 14:20:08 -07:00
Ben Greear
d0a830745c
sta-connect: Break run() into individual steps.
...
This lets the user have more control over how long the test runs,
allows the calling code to query other elements (such as cloud
controller) while test is running, and so forth.
Signed-off-by: Ben Greear<greearb@candelatech.com >
2020-06-26 16:19:54 -07:00
Jed Reynolds
1d420c565f
JSON: uses explicit use_preexec_ arguments
2020-06-25 12:32:28 -07:00
Ben Greear
1eb5617d79
Merge /home/greearb/git/tip/wlan-testing/lanforge/lanforge-scripts.tip
2020-06-12 14:15:41 -07:00
Jed Reynolds
45b152e94b
Fixes wpa2 constant
2020-06-11 07:12:31 -07:00
Ben Greear
cb1827ecac
cicd: Make sta_connect print results to stdout when called as independent script.
2020-06-11 07:12:31 -07:00
Jed Reynolds
a49aceee9d
sta_connect.py: updates main to assign item to station_names
2020-06-11 07:12:31 -07:00
Logan Lipke
17158fe4e0
Added debugOn attribute to StaConnect
2020-06-11 07:12:31 -07:00
Jed Reynolds
c2af87d70c
Merge branch 'master' of github.com:greearb/lanforge-scripts
2020-06-10 21:09:49 -07:00
Jed Reynolds
3cc27988cf
Fixes wpa2 constant
2020-06-10 21:08:54 -07:00
Ben Greear
f29cc0bd54
cicd: Make sta_connect print results to stdout when called as independent script.
2020-06-10 19:25:04 -07:00
Jed Reynolds
74632be0e7
sta_connect.py: updates main to assign item to station_names
2020-06-10 16:29:55 -07:00
Logan Lipke
bbf4f8b5cf
Merge remote-tracking branch 'origin/master'
2020-06-10 16:02:01 -07:00
Logan Lipke
1e24b37f7a
Added debugOn attribute to StaConnect
2020-06-10 16:01:10 -07:00
Jed Reynolds
fe18cd9850
sta_connect.py: provides way of recording stations created during a test
2020-06-10 11:01:30 -07:00
Jed Reynolds
d88b925ced
sta_connect.py: fixes UDP connections, now setting UseAutoNat, speeds up report timer
2020-06-09 22:55:21 -07:00
Jed Reynolds
8b5ddaf7bf
sta_connect.py: lots of changes
2020-06-09 16:47:23 -07:00
Jed Reynolds
830dec0362
sta_connect.py: passes sta_connect_example.py test
2020-06-09 13:51:01 -07:00
Jed Reynolds
ed392975aa
sta_connect.py: WIP: making class compatible with multiple stations
2020-06-09 13:22:56 -07:00
Jed Reynolds
dfc6929924
sta_connect.py: WIP: converting all things into loops to handle multiple stations
2020-06-09 12:44:46 -07:00
Jed Reynolds
637314fcc5
sta_connect.py: adds slashes
2020-06-05 15:24:41 -07:00
Jed Reynolds
478d3ec768
sta_connect.py: removing unecessary variables
2020-06-05 15:18:03 -07:00
Jed Reynolds
9fdffc7b62
sta_connect.py: removes use of f-strings
2020-06-05 14:10:53 -07:00
Jed Reynolds
d5ecef3a9c
sta_connect.py: refactors methods to use self not super(), moves _fail, _pass into superclass
2020-06-04 22:50:18 -07:00
Jed Reynolds
0b8e460136
sta_connect.py: provides pass/fail methods:
...
- passes() method counts any message not /^pass/i as failure
- rearranges guards at top
- defines fail and pass prefixes, fail messages
- removes exit() and sets _halt_on_error to False
- compareVals now using _pass() and _fail()
- changes uses of f-string to modulo-string formatting, allowing tests to run on F24
2020-06-04 15:06:38 -07:00
Jed Reynolds
e2e7e9240c
sta_connect: updated to have a results array
2020-06-04 13:32:20 -07:00
Jed Reynolds
2a1e79949f
py-json: renames methods to snake_case as per PEP8
2020-06-03 16:51:33 -07:00
Jed Reynolds
99efd0d9c7
sta_connect.py: adds gaurd
2020-06-03 10:40:20 -07:00
Jed Reynolds
def0120da2
LFRequest.py: uses wpa2 flag; uses waitX methods
2020-06-01 21:45:47 -07:00
Jed Reynolds
f69d4cdb90
sta_connect.py, lfcli_base.py: fixes inheritance mistake, continues refactoring, test now runs
2020-06-01 21:45:47 -07:00
Jed Reynolds
6da7ef8afc
sta_connect: refactoring leading to a base class LFCliBase and class structure for sta_connect
2020-06-01 21:45:47 -07:00
Ben Greear
cfbe26c76c
json: Add python/json unit test script.
...
And remove flakey helper method in LFUtils, just make user specify
the resource ID when removing ports.
The sta_connect.py script will create a station, run traffic, and calculate
pass/fail based on the results. Idea is for it to be part of a unit-test framework.
2020-05-28 15:38:16 -07:00