Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/scripts/docker-test-replication.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ recorded_role_of() { # <container>
docker exec "$1" cat /opt/opendj/data/.replication-role 2>/dev/null
}

# no join.sh or replicate.sh runs in the container any more. A volume that holds the data
# reports itself healthy from the start while its join still runs, and the join keeps its
# password file until it ends. The bracket keeps the pattern from matching the command line
# of the sh that greps for it
bootstrap_ended() { # <container>
! docker exec "$1" sh -c "grep -qs -e 'bootstrap/[j]oin\.sh' -e 'bootstrap/[r]eplicate\.sh' /proc/[0-9]*/cmdline"
}

# the writability-mode the backend of dc=example,dc=com is configured with, empty where its
# entry sets none
backend_mode() { # <container>
Expand Down Expand Up @@ -770,6 +778,7 @@ wait_healthy dj-1

# the root password shows in no container log, and the files the tools read it from are gone
for c in dj-0 dj-1 dj-2 dj-sdsr; do
wait_until 300 "the bootstrap scripts of $c end" bootstrap_ended $c
if docker logs $c 2>&1 | grep -F -- "$ROOT_PASSWORD"; then fail "the root password is in the log of $c"; fi
left=$(docker exec $c grep -rlsF -- "$ROOT_PASSWORD" /tmp /dev/shm || true)
[ -z "$left" ] || fail "the root password is left in $left of $c"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<product.locales>ca_ES,es,de,fr,ja,ko,pl,zh_CN,zh_TW</product.locales>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<localized.jars.classifier>i18n</localized.jars.classifier>
<commons.version>3.2.1</commons.version>
<commons.version>3.2.2-SNAPSHOT</commons.version>
<freemarker.version>2.3.35</freemarker.version>
<metrics-core.version>4.2.30</metrics-core.version>
<bc.fips.version>2.1.3</bc.fips.version>
Expand Down
Loading