diff --git a/cvpcases/README.md b/cvpcases/README.md new file mode 100644 index 00000000..6dbf0419 --- /dev/null +++ b/cvpcases/README.md @@ -0,0 +1,26 @@ +This folder include all cvp cases and the other configuration to access a cluster will be generated by the jenkins job. +
+#The case scripts +
+1) The script must be a shell using same name as the case name +
+2) The script should return pass( 0) or fail (not 0) +
+3) It is better to use relative path in your scripts +
+4) The script will be executed in this director {$PWD=this directory} + +#The following files will be placed under this directory by jenkins job. +
+1) The Build Artifacts from Launch Environment Flexy job +
+ For example: https://openshift-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/Launch%20Environment%20Flexy/57679/ +
+2) File description +
+ host.spec: the host configure file for cucushift +
+ hosts: the ansible inventory file +
+ kubeconfig: the cluster-admin kubeconfig +# The oc binary is places under the default PATH directory $HOME/bin diff --git a/cvpcases/oc-fail b/cvpcases/oc-fail new file mode 100644 index 00000000..df97e0ba --- /dev/null +++ b/cvpcases/oc-fail @@ -0,0 +1,4 @@ +#/bin/bash +oc version --kubeconfig=kubeconfig +oc get clusters --kubeconfig=kubeconfig +exit 1 diff --git a/cvpcases/oc-pass b/cvpcases/oc-pass new file mode 100644 index 00000000..2dc310e6 --- /dev/null +++ b/cvpcases/oc-pass @@ -0,0 +1,4 @@ +#/bin/bash +oc version --kubeconfig=kubeconfig +oc get clusters --kubeconfig=kubeconfig +exit 0