Comment 5 for bug 1679658

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.middleware (master)

Reviewed: https://review.openstack.org/453712
Committed: https://git.openstack.org/cgit/openstack/oslo.middleware/commit/?id=fed29257358f990dd91eccd9be08e4cbcea53dca
Submitter: Jenkins
Branch: master

commit fed29257358f990dd91eccd9be08e4cbcea53dca
Author: ChangBo Guo(gcb) <email address hidden>
Date: Wed Apr 5 23:12:13 2017 +0800

    Fix test_request_too_large_no_content_length failure

    Webob >=1.7.0 change its way to check if body is readable [1],
    The is_body_readable() method returns False now. request.content_length
    will be set when set request.body automatically, and if
    request.context_length is None request.body will return returns b''.[3]
    So just set request.body in test.

    [1] https://github.com/Pylons/webob/commit/0e6fcbfbc58af6fdd4e125543bf8f5fb91b984c6
    [2] https://github.com/Pylons/webob/blame/master/webob/request.py#L699
    [3] https://github.com/Pylons/webob/blame/master/webob/request.py#L692

    Closes-Bug: #1679658

    Change-Id: I4e0932dd8664d96b2733c5d3b1fa846af0c7d132