Commit Graph

335 Commits

Author SHA1 Message Date
Ben Greear
edc6830b3d cloudsdk: Add try/catch debugging around fw update error.
At least some of the time this code throws exception, add some
logging.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-18 09:43:57 -08:00
Ben Greear
8305de5644 nightly: Fix typo bug in radius logic.
Probably more is needed, next run I disabled radius again...

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-17 16:07:26 -08:00
Ben Greear
d9ec4ddcae nightly: Fix library API.
And update usage notes.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-17 11:20:38 -08:00
shivam
015ba8b492 Removed some extra prints
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-02-17 01:09:45 +05:30
shivam
ed04604545 Merge branch 'pending' of https://github.com/Telecominfraproject/wlan-testing into pending 2021-02-17 01:07:13 +05:30
shivam
865c5408e1 Radius and EAP Profile are working now
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-02-17 01:07:01 +05:30
Ben Greear
4a25cad2d8 Update example usage notes. 2021-02-15 17:01:47 -08:00
Ben Greear
aa7e2dbc31 sdk-upgrade: Fix to work against latest library method.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-15 14:45:37 -08:00
shivam
2f1db3bb19 added examples on NOLA-01 with latest sdk base url, and some cloudsdk fix 2021-02-15 23:18:32 +05:30
shivam
199d7b86dc removed file IO for radius 2021-02-15 00:52:00 +05:30
shivam
4bb2e2a71a Radius and EAP Clients are working from sdk_set_profile.py 2021-02-12 16:14:13 +05:30
Ben Greear
e8389ca569 consolidate examples files. 2021-02-11 16:33:43 -08:00
Ben Greear
74cca6bdc0 pytest: Move files into /tests/
Code will need changing next, this is pure rename.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-11 16:20:54 -08:00
Ben Greear
06fbba1aad pytest: Clean up some tools vs pytest breakage in that last commit.
Seems you cannot have two __init__ methods in a class, so change
code to only one one variant.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-11 16:18:07 -08:00
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
2ea71662c3 cloud: Add framework to modify rf profile.
But not tested or enabled at this point.  Evidently bugs
in cloud keep it from working if you change the mode, for instance.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-10 13:50:20 -08:00
shivam
30ae4f57a1 Fixed merge conflicts 2021-02-11 02:39:54 +05:30
shivam
05ee084133 bridge and nat profile working fine in sdk_set_profile 2021-02-11 02:14:58 +05:30
Ben Greear
d691f84e77 examples: Add testbed 12 example usage for fw update and profile creation.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-10 12:40:26 -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
ae80bc92a5 cloudsdk: Support 'ping' api, add to debug scripts.
Easy way to find out what cloud version we are running.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-10 11:33:10 -08:00
Ben Greear
3b9606d83e nightly: Nightly works again, at least somewhat.
Prefix ssids and profile names with testbed so that we won't
have collisions when running multiple testbeds against the same
cloud.

Fix query-ap, API changes since merge..

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-09 16:14:42 -08:00
Ben Greear
9c8e74b2ff cloudsdk: Fix bad search-and-replace regarding creating ssid.
Looks like another problem with the merge, "name" should be "bridge"
in many places.  Can create ssids and bridge profile again.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-09 15:22:11 -08:00
Ben Greear
7cabeb5c25 cloudsdk: Fix ssid profile creation.
There was typos/bugs in choosing the bridge vs NAT
setting.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-09 13:54:21 -08:00
Ben Greear
f438462cd7 examples: Add example for setting ssid on NOLA-01 testbed.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-09 13:45:15 -08:00
Ben Greear
f46fd3b325 sdk-set-profile: Update to work with latest library
And fix a few uses of 'test_cases' in cloudsdk library.
2021-02-09 13:42:04 -08:00
Ben Greear
65ed7ff6de query-sdk: Fix API for latest merge.
Need to add a logging variable when creating base class.

Improve error code logging from cloud API.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-09 12:25:54 -08:00
Ben Greear
470e85eb52 Merge pull request #15 from Telecominfraproject/staging-wifi-1351
Staging wifi 1351
2021-02-09 08:17:22 -08:00
shivam
d9720a79e5 merge conflict issue equipment id issue 2021-02-09 21:36:44 +05:30
shivam
8e92e5b54f bash script updates 2021-02-09 21:06:52 +05:30
shivam
d82858bf4c Refactoring : Nightly working bridge mode and nat mode working, Libraries are refactored too 2021-02-09 17:23:24 +05:30
Shivam Thakur
5ba7248015 Merge pull request #14 from Telecominfraproject/feature/WIFI-1325 2021-02-09 07:04:05 +05:30
Ben Greear
9fac5990b4 tools: Add examples for NOLA-11 testbed.
It is now functional, though it appears eap102 is broken when managed
by cloud at the moment.

Add support for eap102 model to base cmd-line arg parser.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-08 16:20:10 -08:00
shivam
4c1cc92add Basic Code Refactoring and Setup for Unit Tests 2021-02-08 23:24:47 +05:30
Shivam Thakur
61122a7deb Merge pull request #12 from greearb/master
WIFI-1325:  Work towards NOLA lab goals.
2021-02-08 23:20:12 +05:30
Ben Greear
2b05bfb7c0 Add usage-examples notes file.
Easy to cut-and-paste for common commands.
2021-02-08 07:36:09 -08:00
Ben Greear
24cd9219a4 sdk-set-profile: Properly compare equipment-id against string -1
Not numeric -1, since object is a string.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-08 07:36:09 -08:00
Ben Greear
3d0b1e3125 Add usage-examples notes file.
Easy to cut-and-paste for common commands.
2021-02-05 17:03:10 -08:00
Ben Greear
91dcf54302 sdk-set-profile: Properly compare equipment-id against string -1
Not numeric -1, since object is a string.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-05 17:03:10 -08:00
jaspreetsachdev
3c3af1b2a0 Merge pull request #11 from Telecominfraproject/feature/WIFI-1325
cloudsdk:  Fix profile creation.
2021-02-05 15:26:44 -05: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
Jaspreet Sachdev
8e7ea0d05b Added a note for virtualenv 2021-02-02 12:51:42 -05:00
Jaspreet Sachdev
31ecc4c76a Added a directory for keeping handy tools 2021-02-02 12:49:12 -05:00
SushantBawiskar
c63b34c6cf Nightly_sanity calls tests from lf_tests (#9) 2021-02-02 08:35:06 -08:00
Ben Greear
cf88c76aad query-sdk: Support querying available firmware.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-02 06:47:08 -08:00
Ben Greear
d7c11f7c56 unit-tests: Add verbose option for cloud-sdk, improve fw update script.
At least I think I improved the fw update script.  It is not working, but
I'm not sure if it is cloud issue or not.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-02 06:38:21 -08:00
Ben Greear
855cfc42c6 unit-tests: Move sw update into libraries.
Add sdk_upgrade_fw.py to call the upgrade (only).

This needs more testing, but it at least partially
works.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-01 17:12:12 -08:00