Skip to content

Latest commit

 

History

History
68 lines (39 loc) · 1.64 KB

mtest.md

File metadata and controls

68 lines (39 loc) · 1.64 KB

Multi-host Test (mtest)

mtest directory contains test suites to run integration tests.

Type of Test Suites

There are following types of test suites.

  1. functions

    This suite tests ckecli command and kubernetes workloads deployments. It also tests user defined kubernetes resources.

  2. operators

    This suite tests CKE operators and management of labels and taints. If you implement a new operator(Op) in CKE, you have to write test cases in this suite.

  3. robustness

    This suite runs much the same set of tests as operators with unreachable/halted nodes.

Each test suite has an entry point of test as <suite>/suite_test.go.

Synopsis

Makefile setup virtual machine environment and runs mtest.

  • make setup

    Install mtest required components.

  • make clean

    Delete generated files in output/ directory.

  • make placemat

    Run placemat in background by systemd-run to start virtual machines.

  • make stop

    Stop placemat.

  • make test

    Run mtest on a running placemat.

  • make bootstrap

    Create the kubernetes cluster on a running placemat using a part of functions suite.

Options

SUITE

You can choose the type of test suite by specifying SUITE make variable. The value can be functions (default), operators, or robustness.

make test accepts this variable.

The value of SUITE is interpreted as a Go package name. You can write a new test suite and specify its package name by SUITE. As a side note, the forms of ./functions, ./operators, and ./robustness are more proper.