2.6 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	TIP CICD Sanity Scripts
This directory contains scripts and modules designed for wlan sanity testing.
Nightly Sanity
This script is used to look for and test new firmware available for the APs. AP equipment IDs and SSID information used in test is stored in the lab_ap_info file
- Check current CloudSDK version
- Find latest dev firmware on TIP jfrog and create instances on CloudSDK (if necessary)
- Create report_data.json file with information about versions and test case pass/fail
- For each AP model:
- Check current AP firmware (If AP already running newest firmware, test will skip)
- Create Testrail test run with required test cases included
- Upgrade AP via CloudSDK API
- Check if AP upgrade and CloudSDK connection successful
- For each SSID mode (bridge, NAT and VLAN), marking TestRail and report_data.json with pass/fail:
- Create SSID Profiles for various security modes and radio types
- Create AP Profile for SSID mode
- Apply AP profile to AP
- Check that SSID have been applied properly on AP
- Perform client connectivity tests
 
- Update sanity_status.json with overall pass/fail
 
Throughput Test
This script is used to test UDP and TCP throughput on different modes of SSIDs, on multiple AP models. It is designed to run on APs that have successfully passed through Nightly_Sanity test.
For each AP model:
- Read sanity_status.json to see if throughput should be run, if yes:
- Run throughput tests on SSIDs modes
- Record results to CSV file
 
- Update sanity_status.json that throughput tests have been run
Environment Variables
Environment variables required to run scripts and modules in this directory
Nightly_Sanity.py
CLOUD_SDK_URL: CloudSDK URL for API calls
SANITY_LOG_DIR: Logger file directory
SANITY_REPORT_DIR: Report file directory
REPORT_TEMPLATE: Report template path
TR_USER: TestRail Username
TR_PWD: TestRail Password
MILESTONE: TestRail Milestone ID
PROJECT_ID: TestRail Project ID
EAP_IDENTITY: EAP identity for testing
EAP_PWD: EAP password for testing
AP_USER: Username for AP
JFROG_USER: Jfrog username
JFROG_PWD: Jfrog password
cloudsdk.py
CLOUDSDK_USER: CloudSDK username
CLOUDSDK_PWD: CloudSDK password
cluster_version.py
AWS_USER: CloudSDK username
AWS_PWD: CloudSDK password
testrail_api.py
TR_USER	tr_user	TestRail Username
TR_PWD	tr_pw	TestRail Password
Throughput_Test.py
CLOUD_SDK_URL: CloudSDK URL for API calls
CSV_PATH: Path for CSV file
EAP_IDENTITY: EAP identity for testing
EAP_PWD: EAP password for testing
TPUT_LOG_DIR: Logger file directory
