summaryrefslogtreecommitdiffstats
path: root/tests/test28-nis-conditional
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-11-03 16:40:34 -0500
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-11-03 16:40:34 -0500
commit355973e74252024dac832ed9819c91fe0e50d146 (patch)
tree9ddeed63096b58728f2d89d319d510353fe85ee2 /tests/test28-nis-conditional
parent702a06fb9d270381c22ffdac9c27971bef00c51b (diff)
downloadslapi-nis-355973e74252024dac832ed9819c91fe0e50d146.tar.gz
slapi-nis-355973e74252024dac832ed9819c91fe0e50d146.tar.xz
slapi-nis-355973e74252024dac832ed9819c91fe0e50d146.zip
- change %ifelse to %ifeq, because we won't have to worry about how to
compare the evaluated expression if we need to compare it using a single attribute name
Diffstat (limited to 'tests/test28-nis-conditional')
-rw-r--r--tests/test28-nis-conditional/before.txt4
-rw-r--r--tests/test28-nis-conditional/description.txt2
-rw-r--r--tests/test28-nis-conditional/dse.ldif4
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/test28-nis-conditional/before.txt b/tests/test28-nis-conditional/before.txt
index ef959d2..915e9fd 100644
--- a/tests/test28-nis-conditional/before.txt
+++ b/tests/test28-nis-conditional/before.txt
@@ -4,8 +4,8 @@ users
test
users
contents of example.com:test:
-group1 is-not-group2
-group2 is-group2
+group1 is-not-group2 ifeq-handles-bogus-attrs-correctly
+group2 is-group2 ifeq-handles-bogus-attrs-correctly
contents of example.com:users:
user1 user1:user1
user1a user1a:User 1 A
diff --git a/tests/test28-nis-conditional/description.txt b/tests/test28-nis-conditional/description.txt
index a6b4fb1..3c73d24 100644
--- a/tests/test28-nis-conditional/description.txt
+++ b/tests/test28-nis-conditional/description.txt
@@ -1 +1 @@
-ifelse evaluation
+ifeq evaluation
diff --git a/tests/test28-nis-conditional/dse.ldif b/tests/test28-nis-conditional/dse.ldif
index f7fddc6..583e33a 100644
--- a/tests/test28-nis-conditional/dse.ldif
+++ b/tests/test28-nis-conditional/dse.ldif
@@ -16,6 +16,6 @@ nis-domain: example.com
nis-map: test
nis-base: cn=Groups1, cn=Accounts, dc=example, dc=com
nis-filter: objectclass=posixgroup
-nis-keys-format: %{cn}
-nis-value-format: %ifelse("%match(\"%{cn}\",\"group2\",\"\")","group2","is-group2","is-not-group2")
+nis-key-format: %{cn}
+nis-value-format: %ifeq("cn","group2","is-group2","is-not-group2") %ifeq("madeup","ismadeup","wow-ifeq-is-so-broken","ifeq-handles-bogus-attrs-correctly")