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

Resources.FitNesseRoot.PlugIns.RadiusFixture.UserGuide.Accounting.Table.AttributesDefinition.wiki Maven / Gradle / Ivy

The newest version!
---
Test
---
!***> definitions
!define REQUEST_1 { {{{Accounting-Request, ID 0
Acct-Status-Type: Start
User-Name: fooBar}}} }

!define REQUEST_2 { {{{Accounting-Request, ID 0
Acct-Status-Type: Start
Class: A:fooBar
Class: B:zooBar}}} }

!define REQUEST_3 { {{{Accounting-Request, ID 0
User-Name: fooBar}}} }

!define REQUEST_4 { {{{Accounting-Request, ID 0
User-Name: zooBar}}} }

!define REQUEST_5 { {{{Accounting-Request, ID 0}}} }

!define REQUEST_6 { {{{Accounting-Request, ID 0
User-Name: null}}} }

!define RESPONSE { {{{Accounting-Response, ID 0}}} }
*!
!2 Set Attributes in RADIUS Accounting Fixture Table Mode
In table mode, attributes can be set or removed via columns. Default attributes can also be defined by header map.

!3 Column Definition
Single value attributes can be provided by column definition.

|ddt        :radius client fixture|${RADIUS_HOST}|${RADIUS_ACCT_PORT}|${RADIUS_SHARED_SECRET}|
|packet type|Acct-Status-Type     |User-Name     |request?           |response?              |
|Accounting |Start                |fooBar        |${REQUEST_1}       |${RESPONSE}            |

To provide attributes as list, use the ''array push notation'' (attribute name followed by open and closed brackets - Attribute-Name[]).

|ddt        :radius client fixture|${RADIUS_HOST}|${RADIUS_ACCT_PORT}|${RADIUS_SHARED_SECRET} |
|packet type|Acct-Status-Type     |Class[]       |Class[]            |request?    |response?  |
|Accounting |Start                |A:fooBar      |B:zooBar           |${REQUEST_2}|${RESPONSE}|

To update an attribute, just change value in lines.

|ddt        :radius client fixture|${RADIUS_HOST}|${RADIUS_ACCT_PORT}|${RADIUS_SHARED_SECRET}|
|packet type|User-Name            |request?      |response?                                  |
|Accounting |fooBar               |${REQUEST_3}  |${RESPONSE}                                |
|Accounting |zooBar               |${REQUEST_4}  |${RESPONSE}                                |

To remove an attribute, set its value to ''null''.

|ddt        :radius client fixture|${RADIUS_HOST}|${RADIUS_ACCT_PORT}|${RADIUS_SHARED_SECRET}|
|packet type|User-Name            |request?      |response?                                  |
|Accounting |fooBar               |${REQUEST_3}  |${RESPONSE}                                |
|Accounting |null                 |${REQUEST_5}  |${RESPONSE}                                |
|Accounting |zooBar               |${REQUEST_4}  |${RESPONSE}                                |

The null label can be customized via map key ''nullLabel''.

|ddt        :radius client fixture|!{host:${RADIUS_HOST}, acctPort:${RADIUS_ACCT_PORT}, sharedSecret:${RADIUS_SHARED_SECRET}, nullLabel:#null#}|
|packet type|User-Name            |request?    |response?                                                                                      |
|Accounting |fooBar               |${REQUEST_3}|${RESPONSE}                                                                                    |
|Accounting |#null#               |${REQUEST_5}|${RESPONSE}                                                                                    |
|Accounting |null                 |${REQUEST_6}|${RESPONSE}                                                                                    |

!3 Default Attribute Value Definition
Default attributes can be set via header map. Each table row will inherit these attributes.

|ddt             :radius client fixture|!{host:${RADIUS_HOST}, acctPort:${RADIUS_ACCT_PORT}, sharedSecret:${RADIUS_SHARED_SECRET}, packetType:Accounting}|
|Acct-Status-Type|User-Name            |request?    |response?                                                                                           |
|Start           |fooBar               |${REQUEST_1}|${RESPONSE}                                                                                         |

The previous request can be also defined as the following table:

|ddt      :radius client fixture|!{host:${RADIUS_HOST}, acctPort:${RADIUS_ACCT_PORT}, sharedSecret:${RADIUS_SHARED_SECRET}, packetType:Accounting, Acct-Status-Type:Start}|
|User-Name|request?             |response?                                                                                                                                |
|fooBar   |${REQUEST_1}         |${RESPONSE}                                                                                                                              |




© 2015 - 2025 Weber Informatics LLC | Privacy Policy