Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 861 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 861 Bytes

openshift-test-kit

Bash tests for Openshift and Kubernetes taken from https://github.com/openshift/origin/tree/master/hack/lib Feel free to use it, preferably as a git submodule.

Usage

  1. source the init script and setup time vars:
  source "../test/lib/init.sh"
  os::util::environment::setup_time_vars
  1. start Kubernetes of OpenShift
  2. call the assertions
  os::test::junit::declare_suite_start "operator/tests"
  os::cmd::expect_success_and_text "kubectl create -f ../manifest/operator.yaml" '"?spark-operator"? created'
  os::cmd::try_until_text "kubectl get pod -l app.kubernetes.io/name=spark-operator -o yaml" 'ready: true'
  os::test::junit::declare_suite_end

(example)

  1. profit