Documentation ¶
Index ¶
- type TestEnvironment
- func (t *TestEnvironment) AttachDevice(devicePath string, partitionSize, numPartitions int) error
- func (t *TestEnvironment) AttachLoopDevice(size int) (int, error)
- func (t *TestEnvironment) AttachPartitionedRootDevice(devicePath string, sizeInMB, rootPartitionSizeInMB int) (string, string, error)
- func (t *TestEnvironment) CleanupDataDir() error
- func (t *TestEnvironment) CleanupLogFile() error
- func (t *TestEnvironment) ConfigureAgentForGenericInfrastructure() error
- func (t *TestEnvironment) DetachDevice(devicePath string) error
- func (t *TestEnvironment) DetachLoopDevice(devicePath string) error
- func (t *TestEnvironment) GetFileContents(filePath string) (string, error)
- func (t *TestEnvironment) GetVMNetworks() (boshsettings.Networks, error)
- func (t *TestEnvironment) LogFileContains(content string) bool
- func (t *TestEnvironment) RemoveDevice(devicePath string) error
- func (t *TestEnvironment) RestartAgent() error
- func (t *TestEnvironment) RunCommand(command string) (string, error)
- func (t *TestEnvironment) SetupConfigDrive() error
- func (t *TestEnvironment) StartAgent() error
- func (t *TestEnvironment) StartAgentTunnel(mbusUser, mbusPass string, mbusPort int) (agentclient.AgentClient, error)
- func (t *TestEnvironment) StartRegistry(settings boshsettings.Settings) error
- func (t *TestEnvironment) StopAgent() error
- func (t *TestEnvironment) StopAgentTunnel() error
- func (t *TestEnvironment) SwitchRootDevice(devicePath, rootLink string) error
- func (t *TestEnvironment) UpdateAgentConfig(configFile string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestEnvironment ¶
type TestEnvironment struct {
// contains filtered or unexported fields
}
func NewTestEnvironment ¶
func NewTestEnvironment( cmdRunner boshsys.CmdRunner, ) *TestEnvironment
func (*TestEnvironment) AttachDevice ¶
func (t *TestEnvironment) AttachDevice(devicePath string, partitionSize, numPartitions int) error
func (*TestEnvironment) AttachLoopDevice ¶
func (t *TestEnvironment) AttachLoopDevice(size int) (int, error)
func (*TestEnvironment) AttachPartitionedRootDevice ¶
func (*TestEnvironment) CleanupDataDir ¶
func (t *TestEnvironment) CleanupDataDir() error
func (*TestEnvironment) CleanupLogFile ¶
func (t *TestEnvironment) CleanupLogFile() error
func (*TestEnvironment) ConfigureAgentForGenericInfrastructure ¶
func (t *TestEnvironment) ConfigureAgentForGenericInfrastructure() error
ConfigureAgentForGenericInfrastructure executes the agent_runit.sh asset. Required for reverse-compatibility with older bosh-lite (remove once a new warden stemcell is built).
func (*TestEnvironment) DetachDevice ¶
func (t *TestEnvironment) DetachDevice(devicePath string) error
func (*TestEnvironment) DetachLoopDevice ¶
func (t *TestEnvironment) DetachLoopDevice(devicePath string) error
func (*TestEnvironment) GetFileContents ¶
func (t *TestEnvironment) GetFileContents(filePath string) (string, error)
func (*TestEnvironment) GetVMNetworks ¶
func (t *TestEnvironment) GetVMNetworks() (boshsettings.Networks, error)
func (*TestEnvironment) LogFileContains ¶
func (t *TestEnvironment) LogFileContains(content string) bool
func (*TestEnvironment) RemoveDevice ¶
func (t *TestEnvironment) RemoveDevice(devicePath string) error
func (*TestEnvironment) RestartAgent ¶
func (t *TestEnvironment) RestartAgent() error
func (*TestEnvironment) RunCommand ¶
func (t *TestEnvironment) RunCommand(command string) (string, error)
func (*TestEnvironment) SetupConfigDrive ¶
func (t *TestEnvironment) SetupConfigDrive() error
func (*TestEnvironment) StartAgent ¶
func (t *TestEnvironment) StartAgent() error
func (*TestEnvironment) StartAgentTunnel ¶
func (t *TestEnvironment) StartAgentTunnel(mbusUser, mbusPass string, mbusPort int) (agentclient.AgentClient, error)
func (*TestEnvironment) StartRegistry ¶
func (t *TestEnvironment) StartRegistry(settings boshsettings.Settings) error
func (*TestEnvironment) StopAgent ¶
func (t *TestEnvironment) StopAgent() error
func (*TestEnvironment) StopAgentTunnel ¶
func (t *TestEnvironment) StopAgentTunnel() error
func (*TestEnvironment) SwitchRootDevice ¶
func (t *TestEnvironment) SwitchRootDevice(devicePath, rootLink string) error
func (*TestEnvironment) UpdateAgentConfig ¶
func (t *TestEnvironment) UpdateAgentConfig(configFile string) error
Click to show internal directories.
Click to hide internal directories.