From 349c4016984517f1f45dc9cd7e8617ce7b7986dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 15 Sep 2014 22:33:42 +0100 Subject: [PATCH] ITS#7781 Add test --- tests/data/constraint/constraint.out | 1 + tests/data/constraint/t_fail_16.ldif | 4 ++++ tests/scripts/test064-constraint | 1 + 3 files changed, 6 insertions(+) create mode 100644 tests/data/constraint/t_fail_16.ldif 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" -- 2.39.5