keyvault-acmebot
keyvault-acmebot copied to clipboard
Fixes #493 - Unit tests for DomeneShop provider
A test project using XUnit and Moq to verify the functionality of all public methods of the DomeneShop provider. Sample data for three domains is included as json files, and all values are dummy values, but still exactly like the v0 of DomeneShop API.
Helped me verify and fix a bug in this provider.
I can rebase on master if you want to merge #491 before this one.
I believe that the correctness of the DNS Provider can only be verified by running the actual DNS API. I don't see the value in testing code using a mock API.
I use sample messages copied from the request and response messages in Postman.
It helps, by letting me debug the code and verify the functionality of the provider before deploying the application.
In my opinion mocking the DNS provider API is pointless and doesn't change the fact that you need to hit the actual API. This PR will not be merged.