Closed mathieu-amblard closed 1 year ago
👋 @mathieu-amblard
Welcome to the Microcks community! 💖
Thanks and congrats 🎉 for opening your first issue here! Be sure to follow the issue template or please update it accordingly.
📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.
If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌"
Hope you have a great time there!
🌟 ~~~~~ 🌟
📢 If you like Microcks, please ⭐ star ⭐ our repo to support it!
🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.
Hey! Thank you for trying it out and sorry for the bug... We still have to enrich the test suite. I an going to check it out right now.
I think I had the same belief that it would be handled by default by Jackson... Anyway, you spotted the issue and the fix. Cool! 😎 Would you be interested in contributing the fix with a PR? If you don't have time, I'll push it by myself. Let me know.
@lbroudoux I would be interested in contributing. I will have some time tomorrow for creating a PR if that's ok for you. Thanks.
Awesome! I'll release new version as soon as I get your PR.
@mathieu-amblard one thing: do not forget to sign your commit 😉
Describe the bug
First of all, thank you for your great work about Microcks !
I am playing around with it to replace PACT testing that does not suit our needs. I am trying to execute contract tests as defined in this example : https://github.com/microcks/microcks-testcontainers-java#launching-new-contract-tests and some of the operations required technical headers.
Therefore I have setup my test like this :
When I execute, I got a
org.testcontainers.shaded.com.fasterxml.jackson.databind.JsonMappingException
due to headers.I am using
io.github.microcks:microcks-testcontainers
version0.1.3
.Expected behavior
I expect the deserialization of the response to a
TestResult
works.Actual behavior
When Microcks tries to deserialize the response to a
TestResult
, I got the following exception :This is because, the mapper tries to deserialize the array
["value-2"]
to the fieldvalues
: https://github.com/microcks/microcks-testcontainers-java/blob/main/src/main/java/io/github/microcks/testcontainers/model/Header.java#L42 which is aString
.As a quick workaround, I have created a custom deserializer but I though that Jackson was able to handle it by default...
How to Reproduce?
No response
Microcks version or git rev
No response
Install method (
docker-compose
,helm chart
,operator
,docker-desktop extension
,...)No response
Additional information
No response