Source: python-flask-jwt-extended
Version: 3.24.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> =========================== short test summary info 
> ============================
> FAILED tests/test_asymmetric_crypto.py::test_asymmetric_cropto - 
> AttributeErr...
> FAILED 
> tests/test_blacklist.py::test_non_blacklisted_access_token[blacklist_type0]
> FAILED 
> tests/test_blacklist.py::test_non_blacklisted_access_token[blacklist_type1]
> FAILED tests/test_blacklist.py::test_blacklisted_access_token[blacklist_type0]
> FAILED tests/test_blacklist.py::test_blacklisted_access_token[blacklist_type1]
> FAILED 
> tests/test_blacklist.py::test_non_blacklisted_refresh_token[blacklist_type0]
> FAILED 
> tests/test_blacklist.py::test_non_blacklisted_refresh_token[blacklist_type1]
> FAILED 
> tests/test_blacklist.py::test_blacklisted_refresh_token[blacklist_type0]
> FAILED 
> tests/test_blacklist.py::test_blacklisted_refresh_token[blacklist_type1]
> FAILED tests/test_blacklist.py::test_no_blacklist_callback_method_provided - 
> ...
> FAILED tests/test_blacklist.py::test_revoked_token_of_different_type - 
> Attrib...
> FAILED tests/test_blacklist.py::test_custom_blacklisted_message - 
> AttributeEr...
> FAILED 
> tests/test_claims_verification.py::test_successful_claims_validation[/protected1]
> FAILED 
> tests/test_claims_verification.py::test_successful_claims_validation[/protected2]
> FAILED 
> tests/test_claims_verification.py::test_successful_claims_validation[/protected3]
> FAILED 
> tests/test_claims_verification.py::test_unsuccessful_claims_validation[/protected1]
> FAILED 
> tests/test_claims_verification.py::test_unsuccessful_claims_validation[/protected2]
> FAILED 
> tests/test_claims_verification.py::test_unsuccessful_claims_validation[/protected3]
> FAILED 
> tests/test_claims_verification.py::test_claims_validation_custom_error[/protected1]
> FAILED 
> tests/test_claims_verification.py::test_claims_validation_custom_error[/protected2]
> FAILED 
> tests/test_claims_verification.py::test_claims_validation_custom_error[/protected3]
> FAILED 
> tests/test_claims_verification.py::test_get_jwt_identity_in_verification_method[/protected1]
> FAILED 
> tests/test_claims_verification.py::test_get_jwt_identity_in_verification_method[/protected2]
> FAILED 
> tests/test_claims_verification.py::test_get_jwt_identity_in_verification_method[/protected3]
> FAILED tests/test_cookies.py::test_jwt_refresh_required_with_cookies[options0]
> FAILED tests/test_cookies.py::test_jwt_refresh_required_with_cookies[options1]
> FAILED tests/test_cookies.py::test_default_access_csrf_protection[options0]
> FAILED tests/test_cookies.py::test_default_access_csrf_protection[options1]
> FAILED tests/test_cookies.py::test_non_matching_csrf_token[options0] - 
> assert...
> FAILED tests/test_cookies.py::test_non_matching_csrf_token[options1] - 
> assert...
> FAILED tests/test_cookies.py::test_csrf_disabled[options0] - assert 401 == 200
> FAILED tests/test_cookies.py::test_csrf_disabled[options1] - assert 401 == 200
> FAILED tests/test_cookies.py::test_csrf_with_custom_header_names[options0] - 
> ...
> FAILED tests/test_cookies.py::test_csrf_with_custom_header_names[options1] - 
> ...
> FAILED tests/test_cookies.py::test_csrf_with_default_form_field[options0] - 
> T...
> FAILED tests/test_cookies.py::test_csrf_with_default_form_field[options1] - 
> T...
> FAILED tests/test_cookies.py::test_csrf_with_custom_form_field[options0] - 
> Ty...
> FAILED tests/test_cookies.py::test_csrf_with_custom_form_field[options1] - 
> Ty...
> FAILED tests/test_cookies.py::test_custom_csrf_methods[options0] - 
> TypeError:...
> FAILED tests/test_cookies.py::test_custom_csrf_methods[options1] - 
> TypeError:...
> FAILED tests/test_cookies.py::test_default_cookie_options - assert 0 == 2
> FAILED tests/test_cookies.py::test_custom_cookie_options - assert 0 == 2
> FAILED tests/test_cookies.py::test_custom_cookie_names_and_paths - assert 0 
> == 2
> FAILED tests/test_cookies.py::test_csrf_token_not_in_cookie - assert 0 == 1
> FAILED tests/test_cookies.py::test_cookies_without_csrf - assert 0 == 1
> FAILED tests/test_cookies.py::test_jwt_optional_with_csrf_enabled - 
> TypeError...
> FAILED tests/test_decode_tokens.py::test_no_user_claims[user_loader_return0]
> FAILED tests/test_decode_tokens.py::test_no_user_claims[None] - 
> AttributeErro...
> FAILED tests/test_decode_tokens.py::test_missing_claims[identity] - 
> Attribute...
> FAILED tests/test_decode_tokens.py::test_missing_claims[csrf] - 
> AttributeErro...
> FAILED tests/test_decode_tokens.py::test_default_decode_token_values - 
> Attrib...
> FAILED tests/test_decode_tokens.py::test_bad_token_type - AttributeError: 
> 'st...
> FAILED tests/test_decode_tokens.py::test_expired_token[timedelta] - 
> Attribute...
> FAILED tests/test_decode_tokens.py::test_expired_token[relativedelta] - 
> Attri...
> FAILED tests/test_decode_tokens.py::test_allow_expired_token[timedelta] - 
> Att...
> FAILED tests/test_decode_tokens.py::test_allow_expired_token[relativedelta]
> FAILED tests/test_decode_tokens.py::test_never_expire_token - 
> AttributeError:...
> FAILED tests/test_decode_tokens.py::test_nbf_token_in_future - 
> AttributeError...
> FAILED tests/test_decode_tokens.py::test_alternate_identity_claim - 
> Attribute...
> FAILED tests/test_decode_tokens.py::test_get_jti - AttributeError: 'str' 
> obje...
> FAILED tests/test_decode_tokens.py::test_legacy_decode_key_callback - 
> Attribu...
> FAILED tests/test_decode_tokens.py::test_custom_encode_decode_key_callbacks
> FAILED tests/test_decode_tokens.py::test_valid_aud[foo] - AttributeError: 
> 'st...
> FAILED tests/test_decode_tokens.py::test_valid_aud[token_aud1] - 
> AttributeErr...
> FAILED tests/test_decode_tokens.py::test_valid_aud[token_aud2] - 
> AttributeErr...
> FAILED tests/test_decode_tokens.py::test_invalid_aud[bar] - AttributeError: 
> '...
> FAILED tests/test_decode_tokens.py::test_invalid_aud[token_aud1] - 
> AttributeE...
> FAILED tests/test_decode_tokens.py::test_invalid_aud[token_aud2] - 
> AttributeE...
> FAILED tests/test_decode_tokens.py::test_valid_iss - AttributeError: 'str' 
> ob...
> FAILED tests/test_decode_tokens.py::test_invalid_iss - AttributeError: 'str' 
> ...
> FAILED tests/test_decode_tokens.py::test_jwt_headers - AttributeError: 'str' 
> ...
> FAILED tests/test_headers.py::test_default_headers - AttributeError: 'str' 
> ob...
> FAILED tests/test_headers.py::test_custom_header_name - AttributeError: 
> 'str'...
> FAILED tests/test_headers.py::test_custom_header_type - AttributeError: 
> 'str'...
> FAILED tests/test_json.py::test_content_type - AttributeError: 'str' object 
> h...
> FAILED tests/test_json.py::test_custom_body_key - AttributeError: 'str' 
> objec...
> FAILED tests/test_json.py::test_defaults - AttributeError: 'str' object has 
> n...
> FAILED tests/test_jwt_header_loader.py::test_jwt_headers_in_access_token - 
> At...
> FAILED tests/test_jwt_header_loader.py::test_jwt_headers_in_refresh_token - 
> A...
> FAILED 
> tests/test_jwt_header_loader.py::test_jwt_header_in_refresh_token_specified_at_creation
> FAILED 
> tests/test_jwt_header_loader.py::test_jwt_header_in_access_token_specified_at_creation
> FAILED 
> tests/test_jwt_header_loader.py::test_jwt_header_in_access_token_specified_at_creation_override
> FAILED 
> tests/test_jwt_header_loader.py::test_jwt_header_in_refresh_token_specified_at_creation_override
> FAILED tests/test_multiple_token_locations.py::test_header_access - 
> Attribute...
> FAILED tests/test_multiple_token_locations.py::test_cookie_access - assert 
> 40...
> FAILED tests/test_multiple_token_locations.py::test_query_string_access - 
> Att...
> FAILED tests/test_multiple_token_locations.py::test_json_access - 
> AttributeEr...
> FAILED 
> tests/test_multiple_token_locations.py::test_order_of_jwt_locations_in_request[options0]
> FAILED 
> tests/test_multiple_token_locations.py::test_order_of_jwt_locations_in_request[options1]
> FAILED 
> tests/test_multiple_token_locations.py::test_order_of_jwt_locations_with_one_invalid_token_in_request[options0]
> FAILED 
> tests/test_multiple_token_locations.py::test_order_of_jwt_locations_with_one_invalid_token_in_request[options1]
> FAILED tests/test_query_string.py::test_default_query_paramater - 
> AttributeEr...
> FAILED tests/test_query_string.py::test_custom_query_paramater - 
> AttributeErr...
> FAILED tests/test_query_string.py::test_missing_query_paramater - 
> AttributeEr...
> FAILED tests/test_user_claims_loader.py::test_user_claim_in_access_token - 
> At...
> FAILED tests/test_user_claims_loader.py::test_token_from_complex_object - 
> Att...
> FAILED tests/test_user_claims_loader.py::test_user_claims_with_different_name
> FAILED tests/test_user_claims_loader.py::test_user_claim_not_in_refresh_token
> FAILED tests/test_user_claims_loader.py::test_user_claim_in_refresh_token - 
> A...
> FAILED 
> tests/test_user_claims_loader.py::test_user_claim_in_refresh_token_specified_at_creation
> FAILED 
> tests/test_user_claims_loader.py::test_user_claims_in_access_token_specified_at_creation
> FAILED 
> tests/test_user_claims_loader.py::test_user_claims_in_access_token_specified_at_creation_override
> FAILED tests/test_user_loader.py::test_load_valid_user[/get_user1] - 
> Attribut...
> FAILED tests/test_user_loader.py::test_load_valid_user[/get_user2] - 
> Attribut...
> FAILED tests/test_user_loader.py::test_load_invalid_user[/get_user1] - 
> Attrib...
> FAILED tests/test_user_loader.py::test_load_invalid_user[/get_user2] - 
> Attrib...
> FAILED tests/test_user_loader.py::test_custom_user_loader_errors[/get_user1]
> FAILED tests/test_user_loader.py::test_custom_user_loader_errors[/get_user2]
> FAILED tests/test_view_decorators.py::test_jwt_required - AttributeError: 
> 'st...
> FAILED tests/test_view_decorators.py::test_fresh_jwt_required - 
> AttributeErro...
> FAILED tests/test_view_decorators.py::test_refresh_jwt_required - 
> AttributeEr...
> FAILED tests/test_view_decorators.py::test_jwt_optional[timedelta] - 
> Attribut...
> FAILED tests/test_view_decorators.py::test_jwt_optional[relativedelta] - 
> Attr...
> FAILED tests/test_view_decorators.py::test_jwt_missing_claims - 
> AttributeErro...
> FAILED tests/test_view_decorators.py::test_jwt_invalid_audience - 
> AttributeEr...
> FAILED tests/test_view_decorators.py::test_jwt_invalid_issuer - 
> AttributeErro...
> FAILED tests/test_view_decorators.py::test_expired_token[timedelta] - 
> Attribu...
> FAILED tests/test_view_decorators.py::test_expired_token[relativedelta] - 
> Att...
> FAILED tests/test_view_decorators.py::test_expired_token_via_decode_token - 
> A...
> FAILED tests/test_view_decorators.py::test_different_token_algorightm - 
> Attri...
> ======================== 120 failed, 30 passed in 2.15s 
> ========================
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_python-flask-jwt-extended/build; 
> python3.9 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/python-flask-jwt-extended_3.24.1-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to