Commit Graph

25 Commits

Author SHA1 Message Date
shivam
be1e17fc61 some improvements in profile creation logic
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-02-22 13:31:59 +05:30
shivam
3251c1bbaf Merge branch 'pending' of https://github.com/Telecominfraproject/wlan-testing into pending 2021-02-19 20:16:14 +05:30
shivam
14141e8871 ssid profile push bugs update
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-02-19 20:16:01 +05:30
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
shivam
015ba8b492 Removed some extra prints
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-02-17 01:09:45 +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
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
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
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
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
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
shivam
d82858bf4c Refactoring : Nightly working bridge mode and nat mode working, Libraries are refactored too 2021-02-09 17:23:24 +05:30
shivam
4c1cc92add Basic Code Refactoring and Setup for Unit Tests 2021-02-08 23:24:47 +05:30
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
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