Step: csi-driver-shared-resource-e2e

Run e2e tests for the Shared Resource CSI Driver.

Container image used for this step: csi-driver-shared-resource-scripts

csi-driver-shared-resource-scripts resolves to an image built or imported by the ci-operator configuration (documentation).

Environment

In addition to the default environment, the step exposes the following:

Variable Name Type Variable Content
TEST_SUITE Parameter[?] (default: normal)
TEST_TIMEOUT Parameter[?] (default: 30m)

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /bin/bash

set -o nounset
set -o errexit
set -o pipefail

# Runs an e2e suite for the Shared Resource CSI driver
# The suite assumes that the CSI driver has been deployed to the cluster.
# 
# The KUBECONFIG environment variable must be set for the step to run to full completion.
#
# The command utilizes two environment variables:
#
# - TEST_SUITE: The test suite to run. Defaults to "normal", can also be "disruptive" and "slow".
# - TEST_TIMEOUT: The test suite to run. Defaults to "30m", can be any parsable duration.

echo "Starting step csi-driver-shared-resource-e2e."
if ! [[ -f ${KUBECONFIG} ]]; then
    echo "No kubeconfig found, skipping e2e test of csi-driver-shared-resource."
    exit 0
fi

suite=${TEST_SUITE:-"normal"}
timeout=${TEST_TIMEOUT:-"30m"}

echo "Starting e2e test suite ${suite} with timeout ${timeout}."
make test-e2e-no-deploy TEST_SUITE="${suite}" TEST_TIMEOUT="${timeout}"
echo "Finished e2e test suite ${suite}."

echo "Step csi-driver-shared-resource-e2e completed."

Properties

Property Value Description
Resource requests (cpu) 50m Used in .resources.requests of the pod running this step.
Resource requests (memory) 100Mi Used in .resources.requests of the pod running this step.
Inject oc CLI[?] latest The oc CLI sourced from the specified release is injected into this step's' image.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/csi-driver-shared-resource/e2e/csi-driver-shared-resource-e2e-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub