e2e

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

README

How to execute E2E?

  1. Create a VPC Cluster

  2. Export the KUBECONFIG In kube config file use abosulte path for certificate-authority, client-certificate and client-key

  3. Deploy the Driver (with SC)

  4. Export enviornment variables

    export E2E_POD_COUNT="1"
    export E2E_PVC_COUNT="1"
    export GO111MODULE=on
    export GOPATH=<GOPATH>
    export E2E_TEST_RESULT=<absolute-path to a file where the results should be redirected>
    
  5. Test all SC with deployment

    ginkgo -v -nodes=1 --focus="\[ics-e2e\] \[sc\] \[with-deploy\]"  ./tests/e2e
    
  6. Test all SC with pod

    ginkgo -v -nodes=1 --focus="\[ics-e2e\] \[sc\] \[with-pods\]"  ./tests/e2e
    
  7. Test 5 IOPS SC with statefulset(with 2 replicas)

    ginkgo -v -nodes=1 --focus="\[ics-e2e\] \[sc\] \[with-statefulset\]"  ./tests/e2e
    
  8. Test multiple volumes with deployment

    export E2E_PVC_COUNT="2"
    ginkgo -v -nodes=1 --focus="\[ics-e2e\] \[exec-cvmp\] \[deploy\]" ./tests/e2e
    
  9. Test multiple volumes with multiple pods. In following example, two PVC will be created and four pods will be created in sequence using same two PVCs

    export E2E_PVC_COUNT="2"
    export E2E_POD_COUNT="4"
    ginkgo -v -nodes=1 --focus="\[ics-e2e\] \[exec-cvmp\] \[pods-seq\]" ./tests/e2e
    
  10. Test concurrent pods deployment with two PVC each

export E2E_PVC_COUNT="2"
ginkgo -v -nodes=5 --focus="\[ics-e2e\] \[exec-mvmp\] \[pods-conc\]" ./tests/e2e
  1. Run all SC test in parallel
ginkgo -v -nodes=4 --focus="\[ics-e2e\] \[sc\]"  ./tests/e2e
  1. Test node drain scenario
ginkgo -v -nodes=1 --focus="\[ics-e2e\] \[node-drain\] \[with-pods\]" ./tests/e2e

Documentation

Overview

*

  • Copyright 2021 IBM Corp. *
  • 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.

*

  • Copyright 2021 IBM Corp. *
  • 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.

*

  • Copyright 2021 IBM Corp. *
  • 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePVC added in v1.1.8

func CreatePVC(pvcName string, namespace string, cs clientset.Interface)

func CreateStorageClass added in v1.1.8

func CreateStorageClass(scName string, cs clientset.Interface)

func TestFunc

func TestFunc() func()

func UpdateVolumeAttachmentLimit added in v1.1.8

func UpdateVolumeAttachmentLimit(client clientset.Interface, limit string) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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