Skip to content

Adding support for RADIUS test cases in sonic-mgmt#16475

Open
dt-nexthop wants to merge 9 commits intosonic-net:masterfrom
dt-nexthop:dt-nexthop/add-radius-tests
Open

Adding support for RADIUS test cases in sonic-mgmt#16475
dt-nexthop wants to merge 9 commits intosonic-net:masterfrom
dt-nexthop:dt-nexthop/add-radius-tests

Conversation

@dt-nexthop
Copy link
Contributor

@dt-nexthop dt-nexthop commented Jan 13, 2025

Description of PR
Add RADIUS test cases to sonic-mgmt and add a RADIUS Server to the pft docker image. The following situations are covered

Testing a user with Privl 15 is allowed access
Testing a user with Priv 1 is allowed access
Testing that a user added to the correct Linux groups based on Priv level provided by RADIUS server
Testing that a user is only able to run commands that they have access to based on Priv level
Testing RADIUS statistics
Testing setting source-interface
Testing that an unauthorized user is not permitted access
Added needed fixures to:

Spin up RADIUS server on ptf
Add/Remove required RADIUS configuration needed for tests

Fixes #16471

Type of change
Bug fix
Testbed and Framework(new/improvement)
Test case(new/improvement)
Back port request
202012
202205
202305
202311
[ 202405
Approach
What is the motivation for this PR?
There are currently no RADIUS tests in sonic-mgmt; this helps close that gap.

How did you do it?
The PRs to add the freeRADIUS package to ptf is covered in these PRs:
sonic-net/sonic-buildimage#21307

How did you verify/test it?
Running this test suite on both T0 and T1 topologies:

radius/test_radius_auth.py::test_radius_rw_user[usschq-eswdut-t001-None] PASSED [ 16%]
radius/test_radius_auth.py::test_radius_ro_user[usschq-eswdut-t001-None] PASSED [ 33%]
radius/test_radius_auth.py::test_radius_command_auth[usschq-eswdut-t001-None] PASSED [ 50%]
radius/test_radius_auth.py::test_radius_fallback[usschq-eswdut-t001-None] PASSED [ 66%]
radius/test_radius_auth.py::test_radius_failed_auth[usschq-eswdut-t001-None] PASSED [ 83%]
radius/test_radius_auth.py::test_radius_source_ip[usschq-eswdut-t001-None] FAILED [100%]
The last test case is failing due to:

sonic-net/sonic-buildimage#21386

The PRs to add the freeRADIUS package to ptf is covered in these PRs:
sonic-net/sonic-buildimage#21307

Any platform specific information?
None

Supported testbed topology if it's a new test case?
Any

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yxieca yxieca requested a review from qiluo-msft February 5, 2025 16:55
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dt-nexthop dt-nexthop mentioned this pull request Apr 28, 2025
5 tasks
yxieca pushed a commit that referenced this pull request May 28, 2025
Summary:
This is the HLD for the RADIUS test that is currently running as part of this PR: #16475

Also, note that before these tests pass in the pipeline, this PR needs to be merged into sonic-buildimage sonic-net/sonic-buildimage#13141.
bachalla pushed a commit to bachalla/sonic-mgmt that referenced this pull request Jun 2, 2025
Summary:
This is the HLD for the RADIUS test that is currently running as part of this PR: sonic-net#16475

Also, note that before these tests pass in the pipeline, this PR needs to be merged into sonic-buildimage sonic-net/sonic-buildimage#13141.
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft requested a review from Yarden-Z August 11, 2025 21:46
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
Summary:
This is the HLD for the RADIUS test that is currently running as part of this PR: sonic-net#16475

Also, note that before these tests pass in the pipeline, this PR needs to be merged into sonic-buildimage sonic-net/sonic-buildimage#13141.

Signed-off-by: opcoder0 <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
Summary:
This is the HLD for the RADIUS test that is currently running as part of this PR: sonic-net#16475

Also, note that before these tests pass in the pipeline, this PR needs to be merged into sonic-buildimage sonic-net/sonic-buildimage#13141.

Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
Summary:
This is the HLD for the RADIUS test that is currently running as part of this PR: sonic-net#16475

Also, note that before these tests pass in the pipeline, this PR needs to be merged into sonic-buildimage sonic-net/sonic-buildimage#13141.

Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
Summary:
This is the HLD for the RADIUS test that is currently running as part of this PR: sonic-net#16475

Also, note that before these tests pass in the pipeline, this PR needs to be merged into sonic-buildimage sonic-net/sonic-buildimage#13141.

Signed-off-by: Guy Shemesh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Test Gap][RADIUS][Any]Add initial RADIUS test cases

2 participants