- Python 3.7
- Configure AWS Account credentials when testing with AWS platforms,
check default section in
~/.aws/credentials
for access/secret key check aws-configuration. - oc client binary is installed on your localhost and binary is listed in $PATH (running oc version on terminal should display version > 3.11). Latest client can be downloaded from oc-client.
It is recommended that you use a python virtual environment to install the necessary dependencies
-
Setup a python 3.7 virtual environment. This is actually quite easy to do now. Use hidden
.venv
or normalvenv
folder for virtual env as we are ignoring this in flake8 configurtation in tox.python3.7 -m .venv <path/to/venv>
source <path/to/.venv>/bin/activate
-
Install requirements with
pip install -r requirements.txt
Configure your ocs-ci.yaml file:
This file is used to allow configuration around a number of things within ocs-ci.
The template can be found at the top level of the repository, ocs-ci.yaml.template
.
The required keys are in the template. Values are placeholders and should be replaced by legitimate values.
Values for report portal or polarion are only required if you plan on posting to that particular service.
Move a copy of the template to your user directory and edit it from there with the proper values.
cp ocs-ci.yaml.template ~/.ocs-ci.yaml
In order to deploy a cluster to AWS with the Openshift Installer,
you will need to download the pull secret for your account.
Download this file from openshift.com
and place in the data
directory at the root level of the project.
If there is no data
directory, create one.
The name of the file should be pull-secret
.
AWS and CentralCI Authentication files will reside in users home dir and will be used by CLI option
Cluster configuration that defines Openshift/Kubernetes Cluster along with Ceph Configuration will reside in conf/ folder, This is still a work in progress.
All test suite configurations are found inside the suites
directory.
tests:
- test:
name: install OCS
desc: Minimal installation of OCS
module: test_ocs_basic_install.py
config:
installer-version: v0.16.1
destroy-cluster: False