summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-10 15:51:29 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-10 15:51:29 -0400
commit8026c5abd16faf2a2883a629644c493e32be9876 (patch)
tree2859e9c6f9ad0459e0b0abe1d1a93a094d84535a
parent8a08edb8b504b65861b8f29891f88e17b3f231c7 (diff)
downloadslapi-nis-8026c5abd16faf2a2883a629644c493e32be9876.tar.gz
slapi-nis-8026c5abd16faf2a2883a629644c493e32be9876.tar.xz
slapi-nis-8026c5abd16faf2a2883a629644c493e32be9876.zip
- test that when we remove a set, the data "disappears"
-rwxr-xr-xtests/test01-schema-remove-set/after.sh2
-rw-r--r--tests/test01-schema-remove-set/after.txt0
-rwxr-xr-xtests/test01-schema-remove-set/before.sh2
-rw-r--r--tests/test01-schema-remove-set/before.txt5
-rwxr-xr-xtests/test01-schema-remove-set/change.sh2
-rw-r--r--tests/test01-schema-remove-set/change.txt0
-rw-r--r--tests/test01-schema-remove-set/description.txt1
-rw-r--r--tests/test01-schema-remove-set/dse.ldif12
8 files changed, 24 insertions, 0 deletions
diff --git a/tests/test01-schema-remove-set/after.sh b/tests/test01-schema-remove-set/after.sh
new file mode 100755
index 0000000..e7a06a9
--- /dev/null
+++ b/tests/test01-schema-remove-set/after.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+search -b cn=compat,cn=accounts,dc=example,dc=com dn | grep ^dn: | sort
diff --git a/tests/test01-schema-remove-set/after.txt b/tests/test01-schema-remove-set/after.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/test01-schema-remove-set/after.txt
diff --git a/tests/test01-schema-remove-set/before.sh b/tests/test01-schema-remove-set/before.sh
new file mode 100755
index 0000000..e7a06a9
--- /dev/null
+++ b/tests/test01-schema-remove-set/before.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+search -b cn=compat,cn=accounts,dc=example,dc=com dn | grep ^dn: | sort
diff --git a/tests/test01-schema-remove-set/before.txt b/tests/test01-schema-remove-set/before.txt
new file mode 100644
index 0000000..02843b4
--- /dev/null
+++ b/tests/test01-schema-remove-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/test01-schema-remove-set/change.sh b/tests/test01-schema-remove-set/change.sh
new file mode 100755
index 0000000..8b7da4b
--- /dev/null
+++ b/tests/test01-schema-remove-set/change.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+delete "cn=compat-passwd , cn=Schema Compatibility,cn=plugins,cn=config"
diff --git a/tests/test01-schema-remove-set/change.txt b/tests/test01-schema-remove-set/change.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/test01-schema-remove-set/change.txt
diff --git a/tests/test01-schema-remove-set/description.txt b/tests/test01-schema-remove-set/description.txt
new file mode 100644
index 0000000..d0458ee
--- /dev/null
+++ b/tests/test01-schema-remove-set/description.txt
@@ -0,0 +1 @@
+remove a set and its group
diff --git a/tests/test01-schema-remove-set/dse.ldif b/tests/test01-schema-remove-set/dse.ldif
new file mode 100644
index 0000000..316e1f5
--- /dev/null
+++ b/tests/test01-schema-remove-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}
+