Skip to content

radanalyticsio/openshift-test-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published