influxdata / Litmus

testing framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Litmus

Litmus is an automated regression test framework suitable for testing Kapacitor, InfluxDB components of TICK stack as well as REST API services. Currently the framework is not suitable for testing of UI component (chronograf), but it could be extended if needed to. LItmus is based on pytest open source framework and uses Python for writing tests and supporting libraries.

litmus_run_master.py script

  • It will install all required for running tests modules.
  • For Product Version 1.x (TICK stack with separate components):
    • Install all of the components using pcl tool (qa_install_tick.sh)
    • Accepts lits of tests or single test(s) to be run
    • Each test suite will produce a log file (useful for debugging)
    • Example of a test run :

      python litmus_run_master.py --product-version 1 --num-data 2 --num-meta 3 --pkg-data $DATA_NODE --pkg-meta $META_NODE --telegraf-version "1.6.4" --kapacitor-version "1.5.0" --chronograf-version "1.5.0.1" --tests-list=tests_lists/all_tests.list --http-auth --admin-user test_admin --admin-pass test_admin --meta-auth --cluster-name chronograf --private-key litmus-pcl

  • For Product version 2.0 (Cloud):
    • Does not do any deployments or installations, only acceps three parameters (currently):
      • Gateway URL
      • Queryd URL (Flux)
      • Etcd URL (for users/organizations/buckets)
    • Example of a test run:

      python litmus_run_master.py --no-chronograf --etcd http://localhost:2379 --gateway http://localhost:9999 --flux http://localhost:8093 --tests-list tests_lists/gateway_api_tests.list --product-version 2

Running in Docker container (Currently is only done for 2.0):

About

testing framework


Languages

Language:Python 97.6%Language:Shell 2.2%Language:Dockerfile 0.1%Language:Groovy 0.0%Language:Makefile 0.0%