Bugzilla – Bug 1217255
python-flask-jwt-extended fails to build due to many failed tests in testsuite
Last modified: 2023-11-29 12:38:57 UTC
Hello python-flask-jwt-extended does not build on Leap 15.6. This should be fixed before Beta (Feb 2023). https://en.opensuse.org/openSUSE:Roadmap#Schedule_for_openSUSE_Leap_15.6 Build log from Leap 15.6 https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/python-flask-jwt-extended/standard/x86_64 [ 27s] -- Docs: https://docs.pytest.org/en/latest/warnings.html [ 27s] =========================== short test summary info ============================ [ 27s] FAILED tests/test_asymmetric_crypto.py::test_asymmetric_cropto - AttributeErr... [ 27s] FAILED tests/test_blacklist.py::test_non_blacklisted_access_token[blacklist_type0] [ 27s] FAILED tests/test_blacklist.py::test_non_blacklisted_access_token[blacklist_type1] [ 27s] FAILED tests/test_blacklist.py::test_blacklisted_access_token[blacklist_type0] [ 27s] FAILED tests/test_blacklist.py::test_blacklisted_access_token[blacklist_type1] [ 27s] FAILED tests/test_blacklist.py::test_non_blacklisted_refresh_token[blacklist_type0] [ 27s] FAILED tests/test_blacklist.py::test_non_blacklisted_refresh_token[blacklist_type1] [ 27s] FAILED tests/test_blacklist.py::test_blacklisted_refresh_token[blacklist_type0] [ 27s] FAILED tests/test_blacklist.py::test_blacklisted_refresh_token[blacklist_type1] [ 27s] FAILED tests/test_blacklist.py::test_no_blacklist_callback_method_provided - ... [ 27s] FAILED tests/test_blacklist.py::test_revoked_token_of_different_type - Attrib... [ 27s] FAILED tests/test_blacklist.py::test_custom_blacklisted_message - AttributeEr... [ 27s] FAILED tests/test_claims_verification.py::test_successful_claims_validation[/protected1] [ 27s] FAILED tests/test_claims_verification.py::test_successful_claims_validation[/protected2] [ 27s] FAILED tests/test_claims_verification.py::test_successful_claims_validation[/protected3] [ 27s] FAILED tests/test_claims_verification.py::test_unsuccessful_claims_validation[/protected1] [ 27s] FAILED tests/test_claims_verification.py::test_unsuccessful_claims_validation[/protected2] [ 27s] FAILED tests/test_claims_verification.py::test_unsuccessful_claims_validation[/protected3] [ 27s] FAILED tests/test_claims_verification.py::test_claims_validation_custom_error[/protected1] [ 27s] FAILED tests/test_claims_verification.py::test_claims_validation_custom_error[/protected2] [ 27s] FAILED tests/test_claims_verification.py::test_claims_validation_custom_error[/protected3] [ 27s] FAILED tests/test_claims_verification.py::test_get_jwt_identity_in_verification_method[/protected1] [ 27s] FAILED tests/test_claims_verification.py::test_get_jwt_identity_in_verification_method[/protected2] [ 27s] FAILED tests/test_claims_verification.py::test_get_jwt_identity_in_verification_method[/protected3] [ 27s] FAILED tests/test_cookies.py::test_jwt_refresh_required_with_cookies[options0] [ 27s] FAILED tests/test_cookies.py::test_jwt_refresh_required_with_cookies[options1] [ 27s] FAILED tests/test_cookies.py::test_default_access_csrf_protection[options0] [ 27s] FAILED tests/test_cookies.py::test_default_access_csrf_protection[options1] [ 27s] FAILED tests/test_cookies.py::test_non_matching_csrf_token[options0] - assert... [ 27s] FAILED tests/test_cookies.py::test_non_matching_csrf_token[options1] - assert... [ 27s] FAILED tests/test_cookies.py::test_csrf_disabled[options0] - assert 401 == 200 [ 27s] FAILED tests/test_cookies.py::test_csrf_disabled[options1] - assert 401 == 200 [ 27s] FAILED tests/test_cookies.py::test_csrf_with_custom_header_names[options0] - ... [ 27s] FAILED tests/test_cookies.py::test_csrf_with_custom_header_names[options1] - ... [ 27s] FAILED tests/test_cookies.py::test_csrf_with_default_form_field[options0] - T... [ 27s] FAILED tests/test_cookies.py::test_csrf_with_default_form_field[options1] - T... [ 27s] FAILED tests/test_cookies.py::test_csrf_with_custom_form_field[options0] - Ty... [ 27s] FAILED tests/test_cookies.py::test_csrf_with_custom_form_field[options1] - Ty... [ 27s] FAILED tests/test_cookies.py::test_custom_csrf_methods[options0] - TypeError:... [ 27s] FAILED tests/test_cookies.py::test_custom_csrf_methods[options1] - TypeError:... [ 27s] FAILED tests/test_cookies.py::test_default_cookie_options - assert 0 == 2 [ 27s] FAILED tests/test_cookies.py::test_custom_cookie_options - assert 0 == 2 [ 27s] FAILED tests/test_cookies.py::test_custom_cookie_names_and_paths - assert 0 == 2 [ 27s] FAILED tests/test_cookies.py::test_csrf_token_not_in_cookie - assert 0 == 1 [ 27s] FAILED tests/test_cookies.py::test_cookies_without_csrf - assert 0 == 1 [ 27s] FAILED tests/test_cookies.py::test_jwt_optional_with_csrf_enabled - TypeError... [ 27s] FAILED tests/test_decode_tokens.py::test_no_user_claims[user_loader_return0] [ 27s] FAILED tests/test_decode_tokens.py::test_no_user_claims[None] - AttributeErro... [ 27s] FAILED tests/test_decode_tokens.py::test_missing_claims[identity] - Attribute... [ 27s] FAILED tests/test_decode_tokens.py::test_missing_claims[csrf] - AttributeErro... [ 27s] FAILED tests/test_decode_tokens.py::test_default_decode_token_values - Attrib... [ 27s] FAILED tests/test_decode_tokens.py::test_bad_token_type - AttributeError: 'st... [ 27s] FAILED tests/test_decode_tokens.py::test_expired_token[timedelta] - Attribute... [ 27s] FAILED tests/test_decode_tokens.py::test_expired_token[relativedelta] - Attri... [ 27s] FAILED tests/test_decode_tokens.py::test_allow_expired_token[timedelta] - Att... [ 27s] FAILED tests/test_decode_tokens.py::test_allow_expired_token[relativedelta] [ 27s] FAILED tests/test_decode_tokens.py::test_never_expire_token - AttributeError:... [ 27s] FAILED tests/test_decode_tokens.py::test_nbf_token_in_future - AttributeError... [ 27s] FAILED tests/test_decode_tokens.py::test_alternate_identity_claim - Attribute... [ 27s] FAILED tests/test_decode_tokens.py::test_get_jti - AttributeError: 'str' obje... [ 27s] FAILED tests/test_decode_tokens.py::test_legacy_decode_key_callback - Attribu... [ 27s] FAILED tests/test_decode_tokens.py::test_custom_encode_decode_key_callbacks [ 27s] FAILED tests/test_decode_tokens.py::test_valid_aud[foo] - AttributeError: 'st... [ 27s] FAILED tests/test_decode_tokens.py::test_valid_aud[token_aud1] - AttributeErr... [ 27s] FAILED tests/test_decode_tokens.py::test_valid_aud[token_aud2] - AttributeErr... [ 27s] FAILED tests/test_decode_tokens.py::test_invalid_aud[bar] - AttributeError: '... [ 27s] FAILED tests/test_decode_tokens.py::test_invalid_aud[token_aud1] - AttributeE... [ 27s] FAILED tests/test_decode_tokens.py::test_invalid_aud[token_aud2] - AttributeE... [ 27s] FAILED tests/test_decode_tokens.py::test_valid_iss - AttributeError: 'str' ob... [ 27s] FAILED tests/test_decode_tokens.py::test_invalid_iss - AttributeError: 'str' ... [ 27s] FAILED tests/test_decode_tokens.py::test_jwt_headers - AttributeError: 'str' ... [ 27s] FAILED tests/test_headers.py::test_default_headers - AttributeError: 'str' ob... [ 27s] FAILED tests/test_headers.py::test_custom_header_name - AttributeError: 'str'... [ 27s] FAILED tests/test_headers.py::test_custom_header_type - AttributeError: 'str'... [ 27s] FAILED tests/test_json.py::test_content_type - AttributeError: 'str' object h... [ 27s] FAILED tests/test_json.py::test_custom_body_key - AttributeError: 'str' objec... [ 27s] FAILED tests/test_json.py::test_defaults - AttributeError: 'str' object has n... [ 27s] FAILED tests/test_jwt_header_loader.py::test_jwt_headers_in_access_token - At... [ 27s] FAILED tests/test_jwt_header_loader.py::test_non_serializable_user_claims - A... [ 27s] FAILED tests/test_jwt_header_loader.py::test_jwt_headers_in_refresh_token - A... [ 27s] FAILED tests/test_jwt_header_loader.py::test_jwt_header_in_refresh_token_specified_at_creation [ 27s] FAILED tests/test_jwt_header_loader.py::test_jwt_header_in_access_token_specified_at_creation [ 27s] FAILED tests/test_jwt_header_loader.py::test_jwt_header_in_access_token_specified_at_creation_override [ 27s] FAILED tests/test_jwt_header_loader.py::test_jwt_header_in_refresh_token_specified_at_creation_override [ 27s] FAILED tests/test_multiple_token_locations.py::test_header_access - Attribute... [ 27s] FAILED tests/test_multiple_token_locations.py::test_cookie_access - assert 40... [ 27s] FAILED tests/test_multiple_token_locations.py::test_query_string_access - Att... [ 27s] FAILED tests/test_multiple_token_locations.py::test_json_access - AttributeEr... [ 27s] FAILED tests/test_multiple_token_locations.py::test_order_of_jwt_locations_in_request[options0] [ 27s] FAILED tests/test_multiple_token_locations.py::test_order_of_jwt_locations_in_request[options1] [ 27s] FAILED tests/test_multiple_token_locations.py::test_order_of_jwt_locations_with_one_invalid_token_in_request[options0] [ 27s] FAILED tests/test_multiple_token_locations.py::test_order_of_jwt_locations_with_one_invalid_token_in_request[options1] [ 27s] FAILED tests/test_query_string.py::test_default_query_paramater - AttributeEr... [ 27s] FAILED tests/test_query_string.py::test_custom_query_paramater - AttributeErr... [ 27s] FAILED tests/test_query_string.py::test_missing_query_paramater - AttributeEr... [ 27s] FAILED tests/test_user_claims_loader.py::test_user_claim_in_access_token - At... [ 27s] FAILED tests/test_user_claims_loader.py::test_token_from_complex_object - Att... [ 27s] FAILED tests/test_user_claims_loader.py::test_user_claims_with_different_name [ 27s] FAILED tests/test_user_claims_loader.py::test_user_claim_not_in_refresh_token [ 27s] FAILED tests/test_user_claims_loader.py::test_user_claim_in_refresh_token - A... [ 27s] FAILED tests/test_user_claims_loader.py::test_user_claim_in_refresh_token_specified_at_creation [ 27s] FAILED tests/test_user_claims_loader.py::test_user_claims_in_access_token_specified_at_creation [ 27s] FAILED tests/test_user_claims_loader.py::test_user_claims_in_access_token_specified_at_creation_override [ 27s] FAILED tests/test_user_loader.py::test_load_valid_user[/get_user1] - Attribut... [ 27s] FAILED tests/test_user_loader.py::test_load_valid_user[/get_user2] - Attribut... [ 27s] FAILED tests/test_user_loader.py::test_load_invalid_user[/get_user1] - Attrib... [ 27s] FAILED tests/test_user_loader.py::test_load_invalid_user[/get_user2] - Attrib... [ 27s] FAILED tests/test_user_loader.py::test_custom_user_loader_errors[/get_user1] [ 27s] FAILED tests/test_user_loader.py::test_custom_user_loader_errors[/get_user2] [ 27s] FAILED tests/test_view_decorators.py::test_jwt_required - AttributeError: 'st... [ 27s] FAILED tests/test_view_decorators.py::test_fresh_jwt_required - AttributeErro... [ 27s] FAILED tests/test_view_decorators.py::test_refresh_jwt_required - AttributeEr... [ 27s] FAILED tests/test_view_decorators.py::test_jwt_optional[timedelta] - Attribut... [ 27s] FAILED tests/test_view_decorators.py::test_jwt_optional[relativedelta] - Attr... [ 27s] FAILED tests/test_view_decorators.py::test_jwt_missing_claims - AttributeErro... [ 27s] FAILED tests/test_view_decorators.py::test_jwt_invalid_audience - AttributeEr... [ 27s] FAILED tests/test_view_decorators.py::test_jwt_invalid_issuer - AttributeErro... [ 27s] FAILED tests/test_view_decorators.py::test_expired_token[timedelta] - Attribu... [ 27s] FAILED tests/test_view_decorators.py::test_expired_token[relativedelta] - Att... [ 27s] FAILED tests/test_view_decorators.py::test_expired_token_via_decode_token - A... [ 27s] FAILED tests/test_view_decorators.py::test_different_token_algorightm - Attri... [ 27s] ================== 121 failed, 29 passed, 4 warnings in 3.33s ================== [ 27s] error: Bad exit status from /var/tmp/rpm-tmp.OWILeU (%check) [ 27s]
Fix sent here: https://build.opensuse.org/request/show/1128512
It's building correctly now.