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

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

The newest version!
---
Test
---
!***> definitions
!define REQUEST_1 { {{{Unknown (254), ID 0
NAS-Identifier: foo.bar.org
Filter-Id: fooBar}}} }

!define REQUEST_2 { {{{Unknown (254), ID 0
NAS-Identifier: foo.bar.org
Class: A:fooBar
Class: B:zooBar}}} }

!define REQUEST_3 { {{{Unknown (254), ID 0
NAS-Identifier: foo.bar.org
Filter-Id: fooBar}}} }

!define REQUEST_4 { {{{Unknown (254), ID 0
NAS-Identifier: foo.bar.org
Filter-Id: zooBar}}} }

!define REQUEST_5 { {{{Unknown (254), ID 0
NAS-Identifier: foo.bar.org}}} }

!define REQUEST_6 { {{{Unknown (254), ID 0
NAS-Identifier: foo.bar.org
Filter-Id: null}}} }
*!
!2 Set Attributes in RADIUS 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_GENERIC_PORT}|${RADIUS_SHARED_SECRET}|
|packet type|NAS-Identifier       |Filter-Id     |request?              |response?              |
|254        |foo.bar.org          |fooBar        |${REQUEST_1}          |${REQUEST_1}           |

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_GENERIC_PORT}|${RADIUS_SHARED_SECRET}  |
|packet type|NAS-Identifier       |Class[]       |Class[]               |request?    |response?   |
|254        |foo.bar.org          |A:fooBar      |B:zooBar              |${REQUEST_2}|${REQUEST_2}|

To update an attribute, just change value in lines.

|ddt        :radius client fixture|${RADIUS_HOST}|${RADIUS_GENERIC_PORT}|${RADIUS_SHARED_SECRET}|
|packet type|NAS-Identifier       |Filter-Id     |request?              |response?              |
|254        |foo.bar.org          |fooBar        |${REQUEST_3}          |${REQUEST_3}           |
|254        |foo.bar.org          |zooBar        |${REQUEST_4}          |${REQUEST_4}           |

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

|ddt        :radius client fixture|${RADIUS_HOST}|${RADIUS_GENERIC_PORT}|${RADIUS_SHARED_SECRET}|
|packet type|NAS-Identifier       |Filter-Id     |request?              |response?              |
|254        |foo.bar.org          |fooBar        |${REQUEST_3}          |${REQUEST_3}           |
|254        |foo.bar.org          |null          |${REQUEST_5}          |${REQUEST_5}           |
|254        |foo.bar.org          |zooBar        |${REQUEST_4}          |${REQUEST_4}           |

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

|ddt        :radius client fixture|!{host:${RADIUS_HOST}, genericPort:${RADIUS_GENERIC_PORT}, sharedSecret:${RADIUS_SHARED_SECRET}, nullLabel:#null#}|
|packet type|NAS-Identifier       |Filter-Id|request?    |response?                                                                                  |
|254        |foo.bar.org          |fooBar   |${REQUEST_3}|${REQUEST_3}                                                                               |
|254        |foo.bar.org          |#null#   |${REQUEST_5}|${REQUEST_5}                                                                               |
|254        |foo.bar.org          |null     |${REQUEST_6}|${REQUEST_6}                                                                               |

!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}, genericPort:${RADIUS_GENERIC_PORT}, sharedSecret:${RADIUS_SHARED_SECRET}, packetType:254}|
|NAS-Identifier|Filter-Id            |request?    |response?                                                                                          |
|foo.bar.org   |fooBar               |${REQUEST_1}|${REQUEST_1}                                                                                       |

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

|ddt      :radius client fixture|!{host:${RADIUS_HOST}, genericPort:${RADIUS_GENERIC_PORT}, sharedSecret:${RADIUS_SHARED_SECRET}, packetType:254, NAS-Identifier:foo.bar.org}|
|Filter-Id|request?             |response?                                                                                                                                   |
|fooBar   |${REQUEST_1}         |${REQUEST_1}                                                                                                                                |




© 2015 - 2025 Weber Informatics LLC | Privacy Policy