orchestrator

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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.

func (*Orchestrator) Run

func (o *Orchestrator) Run(ctx context.Context) (*Result, error)

Run executes the pipeline. Whatever was started is always torn down before Run returns, even on failure or context cancellation.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL