Commit Graph

3402 Commits

Author SHA1 Message Date
Ben Greear
a3d2db11ed unit-test: Pass in LF radios on cmd line.
Test is partially functional now.
2021-01-21 16:57:22 -08:00
Ben Greear
5e7fa2a1e4 unit-tests: Allow to skip configuring profiles.
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.
2021-01-21 16:21:44 -08:00
Ben Greear
d8145a3daa nightly: Remove more profile-on-disk logic.
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.
2021-01-21 13:00:54 -08:00
Ben Greear
06fc199fd3 cloudsdk: Use default ssid profile as basis for new profiles.
Instead of storing the thing on disk.
2021-01-21 10:48:53 -08:00
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
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
Gleb Boushev
ad591a6686 adding sleep to wait for pod to come up 2021-01-21 12:14:12 +03:00
Gleb Boushev
951443a83e reverting nightlies changes 2021-01-21 11:52:13 +03:00
Gleb Boushev
2464ef9819 trying to make kubectl cp work
...

using sed to remove pod/ from the variable

fixed

copy seems to be working

trying to make test failed

revert nightlies
2021-01-21 11:32:17 +03:00
Ben Greear
804a2b5351 ap-ssh: Fix query for ssid state and config. 2021-01-20 13:07:05 -08:00
Gleb Boushev
ecf37453c0 junit report testing
removing ap test, just to speed up report generation

attempting to fix test copy issues

more speedup

continue testing

fix

testo

fixing
2021-01-20 19:59:22 +03:00
Max Brenner
3603bc1581 add workflow for checking Jira issue key 2021-01-20 17:54:28 +01:00
Gleb Boushev
b9a4894fb6 dockerfile for pytest 2021-01-20 16:17:57 +03:00
Gleb Boushev
59d2c8ff72 pytest initial commit 2021-01-20 16:16:17 +03:00
Ben Greear
25fe94a28c unit-test: Poll for AP profile push every 10 seconds
And continue when it is pushed, don't just sleep for 3
minutes and then check.
2021-01-19 16:29:18 -08:00
Ben Greear
1847bf20dd ap-ssh: Fix some ap query commands. 2021-01-19 16:28:57 -08:00
Ben Greear
c9c7ba2ce2 Remove ap and radius template.
On-disk templates are less scalable than querying the cloud for it's
default profiles.
2021-01-19 16:10:35 -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
d2fc351e49 query-ap: Add example command line to run 'ifconfig -a' 2021-01-19 11:54:17 -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
1593584bc5 unit: Query equipment-id based on ovsh identifier.
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>
2021-01-18 15:42:08 -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
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
694c4c619c unit-tests: Add more cmd line control
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>
2021-01-16 11:24:53 -08:00
Ben Greear
4d805ecc9a unit-tests: Allow accessing AP through serial console on jumphost.
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>
2021-01-15 13:02:49 -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
ef4c4373a5 nightly: Fix python syntax error.
is oprator should not be used for Scalars evidently.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-01-15 09:57:44 -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
Ben Greear
264d914853 Remove old static-config opensync files.
These are no longer used.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-01-15 09:10:15 -08:00
4c74356b41
6ff9572d82 Update nightly_test_config.json 2021-01-14 19:49:30 +03:00
4c74356b41
b33f3df209 Update Dockerfile 2021-01-14 19:46:02 +03:00
4c74356b41
63f930f340 fix xlsxwriter module error 2021-01-14 19:39:19 +03:00
Ben Greear
8afaf822f4 cicd: Do nightly CICD runs even if no new builds were found.
Use the last-processed build for the nightly run.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-01-11 15:33:31 -08:00
4c74356b41
bda077323a Update nightly.yml
revert to ci\cd cluster
2020-12-23 13:28:36 +03:00
4c74356b41
c19af59189 Feature/wifi 510 improvements (#2)
* attempting to fix logging

* removed unneeded logic, fixed one if condition

* added parallel branch support stub

* testing with another cloudsdk instance

* fixing refactoring cerror

* freaking typo

* comments\logs stub

Co-authored-by: Gleb Boushev <4c74356b41@outlook.com>
2020-12-20 09:06:44 -08:00
Mohammad Rahman
7be1b7e991 Merge branch 'master' of https://github.com/Telecominfraproject/wlan-testing 2020-12-17 16:26:59 -05:00
Mohammad Rahman
26def287ee Added new tests, bug fixes for existing ones. 2020-12-17 16:26:14 -05:00
Ben Greear
3300bcc810 Merge pull request #1 from Telecominfraproject/feature/WIFI-510
Feature/wifi 510
2020-12-11 10:34:52 -08:00