Thank you for the explanation of this topic. I've been trying to figure out how to implement CDC tests in Postman all week. While the schema validation doesn't quite work for this purpose, Postman still seems to be a good tool for CDC tests. Personally, I was only using contract tests to enforce the documented schemas in the API spc as the provider.
Thanks Valentin that was a great video, however I have one question regarding changing the "firstName" typo. Can you elaborate as to what happens when the producer rectifies the typo ? Does the "consumer service" pipeline fail due to the contract ? and the producer has to collaborate with all the relevant consumers ?
Thanks, Ricardo. There is not so much out there. As I have explained, there is not built-in support in Postman for this, so you can use them as you wish.
Awesome content Valentin. If I have to try what you were showing in the demo (the CI part), is there a GitHub repository I could download or is there any course particularly covering what you were discussing in the CI pipeline, the whole 9-yards of Docker and Postman API tests as well as the Billing contract test from your demo. I'm very interested in trying it out. Thank you!
What if the request modifies the status of the database? In Java Spring, I can mock the repository layer, but it seems that I can't do it this way. So, if I perform, for example, a POST request, I'm going to add data to my database every time I execute my tests, and I definitely don't want this. Is there a way to fix this issue?
@Valentin Despa I am not sure if you already answered this question. But I tried doing exactly you did on this tutorial, but instead of java/gradle I did NestJS and stored in my gitlab repo registry. But for some reason, when I tried doing Docker inside Docker and run my test. I am getting Error Refused Connection, but in this video you did not got any error. Am I missing a step or something?
Can you please add assertions and validation test for same response in this example, because whole response is in array ' [ ] ' notation..so please help me to write validation of each and every parameters in the response body. Thank you,
can you show us how to test api calls from certain websites using chrome on postman? so far i have learned to copy the information from certain api calls and duplicate it on the postman but its still confusing. can you give a quick walkthrough?
👉 Want to learn more about Postman? Check my complete Postman online course.
vdespa.com/courses/?q=TH-cam
Interesting to know and see how we can use postman for contract testing, a useful tutorial, thank you, Valentin.
Glad it was helpful!
I am a big fan of you .. Valentin :) You make things so simple !!
Thanks so much 😊
Really good topic to do, thanks Valentin. Much appreciated.
Thanks for watching.
Thank you for the explanation of this topic. I've been trying to figure out how to implement CDC tests in Postman all week. While the schema validation doesn't quite work for this purpose, Postman still seems to be a good tool for CDC tests. Personally, I was only using contract tests to enforce the documented schemas in the API spc as the provider.
You are welcome, thanks for watching and sharing your use-case.
Thanks Valentin that was a great video, however I have one question regarding changing the "firstName" typo. Can you elaborate as to what happens when the producer rectifies the typo ? Does the "consumer service" pipeline fail due to the contract ? and the producer has to collaborate with all the relevant consumers ?
If the contract published changes, we expect the pipeline to fail, because the API now has a different property and we need to be aware.
Please do spring cloud contract testing series
Thanks for the suggestion. I will look into that.
Great stuff Valentin!! Ask me a question: where do I find more materials about Consumer-driven Contract Testing using Postman?
Thanks, Ricardo. There is not so much out there. As I have explained, there is not built-in support in Postman for this, so you can use them as you wish.
Awesome content Valentin. If I have to try what you were showing in the demo (the CI part), is there a GitHub repository I could download or is there any course particularly covering what you were discussing in the CI pipeline, the whole 9-yards of Docker and Postman API tests as well as the Billing contract test from your demo. I'm very interested in trying it out. Thank you!
Informative tutorial Valentine, thanks. Can the presentation be shared?
awesome explanation! thank you 👍
Glad you enjoyed it!
What if the request modifies the status of the database? In Java Spring, I can mock the repository layer, but it seems that I can't do it this way. So, if I perform, for example, a POST request, I'm going to add data to my database every time I execute my tests, and I definitely don't want this. Is there a way to fix this issue?
@Valentin Despa
I am not sure if you already answered this question. But I tried doing exactly you did on this tutorial, but instead of java/gradle I did NestJS and stored in my gitlab repo registry. But for some reason, when I tried doing Docker inside Docker and run my test. I am getting Error Refused Connection, but in this video you did not got any error. Am I missing a step or something?
Hi Christopher, which kind of runners do you have? I have used the shared runners from GitLab.com.
Thanks for this stuff. Just wanted to know if we can do it for POST/PUT or it is only for GET HTTP requests?
Thanks for watching. You can use GET, POST, PUT, ... whatever you need.
Thanks!
You are welcome! Thanks for supporting this channel!
What would then be the differences between API tests and provider-driven contract testing?
Can you please add assertions and validation test for same response in this example, because whole response is in array ' [ ] ' notation..so please help me to write validation of each and every parameters in the response body.
Thank you,
Not sure how this is related to the video. Can you be more specific?
Postman Contract Testing is free or paid?
can you show us how to test api calls from certain websites using chrome on postman? so far i have learned to copy the information from certain api calls and duplicate it on the postman but its still confusing. can you give a quick walkthrough?
Look at an introduction to Postman video. th-cam.com/video/JzpFsrZnNDo/w-d-xo.html
Swagger was throwing me off as I was confusing it as an API of my Collection
Interesting. I hope this clarified things a bit
I noticed a gay flag on your laptop 💻?
Where does this necessary crap end.