diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2012-01-10 15:00:26 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2012-01-10 15:00:26 -0500 |
commit | aa97ed3f671ff1229d26993194afa85468aa77b7 (patch) | |
tree | dc1dadb507df0c32737d2cc5e3c961a2f09065ca /tests | |
parent | 777314292282904609a3d6541723006dc28325b0 (diff) | |
download | slapi-nis-aa97ed3f671ff1229d26993194afa85468aa77b7.tar.gz slapi-nis-aa97ed3f671ff1229d26993194afa85468aa77b7.tar.xz slapi-nis-aa97ed3f671ff1229d26993194afa85468aa77b7.zip |
- add config snippet for managed-entries and load it by default
Diffstat (limited to 'tests')
-rw-r--r-- | tests/config/dse.ldif.mep.in | 12 | ||||
-rwxr-xr-x | tests/run-tests.sh | 6 | ||||
-rw-r--r-- | tests/slapd.sh.in | 3 |
3 files changed, 21 insertions, 0 deletions
diff --git a/tests/config/dse.ldif.mep.in b/tests/config/dse.ldif.mep.in new file mode 100644 index 0000000..5cc5ebf --- /dev/null +++ b/tests/config/dse.ldif.mep.in @@ -0,0 +1,12 @@ +dn: cn=Managed Entries,cn=plugins,cn=config +objectclass: top +objectclass: nsSlapdPlugin +objectclass: extensibleObject +objectclass: nsContainer +cn: Managed Entries +nsslapd-pluginpath: libmanagedentries-plugin +nsslapd-plugininitfunc: mep_init +nsslapd-plugintype: preoperation +nsslapd-pluginenabled: on +nsslapd-plugin-depends-on-type: database + diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 0961496..904613a 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -23,6 +23,12 @@ for subdir in "$@" ; do continue fi fi + if ! $TESTS_USE_MANAGED_ENTRIES ; then + if test -s $TESTDIR/$TEST/plugin-need-mep.txt ; then + echo Skipping "$TEST", needs the managed entries plugin. + continue + fi + fi if test -x edit-dse-config.sh ; then precmd="$TESTDIR/$subdir/edit-dse-config.sh $BTESTDIR/config/dse.ldif" fi diff --git a/tests/slapd.sh.in b/tests/slapd.sh.in index cbe9ef1..ea17561 100644 --- a/tests/slapd.sh.in +++ b/tests/slapd.sh.in @@ -69,6 +69,9 @@ startslapd() { if ! test -s $TESTDIR/$TEST/plugin-skip-memberof.txt ; then cat $BTESTDIR/config/dse.ldif.memberof >> $BTESTDIR/config/dse.ldif fi + if ! test -s $TESTDIR/$TEST/plugin-skip-mep.txt ; then + cat $BTESTDIR/config/dse.ldif.mep >> $BTESTDIR/config/dse.ldif + fi process_all=0 if test -s $TESTDIR/$TEST/plugin-process-all.txt ; then process_all=1 |