Project

General

Profile

« Previous | Next » 

Revision dcc231c8

Added by U.Nakamura over 4 years ago

merge revision(s): 07786ed

    test/net/http/test_https.rb: Stop the error due to openssl 1.1.1h

    On some environments that uses OpenSSL 1.1.1h, the two tests now fail.

    http://rubyci.s3.amazonaws.com/android29-x86_64/ruby-master/log/20200924T062352Z.fail.html.gz
    https://github.com/ruby/ruby/runs/1159288773?check_suite_focus=true

    ```
      1) Failure:
    TestNetHTTPS#test_get [/data/data/com.termux/files/home/cb/tmp/build/20200924T062352Z/ruby/test/net/http/test_https.rb:47]:
    <"0\x82\x03\xED0\x82\x02\xD5\xA0\x03..."> expected but was
    <"0\x82\x03\xE30\x82\x02\xCB\xA0\x03...">.
    ```

    Not sure why, but verify_callback now seems to receive only SERVER_CERT
    but not CA_CERT.
    It would be good to investigate the issue furthermore, but tentatively,
    I want to stop the failures.

    test/net/http/test_https.rb: the order of verify_callback seems to
     vary

    ... depending upon the environment.

    test/net/http/test_https.rb: The test logic was buggy

    The expected certs must be `[CA_CERT, SERVER_CERT]` before 1.1.1g and
    `[SERVER_CERT]` after 1.1.1h.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e