mirror of https://github.com/sysown/proxysql
Tests were using hardcoded hostgroup 0/1 or 30 instead of the mysql84 infra hostgroups (WHG=2900, RHG=2901), causing timeouts and failures.
- test_read_only_actions_offline_hard_servers: read WHG/RHG from
TAP_MYSQL8_BACKEND_HG env var instead of hardcoding 0/1
- Remove hardcoded TAP_MYSQL8_BACKEND_HG=30 from per-test .env files
(test_sqlite3_pass_exts, test_auth_methods, reg_test_4935) so the
value comes from the infra .env
- Source infra .env from mysql84/env.sh using WORKSPACE to export
TAP test variables into the proxysql-tester.py subprocess (sh-safe,
no BASH_SOURCE dependency)
pull/5469/head
parent
8a811ab6a1
commit
4f9ab49e7a
@ -1,8 +1,14 @@
|
||||
# Legacy Test Group Environment
|
||||
# Defines the primary targets for tests that expect a generic MySQL or PGSQL backend.
|
||||
# MySQL 8.4 Test Group Environment
|
||||
|
||||
export DEFAULT_MYSQL_INFRA="infra-mysql84"
|
||||
|
||||
# Source infra .env to export TAP test variables (TAP_MYSQL8_BACKEND_HG, etc.)
|
||||
# Uses WORKSPACE (always set in CI) to avoid shell-specific BASH_SOURCE
|
||||
if [ -n "${WORKSPACE}" ]; then
|
||||
_INFRA_ENV="${WORKSPACE}/test/infra/${DEFAULT_MYSQL_INFRA}/.env"
|
||||
[ -f "${_INFRA_ENV}" ] && . "${_INFRA_ENV}"
|
||||
fi
|
||||
|
||||
# Path to RESTAPI test scripts inside ProxySQL container
|
||||
# The setup-infras.bash hook copies scripts to the ProxySQL data directory
|
||||
export REGULAR_INFRA_DATADIR="/var/lib/proxysql"
|
||||
|
||||
@ -1,2 +1 @@
|
||||
TAP_MYSQL8_BACKEND_HG=30
|
||||
TAP_NUM_CLIENT_THREADS=4
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
TAP_MYSQLUSERNAME=root
|
||||
|
||||
TAP_MYSQL8_BACKEND_HG=30
|
||||
TAP_NUM_CLIENT_THREADS=4
|
||||
|
||||
Loading…
Reference in new issue