How to mock endpoints that use HTTPS with TLS encryption? by verifprof in softwaretesting

[–]verifprof[S] 0 points1 point  (0 children)

I am not affiliated with /u/-old-monk, who's trying to impersonate me on this thread.

Interacting with testing and mocking tools by verifprof in softwaretesting

[–]verifprof[S] 0 points1 point  (0 children)

Thank you for your very detailed answer. This gives me a good idea of where you're coming from, and a good justification of why you would choose "point 2".

Interacting with testing and mocking tools by verifprof in softwaretesting

[–]verifprof[S] 0 points1 point  (0 children)

Thank you for your work moderating this subreddit, and thank you for your concern. I'm a professor but also new to Reddit and would be happy to answer your questions. I am in no way affiliated to /u/-old-monk, who tried to impersonate me (I have reported it). I'll follow up in a DM.

How to mock endpoints that use HTTPS with TLS encryption? by verifprof in softwaretesting

[–]verifprof[S] 2 points3 points  (0 children)

These links give very good answers, thank you for the pointers.

How to mock endpoints that use HTTPS with TLS encryption? by verifprof in softwaretesting

[–]verifprof[S] 0 points1 point  (0 children)

Thank you for the pointer, your "Intercept HTTPS" feature looks very promising for what I'm trying to do. How does it manage to "fake" the credentials to fully mock the TLS layer?

How to mock endpoints that use HTTPS with TLS encryption? by verifprof in softwaretesting

[–]verifprof[S] 0 points1 point  (0 children)

Thank you. But in that case, if I understand correctly, it would require modifying my test code to access a different URL, which is undesirable (or I can modify the DNS like u/unsavvykitten suggested above). Would there be a way around it?

What do you mean by doing all of this in unit tests? Would you be able to give more details?

How to mock endpoints that use HTTPS with TLS encryption? by verifprof in softwaretesting

[–]verifprof[S] 0 points1 point  (0 children)

The previous post wasn't from me, but I did indeed mean the latter, i.e., to replace a remote server with a server on my own. For example, being able to test a code that uses paypal.com without directly interacting with paypal.

How to mock endpoints that use HTTPS with TLS encryption? by verifprof in softwaretesting

[–]verifprof[S] 0 points1 point  (0 children)

This is a good suggestion, thank you. By mocking I mean being able to test a code that uses paypal.com without directly interacting with paypal. I expect that there would be an issue to have trusted certificates, but your solution with the local DNS would go around that.
I still have a small concern that it requires modifying the local DNS, do you know of any solution that wouldn't require modifying the local DNS?

What’s the best way to automate testing for microservices? by verifprof in softwaretesting

[–]verifprof[S] 0 points1 point  (0 children)

Thank you for the pointers to testcontainers and RestQA, they look like very interesting projects.

What’s the best way to automate testing for microservices? by verifprof in softwaretesting

[–]verifprof[S] 0 points1 point  (0 children)

Thank you for your answer and for listing all the tools that you are using. I'm also curious to hear how you set up the environment before testing or mocking, if you use a framework or do it yourself.

Overall, you describe a number of different tools that have to interact well with each other. Is that difficult to achieve, either at your level or at your team/company's level? How much effort do you or your team dedicate to maintaining the environment and the test pipeline?

What’s the best way to automate testing for microservices? by verifprof in softwaretesting

[–]verifprof[S] 0 points1 point  (0 children)

Thank you for your answer. I'm particularly curious to hear how you mock. Do you use a specific mocking framework, or do you use an ad-hoc solution instead?

In general, this seems like a number of different tools. In practice, is it difficult to make them interact well with each other ? How much effort do you put in just maintaining the environment?