Awesome Open Source
Awesome Open Source

Build Status Docker Repository on gcr


csi-test houses packages and libraries to help test CSI client and plugins.

For Container Orchestration Tests

CO developers can use this framework to create drivers based on the Golang mock framework. Please see co_test.go for an example.

Mock driver for testing

We also provide a container called which can be used as an in-memory mock driver. You will need to setup the environment variable CSI_ENDPOINT for the mock driver to know where to create the unix domain socket.

There is an example deployment for experiment with the mock csi driver.

For more complicated test-cases see how to use JavaScript hooks from the driver.

For CSI Driver Tests

To test drivers please take a look at pkg/sanity. This package and csi-sanity are meant to test the CSI API capability of a driver. They are meant to be an additional test to the unit, functional, and e2e tests of a CSI driver.


  • Master is for CSI v1.3.0. Please see the branches for other CSI releases.
  • Building has been tested with the Go version specified in release-tools/travis.yml

Community, discussion, contribution, and support

Learn how to engage with the Kubernetes community on the community page.

You can reach the maintainers of this project at:

Code of conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Go (194,257
Golang (32,223
Kubernetes (11,227
Containers (3,090
Test (2,675
Grpc (2,224
Storage (1,668
Csi (135
Related Projects