Skip to content

Latest commit

 

History

History
201 lines (110 loc) · 6.06 KB

File metadata and controls

201 lines (110 loc) · 6.06 KB

API Reference

Constructs

StepFunctionOrchestrator

Run and Evaluate AWS Cloudwatch Canaries parallel with AWS Step Functions.

State machine's execution will fail if any of the canaries fail but it will wait for all to run before failing.

Initializers

import { StepFunctionOrchestrator } from 'synthetics-canaries-e2e-tests-runner'

new StepFunctionOrchestrator(scope: Construct, id: string, props: StepFunctionOrchestratorProps)
scopeRequired

idRequired
  • Type: string

propsRequired

Properties

stateMachineRequired
public readonly stateMachine: StateMachine;

Structs

E2ETestsStepProps

Construction properties for a E2ETestsStep.

Initializer

import { E2ETestsStepProps } from 'synthetics-canaries-e2e-tests-runner'

const e2ETestsStepProps: E2ETestsStepProps = { ... }
canariesRequired
public readonly canaries: Canary[];

Array of AWS Cloudwatch canary to execute in this step.


inputsFromDeployedStackRequired
public readonly inputsFromDeployedStack: CfnOutput[];

The potential list of CloudFormation outputs exposed by the App under test deployed in the previous step of the code pipeline workflow and that are needed by canaries to run properly.

Those will be pushed to AWS SSM Parameter store to be accessed by the canary at runtime using the name set as output ExportName.


scopeRequired
public readonly scope: Construct;

Scope in wich to instantiate the state machine (usually your pipeline stack).


StepFunctionOrchestratorProps

Construction properties for a StepFunctionOrchestrator.

Initializer

import { StepFunctionOrchestratorProps } from 'synthetics-canaries-e2e-tests-runner'

const stepFunctionOrchestratorProps: StepFunctionOrchestratorProps = { ... }
canariesRequired
public readonly canaries: Canary[];

Array of AWS Cloudwatch canary to execute.


Classes

E2ETestsStep

Run AWS Cloudwatch Canaries end to end tests in parallel in the pipeline.

Initializers

import { E2ETestsStep } from 'synthetics-canaries-e2e-tests-runner'

new E2ETestsStep(id: string, props: E2ETestsStepProps)
idRequired
  • Type: string

propsRequired

Methods

produceAction
public produceAction(stage: IStage, options: ProduceActionOptions)
stageRequired

optionsRequired

Properties

inputsFromDeployedStackRequired
public readonly inputsFromDeployedStack: any[];
  • Type: any[]

stateMachineRequired
public readonly stateMachine: StateMachine;