bootstrap

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: AGPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudTestBaseDomain   = "sd.localhost"
	CloudTestStorageClass = "standard"
)
View Source
const (
	ServerPort = 8987
)
View Source
const SharedComputeProvisioningBaseDomain = "sd.test"

SharedComputeProvisioningBaseDomain is the platform routing domain used by the integration environment for newly allocated public hostnames.

Variables

This section is empty.

Functions

func ExtractAPIServerClusterCredentials

func ExtractAPIServerClusterCredentials(ctx context.Context, cluster *testutil.TestCluster) (string, string, string, error)

func Setup

func Setup(env *Environment, ctx context.Context) (retErr error)

func SetupCloud

func SetupCloud(env *Environment, ctx context.Context) (retErr error)

SetupCloud starts the integration environment with the real Stackdome Cloud runtime wiring and deliberately small limits. It is separate from Setup so the self-hosted suite remains unchanged.

Types

type ClientManager

type ClientManager struct {
	// contains filtered or unexported fields
}

func NewClientManager

func NewClientManager(baseURL string, logger logr.Logger) *ClientManager

func (*ClientManager) Bootstrap

func (cm *ClientManager) Bootstrap(ctx context.Context, sharedComputeClusterID string, sessionFactory db.SessionFactory) error

func (*ClientManager) GetClient

func (cm *ClientManager) GetClient() *openapi.APIClient

func (*ClientManager) GetClusterID

func (cm *ClientManager) GetClusterID() string

func (*ClientManager) GetOrgID

func (cm *ClientManager) GetOrgID() string

func (*ClientManager) GetRegistryName

func (cm *ClientManager) GetRegistryName() string

func (*ClientManager) GetUserToken

func (cm *ClientManager) GetUserToken() string

type ClusterManager

type ClusterManager struct {
	// contains filtered or unexported fields
}

func NewClusterManager

func NewClusterManager() *ClusterManager

func NewClusterManagerWithLogger

func NewClusterManagerWithLogger(logger logr.Logger) *ClusterManager

func (*ClusterManager) Bootstrap

func (cm *ClusterManager) Bootstrap(ctx context.Context) error

func (*ClusterManager) Cleanup

func (cm *ClusterManager) Cleanup(ctx context.Context) error

func (*ClusterManager) GetCluster

func (cm *ClusterManager) GetCluster() *testutil.TestCluster

type DatabaseConfig

type DatabaseConfig struct {
	Host     string
	Port     int
	Name     string
	User     string
	Password string
}

type DatabaseManager

type DatabaseManager struct {
	// contains filtered or unexported fields
}

func NewDatabaseManager

func NewDatabaseManager() *DatabaseManager

func (*DatabaseManager) Bootstrap

func (dm *DatabaseManager) Bootstrap(ctx context.Context) error

func (*DatabaseManager) Cleanup

func (dm *DatabaseManager) Cleanup(ctx context.Context) error

func (*DatabaseManager) ClearData

func (dm *DatabaseManager) ClearData(ctx context.Context) error

func (*DatabaseManager) GetConfig

func (dm *DatabaseManager) GetConfig() *config.DatabaseConfig

func (*DatabaseManager) GetResourceValidationRecord

func (dm *DatabaseManager) GetResourceValidationRecord(ctx context.Context, stackID, resourceName string, kind models.ResourceValidationCheckKind) (*models.ResourceValidationRecord, error)

GetResourceValidationRecord reads a single resource_validation_records row directly, so e2e specs can assert the release worker's probe-skip fingerprint cache (validated_at unchanged across releases means the probe was skipped) without a dedicated API surface for it.

func (*DatabaseManager) GetSessionFactory

func (dm *DatabaseManager) GetSessionFactory() db.SessionFactory

type Environment

type Environment struct {
	Client    *openapi.APIClient
	ClusterID string
	OrgID     string
	UserToken string
	// RegistryName is the suite org's signup-seeded registry,
	// <org-slug>-<shortOrgID>: the suffix comes from the org UUID minted at
	// signup, so the name differs every run and is read back from the API
	// after signup instead of being a test constant.
	RegistryName string
	Database     *DatabaseManager
	Cluster      *testutil.TestCluster
	// contains filtered or unexported fields
}

func (*Environment) Cleanup

func (env *Environment) Cleanup()

func (*Environment) Logger

func (env *Environment) Logger() logr.Logger

logger

type ServerManager

type ServerManager struct {
	// contains filtered or unexported fields
}

func NewServerManager

func NewServerManager(sessionFactory db.SessionFactory, dbConfig *config.DatabaseConfig, logger logr.Logger) *ServerManager

func (*ServerManager) Bootstrap

func (sm *ServerManager) Bootstrap(ctx context.Context) error

func (*ServerManager) Cleanup

func (sm *ServerManager) Cleanup(ctx context.Context) error

func (*ServerManager) GetBaseURL

func (sm *ServerManager) GetBaseURL() string

func (*ServerManager) GetEnvironment

func (sm *ServerManager) GetEnvironment() environment.EnvImpl

Jump to

Keyboard shortcuts

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