Skip to content

WebApplicationFactory alternative for Annotations framework #1151

Open
@Dreamescaper

Description

@Dreamescaper

Describe the feature

Microsoft provides WebApplicationFactory for AspNetCore in-memory integration testing. I think something similar could be done for AspNetCore lambdas.
It would parse generated (or created manually / via CDK) cloud formation template, and create an HttpClientHandler, which would route requests to corresponding lambda handlers instead of making actual http requests.

It should also be possible to replace configured services in DI container (in order to be possible to mock external services).

Use Case

Integration testing for lambda serverless application project.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS .NET SDK and/or Package version used

Amazon.Lambda.Annotations 0.5.0-preview

Targeted .NET Platform

.NET 6

Operating System and version

Any

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions