Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyKustomize(ns, path string, e *TestEnv, t *testing.T) (string, error)
- func ApplyKustomizeAndAssert(ns, path string, e *TestEnv, t *testing.T) bool
- func ApplyManifest(ns, path string, e *TestEnv, t *testing.T)
- func AssertSpinnakerHealthy(ns, spinName string, e *TestEnv, t *testing.T)
- func CopyFileToS3Bucket(f, dest string, e *TestEnv, t *testing.T) bool
- func CreateNamespace(name string, e *TestEnv, t *testing.T) bool
- func DeleteNamespace(name string, e *TestEnv, t *testing.T)
- func DeploySpinnaker(ns, kustPath string, e *TestEnv, t *testing.T) (deckUrl string, gateUrl string)
- func ExecuteGetRequest(reqUrl string, t *testing.T) string
- func ExponentialBackOff(operation backoff.Operation, minutes time.Duration) error
- func GetLocalHost(t *testing.T) string
- func GetPodName(ns, svc string, e *TestEnv, t *testing.T) string
- func LogMainStep(t *testing.T, msg string, args ...interface{})
- func PrintOperatorLogs(e *TestEnv, t *testing.T)
- func RandomString(prefix string) string
- func RunCommand(c string, t *testing.T) (string, error)
- func RunCommandAndAssert(c string, t *testing.T) string
- func RunCommandInContainerAndAssert(ns, svc, cmd string, e *TestEnv, t *testing.T) string
- func RunCommandInOperatorAndAssert(c string, e *TestEnv, t *testing.T) bool
- func RunCommandSilent(c string, t *testing.T) (string, error)
- func RunCommandSilentAndAssert(c string, t *testing.T) string
- func SubstituteOverlayVars(overlayHome string, vars interface{}, t *testing.T) bool
- func UpdateControlPlaneHost(path string, t *testing.T)
- func WaitForDeploymentToStabilize(ns, name string, e *TestEnv, t *testing.T) bool
- func WaitForLBReady(ns, statusPath string, e *TestEnv, t *testing.T) string
- func WaitForSpinnakerToStabilize(ns string, e *TestEnv, t *testing.T)
- type Account
- type Defaults
- type Operator
- type TestEnv
- func (e *TestEnv) Cleanup(t *testing.T)
- func (e *TestEnv) DeleteOperator(t *testing.T)
- func (e *TestEnv) GenerateSpinFiles(kustPath, name, filePath string, t *testing.T) bool
- func (e *TestEnv) InstallCrds(d Defaults, t *testing.T) bool
- func (e *TestEnv) InstallOperator(isCluster bool, t *testing.T) Operator
- func (e *TestEnv) InstallSpinnaker(ns, kustPath string, t *testing.T) bool
- func (e *TestEnv) KubectlPrefix() string
- func (e *TestEnv) VerifyAccountsExist(endpoint string, t *testing.T, accts ...Account) bool
- type Vars
Constants ¶
View Source
const ( KubeconfigVar = "KUBECONFIG" OperatorImageVar = "OPERATOR_IMAGE" HalyardImageVar = "HALYARD_IMAGE" BucketVar = "S3_BUCKET" BucketRegionVar = "AWS_DEFAULT_REGION" BucketAccessKeyIdVar = "AWS_ACCESS_KEY_ID" BucketSecretAccessKeyVar = "AWS_SECRET_ACCESS_KEY" BucketSessionTokenVar = "AWS_SESSION_TOKEN" MaxChecksWaitingForAccountsAvailable = 20 // 20 * 2s = 40 seconds )
View Source
const ( SpinServiceName = "spinnaker" MaxErrorsWaitingForStability = 3 MaxChecksWaitingForDeploymentStability = 90 // (90 * 2s) = 3 minutes (large images may need to be downloaded + startup time) MaxChecksWaitingForSpinnakerStability = 450 // (300 * 2s) / 60 = 15 minutes MaxChecksWaitingForLBStability = 450 // (300 * 2s) / 60 = 15 minutes )
Variables ¶
View Source
var SpinBaseSvcs []string
Functions ¶
func ApplyKustomize ¶
func ApplyKustomizeAndAssert ¶
func AssertSpinnakerHealthy ¶
func DeploySpinnaker ¶
func DeploySpinnaker(ns, kustPath string, e *TestEnv, t *testing.T) (deckUrl string, gateUrl string)
DeploySpinnaker returns spinnaker Deck and Gate public urls
func ExecuteGetRequest ¶
ExecuteGetRequest Since the integration tests are interacting with the spinnaker URL and the URL is generated within the docker network. We need to emulate a curl call inside of the docker network, so we are using a docker image instead of the CURL command itself for it.
func ExponentialBackOff ¶ added in v1.1.2
func GetLocalHost ¶ added in v1.3.0
func LogMainStep ¶
func PrintOperatorLogs ¶
func RandomString ¶
func SubstituteOverlayVars ¶
func UpdateControlPlaneHost ¶ added in v1.3.0
Types ¶
type TestEnv ¶
TestEnv holds information about the kubernetes cluster used for tests
func CommonSetup ¶
CommonSetup creates a new environment context, initializing common settings for all tests
func InstallCrdsAndOperator ¶
func (*TestEnv) DeleteOperator ¶
func (*TestEnv) GenerateSpinFiles ¶
func (*TestEnv) InstallOperator ¶
func (*TestEnv) InstallSpinnaker ¶
func (*TestEnv) KubectlPrefix ¶
Click to show internal directories.
Click to hide internal directories.