Documentation ¶
Index ¶
- type TestEnvironment
- func (t *TestEnvironment) AssetsDir() string
- 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, error)
- func (t *TestEnvironment) BlobstoreDir() string
- func (t *TestEnvironment) CleanupDataDir() error
- func (t *TestEnvironment) CleanupLogFile() error
- func (t *TestEnvironment) CleanupSSH() error
- func (t *TestEnvironment) CopyFileToPath(localPath string, remotePath string) error
- func (t *TestEnvironment) CreateBlobFromAsset(assetPath, blobID string) error
- func (t *TestEnvironment) CreateBlobFromAssetInActualBlobstore(assetPath, blobstorePath, blobID string) error
- func (t *TestEnvironment) CreateBlobFromStringInActualBlobstore(contents, blobstorePath, blobID string) (string, error)
- func (t *TestEnvironment) CreateSensitiveBlobFromAsset(assetPath, blobID string) error
- func (t *TestEnvironment) CreateSettingsFile(settings boshsettings.Settings) error
- func (t *TestEnvironment) DetachDevice(dir string) error
- func (t *TestEnvironment) DetachLoopDevice(devicePath string) error
- func (t *TestEnvironment) DetachLoopDevices() error
- func (t *TestEnvironment) DetachPartitionedRootDevice(rootLink string, devicePath string) error
- func (t *TestEnvironment) EnsureRootDeviceIsLargeEnough() 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) ResetDeviceMap() error
- func (t *TestEnvironment) RestartAgent() error
- func (t *TestEnvironment) RunCommand(command string) (string, error)
- func (t *TestEnvironment) RunCommandChain(commands ...string) error
- func (t *TestEnvironment) SetUpDummyNetworkInterface(ip, mac string) error
- func (t *TestEnvironment) StartAgent() error
- func (t *TestEnvironment) StartAgentTunnel() error
- func (t *TestEnvironment) StartBlobstore() error
- func (t *TestEnvironment) StopAgent() error
- func (t *TestEnvironment) StopAgentTunnel() error
- func (t *TestEnvironment) TearDownDummyNetworkInterface() 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 { AgentClient *integrationagentclient.IntegrationAgentClient AgentSettings settings.Settings // contains filtered or unexported fields }
func NewTestEnvironment ¶
func NewTestEnvironment(cmdRunner boshsys.CmdRunner, wp writerPrinter) (*TestEnvironment, error)
func (*TestEnvironment) AssetsDir ¶
func (t *TestEnvironment) AssetsDir() string
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 (t *TestEnvironment) AttachPartitionedRootDevice(devicePath string, sizeInMB, rootPartitionSizeInMB int) (string, error)
func (*TestEnvironment) BlobstoreDir ¶
func (t *TestEnvironment) BlobstoreDir() string
func (*TestEnvironment) CleanupDataDir ¶
func (t *TestEnvironment) CleanupDataDir() error
func (*TestEnvironment) CleanupLogFile ¶
func (t *TestEnvironment) CleanupLogFile() error
func (*TestEnvironment) CleanupSSH ¶
func (t *TestEnvironment) CleanupSSH() error
func (*TestEnvironment) CopyFileToPath ¶
func (t *TestEnvironment) CopyFileToPath(localPath string, remotePath string) error
func (*TestEnvironment) CreateBlobFromAsset ¶
func (t *TestEnvironment) CreateBlobFromAsset(assetPath, blobID string) error
func (*TestEnvironment) CreateBlobFromAssetInActualBlobstore ¶
func (t *TestEnvironment) CreateBlobFromAssetInActualBlobstore(assetPath, blobstorePath, blobID string) error
func (*TestEnvironment) CreateBlobFromStringInActualBlobstore ¶
func (t *TestEnvironment) CreateBlobFromStringInActualBlobstore(contents, blobstorePath, blobID string) (string, error)
func (*TestEnvironment) CreateSensitiveBlobFromAsset ¶
func (t *TestEnvironment) CreateSensitiveBlobFromAsset(assetPath, blobID string) error
func (*TestEnvironment) CreateSettingsFile ¶
func (t *TestEnvironment) CreateSettingsFile(settings boshsettings.Settings) error
func (*TestEnvironment) DetachDevice ¶
func (t *TestEnvironment) DetachDevice(dir string) error
func (*TestEnvironment) DetachLoopDevice ¶
func (t *TestEnvironment) DetachLoopDevice(devicePath string) error
func (*TestEnvironment) DetachLoopDevices ¶
func (t *TestEnvironment) DetachLoopDevices() error
func (*TestEnvironment) DetachPartitionedRootDevice ¶
func (t *TestEnvironment) DetachPartitionedRootDevice(rootLink string, devicePath string) error
func (*TestEnvironment) EnsureRootDeviceIsLargeEnough ¶
func (t *TestEnvironment) EnsureRootDeviceIsLargeEnough() 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) ResetDeviceMap ¶
func (t *TestEnvironment) ResetDeviceMap() error
func (*TestEnvironment) RestartAgent ¶
func (t *TestEnvironment) RestartAgent() error
func (*TestEnvironment) RunCommand ¶
func (t *TestEnvironment) RunCommand(command string) (string, error)
func (*TestEnvironment) RunCommandChain ¶
func (t *TestEnvironment) RunCommandChain(commands ...string) error
func (*TestEnvironment) SetUpDummyNetworkInterface ¶
func (t *TestEnvironment) SetUpDummyNetworkInterface(ip, mac string) error
func (*TestEnvironment) StartAgent ¶
func (t *TestEnvironment) StartAgent() error
func (*TestEnvironment) StartAgentTunnel ¶
func (t *TestEnvironment) StartAgentTunnel() error
func (*TestEnvironment) StartBlobstore ¶
func (t *TestEnvironment) StartBlobstore() error
func (*TestEnvironment) StopAgent ¶
func (t *TestEnvironment) StopAgent() error
func (*TestEnvironment) StopAgentTunnel ¶
func (t *TestEnvironment) StopAgentTunnel() error
func (*TestEnvironment) TearDownDummyNetworkInterface ¶
func (t *TestEnvironment) TearDownDummyNetworkInterface() error
func (*TestEnvironment) UpdateAgentConfig ¶
func (t *TestEnvironment) UpdateAgentConfig(configFile string) error
Click to show internal directories.
Click to hide internal directories.