Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
adb6222a
Commit
adb6222a
authored
20 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
kill provider as well; cleanup replication tests
parent
90cc75f1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/scripts/test007-replication
+7
-5
7 additions, 5 deletions
tests/scripts/test007-replication
tests/scripts/test018-syncreplication-persist
+30
-0
30 additions, 0 deletions
tests/scripts/test018-syncreplication-persist
tests/scripts/test030-relay
+1
-1
1 addition, 1 deletion
tests/scripts/test030-relay
with
38 additions
and
6 deletions
tests/scripts/test007-replication
+
7
−
5
View file @
adb6222a
...
...
@@ -192,13 +192,13 @@ echo "Waiting 15 seconds for slurpd to send changes..."
sleep
15
echo
"Stopping the slave..."
kill
$SLAVEPID
kill
-HUP
$SLAVEPID
KILLPIDS
=
"
$PID
$SLURPPID
"
echo
"Waiting 5 seconds for slave slapd to die..."
sleep
5
echo
"Applying more changes..."
echo
"Applying more changes
to the master slapd
..."
$LDAPMODIFY
-v
-D
"
$MANAGERDN
"
-h
$LOCALHOST
-p
$PORT1
-w
$PASSWD
>
\
$TESTOUT
2>&1
<<
EOMODS
dn: cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com
...
...
@@ -218,13 +218,13 @@ fi
echo
"Stopping slurpd..."
kill
$SLURPPID
kill
-HUP
$SLURPPID
KILLPIDS
=
"
$PID
"
echo
"Waiting 5 seconds for slurpd to die..."
sleep
5
echo
"Applying more changes..."
echo
"Applying more changes
to the master slapd
..."
$LDAPMODIFY
-v
-D
"
$MANAGERDN
"
-h
$LOCALHOST
-p
$PORT1
-w
$PASSWD
>
\
$TESTOUT
2>&1
<<
EOMODS
dn: cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com
...
...
@@ -243,6 +243,7 @@ if test $RC != 0 ; then
fi
echo
"Restarting slave slapd on TCP/IP port
$PORT2
..."
echo
"RESTART"
>>
$LOG2
$SLAPD
-f
$CONF2
-h
$URI2
-d
$LVL
$TIMING
>>
$LOG2
2>&1 &
SLAVEPID
=
$!
if
test
$WAIT
!=
0
;
then
...
...
@@ -263,7 +264,8 @@ for i in 0 1 2 3 4 5; do
sleep
5
done
echo
"Starting slurpd..."
echo
"Restarting slurpd..."
echo
"RESTART"
>>
$SLURPLOG
$SLURPD
-f
$CONF1
-d
${
SLURPD_DEBUG
-5
}
-t
$DBDIR1B
>>
$SLURPLOG
2>&1 &
SLURPPID
=
$!
if
test
$WAIT
!=
0
;
then
...
...
This diff is collapsed.
Click to expand it.
tests/scripts/test018-syncreplication-persist
+
30
−
0
View file @
adb6222a
...
...
@@ -117,6 +117,36 @@ fi
echo
"Waiting 15 seconds for syncrepl to receive changes..."
sleep
15
echo
"Stopping the provider, sleeping 10 seconds and restarting it..."
kill
-HUP
"
$PID
"
sleep
10
echo
"RESTART"
>>
$LOG1
$SLAPD
-f
$CONF1
-h
$URI1
-d
$LVL
$TIMING
>>
$LOG1
2>&1 &
PID
=
$!
if
test
$WAIT
!=
0
;
then
echo
PID
$PID
read
foo
fi
KILLPIDS
=
"
$PID
$SLAVEPID
"
echo
"Using ldapsearch to check that master slapd is running..."
for
i
in
0 1 2 3 4 5
;
do
$LDAPSEARCH
-s
base
-b
"
$MONITOR
"
-h
$LOCALHOST
-p
$PORT1
\
'objectclass=*'
>
/dev/null 2>&1
RC
=
$?
if
test
$RC
=
0
;
then
break
fi
echo
"Waiting 5 seconds for slapd to start..."
sleep
5
done
if
test
$RC
!=
0
;
then
echo
"ldapsearch failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
fi
echo
"Using ldapmodify to modify master directory..."
#
...
...
This diff is collapsed.
Click to expand it.
tests/scripts/test030-relay
+
1
−
1
View file @
adb6222a
...
...
@@ -62,7 +62,7 @@ if test "x$RELAYS" = "x" ; then
exit
0
fi
echo
"Testing virtual naming context mapping with backend(s)
$RELAYS
..."
echo
"Testing virtual naming context mapping with
$RELAYS
backend(s)..."
echo
""
first
=
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment