Commit Graph

15 Commits

Author SHA1 Message Date
Matthew Stidham
330eeabf8f sta_connect and sta_connect_example: Improve port removal logic
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-14 15:12:42 -08:00
Matthew Stidham
68568f5a42 sta_connect_example: Use name_to_eid to parse port name
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-13 11:51:22 -08:00
Matthew Stidham
81bbc64dbc sta_connect_example: Improve argparser and staconnect query
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-17 17:35:27 -08:00
Matthew Stidham
778450718c sta_connect_example.py: Remove useless code. Use mgr and debug flags
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-17 17:35:27 -08:00
Matthew Stidham
69a75872a4 sta_connect_example: Remove invalid comparisons
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-16 11:05:42 -08: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
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
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
830dec0362 sta_connect.py: passes sta_connect_example.py test 2020-06-09 13:51:01 -07:00
Jed Reynolds
4217566b7d sta_connect_example.py: debugging off 2020-06-05 15:24:56 -07:00
Jed Reynolds
7fd3801734 sta_connect_example.py: temporarily turning on debugging 2020-06-05 15:11:32 -07:00
Jed Reynolds
b7d497b904 sta_connect_example.py: shows example of how to get passing state and failure messages 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
958fdef8ca sta_connect_example.py, __init__.py: added example driver 2020-06-03 10:40:20 -07:00