lightspeed/integration/stack

Reference integration stacks with reproducible setup/teardown (M26).

Types

One production-like reference stack.

pub type ReferenceStack {
  ReferenceStack(
    name: String,
    data_pattern: data.Pattern,
    jobs_pattern: jobs.Pattern,
    mail_pattern: mail.Pattern,
    ops_pattern: ops.Pattern,
    setup_steps: List(SetupStep),
    teardown_steps: List(TeardownStep),
  )
}

Constructors

Setup actions for integration fixtures.

pub type SetupStep {
  PrepareDataLayer
  StartJobWorkers
  StartMailer
  EnableTelemetryPipelines
  SeedReferenceData
}

Constructors

  • PrepareDataLayer
  • StartJobWorkers
  • StartMailer
  • EnableTelemetryPipelines
  • SeedReferenceData

Teardown actions for integration fixtures.

pub type TeardownStep {
  DrainJobs
  FlushOutbox
  DisableTelemetryPipelines
  CleanupDataFixtures
}

Constructors

  • DrainJobs
  • FlushOutbox
  • DisableTelemetryPipelines
  • CleanupDataFixtures

Values

pub fn collaboration_stack() -> ReferenceStack

Collaboration/chat-oriented stack.

pub fn commerce_stack() -> ReferenceStack

Commerce-oriented stack.

pub fn lifecycle_signature(stack: ReferenceStack) -> String

Stable lifecycle signature.

pub fn mixed_runtime_stack() -> ReferenceStack

Mixed-runtime baseline stack.

pub fn name(stack: ReferenceStack) -> String

Stack name.

pub fn setup_signature(stack: ReferenceStack) -> String

Stable setup signature.

pub fn setup_step_label(step: SetupStep) -> String

Setup-step label.

pub fn setup_steps(stack: ReferenceStack) -> List(SetupStep)

Setup steps.

pub fn signature(stack: ReferenceStack) -> String

Stable stack signature for fixtures and docs.

pub fn teardown_signature(stack: ReferenceStack) -> String

Stable teardown signature.

pub fn teardown_step_label(step: TeardownStep) -> String

Teardown-step label.

pub fn teardown_steps(
  stack: ReferenceStack,
) -> List(TeardownStep)

Teardown steps.

pub fn valid(stack: ReferenceStack) -> Bool

Validate stack-level integration constraints.

Search Document