diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:23:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:23:53 +0000 |
commit | c000cad09d0b54c455c99271bfb996c2dfe13073 (patch) | |
tree | e47ca809ed512d7fb43ec3d555753b1b658e9819 /tests/data/constraint | |
parent | Initial commit. (diff) | |
download | openldap-upstream.tar.xz openldap-upstream.zip |
Adding upstream version 2.4.47+dfsg.upstream/2.4.47+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/data/constraint')
34 files changed, 349 insertions, 0 deletions
diff --git a/tests/data/constraint/constraint.out b/tests/data/constraint/constraint.out new file mode 100644 index 0000000..d7bcca4 --- /dev/null +++ b/tests/data/constraint/constraint.out @@ -0,0 +1,31 @@ +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +OK +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL +FAIL diff --git a/tests/data/constraint/root.ldif b/tests/data/constraint/root.ldif new file mode 100644 index 0000000..6c29690 --- /dev/null +++ b/tests/data/constraint/root.ldif @@ -0,0 +1,25 @@ +dn: dc=example,dc=com +objectclass: dcObject +objectclass: organization +dc: example +o: My Domain corp. + +dn: ou=users,dc=example,dc=com +ou: users +objectclass: organizationalUnit + +dn: ou=groups,dc=example,dc=com +ou: groups +objectclass: organizationalUnit + +dn: uid=1,ou=groups,dc=example,dc=com +objectclass: inetOrgPerson +cn: test 1 +sn: test1 +uid: 1 + +dn: uid=2,ou=groups,dc=example,dc=com +objectclass: inetOrgPerson +cn: test 2 +sn: test2 +uid: 2 diff --git a/tests/data/constraint/t_fail_01.ldif b/tests/data/constraint/t_fail_01.ldif new file mode 100644 index 0000000..e0c82e2 --- /dev/null +++ b/tests/data/constraint/t_fail_01.ldif @@ -0,0 +1,6 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +mail: c@example.com +mail: d@example.com diff --git a/tests/data/constraint/t_fail_02.ldif b/tests/data/constraint/t_fail_02.ldif new file mode 100644 index 0000000..462a174 --- /dev/null +++ b/tests/data/constraint/t_fail_02.ldif @@ -0,0 +1,8 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +mail: c@example.com +mail: d@example.com +mail: e@example.com +mail: f@example.com diff --git a/tests/data/constraint/t_fail_03.ldif b/tests/data/constraint/t_fail_03.ldif new file mode 100644 index 0000000..471a332 --- /dev/null +++ b/tests/data/constraint/t_fail_03.ldif @@ -0,0 +1,8 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +mail: c@example.com +- +add: mail +mail: d@example.com diff --git a/tests/data/constraint/t_fail_04.ldif b/tests/data/constraint/t_fail_04.ldif new file mode 100644 index 0000000..747357c --- /dev/null +++ b/tests/data/constraint/t_fail_04.ldif @@ -0,0 +1,10 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +- +add: mail +mail: c@example.com +- +add: mail +mail: d@example.com diff --git a/tests/data/constraint/t_fail_05.ldif b/tests/data/constraint/t_fail_05.ldif new file mode 100644 index 0000000..da48748 --- /dev/null +++ b/tests/data/constraint/t_fail_05.ldif @@ -0,0 +1,13 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +- +add: mail +mail: c@example.com +- +add: mail +mail: d@example.com +- +add: mail +mail: e@example.com diff --git a/tests/data/constraint/t_fail_06.ldif b/tests/data/constraint/t_fail_06.ldif new file mode 100644 index 0000000..950cf5b --- /dev/null +++ b/tests/data/constraint/t_fail_06.ldif @@ -0,0 +1,7 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +replace: mail +mail: a@example.com +mail: b@example.com +mail: c@example.com +mail: d@example.com diff --git a/tests/data/constraint/t_fail_07.ldif b/tests/data/constraint/t_fail_07.ldif new file mode 100644 index 0000000..85c8c63 --- /dev/null +++ b/tests/data/constraint/t_fail_07.ldif @@ -0,0 +1,15 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +replace: mail +mail: a@example.com +mail: b@example.com +mail: c@example.com +mail: d@example.com +- +delete: mail +- +add: mail +mail: w@example.com +mail: x@example.com +mail: y@example.com +mail: z@example.com diff --git a/tests/data/constraint/t_fail_08.ldif b/tests/data/constraint/t_fail_08.ldif new file mode 100644 index 0000000..7dc94ac --- /dev/null +++ b/tests/data/constraint/t_fail_08.ldif @@ -0,0 +1,12 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +mail: c@example.com +mail: d@example.com +- +delete: mail +mail: d@example.com +- +add: mail +mail: f@example.com diff --git a/tests/data/constraint/t_fail_09.ldif b/tests/data/constraint/t_fail_09.ldif new file mode 100644 index 0000000..61c2799 --- /dev/null +++ b/tests/data/constraint/t_fail_09.ldif @@ -0,0 +1,10 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +mail: c@example.com +mail: d@example.com +mail: e@example.com +- +delete: mail +mail: original@example.com diff --git a/tests/data/constraint/t_fail_10.ldif b/tests/data/constraint/t_fail_10.ldif new file mode 100644 index 0000000..d50f911 --- /dev/null +++ b/tests/data/constraint/t_fail_10.ldif @@ -0,0 +1,4 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: example@not-allowed.com diff --git a/tests/data/constraint/t_fail_11.ldif b/tests/data/constraint/t_fail_11.ldif new file mode 100644 index 0000000..48bed05 --- /dev/null +++ b/tests/data/constraint/t_fail_11.ldif @@ -0,0 +1,7 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +delete: mail +mail: original@example.com +- +add: mail +mail: a@fail.com diff --git a/tests/data/constraint/t_fail_12.ldif b/tests/data/constraint/t_fail_12.ldif new file mode 100644 index 0000000..071d829 --- /dev/null +++ b/tests/data/constraint/t_fail_12.ldif @@ -0,0 +1,10 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +delete: mail +mail: original@example.com +- +add: mail +mail: notsooriginal@example.com +- +replace: cn +cn: John Fail diff --git a/tests/data/constraint/t_fail_13.ldif b/tests/data/constraint/t_fail_13.ldif new file mode 100644 index 0000000..b8c2ab5 --- /dev/null +++ b/tests/data/constraint/t_fail_13.ldif @@ -0,0 +1,4 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +replace: givenname +givenname: Joe diff --git a/tests/data/constraint/t_fail_14.ldif b/tests/data/constraint/t_fail_14.ldif new file mode 100644 index 0000000..090e48b --- /dev/null +++ b/tests/data/constraint/t_fail_14.ldif @@ -0,0 +1,4 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +replace: sn +sn: Down diff --git a/tests/data/constraint/t_fail_15.ldif b/tests/data/constraint/t_fail_15.ldif new file mode 100644 index 0000000..94d7dd7 --- /dev/null +++ b/tests/data/constraint/t_fail_15.ldif @@ -0,0 +1,5 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +replace: uid +uid: 3 + diff --git a/tests/data/constraint/t_fail_16.ldif b/tests/data/constraint/t_fail_16.ldif new file mode 100644 index 0000000..055f284 --- /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/data/constraint/t_ok_01.ldif b/tests/data/constraint/t_ok_01.ldif new file mode 100644 index 0000000..5766461 --- /dev/null +++ b/tests/data/constraint/t_ok_01.ldif @@ -0,0 +1,3 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +delete: mail diff --git a/tests/data/constraint/t_ok_02.ldif b/tests/data/constraint/t_ok_02.ldif new file mode 100644 index 0000000..17ce4b2 --- /dev/null +++ b/tests/data/constraint/t_ok_02.ldif @@ -0,0 +1,5 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +replace: mail +mail: a@example.com +mail: b@example.com diff --git a/tests/data/constraint/t_ok_03.ldif b/tests/data/constraint/t_ok_03.ldif new file mode 100644 index 0000000..3d2a9d1 --- /dev/null +++ b/tests/data/constraint/t_ok_03.ldif @@ -0,0 +1,6 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +replace: mail +mail: a@example.com +mail: b@example.com +mail: c@example.com diff --git a/tests/data/constraint/t_ok_04.ldif b/tests/data/constraint/t_ok_04.ldif new file mode 100644 index 0000000..5766461 --- /dev/null +++ b/tests/data/constraint/t_ok_04.ldif @@ -0,0 +1,3 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +delete: mail diff --git a/tests/data/constraint/t_ok_05.ldif b/tests/data/constraint/t_ok_05.ldif new file mode 100644 index 0000000..c30d339 --- /dev/null +++ b/tests/data/constraint/t_ok_05.ldif @@ -0,0 +1,5 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: a@example.com +mail: b@example.com diff --git a/tests/data/constraint/t_ok_06.ldif b/tests/data/constraint/t_ok_06.ldif new file mode 100644 index 0000000..eef34bd --- /dev/null +++ b/tests/data/constraint/t_ok_06.ldif @@ -0,0 +1,7 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +delete: mail +- +add: mail +mail: b@example.com +mail: c@example.com diff --git a/tests/data/constraint/t_ok_07.ldif b/tests/data/constraint/t_ok_07.ldif new file mode 100644 index 0000000..f5c7333 --- /dev/null +++ b/tests/data/constraint/t_ok_07.ldif @@ -0,0 +1,8 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +delete: mail +- +add: mail +mail: a@example.com +mail: b@example.com +mail: c@example.com diff --git a/tests/data/constraint/t_ok_08.ldif b/tests/data/constraint/t_ok_08.ldif new file mode 100644 index 0000000..40b7fa9 --- /dev/null +++ b/tests/data/constraint/t_ok_08.ldif @@ -0,0 +1,12 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +mail: c@example.com +- +delete: mail +- +add: mail +mail: x@example.com +mail: y@example.com +mail: z@example.com diff --git a/tests/data/constraint/t_ok_09.ldif b/tests/data/constraint/t_ok_09.ldif new file mode 100644 index 0000000..73cec01 --- /dev/null +++ b/tests/data/constraint/t_ok_09.ldif @@ -0,0 +1,9 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +replace: mail +mail: a@example.com +mail: b@example.com +mail: c@example.com +mail: d@example.com +- +delete: mail diff --git a/tests/data/constraint/t_ok_10.ldif b/tests/data/constraint/t_ok_10.ldif new file mode 100644 index 0000000..367e9a8 --- /dev/null +++ b/tests/data/constraint/t_ok_10.ldif @@ -0,0 +1,24 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +mail: c@example.com +- +delete: mail +- +add: mail +mail: x@example.com +mail: y@example.com +mail: z@example.com +mail: u@example.com +mail: m@example.com +- +replace: mail +mail: i@example.com +mail: j@example.com +- +add: mail +mail: k@example.com +- +replace: description +description: d1 diff --git a/tests/data/constraint/t_ok_11.ldif b/tests/data/constraint/t_ok_11.ldif new file mode 100644 index 0000000..76cbb17 --- /dev/null +++ b/tests/data/constraint/t_ok_11.ldif @@ -0,0 +1,32 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +mail: c@example.com +- +delete: mail +- +add: mail +mail: x@example.com +mail: y@example.com +mail: z@example.com +mail: u@example.com +mail: m@example.com +- +replace: mail +mail: i@example.com +mail: j@example.com +- +add: mail +mail: k@example.com +mail: hh@example.com +- +delete: mail +- +add: mail +mail: k@example.com +mail: hh@example.com +mail: hj@example.com +- +replace: description +description: d1 diff --git a/tests/data/constraint/t_ok_12.ldif b/tests/data/constraint/t_ok_12.ldif new file mode 100644 index 0000000..ce89978 --- /dev/null +++ b/tests/data/constraint/t_ok_12.ldif @@ -0,0 +1,11 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +mail: c@example.com +mail: d@example.com +mail: e@example.com +- +delete: mail +mail: original@example.com +mail: e@example.com diff --git a/tests/data/constraint/t_ok_13.ldif b/tests/data/constraint/t_ok_13.ldif new file mode 100644 index 0000000..0e9257e --- /dev/null +++ b/tests/data/constraint/t_ok_13.ldif @@ -0,0 +1,18 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +add: mail +mail: b@example.com +mail: c@example.com +mail: d@example.com +mail: e@example.com +- +delete: mail +- +add: mail +mail: b@example.com +mail: c@example.com +mail: d@example.com +mail: e@example.com +- +delete: mail +mail: e@example.com diff --git a/tests/data/constraint/t_ok_14.ldif b/tests/data/constraint/t_ok_14.ldif new file mode 100644 index 0000000..96ef3a4 --- /dev/null +++ b/tests/data/constraint/t_ok_14.ldif @@ -0,0 +1,8 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +delete: description +description: desc1 +- +add: description +description: desc1-mod + diff --git a/tests/data/constraint/t_ok_15.ldif b/tests/data/constraint/t_ok_15.ldif new file mode 100644 index 0000000..9352caa --- /dev/null +++ b/tests/data/constraint/t_ok_15.ldif @@ -0,0 +1,5 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +changetype: modify +replace: uid +uid: 2 + diff --git a/tests/data/constraint/user.ldif b/tests/data/constraint/user.ldif new file mode 100644 index 0000000..6150462 --- /dev/null +++ b/tests/data/constraint/user.ldif @@ -0,0 +1,10 @@ +dn: cn=John Doe,ou=users,dc=example,dc=com +objectclass: inetOrgPerson +objectclass: organizationalPerson +cn: John Doe +givenname: John +sn: Doe +mail: original@example.com +description: desc1 +description: desc2 +uid: 1 |