diff options
author | John Dennis <jdennis@redhat.com> | 2011-06-15 16:05:19 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-06-22 02:06:02 -0400 |
commit | d9d00f152267780d8251ee6e935645f397f2c0d7 (patch) | |
tree | ab3fcfc8e01839f0af715a1f6491322e542c7779 /ipalib/encoder.py | |
parent | 8c95eb68d2315217ff1d2564b5b300aa106f4bbd (diff) | |
download | freeipa-d9d00f152267780d8251ee6e935645f397f2c0d7.tar.gz freeipa-d9d00f152267780d8251ee6e935645f397f2c0d7.tar.xz freeipa-d9d00f152267780d8251ee6e935645f397f2c0d7.zip |
Update test_role_plugin test to include a comma in a privilege
Introduce a comma into a privilege name to assure we can handle
commas.
Commas must be escaped for some parameters, add escape_comma() utility
and invoke it for the necessary parameters.
Utilize a DN object to properly construct a DN and most importantly to
allow equality testing beween the DN we expect and the one
returned. This is necessary because a DN can be encoded according to
different encoding syntaxes all of which are valid. DN objects always
decode from their input. DN objects can test for equality between DN's
without being affected by DN encoding.
Add a equality callback for the dn in the expected dict. When the test
framework tests for equality between the expected value and the
returned value it will call back into a function we provide which will
convert the returned dn into a DN object. An equality test is then
performed between two DN objects. This is the only way to properly
compare two dn's.
Diffstat (limited to 'ipalib/encoder.py')
0 files changed, 0 insertions, 0 deletions