This document describes the testing tools and scripts available for testing the RADIUS server functionality.
Before running the tests, ensure you have the following installed:
# Ubuntu/Debian
sudo apt-get install freeradius-utils
# CentOS/RHEL
sudo yum install freeradius-utils
# macOS
brew install freeradius
The test_radius_auth.sh script tests the RADIUS authentication server functionality. It includes tests for:
To run the authentication tests:
./core/test_radius_auth.sh
The test_radius_acct.sh script tests the RADIUS accounting server functionality. It includes tests for:
To run the accounting tests:
./core/test_radius_acct.sh
Both test scripts use the following default configuration:
You can modify these values in the scripts if needed.
The test scripts provide color-coded output:
Each test will show:
If tests fail, check:
You can also test manually using radtest:
# Authentication test
radtest testuser testpass localhost 0 testing123
# Accounting test
radtest -t acct -i 1 -a testing123 localhost:1813 0 testing123
These test scripts are integrated into the CI pipeline and run automatically on:
See CI/CD Configuration for details.