csi-sanity

command
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

Sanity Test Command Line Program

This is the command line program that tests a CSI driver using the sanity package test suite.

Example:

$ csi-sanity --csi.endpoint=<your csi driver endpoint>

If you want to specify a mount point:

$ csi-sanity --csi.endpoint=<your csi driver endpoint> --csi.mountpoint=/mnt

For verbose type:

$ csi-sanity --ginkgo.v --csi.endpoint=<your csi driver endpoint>

For csi-credentials, create a secrets file with all the secrets in it:

CreateVolumeSecret:
  secretKey: secretval1
DeleteVolumeSecret:
  secretKey: secretval2
ControllerPublishVolumeSecret:
  secretKey: secretval3
ControllerUnpublishVolumeSecret:
  secretKey: secretval4
NodeStageVolumeSecret:
  secretKey: secretval5
NodePublishVolumeSecret:
  secretKey: secretval6
ControllerValidateVolumeCapabilitiesSecret:
  secretKey: secretval7

Pass the file path to csi-sanity as:

$ csi-sanity --csi.endpoint=<your csi driver endpoint> --csi.secrets=<path to secrets file>

Replace the keys and values of the credentials appropriately. Since the whole secret is passed in the request, multiple key-val pairs can be used.

Help

The full Ginkgo and golang unit test parameters are available. Type

$ csi-sanity -h

to get more information

Download

Please see the Releases page to download the latest version of csi-sanity

Documentation

Overview

Copyright 2017 Luis Pabón luis@portworx.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

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