To allow the mongodb url to be set automatically on any deployed app, the application needs to expect this variable on startup. This PR adds a Spring Configuration class that sets the function's client uri based on a connection string set either as an environment parameter or the local.settings.json file.
Adds documentation to readme on the above
Modifies the azure pipeline based on the above
Does this introduce a breaking change?
[ ] Yes
[X] No
Pull Request Type
What kind of change does this Pull Request introduce?
[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:
How to Test
Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
Test the code
docker pull mongo
docker run -p 27017:27017 --name user-acc-svc-mongo -d mongo:latest
cd ./integration-tests
npm run local:test | npm run local:test:windows
What to Check
Verify that the following are valid
Function App stdout: Application started. Press Ctrl+C to shut down.
.....................................................................
Test is against a locally running function. Tearing down the function.
Terminating the functions process running with id 20940
Attempting to clean-up any other processes using the function port
24 scenarios (24 passed)
69 steps (69 passed)
0m05.273s
Purpose
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
What to Check
Verify that the following are valid
Other Information