Skip to content

Latest commit

 

History

History

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Tests Info

This area of the repo contains tests that can be run to check the openshift-applier operation.

Requirements

  • An execution environment where the openshift-applier can successfully operate
  • A target OpenShift environment
    • Note: The openshift-applier needs access to the oc command

Dependencies

  • Ansible 2.5 or later
  • Operational OpenShift Cluster
  • oc client
  • kubectl client

Molecule Considerations

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

Running Tests

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

License

Apache License 2.0

Author Information

Red Hat Community of Practice & staff of the Red Hat Open Innovation Labs.