test

package
v0.0.0-...-ce3617e Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Docker setup
	EnvDockerHost = "DREGSY_TEST_DOCKERHOST"

	// ECR
	EnvAccessKeyID     = "AWS_ACCESS_KEY_ID"
	EnvSecretAccessKey = "AWS_SECRET_ACCESS_KEY"
	EnvECRRegistry     = "DREGSY_TEST_ECR_REGISTRY"
	EnvECRRepo         = "DREGSY_TEST_ECR_REPO"
	EnvECRPubRegistry  = "DREGSY_TEST_ECR_PUB_REGISTRY"
	EnvECRPubRepo      = "DREGSY_TEST_ECR_PUB_REPO"

	// GCP
	EnvGCPCreds = "GOOGLE_APPLICATION_CREDENTIALS"

	// GCR
	EnvGCRHost    = "DREGSY_TEST_GCR_HOST"
	EnvGCRProject = "DREGSY_TEST_GCR_PROJECT"
	EnvGCRImage   = "DREGSY_TEST_GCR_IMAGE"

	// GAR
	EnvGARHost    = "DREGSY_TEST_GAR_HOST"
	EnvGARProject = "DREGSY_TEST_GAR_PROJECT"
	EnvGARImage   = "DREGSY_TEST_GAR_IMAGE"

	// Dockerhub
	EnvDockerhubUser = "DREGSY_TEST_DOCKERHUB_USER"
	EnvDockerhubPass = "DREGSY_TEST_DOCKERHUB_PASS"
)

Variables

View Source
var StackTraceDepth = 1

Functions

This section is empty.

Types

type Params

type Params struct {
	DockerHost     string
	ECRRegistry    string
	ECRRepo        string
	ECRPubRegistry string
	ECRPubRepo     string
	GCRHost        string
	GCRProject     string
	GCRImage       string
	GARHost        string
	GARProject     string
	GARImage       string
	DockerhubAuth  string
	LocalAuth      string
}

func GetParams

func GetParams() *Params

type TestHelper

type TestHelper struct {
	*testing.T
}

func NewTestHelper

func NewTestHelper(t *testing.T) *TestHelper

func (*TestHelper) AssertEqual

func (t *TestHelper) AssertEqual(want, got interface{})

func (*TestHelper) AssertEqualMaps

func (t *TestHelper) AssertEqualMaps(want, got map[string]string)

func (*TestHelper) AssertEqualSlices

func (t *TestHelper) AssertEqualSlices(want, got []string)

func (*TestHelper) AssertEquivalentSlices

func (t *TestHelper) AssertEquivalentSlices(want, got []string)

func (*TestHelper) AssertError

func (t *TestHelper) AssertError(e error, msg string)

func (*TestHelper) AssertFalse

func (t *TestHelper) AssertFalse(got bool)

func (*TestHelper) AssertNil

func (t *TestHelper) AssertNil(i interface{})

func (*TestHelper) AssertNoError

func (t *TestHelper) AssertNoError(e error)

func (*TestHelper) AssertNotEqual

func (t *TestHelper) AssertNotEqual(want, got interface{})

func (*TestHelper) AssertNotNil

func (t *TestHelper) AssertNotNil(i interface{})

func (*TestHelper) AssertOneOf

func (t *TestHelper) AssertOneOf(want []string, got string)

func (*TestHelper) AssertQuiet

func (t *TestHelper) AssertQuiet(message string)

func (*TestHelper) AssertTrue

func (t *TestHelper) AssertTrue(got bool)

func (*TestHelper) GetFixture

func (t *TestHelper) GetFixture(fx string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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