Public bug reported:

=================================== FAILURES ===================================
_______________________ MultipleVhostsTest.test_cleanup ________________________

self = <certbot_apache.tests.configurator_test.MultipleVhostsTest 
testMethod=test_cleanup>
mock_cfg = <MagicMock name='_get_runtime_cfg' id='140539372285376'>
mock_restart = <MagicMock name='restart' id='140539371490560'>

    @mock.patch("certbot_apache.configurator.ApacheConfigurator.restart")
    @mock.patch("certbot_apache.parser.ApacheParser._get_runtime_cfg")
    def test_cleanup(self, mock_cfg, mock_restart):
        mock_cfg.return_value = ""
>       _, achalls = self.get_key_and_achalls()

certbot_apache/tests/configurator_test.py:812: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <certbot_apache.tests.configurator_test.MultipleVhostsTest
testMethod=test_cleanup>

    def get_key_and_achalls(self):
        """Return testing achallenges."""
        account_key = self.rsa512jwk
        achall1 = achallenges.KeyAuthorizationAnnotatedChallenge(
            challb=acme_util.chall_to_challb(
>               challenges.TLSSNI01(
                    token=b"jIq_Xy1mXGN37tb4L6Xj_es58fW571ZNyXekdZzhh7Q"),
                "pending"),
            domain="encryption-example.demo", account_key=account_key)
E       AttributeError: module 'acme.challenges' has no attribute 'TLSSNI01'

certbot_apache/tests/configurator_test.py:1299: AttributeError
__________________ MultipleVhostsTest.test_cleanup_no_errors ___________________

self = <certbot_apache.tests.configurator_test.MultipleVhostsTest 
testMethod=test_cleanup_no_errors>
mock_cfg = <MagicMock name='_get_runtime_cfg' id='140539376285104'>
mock_restart = <MagicMock name='restart' id='140539375548640'>

    @mock.patch("certbot_apache.configurator.ApacheConfigurator.restart")
    @mock.patch("certbot_apache.parser.ApacheParser._get_runtime_cfg")
    def test_cleanup_no_errors(self, mock_cfg, mock_restart):
        mock_cfg.return_value = ""
>       _, achalls = self.get_key_and_achalls()

certbot_apache/tests/configurator_test.py:828: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <certbot_apache.tests.configurator_test.MultipleVhostsTest
testMethod=test_cleanup_no_errors>

    def get_key_and_achalls(self):
        """Return testing achallenges."""
        account_key = self.rsa512jwk
        achall1 = achallenges.KeyAuthorizationAnnotatedChallenge(
            challb=acme_util.chall_to_challb(
>               challenges.TLSSNI01(
                    token=b"jIq_Xy1mXGN37tb4L6Xj_es58fW571ZNyXekdZzhh7Q"),
                "pending"),
            domain="encryption-example.demo", account_key=account_key)
E       AttributeError: module 'acme.challenges' has no attribute 'TLSSNI01'

certbot_apache/tests/configurator_test.py:1299: AttributeError
_______________________ MultipleVhostsTest.test_perform ________________________

self = <certbot_apache.tests.configurator_test.MultipleVhostsTest 
testMethod=test_perform>
mock_restart = <MagicMock name='restart' id='140539368000576'>
mock_http_perform = <MagicMock name='perform' id='140539370868352'>

    @mock.patch("certbot_apache.configurator.http_01.ApacheHttp01.perform")
    @mock.patch("certbot_apache.configurator.ApacheConfigurator.restart")
    def test_perform(self, mock_restart, mock_http_perform):
        # Only tests functionality specific to configurator.perform
        # Note: As more challenges are offered this will have to be expanded
>       account_key, achalls = self.get_key_and_achalls()

certbot_apache/tests/configurator_test.py:796: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <certbot_apache.tests.configurator_test.MultipleVhostsTest
testMethod=test_perform>

    def get_key_and_achalls(self):
        """Return testing achallenges."""
        account_key = self.rsa512jwk
        achall1 = achallenges.KeyAuthorizationAnnotatedChallenge(
            challb=acme_util.chall_to_challb(
>               challenges.TLSSNI01(
                    token=b"jIq_Xy1mXGN37tb4L6Xj_es58fW571ZNyXekdZzhh7Q"),
                "pending"),
            domain="encryption-example.demo", account_key=account_key)
E       AttributeError: module 'acme.challenges' has no attribute 'TLSSNI01'

certbot_apache/tests/configurator_test.py:1299: AttributeError
=============================== warnings summary ===============================
/usr/lib/python3/dist-packages/certbot/plugins/disco.py:183
  /usr/lib/python3/dist-packages/certbot/plugins/disco.py:183: 
DeprecationWarning: Using or importing the ABCs from 'collections' instead of 
from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop 
working
    class PluginsRegistry(collections.Mapping):

certbot_apache/http_01.py:17
  
/home/ubuntu/deb/python-certbot-apache/python-certbot-apache-0.39.0/certbot_apache/http_01.py:17:
 DeprecationWarning: TLSSNI01 is deprecated and will be removed soon.
    class ApacheHttp01(common.TLSSNI01):

-- Docs: https://docs.pytest.org/en/latest/warnings.html
============== 3 failed, 262 passed, 2 warnings in 36.41 seconds ===============
make[1]: *** [debian/rules:25: override_dh_auto_test] Error 1


This is due to python-acme's removal of TLSSNI01.

** Affects: python-certbot-apache (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ftbfs

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876934

Title:
  FTBFS in focal due to build-time test failures

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-certbot-apache/+bug/1876934/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to