Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateHwConfigs(ctx context.Context, cftHwStepsConfig *tpcommon.HwTestConfig, ...) *commonconfigs.Configs
- func GenerateLocalConfigs(ctx context.Context, sk *data.LocalTestStateKeeper) *commonconfigs.Configs
- func GeneratePreLocalConfigs(ctx context.Context) *commonconfigs.Configs
- func NewCommandConfig(execConfig interfaces.ExecutorConfigInterface) interfaces.CommandConfigInterface
- func NewContainerConfig(ctr *crostoolrunner.CrosToolRunner, ...) interfaces.ContainerConfigInterface
- func NewExecutorConfig(ctr *crostoolrunner.CrosToolRunner, ...) interfaces.ExecutorConfigInterface
- type CftContainerConfig
- type CommandConfig
- type ExecutorConfig
- type Trv2ExecutionConfig
Constants ¶
View Source
const ( HwTestExecutionConfigType interfaces.ConfigType = "HwTest" PreLocalTestExecutionConfigType interfaces.ConfigType = "PreLocalTest" LocalTestExecutionConfigType interfaces.ConfigType = "LocalTest" // For unit tests purposes only UnSupportedTestExecutionConfigType interfaces.ConfigType = "UnsupportedTest" )
Config types
Variables ¶
View Source
var AndroidCompanionDutServerStart_AndroidDutExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.AndroidCompanionDutServiceStartCmdType, ExecutorType: executors.AndroidDutExecutorType}
View Source
var AndroidProvisionInstall_AndroidProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.AndroidProvisionInstallCmdType, ExecutorType: executors.AndroidProvisionExecutorType}
View Source
var AndroidProvisionServerStart_AndroidProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.AndroidProvisionServiceStartCmdType, ExecutorType: executors.AndroidProvisionExecutorType}
View Source
var BuildDutTopology_InvExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.BuildDutTopologyCmdType, ExecutorType: executors.InvServiceExecutorType}
View Source
var CacheServerStart_CacheServerExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.CacheServerStartCmdType, ExecutorType: executors.CacheServerExecutorType}
View Source
var ContainerCloseLogs_ContainerExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.ContainerCloseLogsCmdType, ExecutorType: commonexecutors.ContainerExecutorType}
View Source
var ContainerReadLogs_ContainerExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.ContainerReadLogsCmdType, ExecutorType: commonexecutors.ContainerExecutorType}
View Source
var ContainerStart_ContainerExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.ContainerStartCmdType, ExecutorType: commonexecutors.ContainerExecutorType}
View Source
var CpconPublishStart_CrosCpconPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.CpconPublishStartCmdType, ExecutorType: executors.CrosPublishExecutorType}
View Source
var CpconPublishUpload_CrosCpconPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.CpconPublishUploadCmdType, ExecutorType: executors.CrosPublishExecutorType}
View Source
var CtrStartAsync_CtrExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.CtrServiceStartAsyncCmdType, ExecutorType: commonexecutors.CtrExecutorType}
View Source
var CtrStop_CtrExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.CtrServiceStopCmdType, ExecutorType: commonexecutors.CtrExecutorType}
View Source
var DutServerStart_CrosDutExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.DutServiceStartCmdType, ExecutorType: executors.CrosDutExecutorType}
View Source
var DutServiceStart_CrosDutVmExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.DutServiceStartCmdType, ExecutorType: executors.CrosDutVmExecutorType}
View Source
var DutVmCacheServerStart_CacheServerExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.DutVmCacheServerStartCmdType, ExecutorType: executors.CacheServerExecutorType}
View Source
var DutVmGetImage_CrosDutVmExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.DutVmGetImageCmdType, ExecutorType: executors.CrosDutVmExecutorType}
View Source
var FetchContainerMetadata_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.FetchContainerMetadataCmdType, ExecutorType: executors.NoExecutorType}
View Source
var GcloudAuth_CtrExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commoncommands.GcloudAuthCmdType, ExecutorType: commonexecutors.CtrExecutorType}
View Source
var GcsPublishStart_CrosGcsPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GcsPublishStartCmdType, ExecutorType: executors.CrosGcsPublishExecutorType}
View Source
var GcsPublishUpload_CrosGcsPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GcsPublishUploadCmdType, ExecutorType: executors.CrosGcsPublishExecutorType}
View Source
var GenericPostProcess_GenericPostProcessExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenericPostProcessCmdType, ExecutorType: executors.GenericPostProcessExecutorType}
View Source
var GenericProvision_GenericProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenericProvisionCmdType, ExecutorType: executors.GenericProvisionExecutorType}
View Source
var GenericPublish_GenericPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenericPublishCmdType, ExecutorType: executors.GenericPublishExecutorType}
View Source
var GenericService_GenericServiceExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenericServiceCmdType, ExecutorType: executors.GenericServiceExecutorType}
View Source
var GenericTests_GenericTestsExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.GenericTestsCmdType, ExecutorType: executors.GenericTestsExecutorType}
View Source
var InputValidation_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.BuildInputValidationCmdType, ExecutorType: executors.NoExecutorType}
All currently supported command-executor pairs.
View Source
var InvServiceStart_InvExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.InvServiceStartCmdType, ExecutorType: executors.InvServiceExecutorType}
View Source
var InvServiceStop_InvExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.InvServiceStopCmdType, ExecutorType: executors.InvServiceExecutorType}
View Source
var LoadDutTopology_InvExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.LoadDutTopologyCmdType, ExecutorType: executors.InvServiceExecutorType}
View Source
var ParseArgs_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ParseArgsCmdType, ExecutorType: executors.NoExecutorType}
View Source
var ParseDutTopology_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ParseDutTopologyCmdType, ExecutorType: commonexecutors.NoExecutorType}
View Source
var ParseEnvInfo_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ParseEnvInfoCmdType, ExecutorType: executors.NoExecutorType}
View Source
var ProcessResults_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ProcessResultsCmdType, ExecutorType: executors.NoExecutorType}
View Source
var ProvisionInstall_CrosProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ProvisonInstallCmdType, ExecutorType: executors.CrosProvisionExecutorType}
View Source
var ProvisionServerStart_CrosProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.ProvisionServiceStartCmdType, ExecutorType: executors.CrosProvisionExecutorType}
View Source
var RdbPublishStart_CrosRdbPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.RdbPublishStartCmdType, ExecutorType: executors.CrosRdbPublishExecutorType}
View Source
var RdbPublishUpload_CrosRdbPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.RdbPublishUploadCmdType, ExecutorType: executors.CrosRdbPublishExecutorType}
View Source
var SshStartReverseTunnel_SshTunnelExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.SshStartReverseTunnelCmdType, ExecutorType: executors.SshTunnelExecutorType}
View Source
var SshStartTunnel_SshTunnelExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.SshStartTunnelCmdType, ExecutorType: executors.SshTunnelExecutorType}
View Source
var SshStopTunnels_SshTunnelExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.SshStopTunnelsCmdType, ExecutorType: executors.SshTunnelExecutorType}
View Source
var TestFinderExecution_CrosTestFinderExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TestFinderExecutionCmdType, ExecutorType: executors.CrosTestFinderExecutorType}
View Source
var TestFinderServerStart_CrosTestFinderExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TestFinderServiceStartCmdType, ExecutorType: executors.CrosTestFinderExecutorType}
View Source
var TestServerStart_CrosTestExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TestServiceStartCmdType, ExecutorType: executors.CrosTestExecutorType}
View Source
var TestsExecution_CrosTestExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TestsExecutionCmdType, ExecutorType: executors.CrosTestExecutorType}
View Source
var TkoDirectUpload_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TkoDirectUploadCmdType, ExecutorType: executors.NoExecutorType}
View Source
var TkoPublishStart_CrosTkoPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TkoPublishStartCmdType, ExecutorType: executors.CrosTkoPublishExecutorType}
View Source
var TkoPublishUpload_CrosTkoPublishExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.TkoPublishUploadCmdType, ExecutorType: executors.CrosTkoPublishExecutorType}
View Source
var UpdateContainerImagesLocally_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.UpdateContainerImagesLocallyCmdType, ExecutorType: executors.NoExecutorType}
View Source
var UpdateDutState_NoExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.UpdateDutStateCmdType, ExecutorType: executors.NoExecutorType}
View Source
var VMProvisionLease_CrosVMProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.VMProvisionLeaseCmdType, ExecutorType: executors.CrosVMProvisionExecutorType}
View Source
var VMProvisionRelease_CrosVMProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.VMProvisionReleaseCmdType, ExecutorType: executors.CrosVMProvisionExecutorType}
View Source
var VMProvisionServerStart_CrosVMProvisionExecutor = &commonconfigs.CommandExecutorPairedConfig{CommandType: commands.VMProvisionServiceStartCmdType, ExecutorType: executors.CrosVMProvisionExecutorType}
Functions ¶
func GenerateHwConfigs ¶
func GenerateHwConfigs(ctx context.Context, cftHwStepsConfig *tpcommon.HwTestConfig, sk *data.HwTestStateKeeper, inputV2 *api.CrosTestRunnerDynamicRequest, isAndroidProvisionRequired bool) *commonconfigs.Configs
GenerateHwConfigs generates hw tests execution for lab environment.
func GenerateLocalConfigs ¶
func GenerateLocalConfigs(ctx context.Context, sk *data.LocalTestStateKeeper) *commonconfigs.Configs
func GeneratePreLocalConfigs ¶
func GeneratePreLocalConfigs(ctx context.Context) *commonconfigs.Configs
func NewCommandConfig ¶
func NewCommandConfig(execConfig interfaces.ExecutorConfigInterface) interfaces.CommandConfigInterface
func NewContainerConfig ¶
func NewContainerConfig( ctr *crostoolrunner.CrosToolRunner, containerImagesMap map[string]*api.ContainerImageInfo, cqRun bool) interfaces.ContainerConfigInterface
func NewExecutorConfig ¶
func NewExecutorConfig( ctr *crostoolrunner.CrosToolRunner, contConfig interfaces.ContainerConfigInterface) interfaces.ExecutorConfigInterface
Types ¶
type CftContainerConfig ¶
type CftContainerConfig struct { Ctr *crostoolrunner.CrosToolRunner ContainerImagesMap map[string]*api.ContainerImageInfo // contains filtered or unexported fields }
CftContainerConfig represents Cft container configs.
func (*CftContainerConfig) GetContainer ¶
func (cfg *CftContainerConfig) GetContainer(contType interfaces.ContainerType) (interfaces.ContainerInterface, error)
GetContainer returns the concrete container based on provided container type.
type CommandConfig ¶
type CommandConfig struct {
ExecutorConfig interfaces.ExecutorConfigInterface
}
CommandConfig represents command config.
func (*CommandConfig) GetCommand ¶
func (cfg *CommandConfig) GetCommand( cmdType interfaces.CommandType, execType interfaces.ExecutorType) (interfaces.CommandInterface, error)
GetCommand returns the concrete command based on provided command and executor type.
type ExecutorConfig ¶
type ExecutorConfig struct { ContainerConfig interfaces.ContainerConfigInterface InvServiceAddress string Ctr *crostoolrunner.CrosToolRunner // contains filtered or unexported fields }
ExecutorConfig represents executor configs.
func (*ExecutorConfig) GetExecutor ¶
func (cfg *ExecutorConfig) GetExecutor(execType interfaces.ExecutorType) (interfaces.ExecutorInterface, error)
GetExecutor returns the concrete executor based on provided executor type.
type Trv2ExecutionConfig ¶
type Trv2ExecutionConfig struct { *commonconfigs.CmdExecutionConfig // contains filtered or unexported fields }
TestExecutionConfig represents the configuration for any test execution.
func NewTrv2ExecutionConfig ¶
func NewTrv2ExecutionConfig( configType interfaces.ConfigType, cmdConfig interfaces.CommandConfigInterface, ski interfaces.StateKeeperInterface, cftStepsConfig *tpcommon.CftStepsConfig) *Trv2ExecutionConfig
func (*Trv2ExecutionConfig) GenerateConfig ¶
func (trv2cfg *Trv2ExecutionConfig) GenerateConfig(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.