Commit Graph

17 Commits

Author SHA1 Message Date
Ben Greear
9794ce94de cloudsdk: Support deleting equipment profiles.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-01-21 10:22:58 -08:00
Ben Greear
87bd1a3f83 cloudsdk: Fix deleting profile. 2021-01-21 09:29:51 -08:00
Ben Greear
15d58a15a4 query-sdk: Helper method to print out child_of information.
So we can see what AP profile is using an ssid profile.
I assume we must delete AP profiles using an ssid before
we can delete the ssid.
2021-01-21 08:44:34 -08:00
Ben Greear
bc5b6d56e7 unit-test: Fix updating existing radius profile.
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>
2021-01-21 07:38:05 -08:00
Ben Greear
27b67a3741 unit: Fix unit test, use default profile instead of disk template. 2021-01-19 16:09:35 -08:00
Ben Greear
1301cbffc3 unit: Let user specify default AP profile to use when creating new ones.
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>
2021-01-19 15:49:02 -08:00
Ben Greear
4b62fe41f0 nightly: Work on ssid and profile creation.
Try to use default AP profile as pattern, still fails to create the profile
though.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-01-19 15:05:44 -08:00
Ben Greear
8174b91cbb query-sdk: Support sending delete-profile command.
cloud-sdk returns 500 (internal error), so not sure if this is
correct or not.
2021-01-19 13:08:32 -08:00
Ben Greear
8b8f5c1b90 unit: Add query_ap.py to run commands remotely on AP.
This can be used by automated scripts to more easily get info off
the AP (and make settings as well).
2021-01-19 11:53:00 -08:00
Ben Greear
740eb1c170 unit-test: Do paginated queries
So we can read the entire set of objects instead of just
the first page.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-01-19 10:47:42 -08:00
Ben Greear
83aa754214 unit: Start adding logic to delete ssid profiles if they already exist.
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>
2021-01-18 16:41:13 -08:00
Ben Greear
090e38afbf unit-test: Add code to query much more of the cloud API.
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>
2021-01-18 06:36:07 -08:00
Ben Greear
b2a46fec1c unit-test: Add code to read customer entries.
Will be able to use this to better understand current cloud
configuration.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-01-17 21:10:10 -08:00
Ben Greear
2ba8bb1242 unit-test: Add query_sdk file to read the profiles from cloud sdk.
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>
2021-01-17 15:05:11 -08:00
Ben Greear
38f16e0d5b unit-tests: Add user argument when calling owrt serial console script.
And start adding debugging around exceptions.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-01-16 15:19:10 -08:00
Ben Greear
3c63961f6c unit-tests: Start work to make this run on NOLA testbeds.
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>
2021-01-15 11:37:06 -08:00
Ben Greear
314aa39313 Move tip-cicd-nightly from wlan-lanforge-scripts to wlan-testing
This is a copy of that code from commit a99d6c31a983cbf5b763ecd2905dddbd6e59d18d
in wlan-testing.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-01-15 09:33:46 -08:00