Skip to content

mariadb-corporation/connector-test-machine

Repository files navigation

connector-test-machine

development

sudo apt-get install -y git-crypt git-crypt export-key /path/to/testing_machine_key.txt

after cloning : git-crypt unlock /path/to/testing_machine_key.txt

to use :

git clone https://github.com/rusher/connector-test-machine.git
source connector-test-machine/launch.sh -tTYPE -vVERSION -dDATABASE -nNATIVE -pPACKET_SIZE -lLOCAL

possible TYPE value :

  • mariadb
  • mysql
  • build
  • maxscale
  • mariadb-es (enterprise)
  • skysql
  • skysql-ha

version is mandatory for non skysql env.

Optional options :

  • PACKET_SIZE permitting to set max_allowed_packet in mb (default 20 if not set)
  • LOCAL permit to install MariaDB server locally (not using docker, permitting unix socket testing)
  • NATIVE permits to indicate if MySQL must use 'mysql_native_password' as default authentication plugin. Possible value "1" or "0". Default value "1".

environment key CONNECTOR_TEST_SECRET_KEY must be set for skysql and enterprise.

example :

source ./launch.sh -tmariadb -v10.5 -dtestj
source ./launch.sh -tskysql -dtestj

Server will be launched if needed, those environments variables will be set :

TLS env variables

  • TEST_DB_SERVER_CERT_STRING server certificate chain
  • TEST_DB_SERVER_CERT path to server certificate
  • TEST_DB_RSA_PUBLIC_KEY (mysql) RSA public key
  • TEST_DB_CLIENT_KEY client private key
  • TEST_DB_CLIENT_CERT client cert
  • TEST_DB_CLIENT_PKCS client pkcs12 store (password 'kspass')

others

  • TEST_DB_USER user
  • TEST_DB_HOST host
  • TEST_DB_PASSWORD password
  • TEST_DB_DATABASE database
  • TEST_DB_PORT server port
  • TEST_MAXSCALE_TLS_PORT (for maxscale, TLS port differ than port without ssl)
  • TEST_REQUIRE_TLS to indicate if connection required TLS
  • TEST_PAM_USER and TEST_PAM_PWD

About

Connector test scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •