elixir-soap / soap

SOAP client for Elixir programming language
MIT License
135 stars 75 forks source link

Tests fail in OTP 26 #113

Open VitorTrin opened 9 months ago

VitorTrin commented 9 months ago

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