Skip to content

Conversation

@HarshCasper
Copy link
Member

@HarshCasper HarshCasper commented Jan 13, 2026

  • Add LocalStack WireMock extension that runs/proxies a WireMock container
  • Add sample apps (both for OSS and Runner) for integration testing
  • Add GitHub Actions workflow for extension tests

Originally authored by @whummer

* Add LocalStack WireMock extension that runs/proxies a WireMock container

* Add sample app for integration testing

* Add GitHub Actions workflow for extension tests
# TODO: merge utils with code in TypeDB extension over time ...


class ProxiedDockerContainerExtension(Extension):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI (note to self) - we've recently merged a similar version of this class for the TypeDB extension. Over time we could move that class as a common utility into the core codebase (either in localstack repo, or as a separate localstack-extensions pypi package). /cc @purcell

See the TODO comment a few lines above - we should tackle this in a follow-up iteration.. 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See draft PR here: #123 Will work on externalizing the utils and updating the Wiremock extension after merging this PR. 👍

#!/usr/bin/env node
import "source-map-support/register";
import * as cdk from "aws-cdk-lib";
import { ChatStack } from "../lib/chat-stack";
Copy link
Member

@whummer whummer Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting an error when running cdklocal deploy locally - @HarshCasper is it possible that the chat-stack.ts file hasn't been included in the PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, the .gitignore was set to ignore the lib/ directory. Its now fixed and the chat-stack.ts should be visible here.

@whummer
Copy link
Member

whummer commented Jan 27, 2026

Thanks @remotesynth @HarshCasper for updating the PR!

Just wanted to confirm - is the extension startup working for you right now? I'm still getting this error in the logs of the wiremock-runner container - seems like it could be an issue in the contents of the .wiremock/ config folder, but not sure.

2026-01-27 19:20:16.166Z ERROR [           main] RunnerApp                                : Failed to start Runner: Failed to start serving: Failed to parse 'serve' mode configuration: Invalid config:
  Config file: .wiremock/wiremock.yaml
  JSON Pointer: /services/wiremock/path
  Referenced path: /stub-mappings.yaml
  Invalid mappings; File does not exist

Is this working for you all e2e?

Copy link
Member

@whummer whummer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the PR, as it seems to be working for Harsh and Brian locally. 👍 Will merge and release the extension to pypi now, so we can continue with preparing the meetup demo. (will try to fix my local setup separately..)

Great job - excited to see this being released! 🚀

@whummer whummer merged commit a497cbc into main Jan 27, 2026
1 check passed
@whummer whummer deleted the wiremock branch January 27, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants