From 674bee73c88405acebc8e5fd444b2badb3947811 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Thu, 17 Aug 2023 16:21:36 +0200 Subject: [PATCH] chore(DRIVERS-2384): update localhost test domain (#1407) --- source/faas-automated-testing/faas-automated-testing.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/faas-automated-testing/faas-automated-testing.rst b/source/faas-automated-testing/faas-automated-testing.rst index c2e523b4c1..df5c3a7408 100644 --- a/source/faas-automated-testing/faas-automated-testing.rst +++ b/source/faas-automated-testing/faas-automated-testing.rst @@ -222,6 +222,11 @@ Run the function locally from the same directory where the template.yaml resides sam build sam local invoke --parameter-overrides "MongoDbUri=${MONGODB_URI}" +*NOTE* "127.0.0.1" in the MONGODB_URI MUST be replaced with "host.docker.internal" to test +a local MongoDB deployment. If "host.docker.internal" does not work (can occur on M1 +machines), drivers MAY choose to use a [bridged docker container](https://docs.docker.com/network/bridge/) +to test locally. + Implementing the Function ````````````````````````` @@ -346,7 +351,6 @@ functions inside of it for setup, teardown, and execution: tasks: - test-aws-lambda-deployed - Drivers MUST run the function on a single variant in Evergreen, in order to not potentially hit the Atlas API rate limit. The variant itself MUST have the SAM CLI installed. @@ -364,5 +368,6 @@ Description of the behaviour of run-deployed-lambda-aws-tests.sh: Changelog ========= +:2023-08-17: Fixed URI typo, added host note, increase assume role duration. :2023-06-22: Updated evergreen configuration to use task groups. :2023-04-14: Added list of supported variants, added additional template config.