Commit Graph

6 Commits

Author SHA1 Message Date
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
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
Ben Greear
9a1e3d61c5 cloudsdk: Fix profile creation.
Properly do not add profile info for things we are skipping.

And fix some some potential other issues by using self.foo
in more places.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-04 12:51:43 -08:00
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