summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-04-05 17:26:35 -0400
committerRob Crittenden <rcritten@redhat.com>2011-04-05 21:51:34 -0400
commit316efbc32f7b586df36653aa894e686313a64764 (patch)
treee04c75afc91ccec0a576f49e4aae38d2d4daa558 /tests
parentb9a2c11d6f6be6e7e599a48c70e798b720222b35 (diff)
downloadfreeipa-316efbc32f7b586df36653aa894e686313a64764.tar.gz
freeipa-316efbc32f7b586df36653aa894e686313a64764.tar.xz
freeipa-316efbc32f7b586df36653aa894e686313a64764.zip
postalCode should be a string not an integer.
postalCode is defined as an Int. This means you can't define one that has a leading zero nor can you have dashes, letters, etc. This changes the data type on the server. It will still accept an int value if provided and convert it into a string. Bump the API version to 2.1. ticket 1150
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xmlrpc/test_user_plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_xmlrpc/test_user_plugin.py b/tests/test_xmlrpc/test_user_plugin.py
index 73cb29574..00f906076 100644
--- a/tests/test_xmlrpc/test_user_plugin.py
+++ b/tests/test_xmlrpc/test_user_plugin.py
@@ -511,7 +511,7 @@ class test_user(Declarative):
command=(
'user_add', [user1], dict(givenname=u'Test', sn=u'User1',
street=u'123 Maple Rd', l=u'Anytown', st=u'MD',
- telephonenumber=u'410-555-1212',)
+ telephonenumber=u'410-555-1212', postalcode=u'01234-5678')
),
expected=dict(
value=user1,
@@ -532,6 +532,7 @@ class test_user(Declarative):
street=[u'123 Maple Rd'],
l=[u'Anytown'],
st=[u'MD'],
+ postalcode=[u'01234-5678'],
telephonenumber=[u'410-555-1212'],
ipauniqueid=[fuzzy_uuid],
dn=u'uid=tuser1,cn=users,cn=accounts,' + api.env.basedn,