Replies: 1 comment 3 replies
-
You don't have to choose one or the other, you can use both and test your application in-process. I'll leave a few examples and articles below.
Avoid mounting files or directories into the container, as this won't work in every container runtime environment (see our best practices). To configure an ASP.NET application, you can do one of the following:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, I am wondering if someone can point me to useful documentation or examples around my use-case please. I'm trying to host a web api in a kubernetes pod for testing. I'm using test containers instead of WebApplicationFactory as this test is meant to be more end to end. I am able to wire up dependencies such as queues, database. However, I don't seem to be able to get appsettings working using bind mounts. For example, I'd like to set some flags in the config to disabled for testing purposes. Do we have any examples around this that I can refer to? So this is the test flow
Set up containers for dependencies
Pull private image for the api (netcore)
Use custom appsettings to set up test flag used for development - stuck here !?
Host the api in a container
Thanks,
Anchita
Beta Was this translation helpful? Give feedback.
All reactions