e2e

package
v1.34.0 Latest Latest
Warning

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

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

Documentation

Overview

Package e2e tests the functionality of cloud adaptor against actual GCP. For this test to work, you must have a valid credential and access to the APIs tested:

$ gcloud auth application-default login
$ go test ./e2e

Run with coverage:

$ go test -coverpkg ./pkg/cloud -coverprofile cov.out ./e2e ./pkg/cloud
$ go tool cover -html cov.out

Index

Constants

This section is empty.

Variables

View Source
var (
	// TestFlags passed in from the command line.
	TestFlags = struct {
		Project            string
		ResourcePrefix     string
		ServiceAccountName string
		RunID              string
	}{
		Project:            "",
		ResourcePrefix:     "k8scp-",
		ServiceAccountName: "",
	}
	RunID string
)

Functions

func FallbackCleanup added in v1.34.0

func FallbackCleanup(ctx context.Context)

FallbackCleanup cleans all the resources created during the test run.

func IsNotFoundError

func IsNotFoundError(err error) bool

func ParseFlagsOrDie added in v1.34.0

func ParseFlagsOrDie()

func SetupCloudOrDie added in v1.34.0

func SetupCloudOrDie(ctx context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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