tnc1997 / azure-app-configuration-emulator

Please note that Emulator for Azure App Configuration is unofficial and not endorsed by Microsoft.
MIT License
3 stars 3 forks source link

Add support configuration auto-import on startup #78

Closed goldsam closed 2 months ago

goldsam commented 2 months ago

It would be very convenient to be able to import configuration from a file on startup to facilitate testing. This would avoid the need to write custom code to seed the emulator with configuration prior to running my test cases.

tnc1997 commented 2 months ago

Hi @goldsam, you may seed the database with configuration settings by mounting a database into the container.

goldsam commented 2 months ago

I instead opted to just initialize the configuration in the context of my test setup. My team uses LightBDD, which has the added benefit of showing the configuration data in the test report.

Although seeding the database is a bit more cumbersome that what I would have liked (had I pursued this approach), I suppose that would have worked.