summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-10 16:03:49 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-10 16:03:49 -0400
commit3c765d84c18603be06650aa93598ce6b77df69f9 (patch)
treecf3b3186f43375e53d5c224d659487adab1887b8
parentc7bb7d135bf9594e2637ef22283901d5e7ab58ba (diff)
downloadslapi-nis-3c765d84c18603be06650aa93598ce6b77df69f9.tar.gz
slapi-nis-3c765d84c18603be06650aa93598ce6b77df69f9.tar.xz
slapi-nis-3c765d84c18603be06650aa93598ce6b77df69f9.zip
- check that when we add a second set name, the right thing happens
-rwxr-xr-xtests/test03-schema-modify-set/after.sh2
-rw-r--r--tests/test03-schema-modify-set/after.txt9
-rwxr-xr-xtests/test03-schema-modify-set/before.sh2
-rw-r--r--tests/test03-schema-modify-set/before.txt5
-rwxr-xr-xtests/test03-schema-modify-set/change.sh9
-rw-r--r--tests/test03-schema-modify-set/change.txt2
-rw-r--r--tests/test03-schema-modify-set/description.txt1
-rw-r--r--tests/test03-schema-modify-set/dse.ldif12
8 files changed, 42 insertions, 0 deletions
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}
+