Package: src:python-django-ca
Version: 1.25.0-2
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --with python3,sphinxdoc --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" 
module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel 
--outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-ca
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib

[... snipped ...]

E           SystemExit: 1

/usr/lib/python3/dist-packages/django/core/management/base.py:422: SystemExit

During handling of the above exception, another exception occurred:

self = <django_ca.tests.commands.test_init_ca.InitCATest 
testMethod=test_multiple_ocsp_and_ca_issuers>

    @override_tmpcadir(CA_MIN_KEY_SIZE=1024)
    def test_multiple_ocsp_and_ca_issuers(self) -> None:
        """Test using multiple OCSP responders and CA issuers."""
        root = self.load_ca("root")
        name = self._testMethodName[:32]
ocsp_uri_one = "http://ocsp.example.com/one";
        ocsp_uri_two = "http://ocsp.example.net/two";
        issuer_uri_one = "http://issuer.example.com/one";
        issuer_uri_two = "http://issuer.example.com/two";
      ca = self.init_ca_e2e(
            name,
            f"/CN={name}",
            f"--parent={root.serial}",
            # NOTE: mixing the order of arguments here. This way we make sure 
that the values are properly
            # sorted (by method) in the assertion for the extension.
            f"--ca-ocsp-url={ocsp_uri_one}",
            f"--ca-issuer-url={issuer_uri_one}",
            f"--ca-ocsp-url={ocsp_uri_two}",
            f"--ca-issuer-url={issuer_uri_two}",
            chain=[root],
        )

django_ca/tests/commands/test_init_ca.py:1027:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
django_ca/tests/commands/test_init_ca.py:71: in init_ca_e2e
    with self.assertCreateCASignals() as (pre, post):
/usr/lib/python3.11/contextlib.py:158: in __exit__
    self.gen.throw(typ, value, traceback)
django_ca/tests/base/mixins.py:291: in assertCreateCASignals
    self.assertTrue(post_sig.called is post)
E   AssertionError: False is not true
______________________ ViewCATestCase.test_acme_disabled _______________________

self = <django_ca.tests.commands.test_view_ca.ViewCATestCase 
testMethod=test_acme_disabled>

    @override_tmpcadir(CA_ENABLE_ACME=False)
    def test_acme_disabled(self) -> None:
        """Test viewing when ACME is disabled."""
        stdout, stderr = self.cmd("view_ca", self.cas["root"].serial, 
wrap=False)
        self.assertEqual(stderr, "")
        data = self.get_cert_context("root")
      self.assertMultiLineEqual(stdout, 
expected["root-acme-disabled"].format(**data))
E       AssertionError: '* Na[250 chars]tus: Expired\n* HPKP pin: 
OfMQVNzWUTEbiU4y6hBS[2504 chars]--\n' != '* Na[250 chars]tus: Valid\n* HPKP 
pin: OfMQVNzWUTEbiU4y6hBSbq[2502 chars]--\n'
E       Diff is 2920 characters long. Set self.maxDiff to None to see it.

django_ca/tests/commands/test_view_ca.py:1457: AssertionError
_________________________ ViewCATestCase.test_all_cas __________________________

self = <django_ca.tests.commands.test_view_ca.ViewCATestCase 
testMethod=test_all_cas>

    @override_tmpcadir()
    def test_all_cas(self) -> None:
        """Test viewing all CAs."""
        for name, ca in sorted(self.cas.items(), key=lambda t: t[0]):
            stdout, stderr = self.cmd("view_ca", ca.serial, wrap=False)
            data = self.get_cert_context(name)
          self.assertMultiLineEqual(stdout, expected[name].format(**data), name)
E           AssertionError: '* Na[252 chars]tus: Expired\n* HPKP pin: 
47J9/gQZ1KaXn1TGcQeu[3391 chars]--\n' != '* Na[252 chars]tus: Valid\n* HPKP 
pin: 47J9/gQZ1KaXn1TGcQeurg[3389 chars]--\n'
E           Diff is 3827 characters long. Set self.maxDiff to None to see it. : 
child

django_ca/tests/commands/test_view_ca.py:1411: AssertionError
______________________ ViewCATestCase.test_no_extensions _______________________

self = <django_ca.tests.commands.test_view_ca.ViewCATestCase 
testMethod=test_no_extensions>

    @override_tmpcadir()
    def test_no_extensions(self) -> None:
        """Test viewing a CA without extensions."""
        stdout, stderr = self.cmd("view_ca", self.cas["root"].serial, 
extensions=False, wrap=False)
        self.assertEqual(stderr, "")
        data = self.get_cert_context("root")
      self.assertMultiLineEqual(stdout, 
expected["root-no-extensions"].format(**data))
E       AssertionError: '* Na[250 chars]tus: Expired\n* HPKP pin: 
OfMQVNzWUTEbiU4y6hBS[2224 chars]--\n' != '* Na[250 chars]tus: Valid\n* HPKP 
pin: OfMQVNzWUTEbiU4y6hBSbq[2222 chars]--\n'
E       Diff is 2632 characters long. Set self.maxDiff to None to see it.

django_ca/tests/commands/test_view_ca.py:1465: AssertionError
____________________ ViewCATestCase.test_no_no_private_key _____________________

self = <django_ca.tests.commands.test_view_ca.ViewCATestCase 
testMethod=test_no_no_private_key>

    @override_tmpcadir()
    def test_no_no_private_key(self) -> None:
        """Test viewing when we have no private key."""
def side_effect(cls: Any) -> None:
            raise NotImplementedError
ca_storage = "django_ca.management.commands.view_ca.ca_storage.%s"
        with self.patch(ca_storage % "path", side_effect=side_effect) as 
path_mock, self.patch(
            ca_storage % "exists", return_value=True
        ) as exists_mock:
            stdout, stderr = self.cmd("view_ca", self.cas["root"].serial, 
wrap=False)
path_mock.assert_called_once_with(self.cas["root"].private_key_path)
        exists_mock.assert_called_once_with(self.cas["root"].private_key_path)
        data = self.get_cert_context("root")
        data["key_path"] = self.cas["root"].private_key_path
      self.assertMultiLineEqual(stdout, expected["root"].format(**data))
E       AssertionError: '* Na[250 chars]tus: Expired\n* HPKP pin: 
OfMQVNzWUTEbiU4y6hBS[2524 chars]--\n' != '* Na[250 chars]tus: Valid\n* HPKP 
pin: OfMQVNzWUTEbiU4y6hBSbq[2522 chars]--\n'
E       Diff is 2943 characters long. Set self.maxDiff to None to see it.

django_ca/tests/commands/test_view_ca.py:1484: AssertionError
________________________ ViewCATestCase.test_properties ________________________

self = <django_ca.tests.commands.test_view_ca.ViewCATestCase 
testMethod=test_properties>

    @override_tmpcadir()
    def test_properties(self) -> None:
        """Test viewing of various optional properties."""
        ca = self.cas["root"]
        hostname = "ca.example.com"
        ca.website = f"https://website.{hostname}";
        ca.terms_of_service = f"{ca.website}/tos/"
        ca.caa_identity = hostname
        ca.acme_enabled = True
        ca.acme_requires_contact = False
        ca.save()
stdout, stderr = self.cmd("view_ca", ca.serial, wrap=False)
        self.assertEqual(stderr, "")
        data = self.get_cert_context("root")
      self.assertMultiLineEqual(stdout, 
expected["root-properties"].format(ca=ca, **data))
E       AssertionError: '* Na[250 chars]tus: Expired\n* HPKP pin: 
OfMQVNzWUTEbiU4y6hBS[2699 chars]--\n' != '* Na[250 chars]tus: Valid\n* HPKP 
pin: OfMQVNzWUTEbiU4y6hBSbq[2697 chars]--\n'
E       Diff is 3122 characters long. Set self.maxDiff to None to see it.

django_ca/tests/commands/test_view_ca.py:1449: AssertionError
__________________ ViewCATestCase.test_with_timezone_support ___________________

self = <django_ca.tests.commands.test_view_ca.ViewCATestCase 
testMethod=test_with_timezone_support>

    @override_tmpcadir(USE_TZ=True)
    def test_with_timezone_support(self) -> None:
        """Test viewing certificate with USE_TZ=True"""
        self.assertTrue(settings.USE_TZ)
stdout, stderr = self.cmd("view_ca", self.ca.serial, wrap=False)
        data = self.get_cert_context(self.ca.name)
      self.assertMultiLineEqual(stdout, expected[self.ca.name].format(**data), 
self.ca.name)
E       AssertionError: '* Na[252 chars]tus: Expired\n* HPKP pin: 
47J9/gQZ1KaXn1TGcQeu[3391 chars]--\n' != '* Na[252 chars]tus: Valid\n* HPKP 
pin: 47J9/gQZ1KaXn1TGcQeurg[3389 chars]--\n'
E       Diff is 3827 characters long. Set self.maxDiff to None to see it. : 
child

django_ca/tests/commands/test_view_ca.py:1421: AssertionError
___________________ ViewCATestCase.test_with_use_tz_is_false ___________________

self = <django_ca.tests.commands.test_view_ca.ViewCATestCase 
testMethod=test_with_use_tz_is_false>

    @override_tmpcadir(USE_TZ=False)
    def test_with_use_tz_is_false(self) -> None:
        """Test viewing certificate without timezone support."""
        self.assertFalse(settings.USE_TZ)
stdout, stderr = self.cmd("view_ca", self.ca.serial, wrap=False)
        data = self.get_cert_context(self.ca.name)
      self.assertMultiLineEqual(stdout, expected[self.ca.name].format(**data), 
self.ca.name)
E       AssertionError: '* Na[252 chars]tus: Expired\n* HPKP pin: 
47J9/gQZ1KaXn1TGcQeu[3391 chars]--\n' != '* Na[252 chars]tus: Valid\n* HPKP 
pin: 47J9/gQZ1KaXn1TGcQeurg[3389 chars]--\n'
E       Diff is 3827 characters long. Set self.maxDiff to None to see it. : 
child

django_ca/tests/commands/test_view_ca.py:1431: AssertionError
_______________________ ViewCATestCase.test_wrap_digest ________________________

self = <django_ca.tests.commands.test_view_ca.ViewCATestCase 
testMethod=test_wrap_digest>

    def test_wrap_digest(self) -> None:
        """Test wrapping the digest."""
data = self.get_cert_context("root")
        sha256 = data["sha256"]
        sha512 = data["sha512"]
with mock.patch("shutil.get_terminal_size", return_value=os.terminal_size((64, 0))) as shutil_mock:
            stdout, stderr = self.cmd("view_ca", self.cas["root"].serial, 
pem=False, extensions=False)
# Django calls get_terminal_size as well, so the number of calls is unpredictable
        shutil_mock.assert_called_with(fallback=(107, 100))
        self.assertEqual(stderr, "")
data["sha256"] = self._wrap_hash(f" SHA-256: {sha256}", 62)
        data["sha512"] = self._wrap_hash(f"  SHA-512: {sha512}", 62)
      self.assertMultiLineEqual(stdout, expected["root-no-wrap"].format(**data))
E       AssertionError: '* Na[250 chars]tus: Expired\n* HPKP pin: 
OfMQVNzWUTEbiU4y6hBS[1085 chars]5D\n' != '* Na[250 chars]tus: Valid\n* HPKP 
pin: OfMQVNzWUTEbiU4y6hBSbq[1083 chars]5D\n'
E       Diff is 1476 characters long. Set self.maxDiff to None to see it.

django_ca/tests/commands/test_view_ca.py:1503: AssertionError
______________________ CompletenessTestCase.test_nameoid _______________________

self = <django_ca.tests.test_constants.CompletenessTestCase 
testMethod=test_nameoid>

    def test_nameoid(self) -> None:
        """Test that we support all NameOID instances."""
        known_oids = [v for v in vars(x509.NameOID).values() if isinstance(v, 
x509.ObjectIdentifier)]
      self.assertCountEqual(known_oids, list(constants.NAME_OID_NAMES.keys()))
E       AssertionError: Element counts were not equal:
E       First has 1, Second has 0:  <ObjectIdentifier(oid=2.5.4.97, name=Unknown 
OID)>

django_ca/tests/test_constants.py:139: AssertionError
_________________________ OCSPTestGenericView.test_get _________________________

self = <django_ca.tests.test_views_ocsp.OCSPTestGenericView testMethod=test_get>

    @override_tmpcadir()
    def test_get(self) -> None:
        """Do a basic GET request."""
        data = base64.b64encode(req1).decode("utf-8")
        url = reverse("django_ca:ocsp-get-child", kwargs={"data": data})
        response = self.client.get(url)
        self.assertEqual(response.status_code, HTTPStatus.OK)
      self.assertOCSP(response, requested=[self.cert], nonce=req1_nonce)

django_ca/tests/test_views_ocsp.py:365:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
django_ca/tests/test_views_ocsp.py:262: in assertOCSP
    self.assertEqual(ocsp_response["response_status"].native, status)
E   AssertionError: 'internal_error' != 'successful'
E   - internal_error
E   + successful
------------------------------ Captured log call -------------------------------
ERROR    django_ca.views:views.py:165 list index out of range
Traceback (most recent call last):
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/views.py", 
line 163, in get
    return self.process_ocsp_request(decoded_data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/views.py", 
line 315, in process_ocsp_request
    response = builder.sign(responder_key, 
responder_cert.signature_hash_algorithm)
               
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/cryptography/x509/ocsp.py", line 596, in 
sign
    return ocsp.create_ocsp_response(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/freezegun/api.py", line 388, in now
    result = tz.fromutc(now.replace(tzinfo=tz)) + cls._tz_offset()
                                                  ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/freezegun/api.py", line 420, in 
_tz_offset
    return tz_offsets[-1]
           ~~~~~~~~~~^^^^
IndexError: list index out of range
________________________ OCSPTestGenericView.test_post _________________________

self = <django_ca.tests.test_views_ocsp.OCSPTestGenericView 
testMethod=test_post>

    @override_tmpcadir()
    def test_post(self) -> None:
        """Do a basic POST request."""
        response = self.client.post(
            reverse("django_ca:ocsp-post-child"), req1, 
content_type="application/ocsp-request"
        )
        self.assertEqual(response.status_code, HTTPStatus.OK)
      self.assertOCSP(response, requested=[self.cert], nonce=req1_nonce)

django_ca/tests/test_views_ocsp.py:374:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
django_ca/tests/test_views_ocsp.py:262: in assertOCSP
    self.assertEqual(ocsp_response["response_status"].native, status)
E   AssertionError: 'internal_error' != 'successful'
E   - internal_error
E   + successful
------------------------------ Captured log call -------------------------------
ERROR    django_ca.views:views.py:173 list index out of range
Traceback (most recent call last):
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/views.py", 
line 171, in post
    return self.process_ocsp_request(request.body)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/views.py", 
line 315, in process_ocsp_request
    response = builder.sign(responder_key, 
responder_cert.signature_hash_algorithm)
               
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/cryptography/x509/ocsp.py", line 596, in 
sign
    return ocsp.create_ocsp_response(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/freezegun/api.py", line 388, in now
    result = tz.fromutc(now.replace(tzinfo=tz)) + cls._tz_offset()
                                                  ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/freezegun/api.py", line 420, in 
_tz_offset
    return tz_offsets[-1]
           ~~~~~~~~~~^^^^
IndexError: list index out of range
=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
  /usr/lib/python3/dist-packages/django/conf/__init__.py:267: 
RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with 
Django 5.0, localized formatting of data will always be enabled. For example 
Django will display numbers and dates using the format of the current locale.
    warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning)

../../../../../../usr/lib/python3/dist-packages/acme/crypto_util.py:372
  /usr/lib/python3/dist-packages/acme/crypto_util.py:372: DeprecationWarning: 
X509Extension support in pyOpenSSL is deprecated. You should use the APIs in 
cryptography.
    extensions: Optional[List[crypto.X509Extension]] = None,

django_ca/utils.py:1166
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/utils.py:1166:
 RemovedInDjango51Warning: django.core.files.storage.get_storage_class is deprecated in 
favor of using django.core.files.storage.storages.
    ca_storage_cls = get_storage_class(ca_settings.CA_FILE_STORAGE)

../../../../../../usr/lib/python3.11/unittest/loader.py:66
  /usr/lib/python3.11/unittest/loader.py:66: PytestCollectionWarning: cannot 
collect test class 'TestLoader' because it has a __init__ constructor (from: 
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/extensions/test_doctests.py)
    class TestLoader(object):

../../../../../../usr/lib/python3.11/unittest/suite.py:92
  /usr/lib/python3.11/unittest/suite.py:92: PytestCollectionWarning: cannot 
collect test class 'TestSuite' because it has a __init__ constructor (from: 
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/extensions/test_doctests.py)
    class TestSuite(BaseTestSuite):

django_ca/tests/extensions/test_extension_values.py:45
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/extensions/test_extension_values.py:45:
 PytestCollectionWarning: cannot collect test class 'TestValueDict' because it has a 
__init__ constructor (from: 
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/extensions/test_extension_values.py)
    class TestValueDict(_TestValueDict, total=False):

../../../../../../usr/lib/python3.11/unittest/loader.py:66
  /usr/lib/python3.11/unittest/loader.py:66: PytestCollectionWarning: cannot 
collect test class 'TestLoader' because it has a __init__ constructor (from: 
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_management_actions.py)
    class TestLoader(object):

../../../../../../usr/lib/python3.11/unittest/suite.py:92
  /usr/lib/python3.11/unittest/suite.py:92: PytestCollectionWarning: cannot 
collect test class 'TestSuite' because it has a __init__ constructor (from: 
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_management_actions.py)
    class TestSuite(BaseTestSuite):

.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_authorization.py:
 22 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_directory.py:
 9 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_new_account.py:
 22 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_new_nonce.py:
 3 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_new_order.py:
 23 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_order.py:
 25 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_revocation.py:
 74 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_update_account.py:
 22 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_view_cert.py:
 21 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/admin/test_admin_ca.py: 
8 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/admin/test_extra_views.py:
 14 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/admin/test_views.py: 6 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_cache_crls.py:
 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_cert_watchers.py:
 1 warning
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_convert_timestamps.py:
 4 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_dump_ca.py:
 7 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_dump_cert.py:
 6 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_dump_crl.py:
 17 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_edit_ca.py:
 6 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_import_ca.py:
 6 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_import_cert.py:
 3 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_init_ca.py:
 26 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_list_cas.py:
 5 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_list_certs.py:
 5 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_notify.py: 
4 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_regenerate_ocsp_keys.py:
 11 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_resign_cert.py:
 16 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_revoke_cert.py:
 7 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_sign_cert.py:
 27 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_view_ca.py:
 8 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_view_cert.py:
 17 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/extensions/test_admin_html.py:
 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/extensions/test_extension_values.py:
 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_admin_acme.py: 16 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_base.py: 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_docs.py: 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_management_actions.py:
 11 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_managers.py: 24 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py: 93 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_profiles.py: 17 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_querysets.py: 20 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_tasks.py: 29 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_verification.py: 7 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_views.py: 17 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_views_ocsp.py: 42 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_challenge.py:
 20 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_order_finalize.py:
 33 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/models.py:443:
 CryptographyDeprecationWarning: Properties that return a naïve datetime object have been 
deprecated. Please switch to not_valid_after_utc.
    return self.pub.loaded.not_valid_after.replace(tzinfo=tz.utc)

.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_authorization.py:
 22 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_directory.py:
 9 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_new_account.py:
 22 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_new_nonce.py:
 3 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_new_order.py:
 23 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_order.py:
 25 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_revocation.py:
 74 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_update_account.py:
 22 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_view_cert.py:
 21 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/admin/test_admin_ca.py: 
8 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/admin/test_extra_views.py:
 14 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/admin/test_views.py: 6 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_cache_crls.py:
 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_cert_watchers.py:
 1 warning
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_convert_timestamps.py:
 4 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_dump_ca.py:
 7 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_dump_cert.py:
 6 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_dump_crl.py:
 17 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_edit_ca.py:
 6 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_import_ca.py:
 6 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_import_cert.py:
 3 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_init_ca.py:
 26 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_list_cas.py:
 5 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_list_certs.py:
 5 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_notify.py: 
4 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_regenerate_ocsp_keys.py:
 11 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_resign_cert.py:
 16 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_revoke_cert.py:
 7 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_sign_cert.py:
 27 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_view_ca.py:
 8 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_view_cert.py:
 17 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/extensions/test_admin_html.py:
 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/extensions/test_extension_values.py:
 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_admin_acme.py: 16 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_base.py: 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_docs.py: 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_management_actions.py:
 11 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_managers.py: 24 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py: 93 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_profiles.py: 17 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_querysets.py: 20 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_tasks.py: 29 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_verification.py: 7 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_views.py: 17 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_views_ocsp.py: 42 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_challenge.py:
 20 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/acme/views/test_order_finalize.py:
 33 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/models.py:438:
 CryptographyDeprecationWarning: Properties that return a naïve datetime object have been 
deprecated. Please switch to not_valid_before_utc.
    return self.pub.loaded.not_valid_before.replace(tzinfo=tz.utc)

.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_dump_crl.py:
 8 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_init_ca.py:
 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py: 11 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_views.py: 16 
warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/base/mixins.py:259:
 CryptographyDeprecationWarning: Properties that return a naïve datetime object have been 
deprecated. Please switch to last_update_utc.
    self.assertEqual(parsed_crl.last_update, datetime.utcnow())

.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_dump_crl.py:
 8 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/commands/test_init_ca.py:
 2 warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py: 11 
warnings
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_views.py: 16 
warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/base/mixins.py:260:
 CryptographyDeprecationWarning: Properties that return a naïve datetime object have been 
deprecated. Please switch to next_update_utc.
    self.assertEqual(parsed_crl.next_update, expires_timestamp)

.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthorityTests::test_ca_crl
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthorityTests::test_full_crl
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthorityTests::test_full_crl_without_timezone_support
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthorityTests::test_intermediate_crl
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthorityTests::test_user_crl
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_views.py::GenericCRLViewTests::test_basic
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_views.py::GenericCRLViewTests::test_ca_crl
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_views.py::GenericCRLWithoutTimezoneSupportViewTests::test_basic
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_views.py::GenericCRLWithoutTimezoneSupportViewTests::test_ca_crl
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/base/mixins.py:266:
 CryptographyDeprecationWarning: Properties that return a naïve datetime object have been 
deprecated. Please switch to revocation_date_utc.
    self.assertEqual(entry.revocation_date, datetime.utcnow())

.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthoritySignTests::test_append_cn_to_san
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthoritySignTests::test_cn_already_in_san
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthoritySignTests::test_cn_not_in_san
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthoritySignTests::test_non_default_extensions
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthoritySignTests::test_non_default_values
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthoritySignTests::test_simple
.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthoritySignTests::test_unparsable_cn
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py:669:
 CryptographyDeprecationWarning: Properties that return a naïve datetime object have been 
deprecated. Please switch to not_valid_before_utc.
    self.assertEqual(cert.not_valid_before, datetime.utcnow())

.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthoritySignTests::test_non_default_values
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py:723:
 CryptographyDeprecationWarning: Properties that return a naïve datetime object have been 
deprecated. Please switch to not_valid_after_utc.
    self.assertEqual(cert.not_valid_after, expires.replace(tzinfo=None))

.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py::CertificateAuthoritySignTests::test_simple
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build/django_ca/tests/test_models.py:693:
 CryptographyDeprecationWarning: Properties that return a naïve datetime object have been 
deprecated. Please switch to not_valid_after_utc.
    self.assertEqual(cert.not_valid_after, datetime.utcnow() + 
ca_settings.CA_DEFAULT_EXPIRES)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED 
django_ca/tests/commands/test_init_ca.py::InitCATest::test_add_extensions_with_formatting
FAILED 
django_ca/tests/commands/test_init_ca.py::InitCATest::test_add_extensions_with_formatting_without_uri
FAILED 
django_ca/tests/commands/test_init_ca.py::InitCATest::test_multiple_ocsp_and_ca_issuers
FAILED 
django_ca/tests/commands/test_view_ca.py::ViewCATestCase::test_acme_disabled
FAILED django_ca/tests/commands/test_view_ca.py::ViewCATestCase::test_all_cas
FAILED 
django_ca/tests/commands/test_view_ca.py::ViewCATestCase::test_no_extensions
FAILED 
django_ca/tests/commands/test_view_ca.py::ViewCATestCase::test_no_no_private_key
FAILED django_ca/tests/commands/test_view_ca.py::ViewCATestCase::test_properties
FAILED 
django_ca/tests/commands/test_view_ca.py::ViewCATestCase::test_with_timezone_support
FAILED 
django_ca/tests/commands/test_view_ca.py::ViewCATestCase::test_with_use_tz_is_false
FAILED 
django_ca/tests/commands/test_view_ca.py::ViewCATestCase::test_wrap_digest
FAILED django_ca/tests/test_constants.py::CompletenessTestCase::test_nameoid
FAILED django_ca/tests/test_views_ocsp.py::OCSPTestGenericView::test_get - As...
FAILED django_ca/tests/test_views_ocsp.py::OCSPTestGenericView::test_post - A...
== 14 failed, 1100 passed, 33 skipped, 21 deselected, 1628 warnings in 36.58s ==
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-ca/build; python3.11 -m pytest 
--ds=ca.test_settings -k "not test_permission_denied and not test_create_cadir_permission_denied 
and not test_permission_denied and not Dns01ValidationTestCase and not 
AcmeValidateDns01ChallengeTestCase" --ignore=django_ca/tests/admin/test_actions.py 
--ignore=django_ca/tests/admin/test_add_cert.py
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
3.11" returned exit code 13
make: *** [debian/rules:15: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202405/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to