Commit graph

31 commits

Author SHA1 Message Date
Michael Banck 60c9d2c9de * debian/tests/acceptance: Only stop etcd if DCS is etcd or etcd3. 2023-01-08 22:03:01 +01:00
Shengjing Zhu b4db543273 Ensure no etcd server is running before acceptance tests
Otherwise acceptance tests can't spin up new etcd server which use
same port.

Closes: #1027707
2023-01-08 15:02:54 +08:00
Christoph Berg 80f2dfcc3f Enable RAFT support and add python3-pysyncobj to dep alternatives. 2022-11-11 12:12:53 +01:00
Christoph Berg d53c5a55b0 Add a test using etcd running basic_replication.feature only, and mark the full tests as flaky.
Closes: #1017527
2022-08-26 14:58:11 +02:00
Christoph Berg 6870df7681 debian/tests/acceptance: Add ### PostgreSQL ### markers for Jenkins 2022-08-26 13:43:57 +02:00
Michael Banck 646fff424b * debian/tests/acceptance: Skip standby_cluster/logical_slots_in_sync
scenario on v10, as it is not supported there.
2022-02-15 21:09:06 +01:00
Christoph Berg 8e4a470fe9 debian/tests/acceptance: set -o pipefail so failures aren't masked by ts. 2021-12-22 13:48:02 +01:00
Michael Banck 5700e7ed2e * debian/tests/acceptance: Pipe test outputs to ts in oder to
display timestamps.
2020-12-10 13:32:02 +01:00
Michael Banck 15d15b60a2 * debian/tests/acceptance: Start zookeeper manually. 2020-05-08 18:58:07 +02:00
Michael Banck 1bb99b2170 * debian/tests/acceptance: Set ETCD_UNSUPPORTED_ARCH to arm/arm64 according
to $DEB_HOST_ARCH (Closes: #952535).
2020-03-28 10:12:17 +01:00
Michael Banck 06a63bcc70 * debian/tests/acceptance: Set shell to bash. 2019-02-04 15:17:35 +01:00
Michael Banck 88f6008c75 * debian/tests/acceptance: Fix DCS check for zookeeper in case etcd-server is
installed as well.
2019-02-04 14:48:05 +01:00
Michael Banck d1d4bf1b0c * debian/tests/control: Use `Test-Command' directive with relative path
instead of `Tests' and pass it the DCS as argument.
  * debian/tests/acceptance: Set DCS variable as provided by the command-line
    argument.
2019-01-30 12:57:32 +01:00
Michael Banck c816a536ff * debian/tests/acceptance: Wait 5 seconds after starting zookeeper. 2019-01-29 11:22:16 +01:00
Michael Banck 65557e4cc6 * debian/tests/acceptance: Add support for consul as DCS. 2019-01-27 14:19:16 +01:00
Michael Banck a475f58697 * debian/tests/acceptance: Set JAVA_OPTS to "-Djava.net.preferIPv4Stack=true"
in /etc/default/zookeepr if DCS is zookeeper.
2019-01-26 21:19:25 +01:00
Michael Banck 94f9410868 * debian/tests/acceptance: Add ETCD_UNSUPPORTED_ARCH=386 to invocation for
i386.
2018-10-05 12:06:10 +02:00
Michael Banck df088977ed * debian/patches/behave_failure_logging.patch: New patch, copy over output
directory of a failed feature with `_failed' at the end.
  * debian/tests/acceptance: Dump logs for failed features.
2018-09-25 15:44:49 +02:00
Michael Banck af75147b58 * debian/tests/acceptance: Run all tests again. 2018-09-22 13:56:54 +02:00
Christoph Berg 9741f0a4fe Run first basic replication test only. 2018-06-04 23:06:49 +02:00
Christoph Berg 82cc3954e4 debian/tests: Set TZ=UTC. 2018-02-15 19:01:46 +01:00
Christoph Berg 35e242c759 debian/tests: Use zookeeperd when etcd-server is not available. 2018-02-06 14:56:37 +01:00
Christoph Berg 72fbeb4194 debian/tests/test: Tidy /tmp/pgpass?. 2018-02-06 12:37:22 +01:00
Michael Banck e0967b5a0f * debian/tests/acceptance: Simply set $PATH before running behave, drop the
$PATRONI_POSTGRESQL_BIN_DIR handling.
  * debian/patches/testsuite_honor_patroni_postgresql_bin_dir.patch: Removed,
    no longer needed.
2017-09-29 17:50:33 +02:00
Michael Banck eba7f46987 * debian/tests/acceptance: Run tests for each available Postgres version. 2017-09-29 16:27:16 +02:00
Michael Banck 3049bb02d6 Cleanup debug output from debian/tests/acceptance 2017-09-29 15:13:21 +02:00
Michael Banck 3e3cf26a97 * debian/tests/acceptance: Use $PATRONI_POSTGRESQL_BIN_DIR instead of $PATH. 2017-09-29 15:10:02 +02:00
Michael Banck b4ce563666 * debian/tests/acceptance: Dump patroni logfiles in case of failure. 2017-09-23 10:32:14 +02:00
Michael Banck fba7408141 Support multiple supported versions in accpetance autopkgtest 2017-09-23 09:19:01 +02:00
Michael Banck b2e4df0651 * debian/tests/acceptance: Update to set locale and to run the tests as user
postgres if autopkgtest is invoked as root.
  * debian/tests/control: Run acceptance test first.
  * debian/rules (override_dh_auto_test): Do not run testsuite during build.
2017-09-23 09:04:11 +02:00
Michael Banck 843df45d25 * debian/tests: Add acceptance test and use correct environment variables for
test test.
2017-09-15 15:24:59 +02:00