Add a test using etcd running basic_replication.feature only, and mark the full tests as flaky.
Closes: #1017527
This commit is contained in:
parent
6870df7681
commit
d53c5a55b0
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -8,6 +8,10 @@ patroni (2.1.4-2) UNRELEASED; urgency=medium
|
|||
* debian/patches/acceptance_tests_speedup.patch: New patch, reduces loop_wait
|
||||
to 2 thus speeding up the behave tests, taken from upstream commit ead798.
|
||||
|
||||
[ Christoph Berg ]
|
||||
* Add a test using etcd running basic_replication.feature only, and mark the
|
||||
full tests as flaky. (Closes: #1017527)
|
||||
|
||||
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Thu, 02 Jun 2022 16:59:30 +0200
|
||||
|
||||
patroni (2.1.4-1) unstable; urgency=medium
|
||||
|
|
7
debian/tests/acceptance
vendored
7
debian/tests/acceptance
vendored
|
@ -1,11 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -eu
|
||||
|
||||
export LC_ALL=C.UTF-8
|
||||
export LANG=C.UTF-8
|
||||
export TZ=UTC # suppress UnknownTimeZoneError('Etc/UTC',)
|
||||
DCS=$1
|
||||
shift
|
||||
|
||||
if [ $(id -u) -eq 0 ]
|
||||
then
|
||||
|
@ -45,7 +46,7 @@ esac
|
|||
|
||||
set -x
|
||||
for PG_VERSION in $(ls -1r /usr/lib/postgresql/); do
|
||||
echo "### PostgreSQL $PG_VERSION acceptance-$DCS ###"
|
||||
echo "### PostgreSQL $PG_VERSION acceptance-$DCS $@ ###"
|
||||
if [ "${PG_VERSION}" == "10" ]; then
|
||||
SKIP=--tags=-skip
|
||||
else
|
||||
|
@ -53,7 +54,7 @@ for PG_VERSION in $(ls -1r /usr/lib/postgresql/); do
|
|||
fi
|
||||
$SU "set -o pipefail; ETCD_UNSUPPORTED_ARCH=$ETCD_ARCH DCS=$DCS \
|
||||
PATH=/usr/lib/postgresql/${PG_VERSION}/bin:$PATH \
|
||||
behave ${SKIP} | ts" || \
|
||||
behave ${SKIP} $@ | ts" || \
|
||||
(for file in $(ls features/output/*_failed/*); do echo "$file:"; cat $file; done && exit 1)
|
||||
echo "### End $PG_VERSION acceptance-$DCS ###"
|
||||
done
|
||||
|
|
18
debian/tests/control
vendored
18
debian/tests/control
vendored
|
@ -1,4 +1,16 @@
|
|||
# etcd
|
||||
Features: test-name=acceptance-etcd-basic
|
||||
Depends:
|
||||
etcd-server,
|
||||
moreutils,
|
||||
postgresql,
|
||||
python3-behave,
|
||||
python3-coverage,
|
||||
python3-etcd (>= 0.4.3),
|
||||
@,
|
||||
Test-Command: debian/tests/acceptance etcd features/basic_replication.feature
|
||||
Restrictions: allow-stderr
|
||||
|
||||
Features: test-name=acceptance-etcd
|
||||
Depends:
|
||||
etcd-server,
|
||||
|
@ -9,7 +21,7 @@ Depends:
|
|||
python3-etcd (>= 0.4.3),
|
||||
@,
|
||||
Test-Command: debian/tests/acceptance etcd
|
||||
Restrictions: allow-stderr
|
||||
Restrictions: allow-stderr, flaky
|
||||
|
||||
# consul
|
||||
Features: test-name=acceptance-consul
|
||||
|
@ -22,7 +34,7 @@ Depends:
|
|||
python3-coverage,
|
||||
@,
|
||||
Test-Command: debian/tests/acceptance consul
|
||||
Restrictions: allow-stderr
|
||||
Restrictions: allow-stderr, flaky
|
||||
|
||||
# zookeeper
|
||||
Features: test-name=acceptance-zookeeper
|
||||
|
@ -35,7 +47,7 @@ Depends:
|
|||
python3-kazoo,
|
||||
@,
|
||||
Test-Command: debian/tests/acceptance zookeeper
|
||||
Restrictions: needs-root, allow-stderr, skip-not-installable
|
||||
Restrictions: needs-root, allow-stderr, flaky, skip-not-installable
|
||||
|
||||
# regression tests
|
||||
Depends:
|
||||
|
|
Loading…
Reference in a new issue