From: Ondřej Kuzník Date: Mon, 15 Sep 2014 21:33:42 +0000 (+0100) Subject: ITS#7781 Add test X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=349c4016984517f1f45dc9cd7e8617ce7b7986dd;p=openldap ITS#7781 Add test --- diff --git a/tests/data/constraint/constraint.out b/tests/data/constraint/constraint.out index 468d3afc6e..d7bcca4bfd 100644 --- a/tests/data/constraint/constraint.out +++ b/tests/data/constraint/constraint.out @@ -28,3 +28,4 @@ FAIL FAIL FAIL FAIL +FAIL diff --git a/tests/data/constraint/t_fail_16.ldif b/tests/data/constraint/t_fail_16.ldif new file mode 100644 index 0000000000..055f2846f8 --- /dev/null +++ b/tests/data/constraint/t_fail_16.ldif @@ -0,0 +1,4 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +replace: jpegPhoto +jpegPhoto: AAAA diff --git a/tests/scripts/test064-constraint b/tests/scripts/test064-constraint index 79b9814eca..94f86be890 100755 --- a/tests/scripts/test064-constraint +++ b/tests/scripts/test064-constraint @@ -96,6 +96,7 @@ olcConstraintAttribute: mail olcConstraintAttribute: mail count 1 restrict="ldap:///ou=groups,$BASEDN??one" olcConstraintAttribute: mail regex ^[[:alnum:]]+@example.com$ olcConstraintAttribute: description count 2 +olcConstraintAttribute: jpegPhoto count 0 # cn value has to be concatenated givenName SP sn olcConstraintAttribute: cn,sn,givenName set "(this/givenName + [ ] + this/sn) & this/cn"