Skip to content

KubeCF testing

Victor Cuadrado Juan edited this page May 6, 2020 · 6 revisions

Assuming the following commands are run inside the catapult local checkout

Deploy first

Set some options:

# pick up a cluster name (optional)
export CLUSTER_NAME="kubecf"
# and a backend (optional too, defaults to kind)
export BACKEND="kind"

Deploy:

# Deploy a cluster from a kubecf checkout with diego: (SCF_LOCAL, is the abs path pointing at your kubecf checkout)
SCF_TESTGROUP=true SCF_OPERATOR=true SCF_LOCAL=~/kubecf make k8s scf

Alternatively, if you have a chart url: CHART_URL="url" SCF_OPERATOR=true make k8s scf (see https://github.com/SUSE/catapult/wiki/Build-and-run-SCF )

Run tests

Run smoke tests

KUBECF_TEST_SUITE=smokes make tests-kubecf

See also: https://github.com/SUSE/catapult/wiki/Running-SCF-tests#kubecf

and https://github.com/SUSE/catapult/wiki/First-steps.

For more info about options, see https://github.com/SUSE/catapult/wiki/Deployment-parameters*

Run cats

KUBECF_TEST_SUITE=cats make tests-kubecf

Access kubernetes cluster

source build${CLUSTER_NAME}/.envrc
# kubectl ...
# helm ...
# cf push ...

Cleanup

make clean