Source: radicale
Version: 3.7.8+ds-3
Severity: important
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: origin-ubuntu tenacious ubuntu-patch

Hi,

Since the 3.9.2+ds-1 upload, radicale's autopkgtest ("pytest-3 radicale")
fails on every architecture (confirmed via both Ubuntu's proposed-migration
results and Debian's own package tracker) with:

  self = <radicale.auth.pam.Auth object at 0x71063b047380>
  configuration = <radicale.config.Configuration object at 0x71063b163770>

      def __init__(self, configuration) -> None:
          super().__init__(configuration)
          try:
  >           import pam
  E           ModuleNotFoundError: No module named 'pam'

  radicale/auth/pam.py:45: ModuleNotFoundError

The failing test is
tests/test_group.py::TestBaseGroupRequests::test_from_auth_pam_groups_are_empty_and_copied,
which is new upstream in 3.9.2 (it does not exist in the 3.9.0/3.9.1
sources). It is only guarded against running on Windows:

  @pytest.mark.skipif(sys.platform == "win32", reason="PAM authentication is 
unavailable on Windows")
  def test_from_auth_pam_groups_are_empty_and_copied(self) -> None:

but nothing guards against the python3-pam module simply not being
installed, which is the case in the normal build/autopkgtest
environment since debian/tests/control does not list python3-pam
as a test dependency.

Attached patch adds python3-pam to debian/tests/control's Depends so
the pam auth backend can actually be exercised, which fixes the
autopkgtest failure for me locally.

Thanks for maintaining radicale!


-- System Information:
Debian Release: forky/sid
  APT prefers resolute-updates
  APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 
'resolute'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.0-44-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -6,6 +6,7 @@
  mypy,
  python3-argon2,
  python3-bcrypt,
+ python3-pam,
  python3-pytest,
  python3-pytest-cov,
  python3-radicale,

Reply via email to