acceptance

package
v0.0.0-...-9ba49b0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TARGET_PGPORT = "6020"

Variables

View Source
var GPHOME_SOURCE string
View Source
var GPHOME_TARGET string
View Source
var PGPORT string

Functions

func Apply

func Apply(t *testing.T, gphome string, port string, phase idl.Step, inputDir string) string

func BackupDemoCluster

func BackupDemoCluster(t *testing.T, backupDir string, source greenplum.Cluster)

backupDemoCluster is used with restoreDemoCluster to restore a cluster after finalize.

func CreateMarkerFilesOnAllSegments

func CreateMarkerFilesOnAllSegments(t *testing.T, cluster greenplum.Cluster)

func CreateMarkerFilesOnMirrors

func CreateMarkerFilesOnMirrors(t *testing.T, mirrors greenplum.ContentToSegConfig)

func Execute

func Execute(t *testing.T) string

func Finalize

func Finalize(t *testing.T) string

func Generate

func Generate(t *testing.T, outputDir string) string

func GetIntermediateCluster

func GetIntermediateCluster(t *testing.T) greenplum.Cluster

func GetSourceCluster

func GetSourceCluster(t *testing.T) greenplum.Cluster

func GetStatUtility

func GetStatUtility() string

func GetTargetCluster

func GetTargetCluster(t *testing.T) greenplum.Cluster

func GetTempTargetCluster

func GetTempTargetCluster(t *testing.T) greenplum.Cluster

GetTempTargetCluster creates a target cluster from the source cluster. It is used in a defer clause when a target cluster is needed for cleanup before the upgrade can be run to create the actual target cluster.

func Initialize

func Initialize(t *testing.T, mode idl.Mode) string

func Initialize_stopBeforeClusterCreation

func Initialize_stopBeforeClusterCreation(t *testing.T) string

func Isolation2_regress

func Isolation2_regress(t *testing.T, sourceVersion semver.Version, gphome string, port string, inputDir string, outputDir string, schedule idl.Schedule) string

func Jq

func Jq(t *testing.T, file string, args ...string) string

func KillServices

func KillServices(t *testing.T) string

func MustGetLogArchiveDir

func MustGetLogArchiveDir(t *testing.T, upgradeID string) string

func MustGetPgUpgradeLog

func MustGetPgUpgradeLog(t *testing.T, contentID int32) string

func MustGetRepoRoot

func MustGetRepoRoot(t *testing.T) string

func MustUnsetenv

func MustUnsetenv(t *testing.T, envVar string)

func RemoveMarkerFilesOnAllSegments

func RemoveMarkerFilesOnAllSegments(t *testing.T, cluster greenplum.Cluster)

func RemoveMarkerFilesOnMirrors

func RemoveMarkerFilesOnMirrors(t *testing.T, mirrors greenplum.ContentToSegConfig)

func RestartServices

func RestartServices(t *testing.T) string

func RestoreDemoCluster

func RestoreDemoCluster(t *testing.T, backupDir string, source greenplum.Cluster, target greenplum.Cluster)

restoreDemoCluster restores the cluster after finalize has been run.

func Revert

func Revert(t *testing.T) string

func RevertIgnoreFailures

func RevertIgnoreFailures(t *testing.T) string

RevertIgnoreFailures ignores failures since revert is part of the actual test calling revert a second time within a defer will fail. We call revert with a defer to clean up if the test fails part way through.

func SetupDummyGpToolKit

func SetupDummyGpToolKit(t *testing.T, sourceVersion semver.Version)

This is a dummy extension for allowing 7X's pg_isolation2_regress to run on a 6X cluster. This is needed because as of 7X, gp_toolkit is an extension that pg_regress attempts to install and load on startup. To prevent this failure, when running 7X's pg_isolation2_regress on a 6X cluster, we setup a dummy gp_toolkit to satisfy this condition.

func TeardownDummyGpToolKit

func TeardownDummyGpToolKit(t *testing.T, sourceVersion semver.Version)

func VerifyMarkerFilesOnAllSegments

func VerifyMarkerFilesOnAllSegments(t *testing.T, intermediate *greenplum.Cluster, target *greenplum.Cluster)

func VerifyMarkerFilesOnPrimaries

func VerifyMarkerFilesOnPrimaries(t *testing.T, primaries greenplum.ContentToSegConfig, mode idl.Mode)

Types

This section is empty.

Jump to

Keyboard shortcuts

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