Commit Graph

50 Commits

Author SHA1 Message Date
shivamcandela
3faadebb67 updated pytest directory structure, removed oytest ordering
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-04-16 21:47:05 +05:30
shivamcandela
8d1af9310b fixture rearrangements and test case refactorization
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-04-13 22:23:00 +05:30
shivamcandela
442608e353 Cleanup stuff
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-04-08 20:44:31 +05:30
shivamcandela
69a42cbc48 added testrails as an optional argument, cleaned the directories, added functionality of multiclient
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-04-08 04:19:59 +05:30
shivamcandela
5816f4cdbb equipment_ap profile library fixes and all test cases
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-04-01 02:55:17 +05:30
shivamcandela
9d3239fda9 fixtures pulled as a test case
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-03-30 23:18:40 +05:30
shivamcandela
a3edf2c02b added some improvements in logic
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-03-24 01:55:48 +05:30
shivamcandela
00805461a6 radius cases working, bridge nat
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-03-20 16:23:30 +05:30
shivamcandela
797949e1ce bridge mode, nat mode all sanity cases working now in open, wpa and wpa2 mode
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-03-20 02:57:02 +05:30
shivamcandela
a714923458 Fixture updates- Profiles, README updates, marker updates
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-03-18 04:31:49 +05:30
shivamcandela
4668aec1ba Client Connectivity Fixtures are done, Did some Documentation
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-03-17 02:12:45 +05:30
shivamcandela
462c450f3c Added Bridge mode fixtures
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-03-16 19:18:54 +05:30
shivam
edd393e2ac Added cloudsdk pytests and directory structuring
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-03-10 17:36:06 +05:30
shivam
059b06981d ap profile push old method added
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-03-09 15:29:17 +05:30
shivam
82f55b1e86 Merge branch 'pending-library-updates' of https://github.com/Telecominfraproject/wlan-testing into pending-library-updates 2021-03-04 19:36:36 +05:30
shivam
8c6f373e81 profile push
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-03-04 19:36:20 +05:30
Gleb Boushev
04868cd515 style guidelines 2021-03-04 13:48:29 +03:00
shivam
4ed650c8f2 profile creation done, will need to verify profile push and vif config next
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-03-04 02:07:07 +05:30
shivam
883bd9e7aa new library framework is all set, need to implement methods
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-03-03 15:36:13 +05:30
Gleb Boushev
4d05924950 added dockerfile for linter, fixed couple of minor things 2021-03-02 14:20:11 +03:00
shivam
da883963be cloudsdk library added custom testbed feature
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-03-02 15:23:19 +05:30
shivam
42c886ff74 library 2.0 swagger code generated libraries
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-03-02 13:51:53 +05:30
shivam
b4f3201897 pytest case is working with hardcoded now, wanna standerdize it in later commits
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-02-22 18:54:11 +05:30
shivam
8ad8f94343 Merge branch 'pending' of https://github.com/Telecominfraproject/wlan-testing into pending 2021-02-22 13:32:14 +05:30
shivam
be1e17fc61 some improvements in profile creation logic
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2021-02-22 13:31:59 +05:30
Ben Greear
09dbe5b454 cloudsdk: Fix typo.
Brain was coding in some other language...

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-02-19 13:17:46 -08:00
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