jeudi 8 octobre 2015

web api 2 verify controller is running on production environment

I'm fairly new to C# and web api 2 and creating a web service for some internal usage. I have smoke- and acceptance tests setup in my CI pipeline for our development and test environments, these insert bogus data in our DBs, and validate all sorts of output, errors messages and so on.

And here comes the problem; acceptance/configuration testing in our production environment when we have deployed a new release.

Ideally i would like a simple configuration test/report that tells me that controllers have been instantiated correctly, and on the correct route.

Is there a way natively in web api 2 to achieve this? If not, what would you suggest for testing availability of controllers on a production environment without polluting the database (for POST request) and having known data to test upon.

Aucun commentaire:

Enregistrer un commentaire