testvg

package module
v0.0.0-...-9246639 Latest Latest
Warning

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

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

README

Integration tests for Volume Group Snapshotter

The integration test is simulated test of the different pieces of snapshotter. Refer to features/vg.feature for scenarios covered in this integration test.

Pre-requisites

  • SDC is installed
  • Driver integration tests are passing
  • config.json in this folder points to a valid array

Run Test

Check the go.mod file and make sure all the "replace" directives are as desired.

run.sh : will start driver-server and run snapshot vg create tests

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupTestSuite

func CleanupTestSuite(s *godog.TestSuiteContext)

CleanupTestSuite new in godog : call before and after all scenarios

func VGFeatureContext

func VGFeatureContext(s *godog.ScenarioContext)

VGFeatureContext gherkin steps for feature

Types

type FakeVGTestSuite

type FakeVGTestSuite struct {
	VolCount int
	// contains filtered or unexported fields
}

FakeVGTestSuite setup test suite

func (*FakeVGTestSuite) BeforeTestSuite

func (suite *FakeVGTestSuite) BeforeTestSuite()

BeforeTestSuite rune once to initialize

func (*FakeVGTestSuite) CleanupVolsOnArray

func (suite *FakeVGTestSuite) CleanupVolsOnArray() error

CleanupVolsOnArray delete pflex array volumes

func (*FakeVGTestSuite) ShouldFail

func (suite *FakeVGTestSuite) ShouldFail(method string, obj runtime.Object) error

ShouldFail refer fake_client.go , force calls to k8s to return error during controller error handling

func (*FakeVGTestSuite) TearDownTestSuite

func (suite *FakeVGTestSuite) TearDownTestSuite()

TearDownTestSuite run once per suite to remove array volumes

Jump to

Keyboard shortcuts

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