Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.6 KB

usage.md

File metadata and controls

52 lines (36 loc) · 1.6 KB

Usage

Work in progress

run.py is the main script for ocs-ci. You can view the full usage details by passing in the --help argument.

python run.py --help

Required configuration

  • AWS credentials - if you have AWS already configured by aws configure, see: AWS doc there shouldn't be need of any additional configuration for AWS. If not, please make sure you configure your AWS credentials via aws configure command, or you have proper configuration done in ~/.aws folder which is usually generated by mentioned command.

Required Arguments

There are a few arguments that are required ocs test execution:

  • --suite <suite_file>

Useful Arguments

Some non-required arguments that we end up using a lot:

  • --log-level <level> - set the log level that is output to stdout.
  • --cluster-name <name> - name of cluster.
  • --cluster-path <path> - path where to create the directory which will contains all the installation/authentication information about cluster. Use this parameter when running on already deployed cluster! You can pass the cluster path from previous execution if was created automatically.

Examples

  • Run OCS install suite:
python run.py --suite suites/ocs_basic_install.yml --log-level info
  • Run with specific name of cluster and cluster directory without sendig email:
python run.py --cluster-name=my-testing-cluster \
    --suite=suites/custom-test.yml --cluster-path=/home/your_login/my-testing-cluster \
    --no-email