summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@dahyabhai.net>2012-03-30 16:51:36 -0400
committerNalin Dahyabhai <nalin@dahyabhai.net>2012-03-30 16:51:36 -0400
commit82b4a9da03cb7b932629a91268945d130ee9fbf3 (patch)
tree2fa798eb049512984e322138c018575567344954 /tests
parent304750d2d34735375a789083cc74f49a295bff1a (diff)
downloadslapi-nis-82b4a9da03cb7b932629a91268945d130ee9fbf3.tar.gz
slapi-nis-82b4a9da03cb7b932629a91268945d130ee9fbf3.tar.xz
slapi-nis-82b4a9da03cb7b932629a91268945d130ee9fbf3.zip
- treat the padding values used by %link() into expressions instead of
as literals
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test23-schema-link/before.sh1
-rw-r--r--tests/test23-schema-link/before.txt14
-rw-r--r--tests/test23-schema-link/dse.ldif14
3 files changed, 28 insertions, 1 deletions
diff --git a/tests/test23-schema-link/before.sh b/tests/test23-schema-link/before.sh
index 4f0e0b7..7b1606b 100755
--- a/tests/test23-schema-link/before.sh
+++ b/tests/test23-schema-link/before.sh
@@ -1,2 +1,3 @@
#!/bin/sh
search -b cn=compat,cn=accounts,dc=example,dc=com dn thingy | $LDIFSORT
+search -b cn=compat2,cn=accounts,dc=example,dc=com dn thingy | $LDIFSORT
diff --git a/tests/test23-schema-link/before.txt b/tests/test23-schema-link/before.txt
index abd7230..81a0235 100644
--- a/tests/test23-schema-link/before.txt
+++ b/tests/test23-schema-link/before.txt
@@ -22,3 +22,17 @@ thingy: -,user1c,user1c,user1c|user1c
thingy: -,-,user1c,user1c|user1c
thingy: -,-,-,user1c|user1c
+dn: cn=compat2,cn=accounts,dc=example,dc=com
+
+dn: cn=example,cn=compat2,cn=accounts,dc=example,dc=com
+
+dn: uid=group1-fake-uid,cn=example,cn=compat2,cn=accounts,dc=example,dc=com
+thingy: -,group1-fake-uid,group1-fake-uid,group1-fake-uid
+thingy: -,group1,group1-fake-uid,group1-fake-uid
+thingy: -,group1,group1,group1-fake-uid
+
+dn: uid=group2-fake-uid,cn=example,cn=compat2,cn=accounts,dc=example,dc=com
+thingy: -,group2-fake-uid,group2-fake-uid,group2-fake-uid
+thingy: -,group2-alternate-name,group2-fake-uid,group2-fake-uid
+thingy: -,group2,group2,group2-fake-uid
+
diff --git a/tests/test23-schema-link/dse.ldif b/tests/test23-schema-link/dse.ldif
index a36146a..45b4bd3 100644
--- a/tests/test23-schema-link/dse.ldif
+++ b/tests/test23-schema-link/dse.ldif
@@ -1,4 +1,4 @@
-dn: cn=example,cn=Schema Compatibility,cn=plugins,cn=config
+dn: cn=example+cn="compat,cn=Accounts,dc=example,dc=com",cn=Schema Compatibility,cn=plugins,cn=config
objectClass: top
objectClass: extensibleObject
cn: example
@@ -10,3 +10,15 @@ schema-compat-search-filter: (objectClass=posixAccount)
schema-compat-entry-rdn: uid=%{uid}
schema-compat-entry-attribute: thingy=%link("%{madeup}", "-", ",", "%merge(\":\",\"%{uid}\",\"%{madeup}\")", "-", ",", "%collect(\"%{uid}\",\"%{madeup}\",\"%{uid}\")", "-", ",", "%collect(\"%{madeup}\",\"%{uid}\",\"%{madeup}\",\"%{uid}\",\"%deref(\\\"madeup\\\",\\\"madeup\\\")\",\"%{uid}\")", "-")|%{uid}
+dn: cn=example+cn="compat2,cn=Accounts,dc=example,dc=com",cn=Schema Compatibility,cn=plugins,cn=config
+objectClass: top
+objectClass: extensibleObject
+cn: example
+schema-compat-container-group: cn=compat2,cn=Accounts,dc=example,dc=com
+schema-compat-container-rdn: cn=example
+schema-compat-check-access: yes
+schema-compat-search-base: cn=Groups1, cn=Accounts, dc=example, dc=com
+schema-compat-search-filter: (objectClass=posixGroup)
+schema-compat-entry-rdn: uid=%{uid}
+schema-compat-entry-attribute: thingy=%link("%{madeup}", "-", ",", "%merge(\":\",\"%{uid}\",\"%{madeup}\")", "%{cn}", ",", "%collect(\"%{uid}\",\"%{madeup}\",\"%{uid}\")", "%{cn}", ",", "%collect(\"%{madeup}\",\"%{uid}\",\"%{madeup}\",\"%{uid}\",\"%deref(\\\"madeup\\\",\\\"madeup\\\")\",\"%{uid}\")", "-")
+