Skip to content

Commit e8a0c3d

Browse files
Added simple unit test for the create and delete RADIUS auth server functions
1 parent 340ab54 commit e8a0c3d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/test_api_v1_user_auth_server_radius.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,18 @@
33
class APIUnitTestUserAuthServerRadius(unit_test_framework.APIUnitTest):
44
url = "/api/v1/user/auth_server/radius"
55
get_payloads = [{}]
6+
post_payloads = [
7+
{
8+
"name": "UNIT_TEST_RADIUS",
9+
"host": "123",
10+
"radius_secret": "testsecret",
11+
"radius_auth_port": 1812,
12+
"radius_acct_port": 1813,
13+
"radius_protocol": "MSCHAPv2",
14+
"radius_timeout": 5,
15+
"radius_nasip_attribute": "wan"
16+
}
17+
]
18+
delete_payloads = [{"name": "UNIT_TEST_RADIUS"}]
619

720
APIUnitTestUserAuthServerRadius()

0 commit comments

Comments
 (0)