Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultTestCase = "testdata/replication_simulation_default.yaml" DomainName = "test-domain" TasklistName = "test-tasklist" WorkflowName = "test-workflow" ActivityName = "test-activity" TimerInterval = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func WorkerIdentityFor ¶
Types ¶
type Operation ¶
type Operation struct { Type ReplicationSimulationOperation `yaml:"op"` At time.Duration `yaml:"at"` Cluster string `yaml:"cluster"` WorkflowID string `yaml:"workflowID"` WorkflowDuration time.Duration `yaml:"workflowDuration"` NewActiveCluster string `yaml:"newActiveCluster"` FailovertimeoutSec *int32 `yaml:"failoverTimeoutSec"` Want Validation `yaml:"want"` }
type ReplicationSimulationConfig ¶
type ReplicationSimulationConfig struct { Clusters map[string]*Cluster `yaml:"clusters"` PrimaryCluster string `yaml:"primaryCluster"` Operations []*Operation `yaml:"operations"` }
func LoadConfig ¶
func LoadConfig() (*ReplicationSimulationConfig, error)
func (*ReplicationSimulationConfig) MustGetFrontendClient ¶
func (*ReplicationSimulationConfig) MustInitClientsFor ¶
func (s *ReplicationSimulationConfig) MustInitClientsFor(t *testing.T, clusterName string)
func (*ReplicationSimulationConfig) MustRegisterDomain ¶
func (s *ReplicationSimulationConfig) MustRegisterDomain(t *testing.T)
type ReplicationSimulationOperation ¶
type ReplicationSimulationOperation string
const ( ReplicationSimulationOperationStartWorkflow ReplicationSimulationOperation = "start_workflow" ReplicationSimulationOperationFailover ReplicationSimulationOperation = "failover" ReplicationSimulationOperationValidate ReplicationSimulationOperation = "validate" )
type Validation ¶
type WorkflowInput ¶
type WorkflowOutput ¶
type WorkflowOutput struct {
Count int
}
Click to show internal directories.
Click to hide internal directories.