Commit Graph

13 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
85eb9e3d10 query-sdk: Add brief mode for showing profile and equipment lists. 2021-01-21 10:08:37 -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
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
5809330479 unit: Allow querying certain object types.
Instead of always dumping everything.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-01-18 13:13:38 -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
760e400d1d unit-tests: Add UnitTestBase class
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>
2021-01-17 15:41:52 -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