it

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

Integration Testing

Introduction

The integration test will create a PowerVS instance and run the CSI driver tests on it. The driver will be built locally for ppc64le and copied over to the pvm instance. The driver will run on the instance and a SSH tunnel will be created. A grpc client will connect to the driver via a tcp port and run the Node and Controller tests.

You can also run the test on an existing PowerVS instance itself.

Environments

The following environment variables will be required for running the integration test.

export IBMCLOUD_API_KEY=<api key>               # IBM Cloud API key
export POWERVS_ZONE="mon01",                  # IBM Cloud zone

Below environment variable is needed when running the tests within a PowerVS machine.

export POWERVS_INSTANCE_ID="<instance_id>"    # The pvm instance id where the test is running

Below environment variables are used if you want to use run tests from a remote machine.

export TEST_REMOTE_NODE="1"                   # Set to 1 if you want to run the remote node tests
export IBMCLOUD_ACCOUNT_ID="<account_id>"     # IBM Cloud account to use for creating the remote node
export POWERVS_CLOUD_INSTANCE_ID="<pid>"      # Workspace guid to use for creating the remote node
export POWERVS_NETWORK="pub-network"          # (Optional) The network to use for creating the remote node
export POWERVS_IMAGE="CentOS-Stream-8"        # (Optional) The image to use for creating the remote node

Run the test

To run the test use the following command.

make test-integration

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSIClient

type CSIClient struct {
	// contains filtered or unexported fields
}

CSIClient controller and node clients

Jump to

Keyboard shortcuts

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