Skip to content

Commit

Permalink
chore(DRIVERS-2384): update localhost test domain (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
durran authored Aug 17, 2023
1 parent b8a5a00 commit 674bee7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/faas-automated-testing/faas-automated-testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
`````````````````````````
Expand Down Expand Up @@ -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.

Expand All @@ -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.

0 comments on commit 674bee7

Please sign in to comment.