SteeltoeOSS / Configuration

.NET Configuration providers for Spring Cloud Config Server & CloudFoundry
https://steeltoe.io
Apache License 2.0
101 stars 36 forks source link

Improve testability by enabling VCAP_SERVICES to come from a specified location #16

Closed tillig closed 7 years ago

tillig commented 7 years ago

In production, the standard builder.AddCloudFoundry() configuration mechanism is perfect, grabbing everything from the environment and building the information required.

However, in testing, like when building systems that need to interact with Cloud Foundry settings, it's really hard to specify different values because you have to actually set a real environment variable to get this to work. It'd be way nicer if you could provide the data somehow, at least in a testing scenario. That'd also help for local development where you're in VS on your local machine and need to test out VCAP stuff. (Working in, say, JSON config is easier than fudging launchSettings.json and having to escape quotes and such.)

cf-gitbot commented 7 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/150683792

The labels on this github issue will be updated when the story is started.

jkonicki commented 7 years ago

This was resolved by #17. Closing.