Hi, how can I test, that an entry doesn't have a particular attribute?
Norbert
You can validate that it doesn't have a particular attribute value by negating the results of the test like so:
comment=This will validate that the CN does not contain "happyGillmore" operation=validateObject ExpectFailure=true cn=happyGillmore
You can validate that the attribute doesn't contain a value at all by using asterisk:
comment=This will validate that the description does not contain any value operation=validateObject ExpectFailure=true description=*
Have fun!
Brent
Log in to post a comment.
Hi,
how can I test, that an entry doesn't have a particular attribute?
Norbert
You can validate that it doesn't have a particular attribute value by negating the results of the test like so:
comment=This will validate that the CN does not contain "happyGillmore" operation=validateObject ExpectFailure=true cn=happyGillmore
You can validate that the attribute doesn't contain a value at all by using asterisk:
comment=This will validate that the description does not contain any value operation=validateObject ExpectFailure=true description=*
Have fun!
Brent