e2e/

directory
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2020 License: Apache-2.0

README

End to End Test

Run E2E tests Locally

Prerequisite

  • Set up a Kubernetes cluster (with version >= 1.13) using aks-engine or AKS
  • $KUBECONFIG is set or your kubeconfig is under $HOME/.kube/config
  • Export the following environment varibles:
export TENANT_ID=<your tenant ID>
export SUBSCRIPTION_ID=<the Azure subscription ID that your cluster is under>
export AAD_CLIENT_ID=<the service principal ID that your cluster is using>
export AAD_CLIENT_SECRET=<the service principal password that your cluster is using>
export RESOURCE_GROUP=<the resource group that your cluster is under>
export LOCATION=<the location of your resource group>

To run the E2E tests:

docker login # Login to docker so the test image can be pushed to your Docker Hub
REGISTRY=<your Docker Hub ID / registry> make e2e-test
# Run E2E tests on an existing Azure File CSI Driver image
REGISTRY=<your Docker Hub ID / registry> IMAGE_VERSION=<desired image version> make e2e-test

Run the test for in-tree driver

export KUBECONFIG='<path to kubeconfig>'
export AZURE_STORAGE_DRIVER="kubernetes.io/azure-file"
make e2e-test

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL