Skip to content

Add Smoke Testing to the CI pipeline #217

@jlvoiseux

Description

@jlvoiseux

Following the deployment of a broken release (v1.0.1), it has been suggested to introduce smoke testing to the repository. These smoke tests would take inspiration from elastic-lambda-extension-testing and would be implemented via Terraform. A possible process outline would be as follows:

  • Build the Lambda layer
  • Spin up an APM-instrumented Lambda function behind an API Gateway
  • Attach the extension layer to the function
  • Perform 2 invocations (in order to also check metrics generation)
  • Check a dedicated ES instance for the presence of target documents

An implementation of SAM CLI-based E2E testing already exists, but since the SAM CLI does not support the Lambda Logs API used for Metrics, its relevance will decrease by the time we release v1.1.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions