Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail in OTP 26 #113

Open
VitorTrin opened this issue Jan 22, 2024 · 0 comments · May be fixed by #114
Open

Tests fail in OTP 26 #113

VitorTrin opened this issue Jan 22, 2024 · 0 comments · May be fixed by #114

Comments

@VitorTrin
Copy link

when using OTP 26, 3 tests fail


  1) test string type params can be all digits (Soap.Request.ParamsTest)
     test/soap/request/params_test.exs:47
     Assertion with == failed
     code:  assert function_result == xml_body
     left:  "<?xml version=\"1.0\" encoding=\"UTF-8\"?><env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tns=\"com.esendex.ems.soapinterface\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><env:Header/><env:Body><tns:sendMessage xmlns=\"com.esendex.ems.soapinterface\"><type>TYPE</type><date>2018-01-19</date><body>BODY</body><recipient>123</recipient></tns:sendMessage></env:Body></env:Envelope>"
     right: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tns=\"com.esendex.ems.soapinterface\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><env:Header/><env:Body><tns:sendMessage xmlns=\"com.esendex.ems.soapinterface\"><body>BODY</body><date>2018-01-19</date><recipient>123</recipient><type>TYPE</type></tns:sendMessage></env:Body></env:Envelope>"
     stacktrace:
       test/soap/request/params_test.exs:56: (test)



  2) test #build_body converts map to Xml-like string successful (Soap.Request.ParamsTest)
     test/soap/request/params_test.exs:9
     Assertion with == failed
     code:  assert function_result == xml_body
     left:  "<?xml version=\"1.0\" encoding=\"UTF-8\"?><env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tns=\"com.esendex.ems.soapinterface\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><env:Header/><env:Body><tns:sendMessage xmlns=\"com.esendex.ems.soapinterface\"><type>TYPE</type><date>2018-01-19</date><body>BODY</body><recipient>WSPB</recipient></tns:sendMessage></env:Body></env:Envelope>"
     right: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tns=\"com.esendex.ems.soapinterface\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><env:Header/><env:Body><tns:sendMessage xmlns=\"com.esendex.ems.soapinterface\"><body>BODY</body><date>2018-01-19</date><recipient>WSPB</recipient><type>TYPE</type></tns:sendMessage></env:Body></env:Envelope>"
     stacktrace:
       test/soap/request/params_test.exs:15: (test)



  3) test #build_body uses the custom WSDL SOAP version (Soap.Request.ParamsTest)
     test/soap/request/params_test.exs:18
     Assertion with == failed
     code:  assert function_result == xml_body
     left:  "<?xml version=\"1.0\" encoding=\"UTF-8\"?><env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:tns=\"com.esendex.ems.soapinterface\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><env:Header/><env:Body><tns:sendMessage xmlns=\"com.esendex.ems.soapinterface\"><type>TYPE</type><date>2018-01-19</date><body>BODY</body><recipient>WSPB</recipient></tns:sendMessage></env:Body></env:Envelope>"
     right: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:tns=\"com.esendex.ems.soapinterface\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><env:Header/><env:Body><tns:sendMessage xmlns=\"com.esendex.ems.soapinterface\"><body>BODY</body><date>2018-01-19</date><recipient>WSPB</recipient><type>TYPE</type></tns:sendMessage></env:Body></env:Envelope>"
     stacktrace:
       test/soap/request/params_test.exs:24: (test)

It may be caused by OTP 26 no longer guarantees that maps are ordered

@VitorTrin VitorTrin linked a pull request Jan 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant