Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
David Barchiesi
OpenLDAP
Commits
ff40af54
Commit
ff40af54
authored
15 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
ITS#6368
parent
f22bcfe1
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
tests/scripts/test050-syncrepl-multimaster
+62
-0
62 additions, 0 deletions
tests/scripts/test050-syncrepl-multimaster
with
63 additions
and
0 deletions
CHANGES
+
1
−
0
View file @
ff40af54
...
...
@@ -39,6 +39,7 @@ OpenLDAP 2.4.20 Engineering
Added additional operations for ITS#6332
Fixed memrchr define (ITS#6351)
Fixed slapd MAXPATHLEN handling (ITS#6342)
Added test050 rapid add/mod/del sequence (ITS#6368)
Fixed test057 handling of memberof/refint (ITS#6343)
Fixed slapd test error ignoring (ITS#6345)
Fixed liblutil constant (ITS#5909)
...
...
This diff is collapsed.
Click to expand it.
tests/scripts/test050-syncrepl-multimaster
+
62
−
0
View file @
ff40af54
...
...
@@ -674,9 +674,71 @@ n=`expr $n + 1`
done
# Insert modifications and more tests here.
echo
"Waiting
$SLEEP2
seconds for servers to resync..."
sleep
$SLEEP2
echo
"Using ldapmodify to add/modify/delete entries from server 1..."
for
i
in
1 2 3 4 5 6 7 8 9 10
;
do
echo
" iteration
$i
"
$LDAPMODIFY
-D
"
$MANAGERDN
"
-H
$URI1
-w
$PASSWD
\
>>
$TESTOUT
2>&1
<<
EOMODS
dn: cn=Add-Mod-Del,dc=example,dc=com
changetype: add
cn: Add/Mod/Del
objectclass: organizationalRole
dn: cn=Add-Mod-Del,dc=example,dc=com
changetype: modify
replace: description
description: guinea pig
-
dn: cn=Add-Mod-Del,dc=example,dc=com
changetype: delete
EOMODS
RC
=
$?
if
test
$RC
!=
0
;
then
echo
"ldapmodify failed for server 1 database (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
fi
done
echo
"Waiting
$SLEEP1
seconds for servers to resync..."
sleep
$SLEEP1
n
=
1
while
[
$n
-le
$MMR
]
;
do
PORT
=
`
expr
$BASEPORT
+
$n
`
URI
=
"ldap://
${
LOCALHOST
}
:
$PORT
/"
echo
"Using ldapsearch to read all the entries from server
$n
..."
$LDAPSEARCH
-S
""
-b
"
$BASEDN
"
-D
"
$MANAGERDN
"
-H
$URI
-w
$PASSWD
\
'objectclass=*'
>
$TESTDIR
/server
$n
.out 2>&1
RC
=
$?
if
test
$RC
!=
0
;
then
echo
"ldapsearch failed at server
$n
(
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
$RC
fi
.
$LDIFFILTER
<
$TESTDIR
/server
$n
.out
>
$TESTDIR
/server
$n
.flt
n
=
`
expr
$n
+ 1
`
done
n
=
2
while
[
$n
-le
$MMR
]
;
do
echo
"Comparing retrieved entries from server 1 and server
$n
..."
$CMP
$MASTERFLT
$TESTDIR
/server
$n
.flt
>
$CMPOUT
if
test
$?
!=
0
;
then
echo
"test failed - server 1 and server
$n
databases differ"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
1
fi
n
=
`
expr
$n
+ 1
`
done
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
echo
">>>>> Test succeeded"
...
...
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