e2e

package
v2.13.0 Latest Latest
Warning

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

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

README

End-to-End Tests Overview

Prerequisite

A couple of assumptions made in the e2e tests are that the driver runs with a valid secret. Other assumptions are:

  1. The namespace vxflexos-test exists since all k8s objects will be created and checked for there.
  2. For multi-available-zone tests, the storage class vxflexos-az-wait exists (see storage class for example).
  3. For multi-available-zone tests, the nodes should be configured correctly as the test will pull out the zoneLabelKey and compare across the nodes and storage class.

Using the Makefile

In the root test directory, there is a Makefile with different targets for the integration test and the e2e test. Currently, the only target is:

  • make zone-e2e -> Runs the end to end tests for multi-available-zone.

Overview of Targets/Tests

Multi-Available Zone

The following tests are implemented and run during the zone-e2e test.

  1. Creates a stateful set of 7 replicas and ensures that everything is up and ready with the zone configuration.
  2. Cordons a node (marks it as unschedulable), creates 7 volumes/pods, and ensures that none gets scheduled on the cordoned node.
  3. Creates a stateful set of 7 replicas, creates a snapshot and restore pod for each and ensure that they are all running.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeScenario

func InitializeScenario(s *godog.ScenarioContext)

Types

This section is empty.

Jump to

Keyboard shortcuts

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