Files
vnctalk-prosody/run-tests.sh
T
Stefan-Sanger 7f7c087c16 test: skip test_vcard_fallback (mod_vnc_vcard_fallback not enabled in config)
The module exists in vnctalk/ but is not listed in modules_enabled in
the config template. The test previously passed on external deployments
by coincidence — the test users already had vCards with FN from real
usage. On the compose harness with a fresh DB, the test fails because
nothing generates a vCard.

Add @pytest.mark.skip with a reason pointing to the missing module.
Simplify run-tests.sh to a single pytest invocation (was 12 separate
calls). Update m1-manual-tasks.md §3.5 to reflect the skip.

Part-of: <http://gitlab.vnc.biz/uxf/vnctalk-prosody/-/merge_requests/3>
2026-07-15 17:58:02 +02:00

34 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
#
# Run the testsuite against an external (non-compose) Prosody deployment.
#
# Unlike run-compose-tests.sh (which brings up its own stack), this script
# points at an already-running server. Tests that need compose-specific
# infrastructure (docker exec, MOCK_URL, low smacks_hibernation_time) will
# skip automatically.
#
set -euo pipefail
export XMPP_HOST=xmpp.microlab.zimbra-vnc.de
export XMPP_PORT=30522
export XMPP_JID=lisa.porter@microlab.zimbra-vnc.de
export XMPP_PASSWORD=q3tx65test
export XMPP_JID2=richard.watson@microlab.zimbra-vnc.de
export XMPP_PASSWORD2=q3tx65test
export XMPP_DOMAIN=microlab.zimbra-vnc.de
export BOSH_URL=https://xmpp.microlab.zimbra-vnc.de/http-bind
export WS_URL=wss://xmpp.microlab.zimbra-vnc.de/xmpp-websocket
export REST_URL=https://xmpprest.microlab.zimbra-vnc.de/rest
export MUC_DOMAIN=conference.microlab.zimbra-vnc.de
export ADMIN_TELNET_HOST=127.0.0.1
export ADMIN_TELNET_PORT=5582
export REST_USER=vnctalk
export REST_PASSWORD=ohtai2Eicai4aiting7bec2am6Aih
export PG_HOST=localhost
export PG_PORT=14322
export PG_DB=prosody
export PG_USER=prosody
export PG_PASSWORD=eS5Gi7ahzo3chaiXiel0ief
pytest tests/ -v -c tests/pytest.ini