mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-01 19:37:54 +00:00
Wifi 1321 create a lan forge pip module (#745)
* Added rate-limiting in both android_test and ios_test
* Removed ow_sanity_lf marker
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added ow_sanity_lf marker
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Removed ow_sanity_lf marker
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Removed ow_sanity_lf marker
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added ow_sanity_lf marker
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added missing methods
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Modified as per new framework
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added ow_sanity_lf marker for channel 11
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added rate-limiting test_cases
* added ow_sanity_lf marker to multipsk & multivlan tests
* Added allure_testcase-links for client_connect in validation_of_operating_modes(bridge,nat,vlan)
* Added ow_sanity_lf marker
* Removed unwanted ow_sanity_lf marker
* allure suite and titles changed for mpsk & mvlan tests
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* Added rate_limiting test_cases with jira links in validation_of_operating_mode(bridge,nat,vlan)
* Added rate_radius_info and rate_radius_accounting_info
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Modified code for two test cases as per new infra
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Addded radius_auth_data radius_acc_data
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added radius_auth_data and radius_acc_data for rate limiting with radius test cases
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added basic-07
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Converted num station in int
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Removed unnecessary interop testbed details from lab_info
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added Enterprise cleint connect and client connectivity tests in Android
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added Enterprise cleint connect and client connectivity tests in iOS
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added new sanity marker for Interop testcases
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added Enterprise mode client connect test cases in Interop
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added random string addition in Interop testcases for setup profiles ssids
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added random string addition in Interop testcases for setup profiles ssids
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* changed WAN upstream port for interop testbeds
* Added the logic for retest the ucentral connectivity if it is disconnected
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Added NAT-WAN
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* gw - get commands api fix
* Removed sanity marker on vlan testcases
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* FIxed issue in DFS
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed allure report name for Enterprise mode
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added Pytest exit in case of error when testbed data is not available
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Fixed the string concat from previous commit
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Added check_connectivity fixture on every client_connectivity and dfs test case
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Made some bug fixes on testcases
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Changed profile data in testcases to match setup params
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added new fix in manual pytest execution workflow as per master
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added new fix in sanity workflow as per master
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Changed ssid names in setup params of general test cases
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added Enterprise mode library support for wifi connect
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Removed Interop sanity marker from test connectivity file
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* commented newly added methods for test connectivity
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* commented traffic_generator_connectivity
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* changed as new infra
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Removed interop_uc_sanity
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Removed marker description
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added needed step for S20,S10 for forget ssid
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Fixed the ap libs command for ucentral restart
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Added test controller connectivity
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Changed markers as per pytest.ini
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Refractored dvlan
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Added eth table and max station table in allure for test_traffic_generator_connectivity
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* changed scope of Interop testcase name fixture
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added the fix for rate limiting test with vlans. Added Access Point connectivity Tests
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Changed scope of get test lib fixture
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Changed markers
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added run-lf condition in check_connectivity
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added test case in the library function of setup_perfecto mobile data
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Removed interop testcase name fixture
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added new fail msg for Interop tests for better debugging
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added fix for testcase name in setup perfecto data
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added check_connectivity
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added ow_sanity_lf marker
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Refractored DVLAN
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Added lab_info.json back due to unexpected deletion
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Added skip-all work with all test cases and removed the broken test cases
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Renoved the unwanted print for getting marker
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Provided vlan id in list
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added proper feature and parent suite
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* [WIFI-11228] Add: manual workflow step with details on namespace (#727)
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* fixed incorrect security parameter in MVLAN test functions
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* Added Comments on the Library Functions for Proper Understanding
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added 6G RADIO Config data
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Removed the sync_repos.bash as it is not needed now
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Added proper suite, subsuite, parent suite, feature, title
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed method name wifi_capacity to rate_limiting_test
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Refactored dvlan in wpa3_eap
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* old mvlan test files removed
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* marker name corrections in SDK API tests
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* descritpion and marker changes in mvlan tests
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* Added suite,sub_suite,parent,feature for IN,RU,SG
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Modified as per new freamework and enhanced allure and changed file name to dynamic qos
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed country from CA to US
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added 6g in get_applied_ssid_info method
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed manager ip to localhost
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added FMS Tests
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* added basic-08 & advance-01 info for tunneling
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* Added improvements around pass and fail for ap connectivity and added basic lab_info format
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Added proper feature, parent suite, suite, sub_suite and title
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added Toggle-Wifi Button Functionality for both android and ios tests file
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* Added toggle_wifi_mode test-cases for bridge,nat,vlan modes
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* Added fix for 2.4g based bssid band data
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* rempved rate_limiting_tests marker
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Refractored channel vs country code
* Corrected setup_basic_configuration
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Added reports dir creation logic
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* vlan id's passed to test functions in mvlan
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* removed security_key from open test case
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Fixed scan ssid issue in vlan
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Fixed scan ssid issue and wrong security issue
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* changed vlan id for test_disable_vlan_wpa2_2g test case
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed dataplane_throughput_test marker to dataplane_tests
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed password for controller
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* updated controller credentials in lab-info & tunnel_bash
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* Fixed TypeError: can only concatenate str (not dict) to str issue
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed parent_suite from OpenWifi Dynamic Vlan Test to Dynamic Vlan Test
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Fix: resolved Pixel 4 scroll down issue, by modifying scrollDown() in android_libs.py
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* reverted old password in controller info
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* IP validation issue in DVLAN
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Removed traffic_generator_connectivity test case and Modification for allure enhancement
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed parent suite and suite
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Renamed dynamic_qos_tests to rate_limiting_with_radius_tests
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed parent suite to Throughput Benchmark Test
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added missing key_mgmt for wp3
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* key_mgmt issue in DVLAN-wpa3e
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Added security markers
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* [WIFI-11619] Upd: Docker instructions update (#739)
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* DVLAN admin_up issue
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Added pk_passwd and num_stations
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added num_stations
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added num_stations, execution_number and In tls added pk_passwd argument
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added max stations
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added client_scale_tests
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added 6GHz test cases
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added new test channels
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Added execution_number in parametrize
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* added new marker for general security mode testcases in Interop
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Changed one ssid with internet variable logic for Interop android
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added proper feature, parent_suite, suite, sub_suite, title in allure report for client_scale_test and dataplane_throughput_test
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed the teardown logic in android tests
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added global devicemodel in teardown function of Android
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added return statement for IP address
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added return statement for IP address
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Changed ip addr of rate limiting radius server to 10.28.3.100
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Changed ingress-rate to 10 and egress-rate to 5
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added pre-cleanup for deleting existing stations
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* [WIFI-11619] Fix: Docker example command
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* Changed RATE LIMITING RADIUS SERVER ip to 10.28.3.100
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added wpa personal and open bridge test cases for client scale test
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added Toggle Airplane Mode
* Added toggle airplane mode test-cases (NAT, VLAN)
Signed-off-by: karthikeyan <karthikeyan.thirumurthy@candelatech.com>
* Added toggle airplane mode functionality in perfecto library
Signed-off-by: karthikeyan <karthikeyan.thirumurthy@candelatech.com>
* Changed teardown func placement in android tests to accomodate perfecto report
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Refactored client-isolation test-cases
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* refactored multi-station performance test-cases
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* Added logic to setup_configuration_data() to support for multi-band combinations
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* allure attachments for client-isolation test_cases
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* [WIFI-11619] Fix: workflow dependencies
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* [WIFI-11619] Dbg: runtime user
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* [WIFI-11619] Chg: set files permissions
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* [WIFI-11619] Dbg: add step for status
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* Adjusted parameters in rate limiting for perfecto interop
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* [WIFI-11619] Add: git commit the changes
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* [WIFI-11619] Add: git commit the changes
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* [WIFI-11619] Add: git commit the changes
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* [WIFI-11619] Add: git commit the changes
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* [WIFI-11619] Add: git commit the changes
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* [WIFI-11619] Chg: GitHub Pages dir
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* [WIFI-11619] Chg: GitHub Pages dir
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* Added extra parameters in rate limiting test to accomodate lanforge testcases in Perfecto Interop
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* [WIFI-11619] Add: README note
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
* Rectified ssid parameter in Perfecto Interop
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Changed ssid to ssid_name in Interop rate limiting testcases
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Removed execution number logic (NAT-LAN logic) for NAT mode ttls test cases
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Refactored multi-asso-disasso
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Revert "Added logic to setup_configuration_data() to support for multi-band combinations"
This reverts commit cef8a23315.
* Added try and except logic in push_config
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Fixed Config sent from Gateway is Received by AP, But not Applied by AP issue and added AP logs during config fails
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Removed resp is None logic
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added Interop sanity marker in connectivity tests
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Updated nat mode & create_vlan parameter for Multi Station Performance test-cases
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* Added title, suite for multi-asso-disasso
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Added table results for multi-station-performance test-cases
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* Updated Readme file in wlan-testing
Signed-off-by: shivam <shivam.thakur@candelatech.com>
* Added check_connectivity arg
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Added title,suite for VLAN-multi-asso-disasso
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Refactored rx_sens from rx_sensitivity test to TR-398 Issue 2
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Resolved conflicts in Lab_info.json
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added Open Passpoint required data in Configuration.py
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added Open roaming configuration Fixture
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added Open Roaming support code in Controller libs and tip_2x
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added sample testcase of open roaming for checking
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added Comments in Open roaming testcase
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Modified upload_rate for wifi_capacity
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* Removed unnecessary Passpoint data
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Removed unnecessary Passpoint data in configuration.py
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Adding new Jira links and Descriptions
Signed-off-by: Rajendra <rajendra.pappu@candelatech.com>
* added passpoint info to tunnel bash
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* created 5g tests for rxsens
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
* Modified multi station performance udp_download test-cases for test result table
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
* Deleted wifi_capacity_test
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added or removed performance marker for performance suite
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Enhanced allure report for sanity
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added sanity test plans and markers
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Removed unnecessary marker
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added Interop Testplan markers in testplan.md file
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Removed emoji's from testplan file
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added emoji's from testplan file
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added some formatting in texts in testplan file
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Removed some formatting in texts in testplan file
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added some formatting in texts in testplan file
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added jira links, description and markers for new sanity testcases
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* Added markers and description for some more of sanity suite testcases
Signed-off-by: Jyothsna-setti <jyothsna.polamarasetty@candelatech.com>
* Added test plans md file in readme.md file
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Added test plans md file in readme.md file
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Changed marker expressions in Testplans.md file
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
* Removed wrong duplicate parent_suite
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Added test description
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Removed unwanted marker and Added test description
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Removed duplicate function name
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Modified parent suite
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* Modified parent suite and feature name
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
* modified mode of udaya AP from wifi6 to wifi5
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* Logging response info for configuration push
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
Signed-off-by: haricharan-jaka <haricharan.jaka@candelatech.com>
Signed-off-by: shivam <shivam.thakur@candelatech.com>
Signed-off-by: karthikaeyetea <karthika.subramani@candelatech.com>
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
Signed-off-by: karthikeyan <karthikeyan.thirumurthy@candelatech.com>
Signed-off-by: Rajendra <rajendra.pappu@candelatech.com>
Signed-off-by: Jyothsna-setti <jyothsna.polamarasetty@candelatech.com>
Co-authored-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
Co-authored-by: anil-tegala <anil.tegala@candelatech.com>
Co-authored-by: haricharan-jaka <haricharan.jaka@candelatech.com>
Co-authored-by: shivam <shivam.thakur@candelatech.com>
Co-authored-by: karthikaeyetea <karthika.subramani@candelatech.com>
Co-authored-by: Dmitry Dunaev <83591011+dunaev-opsfleet@users.noreply.github.com>
Co-authored-by: Dmitry Dunaev <dmitry@opsfleet.com>
Co-authored-by: karthikeyan <karthikeyan.thirumurthy@candelatech.com>
Co-authored-by: Rajendra <rajendra.pappu@candelatech.com>
Co-authored-by: Jyothsna-setti <jyothsna.polamarasetty@candelatech.com>
This commit is contained in:
520
dut_lib_template/dut_lib_template.py
Normal file
520
dut_lib_template/dut_lib_template.py
Normal file
@@ -0,0 +1,520 @@
|
||||
"""
|
||||
Telecom Infra Project OpenWifi 2.X (Ucentral libraries for Test Automation)
|
||||
|
||||
|
||||
"""
|
||||
import importlib
|
||||
import json
|
||||
import random
|
||||
import string
|
||||
import time
|
||||
|
||||
import allure
|
||||
import pytest
|
||||
import requests
|
||||
|
||||
logging = importlib.import_module("logging")
|
||||
|
||||
ap_lib = importlib.import_module("ap_lib")
|
||||
controller = importlib.import_module("controller")
|
||||
|
||||
"""
|
||||
Custom Class Imports needed for OpenWifi 2.X
|
||||
"""
|
||||
|
||||
ConfigureController = controller.ConfigureController
|
||||
Controller = controller.Controller
|
||||
FMSUtils = controller.FMSUtils
|
||||
ProvUtils = controller.ProvUtils
|
||||
UProfileUtility = controller.UProfileUtility
|
||||
APLIBS = ap_lib.APLIBS
|
||||
|
||||
|
||||
class dut_lib_template:
|
||||
"""
|
||||
Standard OpenWifi wlan-testing specific variables
|
||||
|
||||
"""
|
||||
controller_data = {}
|
||||
device_under_tests_info = []
|
||||
"""
|
||||
OpenWifi 2.x Specific Variables that will be only scoped in dut_lib_template Library
|
||||
|
||||
"""
|
||||
ow_sec_url = ""
|
||||
ow_sec_login_username = ""
|
||||
ow_sec_login_password = ""
|
||||
target = "dut_lib_template"
|
||||
controller_library_object = object()
|
||||
prov_library_object = object()
|
||||
firmware_library_object = object()
|
||||
dut_library_object = object()
|
||||
supported_bands = ["2G", "5G", "6G", "5G-lower", "5G-upper"]
|
||||
supported_modes = ["BRIDGE", "NAT", "VLAN"]
|
||||
supported_encryption = ["open",
|
||||
"wpa",
|
||||
"wpa2_personal",
|
||||
"wpa3_personal",
|
||||
"wpa_wpa2_personal_mixed",
|
||||
"wpa3_personal_mixed",
|
||||
"wpa_enterprise",
|
||||
"wpa2_enterprise",
|
||||
"wpa3_enterprise",
|
||||
"wpa_wpa2_enterprise_mixed",
|
||||
"wpa3_enterprise_mixed",
|
||||
"wpa3_enterprise_192"
|
||||
]
|
||||
dut_lib_specific_encryption_translation = {"open": "none",
|
||||
"wpa": "psk",
|
||||
"wpa2_personal": "psk2",
|
||||
"wpa3_personal": "sae",
|
||||
"wpa3_personal_mixed": "sae-mixed",
|
||||
"wpa_wpa2_personal_mixed": "psk-mixed",
|
||||
"wpa_enterprise": "wpa",
|
||||
"wpa2_enterprise": "wpa2",
|
||||
"wpa3_enterprise": "wpa3",
|
||||
"wpa_wpa2_enterprise_mixed": "wpa-mixed",
|
||||
"wpa3_enterprise_mixed": "wpa3-mixed",
|
||||
"wpa3_enterprise_192": "wpa3-192"
|
||||
}
|
||||
|
||||
def __init__(self, controller_data=None, target=None,
|
||||
device_under_tests_info=[], logging_level=logging.INFO):
|
||||
logging.basicConfig(format='%(asctime)s - %(message)s', level=logging_level)
|
||||
if target != self.target:
|
||||
logging.error("Target version is : " + target + " Expected target is dut_lib_template")
|
||||
pytest.exit("Target should be 'dut_lib_template', Current Target is : " + target)
|
||||
if controller_data is None:
|
||||
controller_data = {}
|
||||
self.controller_data = controller_data
|
||||
self.device_under_tests_info = device_under_tests_info
|
||||
self.setup_metadata()
|
||||
self.setup_objects()
|
||||
self.setup_environment_properties()
|
||||
|
||||
"""
|
||||
Controller and Access Point specific metadata that is related to OpenWifi 2.x
|
||||
"""
|
||||
|
||||
def setup_metadata(self):
|
||||
logging.info(
|
||||
"Setting up the Controller metadata for dut_lib_template Library: " + str(
|
||||
json.dumps(self.controller_data, indent=2)))
|
||||
logging.info("Setting up the DUT metadata for dut_lib_template Library: " + str(
|
||||
json.dumps(self.device_under_tests_info, indent=2)))
|
||||
logging.info("Number of DUT's in lab_info.json: " + str(len(self.device_under_tests_info)))
|
||||
self.ow_sec_url = self.controller_data["url"]
|
||||
self.ow_sec_login_username = self.controller_data["username"]
|
||||
self.ow_sec_login_password = self.controller_data["password"]
|
||||
|
||||
def setup_objects(self):
|
||||
try:
|
||||
self.controller_library_object = Controller(controller_data=self.controller_data)
|
||||
self.prov_library_object = ProvUtils(sdk_client=self.controller_library_object)
|
||||
self.firmware_library_object = FMSUtils(sdk_client=self.controller_library_object)
|
||||
except Exception as e:
|
||||
pytest.fail("Unable to setup Controller Objects")
|
||||
logging.error("Exception in setting up Controller objects:" + str(e))
|
||||
try:
|
||||
self.dut_library_object = APLIBS(dut_data=self.device_under_tests_info)
|
||||
except Exception as e:
|
||||
logging.error("Exception in setting up Access Point Library object:" + str(e))
|
||||
pytest.fail("Unable to setup AP Objects")
|
||||
|
||||
def teardown_objects(self):
|
||||
self.controller_library_object.logout()
|
||||
|
||||
""" Standard getter methods. Should be available for all type of libraries. Commonly used by wlan-testing"""
|
||||
|
||||
def get_dut_library_object(self):
|
||||
return self.dut_library_object
|
||||
|
||||
def get_controller_library_object(self):
|
||||
return self.controller_library_object
|
||||
|
||||
def get_controller_data(self):
|
||||
return self.controller_data
|
||||
|
||||
def get_device_under_tests_info(self):
|
||||
return self.device_under_tests_info
|
||||
|
||||
def get_number_of_dut(self):
|
||||
return len(self.device_under_tests_info)
|
||||
|
||||
def get_dut_logs(self, dut_idx=0):
|
||||
return self.dut_library_object.get_logs(idx=0)
|
||||
|
||||
def get_controller_logs(self):
|
||||
pass
|
||||
|
||||
def get_dut_max_clients(self):
|
||||
pass
|
||||
|
||||
"""
|
||||
standard method for translating the configurations from pytest: no need to change this
|
||||
"""
|
||||
|
||||
def setup_configuration_data(self, configuration=None,
|
||||
requested_combination=None):
|
||||
"""Predefined function for getting configuration data for applied data"""
|
||||
c_data = configuration.copy()
|
||||
if c_data is None:
|
||||
pytest.exit("No Configuration Received")
|
||||
if requested_combination is None:
|
||||
pytest.exit("No requested_combination Received")
|
||||
rf_data = None
|
||||
if c_data.keys().__contains__("rf"):
|
||||
rf_data = c_data["rf"]
|
||||
# base_band_keys = ["2G", "5G", "6G", "5G-lower", "5G-upper"]
|
||||
base_dict = dict.fromkeys(self.supported_bands)
|
||||
for i in base_dict:
|
||||
base_dict[i] = []
|
||||
for i in requested_combination:
|
||||
if i[0] in self.supported_bands:
|
||||
base_dict[i[0]].append(self.dut_lib_specific_encryption_translation[i[1]])
|
||||
if i[1] in self.supported_bands:
|
||||
base_dict[i[1]].append((self.dut_lib_specific_encryption_translation[i[0]]))
|
||||
temp = []
|
||||
for i in list(base_dict.values()):
|
||||
for j in i:
|
||||
temp.append(j)
|
||||
temp_conf = c_data["ssid_modes"].copy()
|
||||
for i in temp_conf:
|
||||
if self.dut_lib_specific_encryption_translation[i] not in temp:
|
||||
c_data["ssid_modes"].pop(i)
|
||||
|
||||
temp_conf = c_data["ssid_modes"].copy()
|
||||
print(self.dut_lib_specific_encryption_translation)
|
||||
for i in temp_conf:
|
||||
for j in range(len(temp_conf[i])):
|
||||
for k in temp_conf[i][j]["appliedRadios"]:
|
||||
if self.dut_lib_specific_encryption_translation[i] not in base_dict[k]:
|
||||
c_data["ssid_modes"][i][j]["appliedRadios"].remove(k)
|
||||
if c_data["ssid_modes"][i][j]["appliedRadios"] == []:
|
||||
c_data["ssid_modes"][i][j] = {} # .popi.popitem()) # .popitem()
|
||||
|
||||
for i in c_data["ssid_modes"]:
|
||||
c_data["ssid_modes"][i] = [x for x in c_data["ssid_modes"][i] if x != {}]
|
||||
for ssids in c_data["ssid_modes"]:
|
||||
for i in c_data["ssid_modes"][ssids]:
|
||||
if i is not {}:
|
||||
i["security"] = self.dut_lib_specific_encryption_translation[ssids]
|
||||
temp_conf = c_data.copy()
|
||||
for i in range(0, len(self.device_under_tests_info)):
|
||||
if c_data["mode"] not in self.device_under_tests_info[i]["supported_modes"]:
|
||||
pytest.skip(c_data["mode"] + " is not Supported by DUT")
|
||||
for enc in c_data["ssid_modes"]:
|
||||
for idx in c_data["ssid_modes"][enc]:
|
||||
check = all(
|
||||
item in self.device_under_tests_info[i]["supported_bands"] for item in idx["appliedRadios"])
|
||||
if not check:
|
||||
temp_conf["ssid_modes"][enc].remove(idx)
|
||||
for key in c_data["rf"]:
|
||||
if key not in self.device_under_tests_info[i]["supported_bands"]:
|
||||
print(key)
|
||||
temp_conf["rf"][key] = None
|
||||
|
||||
return temp_conf
|
||||
|
||||
"""
|
||||
setup_basic_configuration - Method to configure AP in basic operating modes with multiple SSID's and multiple AP's
|
||||
This covers, basic and advanced test cases
|
||||
"""
|
||||
|
||||
def setup_basic_configuration(self, configuration=None,
|
||||
requested_combination=None):
|
||||
f_conf = self.setup_configuration_data(configuration=configuration,
|
||||
requested_combination=requested_combination)
|
||||
|
||||
logging.info("Selected Configuration: " + str(json.dumps(f_conf, indent=2)))
|
||||
final_configuration = f_conf.copy()
|
||||
"""
|
||||
Write your logic here to setup the configuration on dut
|
||||
"""
|
||||
|
||||
# Setup Mode
|
||||
|
||||
# Setup Radio Scenario
|
||||
|
||||
# Setup Config Apply on all AP's
|
||||
ret_val = dict()
|
||||
for i in range(0, len(self.device_under_tests_info)):
|
||||
self.pre_apply_check(idx=i) # Do check AP before pushing the configuration
|
||||
# Write your logic here to push the configuration on DUT.
|
||||
self.post_apply_check(idx=i) # Do check AP after pushing the configuration
|
||||
ret_val[self.device_under_tests_info[i]["identifier"]] = {}
|
||||
|
||||
# Write the Logic to create the data in below format. This should be returned from this function
|
||||
"""
|
||||
dut = {
|
||||
'903cb36c4301':
|
||||
{'ssid_data':
|
||||
{0: {'ssid': 'ssid_wpa_2g_br', 'encryption': 'wpa', 'password': 'something', 'band': '2G', 'bssid': '90:3C:B3:6C:43:04'}
|
||||
},
|
||||
'radio_data':{
|
||||
'2G':
|
||||
{'channel': 6, 'bandwidth': 20, 'frequency': 2437},
|
||||
'5G':
|
||||
{'channel': None, 'bandwidth': None, 'frequency': None},
|
||||
'6G':
|
||||
{'channel': None, 'bandwidth': None, 'frequency': None}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
"""
|
||||
return ret_val
|
||||
|
||||
"""
|
||||
setup_special_configuration - Method to configure APs in mesh operating modes with multiple SSID's and multiple AP's
|
||||
This covers, mesh and other roaming scenarios which includes any special type of modes
|
||||
multiple AP's with WDS and Wifi Steering scenarios are also covered here
|
||||
"""
|
||||
|
||||
def setup_special_configuration(self, configuration=None,
|
||||
requested_combination=None):
|
||||
final_configuration = self.setup_configuration_data(configuration=configuration,
|
||||
requested_combination=requested_combination)
|
||||
|
||||
logging.info("Selected Configuration: " + str(json.dumps(final_configuration, indent=2)))
|
||||
|
||||
profile_object = UProfileUtility(sdk_client=self.controller_library_object)
|
||||
if final_configuration["mode"] in self.supported_modes:
|
||||
profile_object.set_mode(mode=final_configuration["mode"])
|
||||
else:
|
||||
pytest.skip(final_configuration["mode"] + " Mode is not supported")
|
||||
|
||||
# Setup Radio Scenario
|
||||
if final_configuration["rf"] != {}:
|
||||
profile_object.set_radio_config(radio_config=final_configuration["rf"])
|
||||
else:
|
||||
profile_object.set_radio_config()
|
||||
for ssid in final_configuration["ssid_modes"]:
|
||||
for ssid_data in final_configuration["ssid_modes"][ssid]:
|
||||
profile_object.add_ssid(ssid_data=ssid_data)
|
||||
logging.info(
|
||||
"Configuration That is getting pushed: " + json.dumps(profile_object.base_profile_config, indent=2))
|
||||
r_val = False
|
||||
|
||||
# Do check AP before pushing the configuration
|
||||
# TODO
|
||||
self.dut_library_object.check_serial_connection()
|
||||
"""
|
||||
serial connection check
|
||||
ubus call ucentral status
|
||||
save the current uuid
|
||||
uci show ucentral
|
||||
ifconfig
|
||||
wifi status
|
||||
start logger to collect ap logs before config apply
|
||||
Timestamp before doing config apply
|
||||
"""
|
||||
|
||||
for dut in self.device_under_tests_info:
|
||||
resp = profile_object.push_config(serial_number=dut["identifier"])
|
||||
logging.info("Response for Config apply: " + str(resp.status_code))
|
||||
if resp.status_code != 200:
|
||||
logging.info("Failed to apply Configuration to AP. Response Code" +
|
||||
str(resp.status_code) +
|
||||
"Retrying in 5 Seconds... ")
|
||||
time.sleep(5)
|
||||
resp = profile_object.push_config(serial_number=dut["identifier"])
|
||||
if resp.status_code != 200:
|
||||
logging.info("Failed to apply Config, Response code:" + str(resp.status_code))
|
||||
pytest.fail("Failed to apply Config, Response code :" + str(resp.status_code))
|
||||
if resp.status_code == 200:
|
||||
r_val = True
|
||||
# TODO
|
||||
"""
|
||||
serial connection check
|
||||
ubus call ucentral status
|
||||
save the current uuid and compare with the one before config apply
|
||||
save the active config and compare with the latest apply
|
||||
uci show
|
||||
ifconfig
|
||||
iwinfo
|
||||
wifi status
|
||||
start logger to collect ap logs before config apply
|
||||
Timestamp after doing config apply
|
||||
"""
|
||||
return r_val
|
||||
|
||||
def get_dut_version(self):
|
||||
"""
|
||||
get_dut_version
|
||||
write your code to get ap version in
|
||||
self.dut_library_object.get_ap_version()
|
||||
"""
|
||||
version_info = []
|
||||
for ap in range(len(self.device_under_tests_info)):
|
||||
version_info.append(self.dut_library_object.get_ap_version(idx=ap, print_log=True))
|
||||
return version_info
|
||||
|
||||
def get_controller_version(self):
|
||||
version_info = dict()
|
||||
# version_info["ow_fms"] = self.controller_library_object.get_sdk_version_fms()
|
||||
# version_info["ow_gw"] = self.controller_library_object.get_sdk_version_gw()
|
||||
# version_info["ow_sec"] = self.controller_library_object.get_sdk_version_sec()
|
||||
# version_info["ow_prov"] = self.controller_library_object.get_sdk_version_prov()
|
||||
# version_info["ow_rrm"] = self.controller_library_object.get_sdk_version_owrrm()
|
||||
# version_info["ow_analytics"] = self.controller_library_object.get_sdk_version_ow_analytics()
|
||||
# version_info["ow_sub"] = self.controller_library_object.get_sdk_version_owsub()
|
||||
return version_info
|
||||
|
||||
def pre_apply_check(self, idx=0):
|
||||
"""
|
||||
Write your code that you need to use
|
||||
|
||||
"""
|
||||
check = "PASSED"
|
||||
if check is "FAILED":
|
||||
pytest.fail("Write the message here for why precheck is failed")
|
||||
|
||||
def post_apply_check(self, idx=0):
|
||||
|
||||
check = "PASSED"
|
||||
if check is "FAILED":
|
||||
pytest.fail("Write the message here for why post apply is failed")
|
||||
|
||||
def setup_environment_properties(self, add_allure_environment_property=None):
|
||||
# Write the logic to add data to environment data
|
||||
|
||||
if add_allure_environment_property is None:
|
||||
return
|
||||
add_allure_environment_property('Cloud-Controller-SDK-URL', self.controller_data.get("url"))
|
||||
sdk_version_data = self.get_controller_version()
|
||||
for microservice in sdk_version_data:
|
||||
add_allure_environment_property(microservice + '-version',
|
||||
str(sdk_version_data.get(microservice)))
|
||||
dut_versions = self.get_dut_version()
|
||||
for i in range(len(self.device_under_tests_info)):
|
||||
add_allure_environment_property("Firmware-Version_" + self.device_under_tests_info[i]["identifier"],
|
||||
str(dut_versions[i]))
|
||||
|
||||
for dut in self.device_under_tests_info:
|
||||
models = []
|
||||
identifiers = []
|
||||
models.append(dut["model"])
|
||||
identifiers.append(dut["identifier"])
|
||||
add_allure_environment_property('DUT-Model/s', ", ".join(models))
|
||||
add_allure_environment_property('Serial-Number/s', ", ".join(identifiers))
|
||||
|
||||
def setup_firmware(self):
|
||||
# Write the logic to upgrade the firmware on DUT
|
||||
upgrade_status = []
|
||||
return upgrade_status
|
||||
|
||||
def simulate_radar(self, idx=0):
|
||||
"""Simulate radar command for DFS"""
|
||||
ret = self.dut_library_object.dfs(idx=idx)
|
||||
return ret
|
||||
|
||||
def get_dfs_logs(self, idx=0):
|
||||
"""Get the ap logs after Simulate radar command"""
|
||||
logs = self.dut_library_object.dfs_logread(idx=idx)
|
||||
return logs
|
||||
|
||||
def reboot(self, idx=0):
|
||||
"""Reboot the AP"""
|
||||
ret = self.dut_library_object.reboot(idx=idx)
|
||||
return ret
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
basic_05 = {
|
||||
"target": "dut_lib_template",
|
||||
"controller": {
|
||||
"url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
|
||||
"username": "tip@ucentral.com",
|
||||
"password": "OpenWifi%123"
|
||||
},
|
||||
"device_under_tests": [{
|
||||
"model": "cig_wf188n",
|
||||
"supported_bands": ["2G", "5G", "6G"],
|
||||
"supported_modes": ["BRIDGE", "NAT", "VLAN"],
|
||||
"wan_port": "1.1.eth2",
|
||||
"lan_port": "1.1.eth1",
|
||||
"ssid": {
|
||||
"mode": "BRIDGE",
|
||||
"2g-ssid": "OpenWifi",
|
||||
"5g-ssid": "OpenWifi",
|
||||
"6g-ssid": "OpenWifi",
|
||||
"2g-password": "OpenWifi",
|
||||
"5g-password": "OpenWifi",
|
||||
"6g-password": "OpenWifi",
|
||||
"2g-encryption": "WPA2",
|
||||
"5g-encryption": "WPA2",
|
||||
"6g-encryption": "WPA3",
|
||||
"2g-bssid": "68:7d:b4:5f:5c:31",
|
||||
"5g-bssid": "68:7d:b4:5f:5c:3c",
|
||||
"6g-bssid": "68:7d:b4:5f:5c:38"
|
||||
},
|
||||
"mode": "wifi6",
|
||||
"identifier": "0000c1018812", # identifier is important and should be unique for each dut within the device_under_tests in single testbed
|
||||
"method": "serial", # serial | ssh | telnet
|
||||
"host_ip": "10.28.3.103", # if method == serial, then host_ip - ip for remote system where dut is connected via serial
|
||||
"host_username": "lanforge",
|
||||
"host_password": "pumpkin77",
|
||||
"host_ssh_port": 22,
|
||||
"serial_tty": "/dev/ttyAP1", # if method == serial, then tty port for this dut
|
||||
"firmware_version": "next-latest"
|
||||
}],
|
||||
"traffic_generator": {
|
||||
"name": "lanforge",
|
||||
"testbed": "basic",
|
||||
"scenario": "dhcp-bridge", # dhcp-bridge | dhcp-external
|
||||
"details": {
|
||||
"manager_ip": "10.28.3.28",
|
||||
"http_port": 8080,
|
||||
"ssh_port": 22,
|
||||
"setup": {"method": "build", "DB": "Test_Scenario_Automation"}, # method - build | load
|
||||
"wan_ports": { # addressing - dhcp-server | static | dynamic
|
||||
"1.1.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
|
||||
"lease-first": 10,
|
||||
"lease-count": 10000,
|
||||
"lease-time": "6h"
|
||||
}
|
||||
}
|
||||
},
|
||||
"lan_ports": {
|
||||
"1.1.eth1": {"addressing": "dynamic"}
|
||||
},
|
||||
"uplink_nat_ports": {
|
||||
"1.1.eth1": {"addressing": "static",
|
||||
"subnet": "10.28.2.16/24",
|
||||
"gateway_ip": "10.28.2.1",
|
||||
"ip_mask": "255.255.255.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var = dut_lib_template(controller_data=basic_05["controller"],
|
||||
device_under_tests_info=basic_05["device_under_tests"],
|
||||
target=basic_05["target"])
|
||||
|
||||
# var.setup_objects()
|
||||
setup_params_general_two = {
|
||||
"mode": "BRIDGE",
|
||||
"ssid_modes": {
|
||||
"wpa3_personal": [
|
||||
{"ssid_name": "ssid_wpa3_p_2g_br", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_wpa3_p_5g_br", "appliedRadios": ["5G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_wpa3_p_6g_br", "appliedRadios": ["6G"], "security_key": "something"}],
|
||||
"wpa3_personal_mixed": [
|
||||
{"ssid_name": "ssid_wpa3_p_m_2g_br", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_wpa3_p_m_5g_br", "appliedRadios": ["5G"], "security_key": "something"}],
|
||||
"wpa_wpa2_personal_mixed": [
|
||||
{"ssid_name": "ssid_wpa_wpa2_p_m_2g_br", "appliedRadios": ["2G"], "security_key": "something"},
|
||||
{"ssid_name": "ssid_wpa_wpa2_p_m_5g_br", "appliedRadios": ["5G"], "security_key": "something"}]
|
||||
},
|
||||
"rf": {},
|
||||
"radius": False
|
||||
}
|
||||
x = setup_params_general_two.copy()
|
||||
target = [['6G', 'wpa3_personal']]
|
||||
d = var.setup_configuration_data(configuration=setup_params_general_two, requested_combination=target)
|
||||
# d = var.setup_basic_configuration(configuration=setup_params_general_two, requested_combination=target)
|
||||
print(x)
|
||||
# var.setup_firmware()
|
||||
# var.teardown_objects()
|
||||
Reference in New Issue
Block a user