Commit Graph

21 Commits

Author SHA1 Message Date
shivam
800b8c0920 Fixed dut creation and update
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2022-08-16 22:58:10 +05:30
shivam
c8ec0b4262 Fixed the chamberview lan creation part
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2022-08-16 17:55:39 +05:30
Ben Greear
548167d7af Improve lf_ap_auto_test
Some untested changes to regression test script to allow passing more
info in on cmd line.

Use correct DUT name when starting ap-auto test.

Run connection test only at this time, it is fast when it works,
and proves basic ability to launch the test.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2022-07-12 15:46:00 +05:30
Ben Greear
7db4c9a329 create-cv: Improve --line and --ssid parser.
Use shlex to parse the tokens for each --line and --ssid content.
This fixes using ssid with spaces, for instance.
Fix parser to error out if user inputs invalid data.

Add TODO items for future work.

Fix regression script:  DUT must be created before Scenario tries to use it,
and fix typos and other mistakes in how the regression script tried to
create dut and chamberview.  This part has not been tested yet, but it is
at least closer than before.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2022-07-12 15:45:45 +05:30
Ben Greear
bc09dd7698 create-cv-dut: Improve parser, exit on bad security type.
Use shlex to parse the --ssid argument, this lets us to passwords
and ssid with space, for instance.

raise ValueError exception if user requests un-supported
encryption type.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2022-07-12 15:45:45 +05:30
Matthew Stidham
1d43c55bd9 create_chamberview_dut: Fix bare except error
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-24 13:17:31 -08:00
Matthew Stidham
fdc420afab create_chamberview_dut autopep8
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-10 12:16:39 -08:00
Matthew Stidham
58effa8e1b Better whitespace in create_chambervew_dut.py
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-10-11 11:41:15 -07: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
erinnerim
4c16ab8116 Revert "importlib refactor create_chamberview_dut.py"
This reverts commit aa2e67432b.
2021-09-10 17:57:58 -07:00
erinnerim
aa2e67432b importlib refactor create_chamberview_dut.py 2021-09-10 15:35:45 -07:00
Matthew Stidham
2e5a544afa Adding functionality to use flags when modifying and creating stations, DUTs, and VAPs
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-08-13 16:56:20 -07:00
Ben Greear
49c1df2cb0 cv-dut: Improve options to configure DUT.
And stop hard-coding the DUT position.

Add start of ferndale ucentral testbed end-to-end example test script.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-09 14:08:05 -07:00
Matthew Stidham
ca59088801 Fix ssid flags and password fallback when the password flag is missing
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-07 09:57:12 -07:00
sushant
6823cf1170 removed hard code from cv_dut_profile.py
Signed-off-by: sushant <sushant.bawiskar@candelatech.com>
2021-05-07 22:18:12 +05:30
Matthew Stidham
e25c13e826 Create dut_to_grafana and fixing dependencies
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-06 17:14:16 -07:00
Ben Greear
2bf59b55d3 py-scripts: Fix cureate_chamberview_dut.py to be runnable.
chmod a+x, and also put the python-script logic at
the first line.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-06 10:53:19 -07:00
SushantBawiskar
f31f7c45ed - added comments and Notes in create_chamberview_dut.py
- cv_test_manager.py show_text_blob will return the response text

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-26 19:12:05 +05:30
SushantBawiskar
810377b16e - integrated cv_commands.pywith cv_test_manager.py
- create_chamberview_dut.py to create a dut
- cv_dut_profile.py as library to create a dut
- cv test manager can be used to implement chamber view also

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-24 01:08:33 +05:30