Documentation ¶
Index ¶
- Constants
- Variables
- func Apply(t *testing.T, gphome string, port string, phase idl.Step, inputDir string) string
- func BackupDemoCluster(t *testing.T, backupDir string, source greenplum.Cluster)
- func CreateMarkerFilesOnAllSegments(t *testing.T, cluster greenplum.Cluster)
- func CreateMarkerFilesOnMirrors(t *testing.T, mirrors greenplum.ContentToSegConfig)
- func Execute(t *testing.T) string
- func Finalize(t *testing.T) string
- func Generate(t *testing.T, outputDir string) string
- func GetIntermediateCluster(t *testing.T) greenplum.Cluster
- func GetSourceCluster(t *testing.T) greenplum.Cluster
- func GetStatUtility() string
- func GetTargetCluster(t *testing.T) greenplum.Cluster
- func GetTempTargetCluster(t *testing.T) greenplum.Cluster
- func Initialize(t *testing.T, mode idl.Mode) string
- func Initialize_stopBeforeClusterCreation(t *testing.T) string
- func Isolation2_regress(t *testing.T, sourceVersion semver.Version, gphome string, port string, ...) string
- func Jq(t *testing.T, file string, args ...string) string
- func KillServices(t *testing.T) string
- func MustGetLogArchiveDir(t *testing.T, upgradeID string) string
- func MustGetPgUpgradeLog(t *testing.T, contentID int32) string
- func MustGetRepoRoot(t *testing.T) string
- func MustUnsetenv(t *testing.T, envVar string)
- func RemoveMarkerFilesOnAllSegments(t *testing.T, cluster greenplum.Cluster)
- func RemoveMarkerFilesOnMirrors(t *testing.T, mirrors greenplum.ContentToSegConfig)
- func RestartServices(t *testing.T) string
- func RestoreDemoCluster(t *testing.T, backupDir string, source greenplum.Cluster, ...)
- func Revert(t *testing.T) string
- func RevertIgnoreFailures(t *testing.T) string
- func SetupDummyGpToolKit(t *testing.T, sourceVersion semver.Version)
- func TeardownDummyGpToolKit(t *testing.T, sourceVersion semver.Version)
- func VerifyMarkerFilesOnAllSegments(t *testing.T, intermediate *greenplum.Cluster, target *greenplum.Cluster)
- func VerifyMarkerFilesOnPrimaries(t *testing.T, primaries greenplum.ContentToSegConfig, mode idl.Mode)
Constants ¶
const TARGET_PGPORT = "6020"
Variables ¶
var GPHOME_SOURCE string
var GPHOME_TARGET string
var PGPORT string
Functions ¶
func BackupDemoCluster ¶
backupDemoCluster is used with restoreDemoCluster to restore a cluster after finalize.
func CreateMarkerFilesOnMirrors ¶
func CreateMarkerFilesOnMirrors(t *testing.T, mirrors greenplum.ContentToSegConfig)
func GetStatUtility ¶
func GetStatUtility() string
func GetTempTargetCluster ¶
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 Isolation2_regress ¶
func KillServices ¶
func MustGetRepoRoot ¶
func MustUnsetenv ¶
func RemoveMarkerFilesOnMirrors ¶
func RemoveMarkerFilesOnMirrors(t *testing.T, mirrors greenplum.ContentToSegConfig)
func RestartServices ¶
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 RevertIgnoreFailures ¶
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 ¶
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 ¶
Types ¶
This section is empty.