Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103712

qhttpserver ssl tests fail on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2
    • Qt Http Server
    • None
    • Android

    Description

      qthttpserver module's qhttpserver ssl test cases fail on Android, this is because the openssl libs are not deployed with the apk in CI (seeĀ QTBUG-89053).

      1: FAIL!  : tst_QHttpServer::routeGet(hello world, ssl) Compared values are not the same
      1:    Actual   (reply->header(QNetworkRequest::ContentTypeHeader)): QVariant()
      1:    Expected (type)                                             : "text/plain"
      1:    Loc: [/home/qt/work/qt/qthttpserver/tests/auto/qhttpserver/tst_qhttpserver.cpp(642)]
      1: QWARN  : tst_QHttpServer::routeGet(post-and-get, get, ssl) : QSslSocket::connectToHostEncrypted: TLS initialization failed
      1: FAIL!  : tst_QHttpServer::routeGet(post-and-get, get, ssl) Compared values are not the same
      1:    Actual   (reply->header(QNetworkRequest::ContentTypeHeader)): QVariant()
      1:    Expected (type)                                             : "text/plain"
      1:    Loc: [/home/qt/work/qt/qthttpserver/tests/auto/qhttpserver/tst_qhttpserver.cpp(642)]
      1: QWARN  : tst_QHttpServer::routeGet(invalid-rule-method, get, ssl) : QSslSocket::connectToHostEncrypted: TLS initialization failed
      1: FAIL!  : tst_QHttpServer::routeGet(invalid-rule-method, get, ssl) Compared values are not the same
      1:    Actual   (reply->header(QNetworkRequest::ContentTypeHeader)): QVariant()
      1:    Expected (type)                                             : "application/x-empty"
      1:    Loc: [/home/qt/work/qt/qthttpserver/tests/auto/qhttpserver/tst_qhttpserver.cpp(642)]
      1: QWARN  : tst_QHttpServer::routeGet(check custom type, data=1, ssl) : QSslSocket::connectToHostEncrypted: TLS initialization failed
      1: FAIL!  : tst_QHttpServer::routeGet(check custom type, data=1, ssl) Compared values are not the same
      1:    Actual   (reply->header(QNetworkRequest::ContentTypeHeader)): QVariant()
      1:    Expected (type)                                             : "text/plain"
      1:    Loc: [/home/qt/work/qt/qthttpserver/tests/auto/qhttpserver/tst_qhttpserver.cpp(642)]
      1: PASS   : tst_QHttpServer::routeKeepAlive()
      1: PASS   : tst_QHttpServer::routePost(hello world)
      1: PASS   : tst_QHttpServer::routePost(post-and-get, post)
      1: PASS   : tst_QHttpServer::routePost(any, post)
      1: PASS   : tst_QHttpServer::routePost(post-body)
      1: PASS   : tst_QHttpServer::routePost(post-body - huge body, chunk test)
      1: PASS   : tst_QHttpServer::routePost(req-and-resp)
      1: PASS   : tst_QHttpServer::routePost(resp-and-req)
      1: QWARN  : tst_QHttpServer::routePost(post-and-get, post, ssl) : QSslSocket::connectToHostEncrypted: TLS initialization failed
      1: FAIL!  : tst_QHttpServer::routePost(post-and-get, post, ssl) Compared values are not the same
      1:    Actual   (reply->header(QNetworkRequest::ContentTypeHeader)): QVariant()
      1:    Expected (type)                                             : "text/plain"
      1:    Loc: [/home/qt/work/qt/qthttpserver/tests/auto/qhttpserver/tst_qhttpserver.cpp(812)]
      1: QWARN  : tst_QHttpServer::routePost(any, post, ssl) : QSslSocket::connectToHostEncrypted: TLS initialization failed
      1: FAIL!  : tst_QHttpServer::routePost(any, post, ssl) Compared values are not the same
      1:    Actual   (reply->header(QNetworkRequest::ContentTypeHeader)): QVariant()
      1:    Expected (type)                                             : "text/plain"
      1:    Loc: [/home/qt/work/qt/qthttpserver/tests/auto/qhttpserver/tst_qhttpserver.cpp(812)]
      1: QWARN  : tst_QHttpServer::routePost(post-body, ssl) : QSslSocket::connectToHostEncrypted: TLS initialization failed
      1: FAIL!  : tst_QHttpServer::routePost(post-body, ssl) Compared values are not the same
      1:    Actual   (reply->header(QNetworkRequest::ContentTypeHeader)): QVariant()
      1:    Expected (type)                                             : "text/plain"
      1:    Loc: [/home/qt/work/qt/qthttpserver/tests/auto/qhttpserver/tst_qhttpserver.cpp(812)]
      1: QWARN  : tst_QHttpServer::routePost(post-body - huge body, chunk test, ssl) : QSslSocket::connectToHostEncrypted: TLS initialization failed
      1: FAIL!  : tst_QHttpServer::routePost(post-body - huge body, chunk test, ssl) Compared values are not the same
      1:    Actual   (reply->header(QNetworkRequest::ContentTypeHeader)): QVariant()
      1:    Expected (type)                                             : "text/plain"
      1:    Loc: [/home/qt/work/qt/qthttpserver/tests/auto/qhttpserver/tst_qhttpserver.cpp(812)]
      1: PASS   : tst_QHttpServer::routeDelete(post-and-get, delete)
      1: PASS   : tst_QHttpServer::routeDelete(any, delete)
      1: QWARN  : tst_QHttpServer::routeDelete(post-and-get, delete, ssl) : QSslSocket::connectToHostEncrypted: TLS initialization failed
      1: FAIL!  : tst_QHttpServer::routeDelete(post-and-get, delete, ssl) Compared values are not the same
      1:    Actual   (reply->header(QNetworkRequest::ContentTypeHeader)): QVariant()
      1:    Expected (type)                                             : "application/x-empty"
      1:    Loc: [/home/qt/work/qt/qthttpserver/tests/auto/qhttpserver/tst_qhttpserver.cpp(866)]
      1: QWARN  : tst_QHttpServer::routeDelete(any, delete, ssl) : QSslSocket::connectToHostEncrypted: TLS initialization failed
      1: FAIL!  : tst_QHttpServer::routeDelete(any, delete, ssl) Compared values are not the same
      1:    Actual   (reply->header(QNetworkRequest::ContentTypeHeader)): QVariant()
      1:    Expected (type)                                             : "text/plain"
      1:    Loc: [/home/qt/work/qt/qthttpserver/tests/auto/qhttpserver/tst_qhttpserver.cpp(866)]
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-103712
          # Subject Branch Project Status CR V

          Activity

            People

              qtandroidteam Qt Android Team
              assam Assam Boudjelthia
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes