This PR adds an E2E testing framework that can be used to run E2E tests. The PR also contains a local FHIR testing environment to help with easy test authoring. This framework can either:
Use a local E2E testing environment setup manually by the dev (or created by the E2E framework).
Currently assumes the docker container is running with the local FHIR environment.
Use the TestMigrationFunctionUrl environment variable to use a custom migration tool endpoint. Useful for testing with real Azure infra.
This gives us great flexibility as you can write tests locally with a "short inner loop" but still gives us the ability to test in Azure later by only setting a single environment variable.
This required some changes to the configuration logic and bootstrapping in Program.cs (as test authoring often encourages better application architecture).
Description
This PR adds an E2E testing framework that can be used to run E2E tests. The PR also contains a local FHIR testing environment to help with easy test authoring. This framework can either:
TestMigrationFunctionUrl
environment variable to use a custom migration tool endpoint. Useful for testing with real Azure infra.This gives us great flexibility as you can write tests locally with a "short inner loop" but still gives us the ability to test in Azure later by only setting a single environment variable.
This required some changes to the configuration logic and bootstrapping in
Program.cs
(as test authoring often encourages better application architecture).Testing
Tested via the E2E testing in VS and VS Code.