summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-10 16:32:04 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-10 16:32:04 -0400
commita6408ef73bf84cab8031007083e56d312a73983d (patch)
treec3c89a6257940a3f50c176822d6bd20da13d3c72
parent25d3db1dfea178d2000d6300fcbb9aa2d7c03088 (diff)
downloadslapi-nis-a6408ef73bf84cab8031007083e56d312a73983d.tar.gz
slapi-nis-a6408ef73bf84cab8031007083e56d312a73983d.tar.xz
slapi-nis-a6408ef73bf84cab8031007083e56d312a73983d.zip
notice when an "interesting" entry is removed
-rwxr-xr-xtests/test08-schema-remove-entry/after.sh4
-rw-r--r--tests/test08-schema-remove-entry/after.txt4
-rwxr-xr-xtests/test08-schema-remove-entry/before.sh4
-rw-r--r--tests/test08-schema-remove-entry/before.txt5
-rwxr-xr-xtests/test08-schema-remove-entry/change.sh2
-rw-r--r--tests/test08-schema-remove-entry/description.txt1
-rw-r--r--tests/test08-schema-remove-entry/dse.ldif12
7 files changed, 32 insertions, 0 deletions
diff --git a/tests/test08-schema-remove-entry/after.sh b/tests/test08-schema-remove-entry/after.sh
new file mode 100755
index 0000000..32c64be
--- /dev/null
+++ b/tests/test08-schema-remove-entry/after.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+{ search -b cn=compat,cn=accounts,dc=example,dc=com dn ; \
+ search -b cn=compat2,cn=accounts,dc=example,dc=com dn; } |\
+grep ^dn: | env LANG=C sort
diff --git a/tests/test08-schema-remove-entry/after.txt b/tests/test08-schema-remove-entry/after.txt
new file mode 100644
index 0000000..eef023d
--- /dev/null
+++ b/tests/test08-schema-remove-entry/after.txt
@@ -0,0 +1,4 @@
+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=user1c,ou=passwd,cn=compat,cn=accounts,dc=example,dc=com
diff --git a/tests/test08-schema-remove-entry/before.sh b/tests/test08-schema-remove-entry/before.sh
new file mode 100755
index 0000000..32c64be
--- /dev/null
+++ b/tests/test08-schema-remove-entry/before.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+{ search -b cn=compat,cn=accounts,dc=example,dc=com dn ; \
+ search -b cn=compat2,cn=accounts,dc=example,dc=com dn; } |\
+grep ^dn: | env LANG=C sort
diff --git a/tests/test08-schema-remove-entry/before.txt b/tests/test08-schema-remove-entry/before.txt
new file mode 100644
index 0000000..02843b4
--- /dev/null
+++ b/tests/test08-schema-remove-entry/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/test08-schema-remove-entry/change.sh b/tests/test08-schema-remove-entry/change.sh
new file mode 100755
index 0000000..7eb65fb
--- /dev/null
+++ b/tests/test08-schema-remove-entry/change.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+delete "uid=user1b, cn=Users1, cn=Accounts, dc=example, dc=com"
diff --git a/tests/test08-schema-remove-entry/description.txt b/tests/test08-schema-remove-entry/description.txt
new file mode 100644
index 0000000..d844670
--- /dev/null
+++ b/tests/test08-schema-remove-entry/description.txt
@@ -0,0 +1 @@
+notice a new matching entry
diff --git a/tests/test08-schema-remove-entry/dse.ldif b/tests/test08-schema-remove-entry/dse.ldif
new file mode 100644
index 0000000..316e1f5
--- /dev/null
+++ b/tests/test08-schema-remove-entry/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}
+