So we can jump right into testing LANforge traffic,
good for faster run while testing the script itself.
This patch is mostly just changing code indentation.
Use auto-generated ssid and psk, with TODO note to improve
this in the future as needed.
This will give us programmatic control over SSID names, passwords
and such, in case we want to try lots of different variants as part
of testing the cloud.
Need to convert the json object to a string before doing a PUT.
Test still failing though, maybe other corruption.
Signed-off-by: Ben Greear <greearb@candelatech.com>
And don't try to use a radius profile if we cannot create one. An invalid
radius ID won't let us create an AP profile at all.
Signed-off-by: Ben Greear <greearb@candelatech.com>
This will let testing run cleaner, and not lard up the system with an
ever expanding list of un-used profiles.
Does not currently work because I have to figure out how to paginate-read
profiles since there are so many of them.
Signed-off-by: Ben Greear <greearb@candelatech.com>
So user no longer has to worry about what ID matches their equipment
in the cloud-sdk database.
Start moving Nightly to use the base-class, removing the duplicated
cmd line parsing and similar.
Attempt to improve firmware update waiting and error messages,
but it is not actually updating firmware properly in this
case before after I made those changes.
Signed-off-by: Ben Greear <greearb@candelatech.com>
This completes querying most of the things the API provides,
and also adds some un-tested methods to reboot APs and similar.
Signed-off-by: Ben Greear <greearb@candelatech.com>
This handles command line parsing and other common tasks.
Update query_sdk to use the base class, greatly simplifying its code.
Signed-off-by: Ben Greear <greearb@candelatech.com>
More needs to be done, including dealing with pagination, but this is
a start to reading in current config state so that automated scripts
make do a better job of configuring the system.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Lets us more easily control when and how to load firmware
or not.
Fix example to use correct device-id for Gleb's cloud ctlr.
There are still problems with the expect logic in lanforge-scripts
openwtr-ctl script, that is next to fix.
Signed-off-by: Ben Greear <greearb@candelatech.com>
And allow tunneling that through ssh tunnel, so you can run this command on
localhost and it will execute against NOLA lab systems, for instance.
It sort of works now, but blows up trying to update firmware via the cloud
for one reason or another.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Use command-line args instead of environment variables.
Allow disabling use of testrails.
Assume lanforge libraries are located at ../lanforge/lanforge
as expected by other automation in this repository. Can work
on loadable modules at a later date.
This borrows some work that Gleb did earlier in the docker/nightly*
code.
Signed-off-by: Ben Greear <greearb@candelatech.com>