This area of the repo contains tests that can be run to check the openshift-applier
operation.
- An execution environment where the
openshift-applier
can successfully operate- Consider using the openshift-applier docker image
- A target OpenShift environment
- Note: The
openshift-applier
needs access to theoc
command
- Note: The
- Ansible 2.5 or later
- Operational OpenShift Cluster
oc
clientkubectl
client
All inventories located in the inventories directory will undergo testing and validation using Molecule.
To omit an inventory from being executed as part of the testing phase, set the following 'group_vars' variable:
molecule_test_inventory_skip: true
Each "test case" is built out as an inventory with corresponding files (if applicable) in this directory. In general, and unless otherwise noted, the tests can be executed with the following command (from the repo's top level):
ansible-playbook playbooks/openshift-cluster-seed.yml -i
List of example test runs:
ansible-playbook playbooks/openshift-cluster-seed.yml -i tests/inventories/multi-files-dir
ansible-playbook playbooks/openshift-cluster-seed.yml -i tests/inventories/multi-params-dir
ansible-playbook playbooks/openshift-cluster-seed.yml -i tests/inventories/params-from-file
ansible-playbook playbooks/openshift-cluster-seed.yml -i tests/inventories/params-from-vars
ansible-playbook playbooks/openshift-cluster-seed.yml -i tests/inventories/params-from-both
ansible-playbook playbooks/openshift-cluster-seed.yml -i tests/inventories/pre-post-steps
ansible-playbook playbooks/openshift-cluster-seed.yml -i tests/inventories/patch
ansible-playbook playbooks/openshift-cluster-seed.yml -i tests/inventories/cluster-template
ansible-playbook playbooks/openshift-cluster-seed.yml -i tests/inventories/jinja-templates
ansible-playbook playbooks/openshift-cluster-seed.yml -i tests/inventories/helm-charts
Apache License 2.0
Red Hat Community of Practice & staff of the Red Hat Open Innovation Labs.