Jed Reynolds
29c6c7c7b8
LFRequest.py: tidies up lint errors like redundant parens
2020-06-01 21:45:47 -07:00
Jed Reynolds
de7314b6a9
lfcli_base: renamed module to follow PEP8 reccos
2020-06-01 21:45:47 -07:00
Jed Reynolds
356a2cae4f
lfcli_base: renamed module to follow PEP8 reccos
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
Jed Reynolds
e199faaefb
LFUtils.py: gains methods used in connectTest.py
2020-05-26 17:11:03 -07:00
Jed Reynolds
e025387472
LFUtils.py: fixes string comparators
2020-05-26 17:11:03 -07:00
Jed Reynolds
72a2af3e5c
LFRequest.py: quiets logging on 404 error, fixes renamed ref
2020-05-26 17:11:03 -07:00
Jed Reynolds
2ca39c5e18
LFUtils.py: fixes typo reference
2020-05-26 17:11:03 -07:00
Jed Reynolds
49adca8eba
corrects locations found in comments
2020-04-10 15:26:03 -07:00
Jed Reynolds
ab4c7fd120
LFRequest: uses decode(utf-8) to be compatible with python3.5
2020-04-10 12:20:47 -07:00
Logan Lipke
f189fe5f13
LFRequest: updates get() error expression
2020-04-10 11:43:53 -07:00
Jed Reynolds
7f6b5d5e1e
LFRequest updated to show HTTPMessage errors via headers
2020-04-09 14:43:58 -07:00
Jed Reynolds
174cc44893
LFUtils: uses more appropriate assignment operators for python 3.5.x
2020-03-03 09:02:36 -08:00
Jed Reynolds
8933060a6a
LFUtils.py methods updated with base_url parameter; additional diagnostic output
2020-01-07 18:24:37 -08:00
Jed Reynolds
8a8211fdad
Json: improves error output for requests
2019-12-31 12:57:55 -08:00
Jed Reynolds
1392a4403a
LFUtils.py: small improvements
2019-11-21 17:24:01 -08:00
Jed Reynolds
82df554e75
py-json: makes LFRequest.post_data singular, improves error output
2019-10-30 18:22:38 -07:00
Jed Reynolds
9d70b6c469
py-json: adds convenience methods, defines report timers and other constants
2019-10-30 18:21:37 -07:00
Jed Reynolds
57878e0412
py-json: simplifies get request and error output, examples work better
2019-10-30 16:16:03 -07:00
Jed Reynolds
3c60c2da99
progress making station up/down requests
2019-10-29 18:45:06 -07:00
Jed Reynolds
9da3b1379d
py-json: working example of creating and destroying stations
2019-10-29 16:09:56 -07:00
Jed Reynolds
76c439fc46
updated json examples
2019-10-28 17:41:26 -07:00
Jed Reynolds
18351b93fe
progress on LFRequest examples, distinguishing between cli-form and cli-json submission
2019-10-28 17:40:33 -07:00
Jed Reynolds
a252b641a3
py-json: updates, tests for port existance
2019-10-28 11:26:33 -07:00
Jed Reynolds
af606e9bb8
begins python examples exercising json api
2019-10-27 23:21:22 -07:00