Commit Graph

12 Commits

Author SHA1 Message Date
Ben Greear
06fbba1aad pytest: Clean up some tools vs pytest breakage in that last commit.
Seems you cannot have two __init__ methods in a class, so change
code to only one one variant.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-11 16:18:07 -08:00
Ben Greear
98b0078336 pytest: Make cmd-line args match what the stand-alone tools were using.
And create cmd-line-args based on pytest input so we can pass it into
the library guts.
2021-02-11 15:44:50 -08:00
Ben Greear
55d9e99978 pytest: Start integrating with existing libraries.
This is going to take more work, but getting somewhat closer.

Stop using pytest/helpers, they are replaced by libraries.

Existing libraries are often taking a command-line-args option
as easy way to pass something to various methods.  This will
have to be resolved to work with the way pytest wants to
run.

Much hard-coding needs to be removed, and specifically,
the 'set profile' logic is completley  not working.

Need to use library logic that can query the eq-id based
on name (and query eq-name based on serial port/ssh, perhaps).

Need to resolve how cmd-line can take multiple APs, but
each will have different eq-id.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-11 13:18:38 -08:00
shivam
30ae4f57a1 Fixed merge conflicts 2021-02-11 02:39:54 +05:30
shivam
05ee084133 bridge and nat profile working fine in sdk_set_profile 2021-02-11 02:14:58 +05:30
Ben Greear
a734432fc9 cloudsdk: better handle when test cases are not configured.
For instance when using helper tools to call into the querysdk
logic, when test cases are not relavent.

Fix sdk upgrade tool to use latest API.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-10 12:07:27 -08:00
shivam
d9720a79e5 merge conflict issue equipment id issue 2021-02-09 21:36:44 +05:30
shivam
d82858bf4c Refactoring : Nightly working bridge mode and nat mode working, Libraries are refactored too 2021-02-09 17:23:24 +05:30
Ben Greear
9fac5990b4 tools: Add examples for NOLA-11 testbed.
It is now functional, though it appears eap102 is broken when managed
by cloud at the moment.

Add support for eap102 model to base cmd-line arg parser.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-08 16:20:10 -08:00
shivam
4c1cc92add Basic Code Refactoring and Setup for Unit Tests 2021-02-08 23:24:47 +05:30
Ben Greear
0a6b354f05 unit-tests: Fix include path to deal with new directory layout.
Add 'logs/README.md' to create that dir so logs automatically
have a place to be written to.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-02 15:26:03 -08:00
Ben Greear
4bdf061d24 Re-organize unit-test directory into new locations.
This is pure 'git mv'.  No changes were made to files.  They
will not work until we fix up the include paths again, that will
be handled in future commits.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-02 13:00:52 -08:00