framework

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package framework provides a test framework for E2E tests. nolint: gosec // warnings relating to executing commands and reading files from variables not important in these tests

Index

Constants

View Source
const (
	// BYOAGC is placeholder value to use for a BYO AGC resource
	BYOAGC = "" /* 141-byte string literal not displayed */

	// ManagedSubnet is a placeholder of a subnet ID to use for managed scenarios
	ManagedSubnet = "" /* 153-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCase

type TestCase struct {
	// input files for the migration tool
	InputFiles []string

	ExtraFiles []string // these are extra resources to be applied to the cluster, but not part of the migration input

	ParentDir string

	// expected resources after migration
	ExpectedResources resources.AGCResourceGraph
	// expected report after migration
	ExpectedReport reporting.MigrationReport
}

func NewTestCase

func NewTestCase(t *testing.T, inputFiles []string, extraFiles []string, expectedResourceFiles []string, expectedReportFile string) TestCase

func NewTestCaseFromCurrentDir

func NewTestCaseFromCurrentDir(t *testing.T) TestCase

func (TestCase) Run

func (tc TestCase) Run(t *testing.T, flags ...string) string

func (TestCase) RunMigration

Jump to

Keyboard shortcuts

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