Skip to content

Tests fail in OTP 26 #113

@VitorTrin

Description

@VitorTrin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions