From 3c765d84c18603be06650aa93598ce6b77df69f9 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 10 Jul 2008 16:03:49 -0400 Subject: - check that when we add a second set name, the right thing happens --- tests/test03-schema-modify-set/after.sh | 2 ++ tests/test03-schema-modify-set/after.txt | 9 +++++++++ tests/test03-schema-modify-set/before.sh | 2 ++ tests/test03-schema-modify-set/before.txt | 5 +++++ tests/test03-schema-modify-set/change.sh | 9 +++++++++ tests/test03-schema-modify-set/change.txt | 2 ++ tests/test03-schema-modify-set/description.txt | 1 + tests/test03-schema-modify-set/dse.ldif | 12 ++++++++++++ 8 files changed, 42 insertions(+) create mode 100755 tests/test03-schema-modify-set/after.sh create mode 100644 tests/test03-schema-modify-set/after.txt create mode 100755 tests/test03-schema-modify-set/before.sh create mode 100644 tests/test03-schema-modify-set/before.txt create mode 100755 tests/test03-schema-modify-set/change.sh create mode 100644 tests/test03-schema-modify-set/change.txt create mode 100644 tests/test03-schema-modify-set/description.txt create mode 100644 tests/test03-schema-modify-set/dse.ldif diff --git a/tests/test03-schema-modify-set/after.sh b/tests/test03-schema-modify-set/after.sh new file mode 100755 index 0000000..e11d3ad --- /dev/null +++ b/tests/test03-schema-modify-set/after.sh @@ -0,0 +1,2 @@ +#!/bin/sh +search -b cn=compat,cn=accounts,dc=example,dc=com dn | grep ^dn: | env LANG=C sort diff --git a/tests/test03-schema-modify-set/after.txt b/tests/test03-schema-modify-set/after.txt new file mode 100644 index 0000000..5969f60 --- /dev/null +++ b/tests/test03-schema-modify-set/after.txt @@ -0,0 +1,9 @@ +dn: cn=compat, cn=Accounts, dc=example, dc=com +dn: ou=passwd,cn=compat, cn=Accounts, dc=example, dc=com +dn: ou=passwd2,cn=compat, cn=Accounts, dc=example, dc=com +dn: uid=user1a,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com +dn: uid=user1a,ou=passwd2,cn=compat,cn=accounts,dc=example,dc=com +dn: uid=user1b,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com +dn: uid=user1b,ou=passwd2,cn=compat,cn=accounts,dc=example,dc=com +dn: uid=user1c,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com +dn: uid=user1c,ou=passwd2,cn=compat,cn=accounts,dc=example,dc=com diff --git a/tests/test03-schema-modify-set/before.sh b/tests/test03-schema-modify-set/before.sh new file mode 100755 index 0000000..e11d3ad --- /dev/null +++ b/tests/test03-schema-modify-set/before.sh @@ -0,0 +1,2 @@ +#!/bin/sh +search -b cn=compat,cn=accounts,dc=example,dc=com dn | grep ^dn: | env LANG=C sort diff --git a/tests/test03-schema-modify-set/before.txt b/tests/test03-schema-modify-set/before.txt new file mode 100644 index 0000000..02843b4 --- /dev/null +++ b/tests/test03-schema-modify-set/before.txt @@ -0,0 +1,5 @@ +dn: cn=compat, cn=Accounts, dc=example, dc=com +dn: ou=passwd,cn=compat, cn=Accounts, dc=example, dc=com +dn: uid=user1a,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com +dn: uid=user1b,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com +dn: uid=user1c,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com diff --git a/tests/test03-schema-modify-set/change.sh b/tests/test03-schema-modify-set/change.sh new file mode 100755 index 0000000..d58333f --- /dev/null +++ b/tests/test03-schema-modify-set/change.sh @@ -0,0 +1,9 @@ +#!/bin/sh +modify << EOF +dn: cn=compat-passwd,cn=Schema Compatibility,cn=plugins,cn=config +changetype: modify +add: schema-compat-container-rdn +schema-compat-container-rdn: ou=passwd2 +- + +EOF diff --git a/tests/test03-schema-modify-set/change.txt b/tests/test03-schema-modify-set/change.txt new file mode 100644 index 0000000..9ed0ac6 --- /dev/null +++ b/tests/test03-schema-modify-set/change.txt @@ -0,0 +1,2 @@ +modifying entry "cn=compat-passwd,cn=Schema Compatibility,cn=plugins,cn=config" + diff --git a/tests/test03-schema-modify-set/description.txt b/tests/test03-schema-modify-set/description.txt new file mode 100644 index 0000000..097a515 --- /dev/null +++ b/tests/test03-schema-modify-set/description.txt @@ -0,0 +1 @@ +add an alternate set name for the same data diff --git a/tests/test03-schema-modify-set/dse.ldif b/tests/test03-schema-modify-set/dse.ldif new file mode 100644 index 0000000..316e1f5 --- /dev/null +++ b/tests/test03-schema-modify-set/dse.ldif @@ -0,0 +1,12 @@ +dn: cn=compat-passwd,cn=Schema Compatibility,cn=plugins,cn=config +objectClass: top +objectClass: extensibleObject +cn: compat-passwd +schema-compat-container-group: cn=compat, cn=Accounts, dc=example, dc=com +schema-compat-container-rdn: ou=passwd +schema-compat-check-access: yes +schema-compat-search-base: cn=Users1, cn=Accounts, dc=example, dc=com +schema-compat-search-filter: (objectClass=posixAccount) +schema-compat-entry-rdn: uid=%{uid} +schema-compat-entry-attribute: uidNumber=%{uidNumber} + -- cgit