You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures
I have set my log level to debug and attached a log file showing the complete request/response cycle
For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem
Expected behaviour
Able to set the expected response Content-Type header to application/xml and be able to match the response to valid xml with the complete data.
Actual behaviour
When setting the interactions expected response Content-Type header to application/xml, the returned response from the pact mock server is always only <?xml version='1.0'?> and does not include the rest of the xml data.
donche129
changed the title
[V3] Mismatch with header Content-Type application/xml
[V3] Incorrect response with header Content-Type application/xml
Aug 23, 2023
donche129
changed the title
[V3] Incorrect response with header Content-Type application/xml
Incorrect response with header Content-Type application/xml in PactV3
Aug 23, 2023
Fixed a typo in the behavior description to make it clear the response is somehow returning only <?xml version='1.0'?> instead of the complete XML. @mefellows apologies if there was any confusion!
Software versions
Issue Checklist
Please confirm the following:
Expected behaviour
Able to set the expected response
Content-Type
header toapplication/xml
and be able to match the response to valid xml with the complete data.Actual behaviour
When setting the interactions expected response
Content-Type
header toapplication/xml
, the returned response from the pact mock server is always only<?xml version='1.0'?>
and does not include the rest of the xml data.Steps to reproduce
Example repo here: https://github.com/donche129/pact-xml-issue
Example test code:
Relevant log files
The text was updated successfully, but these errors were encountered: