Git Product home page Git Product logo

connector-test-machine's Introduction

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

connector-test-machine's People

Contributors

rusher avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.