All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Resources.FitNesseRoot.PlugIns.RadiusFixture.UserGuide.RadiusTestCreation.CreateYourFirstTest.wiki Maven / Gradle / Ivy

The newest version!
!***> definitions
!define AUTH_REQUEST { {{{Access-Request, ID 0
User-Name: user001
User-Password: 0x70617373776f7264303031}}} }

!define AUTH_RESPONSE { {{{Access-Accept, ID 0}}} }

!define ACCT_REQUEST_START { {{{Accounting-Request, ID 0
Acct-Status-Type: Start}}} }

!define ACCT_REQUEST_ALIVE { {{{Accounting-Request, ID 0
Acct-Status-Type: Alive}}} }

!define ACCT_REQUEST_STOP { {{{Accounting-Request, ID 0
Acct-Status-Type: Stop}}} }

!define ACCT_RESPONSE { {{{Accounting-Response, ID 0}}} }

!define ECHO_REQUEST { {{{Unknown (254), ID 0
NAS-Identifier: foo.bar.org}}} }
*!
!2 Create your first test
To create your first test, retrieve your RADIUS server endpoint coordinates, then copy the following table and replace coordinates:
 * RADIUS host (hostname or ip)
 * RADIUS auth port (Authentication/Access RADIUS port)
 * RADIUS acct port (Accounting RADIUS port)
 * RADIUS shared secret (RADIUS Server shared secret)

|import                                  |
|com.github.gun88.fitnesse.fixture.radius|

|script               |radius client fixture                     |
|set host             |${RADIUS_HOST}                            |
|set auth port        |${RADIUS_AUTH_PORT}                       |
|set acct port        |${RADIUS_ACCT_PORT}                       |
|set shared secret    |${RADIUS_SHARED_SECRET}                   |
|set request attribute|User-Name          |with value|user001    |
|set request attribute|User-Password      |with value|password001|
|check                |send authentication|Access-Accept         |
|check                |request            |${AUTH_REQUEST}       |
|check                |response           |${AUTH_RESPONSE}      |
|clear request attributes                                        |
|set request attribute|Acct-Status-Type   |with value|Start      |
|check                |send accounting    |Accounting-Response   |
|check                |request            |${ACCT_REQUEST_START} |
|check                |response           |${ACCT_RESPONSE}      |
|set request attribute|Acct-Status-Type   |with value|Alive      |
|check                |send accounting    |Accounting-Response   |
|check                |request            |${ACCT_REQUEST_ALIVE} |
|check                |response           |${ACCT_RESPONSE}      |
|set request attribute|Acct-Status-Type   |with value|Stop       |
|check                |send accounting    |Accounting-Response   |
|check                |request            |${ACCT_REQUEST_STOP}  |
|check                |response           |${ACCT_RESPONSE}      |

NOTE: If your RADIUS Server supports different types of authentication, customize ''User- Name'' and ''User-Password'' rows. Click [[here][




© 2015 - 2025 Weber Informatics LLC | Privacy Policy