Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-jwt.spec'], chrootPath='/var/lib/mock/dist-ocs23-python311-build-86992-4752/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-jwt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-jwt-2.3.0-5.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-jwt.spec'], chrootPath='/var/lib/mock/dist-ocs23-python311-build-86992-4752/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-jwt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FqBol8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PyJWT-2.3.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/PyJWT-2.3.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd PyJWT-2.3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf PyJWT.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gXoamJ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd PyJWT-2.3.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/jwt copying jwt/algorithms.py -> build/lib/jwt copying jwt/api_jws.py -> build/lib/jwt copying jwt/api_jwk.py -> build/lib/jwt copying jwt/utils.py -> build/lib/jwt copying jwt/__init__.py -> build/lib/jwt copying jwt/api_jwt.py -> build/lib/jwt copying jwt/exceptions.py -> build/lib/jwt copying jwt/help.py -> build/lib/jwt copying jwt/jwks_client.py -> build/lib/jwt running egg_info creating PyJWT.egg-info writing PyJWT.egg-info/PKG-INFO writing dependency_links to PyJWT.egg-info/dependency_links.txt writing requirements to PyJWT.egg-info/requires.txt writing top-level names to PyJWT.egg-info/top_level.txt writing manifest file 'PyJWT.egg-info/SOURCES.txt' reading manifest file 'PyJWT.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no previously-included files matching '__pycache__' found under directory '*' adding license file 'LICENSE' adding license file 'AUTHORS.rst' writing manifest file 'PyJWT.egg-info/SOURCES.txt' copying jwt/py.typed -> build/lib/jwt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.79CMKS + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch ++ dirname /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch + cd PyJWT-2.3.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch running install /usr/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr creating /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib creating /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11 creating /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt copying build/lib/jwt/algorithms.py -> /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt copying build/lib/jwt/api_jws.py -> /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt copying build/lib/jwt/api_jwk.py -> /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt copying build/lib/jwt/utils.py -> /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt copying build/lib/jwt/__init__.py -> /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt copying build/lib/jwt/py.typed -> /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt copying build/lib/jwt/api_jwt.py -> /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt copying build/lib/jwt/exceptions.py -> /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt copying build/lib/jwt/help.py -> /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt copying build/lib/jwt/jwks_client.py -> /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt byte-compiling /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt/algorithms.py to algorithms.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt/api_jws.py to api_jws.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt/api_jwk.py to api_jwk.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt/utils.py to utils.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt/api_jwt.py to api_jwt.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt/exceptions.py to exceptions.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt/help.py to help.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/jwt/jwks_client.py to jwks_client.cpython-311.pyc writing byte-compilation script '/tmp/tmpg1e0oj63.py' /usr/bin/python3 /tmp/tmpg1e0oj63.py removing /tmp/tmpg1e0oj63.py running install_egg_info running egg_info writing PyJWT.egg-info/PKG-INFO writing dependency_links to PyJWT.egg-info/dependency_links.txt writing requirements to PyJWT.egg-info/requires.txt writing top-level names to PyJWT.egg-info/top_level.txt reading manifest file 'PyJWT.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no previously-included files matching '__pycache__' found under directory '*' adding license file 'LICENSE' adding license file 'AUTHORS.rst' writing manifest file 'PyJWT.egg-info/SOURCES.txt' Copying PyJWT.egg-info to /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages/PyJWT-2.3.0-py3.11.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 2.3.0-5.ocs23 --unique-debug-suffix -2.3.0-5.ocs23.noarch --unique-debug-src-base python-jwt-2.3.0-5.ocs23.noarch -S debugsourcefiles.list /builddir/build/BUILD/PyJWT-2.3.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.t4qrAQ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd PyJWT-2.3.0 + PYTHONPATH=/builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/lib/python3.11/site-packages + py.test-3.11 --verbose tests ============================= test session starts ============================== platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.0.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/PyJWT-2.3.0 configfile: tox.ini collecting ... collected 211 items tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_prepare_key_not_impl PASSED [ 0%] tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_sign_not_impl PASSED [ 0%] tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_verify_not_impl PASSED [ 1%] tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_to_jwk_not_impl PASSED [ 1%] tests/test_algorithms.py::TestAlgorithms::test_algorithm_should_throw_exception_if_from_jwk_not_impl PASSED [ 2%] tests/test_algorithms.py::TestAlgorithms::test_none_algorithm_should_throw_exception_if_key_is_not_none PASSED [ 2%] tests/test_algorithms.py::TestAlgorithms::test_hmac_should_reject_nonstring_key PASSED [ 3%] tests/test_algorithms.py::TestAlgorithms::test_hmac_should_accept_unicode_key PASSED [ 3%] tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception[testkey2_rsa.pub.pem0] PASSED [ 4%] tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception[testkey2_rsa.pub.pem1] PASSED [ 4%] tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception[testkey_pkcs1.pub.pem] PASSED [ 5%] tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception[testkey_rsa.cer] PASSED [ 5%] tests/test_algorithms.py::TestAlgorithms::test_hmac_should_throw_exception[testkey_rsa.pub] PASSED [ 6%] tests/test_algorithms.py::TestAlgorithms::test_hmac_jwk_should_parse_and_verify PASSED [ 6%] tests/test_algorithms.py::TestAlgorithms::test_hmac_to_jwk_returns_correct_values PASSED [ 7%] tests/test_algorithms.py::TestAlgorithms::test_hmac_from_jwk_should_raise_exception_if_not_hmac_key PASSED [ 7%] tests/test_algorithms.py::TestAlgorithms::test_rsa_should_parse_pem_public_key PASSED [ 8%] tests/test_algorithms.py::TestAlgorithms::test_rsa_should_accept_pem_private_key_bytes PASSED [ 8%] tests/test_algorithms.py::TestAlgorithms::test_rsa_should_accept_unicode_key PASSED [ 9%] tests/test_algorithms.py::TestAlgorithms::test_rsa_should_reject_non_string_key PASSED [ 9%] tests/test_algorithms.py::TestAlgorithms::test_rsa_verify_should_return_false_if_signature_invalid PASSED [ 9%] tests/test_algorithms.py::TestAlgorithms::test_ec_jwk_public_and_private_keys_should_parse_and_verify PASSED [ 10%] tests/test_algorithms.py::TestAlgorithms::test_ec_jwk_fails_on_invalid_json PASSED [ 10%] tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_public_and_private_keys_should_parse_and_verify PASSED [ 11%] tests/test_algorithms.py::TestAlgorithms::test_rsa_private_key_to_jwk_works_with_from_jwk PASSED [ 11%] tests/test_algorithms.py::TestAlgorithms::test_rsa_public_key_to_jwk_works_with_from_jwk PASSED [ 12%] tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_with_other_primes_is_invalid PASSED [ 12%] tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_with_missing_values_is_invalid PASSED [ 13%] tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_can_recover_prime_factors PASSED [ 13%] tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_private_key_with_missing_required_values_is_invalid PASSED [ 14%] tests/test_algorithms.py::TestAlgorithms::test_rsa_jwk_raises_exception_if_not_a_valid_key PASSED [ 14%] tests/test_algorithms.py::TestAlgorithms::test_rsa_to_jwk_returns_correct_values_for_public_key PASSED [ 15%] tests/test_algorithms.py::TestAlgorithms::test_rsa_to_jwk_returns_correct_values_for_private_key PASSED [ 15%] tests/test_algorithms.py::TestAlgorithms::test_rsa_to_jwk_raises_exception_on_invalid_key PASSED [ 16%] tests/test_algorithms.py::TestAlgorithms::test_rsa_from_jwk_raises_exception_on_invalid_key PASSED [ 16%] tests/test_algorithms.py::TestAlgorithms::test_ec_should_reject_non_string_key PASSED [ 17%] tests/test_algorithms.py::TestAlgorithms::test_ec_should_accept_pem_private_key_bytes PASSED [ 17%] tests/test_algorithms.py::TestAlgorithms::test_ec_should_accept_ssh_public_key_bytes PASSED [ 18%] tests/test_algorithms.py::TestAlgorithms::test_ec_verify_should_return_false_if_signature_invalid PASSED [ 18%] tests/test_algorithms.py::TestAlgorithms::test_ec_verify_should_return_false_if_signature_wrong_length PASSED [ 18%] tests/test_algorithms.py::TestAlgorithms::test_rsa_pss_sign_then_verify_should_return_true PASSED [ 19%] tests/test_algorithms.py::TestAlgorithms::test_rsa_pss_verify_should_return_false_if_signature_invalid PASSED [ 19%] tests/test_algorithms.py::TestAlgorithmsRFC7520::test_hmac_verify_should_return_true_for_test_vector PASSED [ 20%] tests/test_algorithms.py::TestAlgorithmsRFC7520::test_rsa_verify_should_return_true_for_test_vector PASSED [ 20%] tests/test_algorithms.py::TestAlgorithmsRFC7520::test_rsapss_verify_should_return_true_for_test_vector PASSED [ 21%] tests/test_algorithms.py::TestAlgorithmsRFC7520::test_ec_verify_should_return_true_for_test_vector PASSED [ 21%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_should_reject_non_string_key PASSED [ 22%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_should_accept_unicode_key PASSED [ 22%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_sign_should_generate_correct_signature_value PASSED [ 23%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_verify_should_return_false_if_signature_invalid PASSED [ 23%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_verify_should_return_true_if_signature_valid PASSED [ 24%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_prepare_key_should_be_idempotent PASSED [ 24%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_jwk_private_key_should_parse_and_verify PASSED [ 25%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_jwk_private_key_should_parse_and_verify_with_private_key_as_is PASSED [ 25%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_jwk_public_key_should_parse_and_verify PASSED [ 26%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_jwk_fails_on_invalid_json PASSED [ 26%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed25519_to_jwk_works_with_from_jwk PASSED [ 27%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_to_jwk_raises_exception_on_invalid_key PASSED [ 27%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed448_jwk_private_key_should_parse_and_verify PASSED [ 27%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed448_jwk_private_key_should_parse_and_verify_with_private_key_as_is PASSED [ 28%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed448_jwk_public_key_should_parse_and_verify PASSED [ 28%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed448_jwk_fails_on_invalid_json PASSED [ 29%] tests/test_algorithms.py::TestOKPAlgorithms::test_okp_ed448_to_jwk_works_with_from_jwk PASSED [ 29%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_from_jwk_data_dict PASSED [ 30%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_from_jwk_data_json_string PASSED [ 30%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_without_alg_from_dict PASSED [ 31%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_from_dict_with_algorithm PASSED [ 31%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_ec_p256_from_dict PASSED [ 32%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_ec_p384_from_dict PASSED [ 32%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_ec_p521_from_dict PASSED [ 33%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_ec_secp256k1_from_dict PASSED [ 33%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_hmac_from_dict PASSED [ 34%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_hmac_without_alg_from_dict PASSED [ 34%] tests/test_api_jwk.py::TestPyJWK::test_should_load_key_okp_without_alg_from_dict PASSED [ 35%] tests/test_api_jwk.py::TestPyJWK::test_from_dict_should_throw_exception_if_arg_is_invalid PASSED [ 35%] tests/test_api_jwk.py::TestPyJWKSet::test_should_load_keys_from_jwk_data_dict PASSED [ 36%] tests/test_api_jwk.py::TestPyJWKSet::test_should_load_keys_from_jwk_data_json_string PASSED [ 36%] tests/test_api_jws.py::TestJWS::test_register_algo_does_not_allow_duplicate_registration PASSED [ 36%] tests/test_api_jws.py::TestJWS::test_register_algo_rejects_non_algorithm_obj PASSED [ 37%] tests/test_api_jws.py::TestJWS::test_unregister_algo_removes_algorithm PASSED [ 37%] tests/test_api_jws.py::TestJWS::test_unregister_algo_throws_error_if_not_registered PASSED [ 38%] tests/test_api_jws.py::TestJWS::test_algo_parameter_removes_alg_from_algorithms_list PASSED [ 38%] tests/test_api_jws.py::TestJWS::test_override_options PASSED [ 39%] tests/test_api_jws.py::TestJWS::test_non_object_options_dont_persist PASSED [ 39%] tests/test_api_jws.py::TestJWS::test_options_must_be_dict PASSED [ 40%] tests/test_api_jws.py::TestJWS::test_encode_decode PASSED [ 40%] tests/test_api_jws.py::TestJWS::test_decode_fails_when_alg_is_not_on_method_algorithms_param PASSED [ 41%] tests/test_api_jws.py::TestJWS::test_decode_works_with_unicode_token PASSED [ 41%] tests/test_api_jws.py::TestJWS::test_decode_missing_segments_throws_exception PASSED [ 42%] tests/test_api_jws.py::TestJWS::test_decode_invalid_token_type_is_none PASSED [ 42%] tests/test_api_jws.py::TestJWS::test_decode_invalid_token_type_is_int PASSED [ 43%] tests/test_api_jws.py::TestJWS::test_decode_with_non_mapping_header_throws_exception PASSED [ 43%] tests/test_api_jws.py::TestJWS::test_encode_algorithm_param_should_be_case_sensitive PASSED [ 44%] tests/test_api_jws.py::TestJWS::test_encode_with_headers_alg_none PASSED [ 44%] tests/test_api_jws.py::TestJWS::test_encode_with_headers_alg_es256 PASSED [ 45%] tests/test_api_jws.py::TestJWS::test_encode_with_alg_hs256_and_headers_alg_es256 PASSED [ 45%] tests/test_api_jws.py::TestJWS::test_decode_algorithm_param_should_be_case_sensitive PASSED [ 45%] tests/test_api_jws.py::TestJWS::test_bad_secret PASSED [ 46%] tests/test_api_jws.py::TestJWS::test_decodes_valid_jws PASSED [ 46%] tests/test_api_jws.py::TestJWS::test_decodes_complete_valid_jws PASSED [ 47%] tests/test_api_jws.py::TestJWS::test_decodes_valid_es384_jws PASSED [ 47%] tests/test_api_jws.py::TestJWS::test_decodes_valid_rs384_jws PASSED [ 48%] tests/test_api_jws.py::TestJWS::test_load_verify_valid_jws PASSED [ 48%] tests/test_api_jws.py::TestJWS::test_allow_skip_verification PASSED [ 49%] tests/test_api_jws.py::TestJWS::test_decode_with_optional_algorithms PASSED [ 49%] tests/test_api_jws.py::TestJWS::test_decode_no_algorithms_verify_signature_false PASSED [ 50%] tests/test_api_jws.py::TestJWS::test_load_no_verification PASSED [ 50%] tests/test_api_jws.py::TestJWS::test_no_secret PASSED [ 51%] tests/test_api_jws.py::TestJWS::test_verify_signature_with_no_secret PASSED [ 51%] tests/test_api_jws.py::TestJWS::test_verify_signature_with_no_algo_header_throws_exception PASSED [ 52%] tests/test_api_jws.py::TestJWS::test_invalid_crypto_alg PASSED [ 52%] tests/test_api_jws.py::TestJWS::test_missing_crypto_library_better_error_messages SKIPPED [ 53%] tests/test_api_jws.py::TestJWS::test_unicode_secret PASSED [ 53%] tests/test_api_jws.py::TestJWS::test_nonascii_secret PASSED [ 54%] tests/test_api_jws.py::TestJWS::test_bytes_secret PASSED [ 54%] tests/test_api_jws.py::TestJWS::test_decode_invalid_header_padding PASSED [ 54%] tests/test_api_jws.py::TestJWS::test_decode_invalid_header_string PASSED [ 55%] tests/test_api_jws.py::TestJWS::test_decode_invalid_payload_padding PASSED [ 55%] tests/test_api_jws.py::TestJWS::test_decode_invalid_crypto_padding PASSED [ 56%] tests/test_api_jws.py::TestJWS::test_decode_with_algo_none_should_fail PASSED [ 56%] tests/test_api_jws.py::TestJWS::test_decode_with_algo_none_and_verify_false_should_pass PASSED [ 57%] tests/test_api_jws.py::TestJWS::test_get_unverified_header_returns_header_values PASSED [ 57%] tests/test_api_jws.py::TestJWS::test_get_unverified_header_fails_on_bad_header_types PASSED [ 58%] tests/test_api_jws.py::TestJWS::test_encode_decode_rsa_related_algorithms[RS256] PASSED [ 58%] tests/test_api_jws.py::TestJWS::test_encode_decode_rsa_related_algorithms[RS384] PASSED [ 59%] tests/test_api_jws.py::TestJWS::test_encode_decode_rsa_related_algorithms[RS512] PASSED [ 59%] tests/test_api_jws.py::TestJWS::test_rsa_related_algorithms PASSED [ 60%] tests/test_api_jws.py::TestJWS::test_encode_decode_ecdsa_related_algorithms[ES256] PASSED [ 60%] tests/test_api_jws.py::TestJWS::test_encode_decode_ecdsa_related_algorithms[ES256K] PASSED [ 61%] tests/test_api_jws.py::TestJWS::test_encode_decode_ecdsa_related_algorithms[ES384] PASSED [ 61%] tests/test_api_jws.py::TestJWS::test_encode_decode_ecdsa_related_algorithms[ES512] PASSED [ 62%] tests/test_api_jws.py::TestJWS::test_ecdsa_related_algorithms PASSED [ 62%] tests/test_api_jws.py::TestJWS::test_skip_check_signature PASSED [ 63%] tests/test_api_jws.py::TestJWS::test_decode_options_must_be_dict PASSED [ 63%] tests/test_api_jws.py::TestJWS::test_custom_json_encoder PASSED [ 63%] tests/test_api_jws.py::TestJWS::test_encode_headers_parameter_adds_headers PASSED [ 64%] tests/test_api_jws.py::TestJWS::test_encode_with_typ PASSED [ 64%] tests/test_api_jws.py::TestJWS::test_encode_with_typ_empty_string PASSED [ 65%] tests/test_api_jws.py::TestJWS::test_encode_with_typ_none PASSED [ 65%] tests/test_api_jws.py::TestJWS::test_encode_with_typ_without_keywords PASSED [ 66%] tests/test_api_jws.py::TestJWS::test_encode_fails_on_invalid_kid_types PASSED [ 66%] tests/test_api_jwt.py::TestJWT::test_decodes_valid_jwt PASSED [ 67%] tests/test_api_jwt.py::TestJWT::test_decodes_complete_valid_jwt PASSED [ 67%] tests/test_api_jwt.py::TestJWT::test_load_verify_valid_jwt PASSED [ 68%] tests/test_api_jwt.py::TestJWT::test_decode_invalid_payload_string PASSED [ 68%] tests/test_api_jwt.py::TestJWT::test_decode_with_non_mapping_payload_throws_exception PASSED [ 69%] tests/test_api_jwt.py::TestJWT::test_decode_with_invalid_audience_param_throws_exception PASSED [ 69%] tests/test_api_jwt.py::TestJWT::test_decode_with_nonlist_aud_claim_throws_exception PASSED [ 70%] tests/test_api_jwt.py::TestJWT::test_decode_with_invalid_aud_list_member_throws_exception PASSED [ 70%] tests/test_api_jwt.py::TestJWT::test_encode_bad_type PASSED [ 71%] tests/test_api_jwt.py::TestJWT::test_encode_with_typ PASSED [ 71%] tests/test_api_jwt.py::TestJWT::test_decode_raises_exception_if_exp_is_not_int PASSED [ 72%] tests/test_api_jwt.py::TestJWT::test_decode_raises_exception_if_iat_is_not_int PASSED [ 72%] tests/test_api_jwt.py::TestJWT::test_decode_raises_exception_if_nbf_is_not_int PASSED [ 72%] tests/test_api_jwt.py::TestJWT::test_decode_raises_exception_if_aud_is_none PASSED [ 73%] tests/test_api_jwt.py::TestJWT::test_encode_datetime PASSED [ 73%] tests/test_api_jwt.py::TestJWT::test_decodes_valid_es256_jwt PASSED [ 74%] tests/test_api_jwt.py::TestJWT::test_decodes_valid_rs384_jwt PASSED [ 74%] tests/test_api_jwt.py::TestJWT::test_decode_with_expiration PASSED [ 75%] tests/test_api_jwt.py::TestJWT::test_decode_with_notbefore PASSED [ 75%] tests/test_api_jwt.py::TestJWT::test_decode_skip_expiration_verification PASSED [ 76%] tests/test_api_jwt.py::TestJWT::test_decode_skip_notbefore_verification PASSED [ 76%] tests/test_api_jwt.py::TestJWT::test_decode_with_expiration_with_leeway PASSED [ 77%] tests/test_api_jwt.py::TestJWT::test_decode_with_notbefore_with_leeway PASSED [ 77%] tests/test_api_jwt.py::TestJWT::test_check_audience_when_valid PASSED [ 78%] tests/test_api_jwt.py::TestJWT::test_check_audience_list_when_valid PASSED [ 78%] tests/test_api_jwt.py::TestJWT::test_check_audience_none_specified PASSED [ 79%] tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_audience_list PASSED [ 79%] tests/test_api_jwt.py::TestJWT::test_check_audience_in_array_when_valid PASSED [ 80%] tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_audience PASSED [ 80%] tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_audience_in_array PASSED [ 81%] tests/test_api_jwt.py::TestJWT::test_raise_exception_token_without_issuer PASSED [ 81%] tests/test_api_jwt.py::TestJWT::test_raise_exception_token_without_audience PASSED [ 81%] tests/test_api_jwt.py::TestJWT::test_raise_exception_token_with_aud_none_and_without_audience PASSED [ 82%] tests/test_api_jwt.py::TestJWT::test_check_issuer_when_valid PASSED [ 82%] tests/test_api_jwt.py::TestJWT::test_raise_exception_invalid_issuer PASSED [ 83%] tests/test_api_jwt.py::TestJWT::test_skip_check_audience PASSED [ 83%] tests/test_api_jwt.py::TestJWT::test_skip_check_exp PASSED [ 84%] tests/test_api_jwt.py::TestJWT::test_decode_should_raise_error_if_exp_required_but_not_present PASSED [ 84%] tests/test_api_jwt.py::TestJWT::test_decode_should_raise_error_if_iat_required_but_not_present PASSED [ 85%] tests/test_api_jwt.py::TestJWT::test_decode_should_raise_error_if_nbf_required_but_not_present PASSED [ 85%] tests/test_api_jwt.py::TestJWT::test_skip_check_signature PASSED [ 86%] tests/test_api_jwt.py::TestJWT::test_skip_check_iat PASSED [ 86%] tests/test_api_jwt.py::TestJWT::test_skip_check_nbf PASSED [ 87%] tests/test_api_jwt.py::TestJWT::test_custom_json_encoder PASSED [ 87%] tests/test_api_jwt.py::TestJWT::test_decode_with_verify_exp_option PASSED [ 88%] tests/test_api_jwt.py::TestJWT::test_decode_with_verify_exp_option_and_signature_off PASSED [ 88%] tests/test_api_jwt.py::TestJWT::test_decode_with_optional_algorithms PASSED [ 89%] tests/test_api_jwt.py::TestJWT::test_decode_no_algorithms_verify_signature_false PASSED [ 89%] tests/test_exceptions.py::test_missing_required_claim_error_has_proper_str PASSED [ 90%] tests/test_jwks_client.py::TestPyJWKClient::test_get_jwk_set PASSED [ 90%] tests/test_jwks_client.py::TestPyJWKClient::test_get_signing_keys PASSED [ 90%] tests/test_jwks_client.py::TestPyJWKClient::test_get_signing_keys_if_no_use_provided PASSED [ 91%] tests/test_jwks_client.py::TestPyJWKClient::test_get_signing_keys_raises_if_none_found PASSED [ 91%] tests/test_jwks_client.py::TestPyJWKClient::test_get_signing_key PASSED [ 92%] tests/test_jwks_client.py::TestPyJWKClient::test_get_signing_key_caches_result PASSED [ 92%] tests/test_jwks_client.py::TestPyJWKClient::test_get_signing_key_does_not_cache_opt_out PASSED [ 93%] tests/test_jwks_client.py::TestPyJWKClient::test_get_signing_key_from_jwt PASSED [ 93%] tests/test_jwt.py::test_encode_decode PASSED [ 94%] tests/test_utils.py::test_to_base64url_uint[0-AA] PASSED [ 94%] tests/test_utils.py::test_to_base64url_uint[1-AQ] PASSED [ 95%] tests/test_utils.py::test_to_base64url_uint[255-_w] PASSED [ 95%] tests/test_utils.py::test_to_base64url_uint[65537-AQAB] PASSED [ 96%] tests/test_utils.py::test_to_base64url_uint[123456789-B1vNFQ] PASSED [ 96%] tests/test_utils.py::test_to_base64url_uint[-1-] XFAIL [ 97%] tests/test_utils.py::test_from_base64url_uint[AA-0] PASSED [ 97%] tests/test_utils.py::test_from_base64url_uint[AQ-1] PASSED [ 98%] tests/test_utils.py::test_from_base64url_uint[_w-255] PASSED [ 98%] tests/test_utils.py::test_from_base64url_uint[AQAB-65537] PASSED [ 99%] tests/test_utils.py::test_from_base64url_uint[B1vNFQ-123456789] PASSED [ 99%] tests/test_utils.py::test_force_bytes_raises_error_on_invalid_object PASSED [100%] =========================== short test summary info ============================ SKIPPED [1] tests/test_api_jws.py:387: Requires cryptography library not installed XFAIL tests/test_utils.py::test_to_base64url_uint[-1-] ================== 209 passed, 1 skipped, 1 xfailed in 1.14s =================== + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-jwt-2.3.0-5.ocs23.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ZkJI9U + umask 022 + cd /builddir/build/BUILD + cd PyJWT-2.3.0 + DOCDIR=/builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/share/doc/python3-jwt + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/share/doc/python3-jwt + cp -pr README.rst /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/share/doc/python3-jwt + cp -pr AUTHORS.rst /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/share/doc/python3-jwt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.OGJO6O + umask 022 + cd /builddir/build/BUILD + cd PyJWT-2.3.0 + LICENSEDIR=/builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/share/licenses/python3-jwt + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/share/licenses/python3-jwt + cp -pr LICENSE /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch/usr/share/licenses/python3-jwt + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-jwt = 2.3.0-5.ocs23 python3-jwt = 2.3.0-5.ocs23 python3.11-jwt = 2.3.0-5.ocs23 python3.11dist(pyjwt) = 2.3 python3dist(pyjwt) = 2.3 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.11 Obsoletes: python3.11-jwt < 2.3.0-5.ocs23 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-jwt-2.3.0-5.ocs23.noarch Wrote: /builddir/build/RPMS/python3-jwt-2.3.0-5.ocs23.noarch.rpm Child return code was: 0