Skip to content

Latest commit

 

History

History

templates

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

<%= testName %>

Describe your test Here

Currently this test accepts a kubeconfig file KUBECONFIG and a helm chart HELM_CHART, and runs helm install and helm uninstall against the cluster referenced in the kubeconfig file.

For more information see the ISV-CI Test Toolkit

Running for the first time

Targeting a cluster

A kubernetes cluster is required to run the test. Credentials to connect to the cluster are contained in a kubeconfig file (usually at ~/.kube/config). Specify the path to the kubeconfig file you want to use in the KUBECONFIG environment variable. The cluster referenced by the current context will be used to run the test. The command kubectl --kubeconfig=$KUBECONFIG config current-context will show the cluster currently targeted.

Cluster requirements

The targeted cluster should be clean. This test will install helm, install your chart, delete your chart and then delete helm.

The Helm chart to test

A helm chart directory should exist for the helm chart you wish to test. Specify it in the environment variable HELM_CHART

If your helm chart directory is /my/helm/chart

$ export HELM_CHART=/my/helm/chart

Run the test

This readme is in the generated project. Once you cd into this directory

$ make run

Your helm chart should get installed and then uninstalled on the targeted cluster.

Modifying the test

Now that you've run the test once, you probably want to modify it to do something beyond just installing your chart.

The file run.sh is the test script. You can modify this test script and then re-run make run to exercise the new test. An example test is documented here.