Skip to content

Commit 23f6252

Browse files
committed
extend Makefile with sample-runner target
1 parent f5ca087 commit 23f6252

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

wiremock/Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ format: ## Run ruff to format the whole codebase
3838
test: ## Run integration tests (requires LocalStack running with the Extension installed)
3939
$(VENV_RUN); pytest tests $(PYTEST_ARGS)
4040

41-
sample: ## Deploy sample app
41+
sample-oss: ## Deploy sample app (OSS mode)
4242
echo "Creating stubs in WireMock ..."
4343
bin/create-stubs.sh
4444
echo "Deploying sample app into LocalStack via Terraform ..."
@@ -48,6 +48,16 @@ sample: ## Deploy sample app
4848
echo "Invoking local API Gateway endpoint: $$endpoint"; \
4949
curl -k -v $$endpoint | grep time_off_date
5050

51+
sample-runner: ## Deploy sample app (Runner mode)
52+
echo "Creating stubs in WireMock ..."
53+
bin/setup-wiremock-runner.sh
54+
echo "Deploying sample app into LocalStack via CDK ..."
55+
(cd sample-app-runner; cdklocal bootstrap; cdklocal deploy)
56+
apiId=$$(awslocal apigateway get-rest-apis | jq -r '.items[0].id'); \
57+
endpoint=https://$$apiId.execute-api.us-east-1.localhost.localstack.cloud/dev/models; \
58+
echo "Invoking local API Gateway endpoint: $$endpoint"; \
59+
curl -k -v $$endpoint
60+
5161
clean-dist: clean
5262
rm -rf dist/
5363

0 commit comments

Comments
 (0)