
Resources.FitNesseRoot.PlugIns.RadiusFixture.UserGuide.Authentication.Script.ExtendDictionary.wiki Maven / Gradle / Ivy
The newest version!
---
Test
---
!***> definitions
!define REQUEST { {{{Access-Request, ID 0
User-Name: anon
Framed-Protocol: PPP
Custom-String: my-custom-string
Custom-Integer: 1234
Custom-Octets: 0x00ab00
Custom-Date: 1634311572
Custom-Ipaddr: 1.2.3.4
Custom-Ipv6addr: 2001:8d0:200:640b:0:0:0:1
Custom-Ipv6prefix: 2001:8d0:200:640b:0:0:0:0/64
Vendor-Specific: CustomVendor (3000)
Custom-Vendor-String: my-custom-vendor-string
Vendor-Specific: CustomVendor (3000)
Custom-Vendor-Integer: 9234}}} }
!define RESPONSE { {{{Access-Accept, ID 0}}} }
*!
!2 Extend Dictionary in RADIUS Authentication Fixture Script Mode
Following examples show how to extend Dictionary in RADIUS Authentication Communication. The suggested method is ''Scenario Table''.
!3 Extend Dictionary in Table Header
RADIUS Dictionary can be extended providing a custom dictionary into the table header constructor map.
|script |radius client fixture|!{dictionary:${CUSTOM_DICTIONARY}} |
|load radius auth endpoint |
|set request attribute|User-Name |with value|anon |
|set request attribute|Framed-Protocol |with value|PPP |
|set request attribute|Custom-String |with value|my-custom-string |
|set request attribute|Custom-Integer |with value|1234 |
|set request attribute|Custom-Octets |with value|0x00ab00 |
|set request attribute|Custom-Date |with value|1634311572 |
|set request attribute|Custom-Ipaddr |with value|1.2.3.4 |
|set request attribute|Custom-Ipv6addr |with value|2001:8d0:200:640b:0:0:0:1 |
|set request attribute|Custom-Ipv6prefix |with value|2001:8d0:200:640b:0:0:0:0/64|
|set request attribute|Custom-Vendor-String |with value|my-custom-vendor-string |
|set request attribute|Custom-Vendor-Integer|with value|9234 |
|check |send authentication |Access-Accept |
|check |request |${REQUEST} |
|check |response |${RESPONSE} |
!3 Extend Dictionary in Table Row
RADIUS Dictionary can be extended providing a custom dictionary into the ''extend dictionary'' table row.
|script |radius client fixture |
|load radius auth endpoint |
|extend dictionary |${CUSTOM_DICTIONARY} |
|set request attribute|User-Name |with value|anon |
|set request attribute|Framed-Protocol |with value|PPP |
|set request attribute|Custom-String |with value|my-custom-string |
|set request attribute|Custom-Integer |with value|1234 |
|set request attribute|Custom-Octets |with value|0x00ab00 |
|set request attribute|Custom-Date |with value|1634311572 |
|set request attribute|Custom-Ipaddr |with value|1.2.3.4 |
|set request attribute|Custom-Ipv6addr |with value|2001:8d0:200:640b:0:0:0:1 |
|set request attribute|Custom-Ipv6prefix |with value|2001:8d0:200:640b:0:0:0:0/64|
|set request attribute|Custom-Vendor-String |with value|my-custom-vendor-string |
|set request attribute|Custom-Vendor-Integer|with value|9234 |
|check |send authentication |Access-Accept |
|check |request |${REQUEST} |
|check |response |${RESPONSE} |
!3 Extend Dictionary in ''Scenario Table''
RADIUS Dictionary can be extended providing a custom dictionary into the ''dictionary'' table row.
|scenario |my auth request with dictionary|
|load radius auth endpoint |
|extend dictionary|${CUSTOM_DICTIONARY} |
|script |radius client fixture |
|my auth request with dictionary |
|set request attribute|User-Name |with value|anon |
|set request attribute|Framed-Protocol |with value|PPP |
|set request attribute|Custom-String |with value|my-custom-string |
|set request attribute|Custom-Integer |with value|1234 |
|set request attribute|Custom-Octets |with value|0x00ab00 |
|set request attribute|Custom-Date |with value|1634311572 |
|set request attribute|Custom-Ipaddr |with value|1.2.3.4 |
|set request attribute|Custom-Ipv6addr |with value|2001:8d0:200:640b:0:0:0:1 |
|set request attribute|Custom-Ipv6prefix |with value|2001:8d0:200:640b:0:0:0:0/64|
|set request attribute|Custom-Vendor-String |with value|my-custom-vendor-string |
|set request attribute|Custom-Vendor-Integer|with value|9234 |
|check |send authentication |Access-Accept |
|check |request |${REQUEST} |
|check |response |${RESPONSE} |
© 2015 - 2025 Weber Informatics LLC | Privacy Policy