Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppManager ¶
type AppManager interface {
Start(ctx context.Context, cfg *plugin.AppConfig) error
Stop(ctx context.Context) error
}
AppManager starts and stops the application under test. *app.DockerManager satisfies it.
type MockManager ¶
type MockManager interface {
StartAll(ctx context.Context, serviceConfigs map[string]map[string]interface{}) error
StopAll(ctx context.Context) error
}
MockManager starts and stops the mock services. *mock.Manager satisfies it.
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
Orchestrator coordinates the full component-test pipeline: start mocks, start the application, run tests, then tear everything down.
func NewOrchestrator ¶
func NewOrchestrator(cfg *config.Config, mocks MockManager, app AppManager, tests TestRunner, logger *zap.Logger) *Orchestrator
NewOrchestrator wires the orchestrator with its phase managers.
type Result ¶
type Result struct {
MocksStarted bool
AppStarted bool
Test *plugin.TestResult
}
Result summarizes a pipeline run.
type StubTestRunner ¶
type StubTestRunner struct {
// contains filtered or unexported fields
}
StubTestRunner is a placeholder TestRunner used until the Phase 4 test executors (Karate) are implemented. It runs no tests and reports an empty successful result so the rest of the pipeline can be exercised end to end.
func NewStubTestRunner ¶
func NewStubTestRunner(logger *zap.Logger) *StubTestRunner
NewStubTestRunner creates a stub test runner.
func (*StubTestRunner) Run ¶
func (s *StubTestRunner) Run(_ context.Context, _ *config.Config) (*plugin.TestResult, error)
Run logs that test execution is not yet implemented and returns an empty result.
type TestRunner ¶
type TestRunner interface {
Run(ctx context.Context, cfg *config.Config) (*plugin.TestResult, error)
}
TestRunner executes the test suite. Until Phase 4 lands this is a stub.