Skip to content

Tests fail while building the Debian package #456

Closed

Description

@fmarier

As part of the Debian package build, the tests are run. Unfortunately, they currently fail:

======================================================================
ERROR: test_plugins (letsencrypt.tests.cli_test.CLITest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/tests/cli_test.py", line 44, in test_plugins
    self._call(['plugins',] + list(args))
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/tests/cli_test.py", line 18, in _call
    ret = cli.main(args)
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/cli.py", line 390, in main
    return args.func(args, config, plugins)
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/cli.py", line 200, in plugins_cmd
    verified.prepare()
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/plugins/disco.py", line 187, in prepare
    return [plugin_ep.prepare() for plugin_ep in self._plugins.itervalues()]
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/plugins/disco.py", line 91, in prepare
    self._initialized.prepare()
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt_apache/configurator.py", line 147, in prepare
    temp_install(self.conf('mod-ssl-conf'))
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt_apache/configurator.py", line 1170, in temp_install
    shutil.copyfile(constants.MOD_SSL_CONF, options_ssl)
  File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/etc/letsencrypt/options-ssl.conf'

======================================================================
ERROR: test_name1_dvsni1 (letsencrypt.tests.auth_handler_test.GetAuthorizationsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
    return func(*args, **keywargs)
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/tests/auth_handler_test.py", line 107, in test_name1_dvsni1
    authzr = self.handler.get_authorizations(["0"])
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/auth_handler.py", line 79, in get_authorizations
    self._respond(cont_resp, dv_resp, best_effort)
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/auth_handler.py", line 137, in _respond
    self._poll_challenges(chall_update, best_effort)
  File "/usr/lib/python2.7/dist-packages/mock.py", line 964, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mock.py", line 1027, in _mock_call
    ret_val = effect(*args, **kwargs)
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/tests/auth_handler_test.py", line 167, in _validate_all
    azr.body.combinations)
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/tests/acme_util.py", line 131, in gen_authzr
    "expires": datetime.datetime(now.year, now.month + 1, now.day),
ValueError: day is out of range for month

======================================================================
ERROR: test_name3_dvsni3_rectok_3 (letsencrypt.tests.auth_handler_test.GetAuthorizationsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
    return func(*args, **keywargs)
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/tests/auth_handler_test.py", line 131, in test_name3_dvsni3_rectok_3
    authzr = self.handler.get_authorizations(["0", "1", "2"])
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/auth_handler.py", line 79, in get_authorizations
    self._respond(cont_resp, dv_resp, best_effort)
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/auth_handler.py", line 137, in _respond
    self._poll_challenges(chall_update, best_effort)
  File "/usr/lib/python2.7/dist-packages/mock.py", line 964, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mock.py", line 1027, in _mock_call
    ret_val = effect(*args, **kwargs)
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/tests/auth_handler_test.py", line 167, in _validate_all
    azr.body.combinations)
  File "/home/francois/devel/remote/letsencrypt/build-area/letsencrypt-0.20150531/letsencrypt/tests/acme_util.py", line 131, in gen_authzr
    "expires": datetime.datetime(now.year, now.month + 1, now.day),
ValueError: day is out of range for month

----------------------------------------------------------------------
Ran 360 tests in 3.178s

FAILED (errors=3)

Activity

  1. added a commit that references this issue on Jun 1, 2015
  2. added a commit that references this issue on Jun 2, 2015
    2ae9bf3
  3. kuba commented on Jun 2, 2015

    @kuba
    Contributor

    test_plugins is fixed in #440, nasty time bug in #467

  4. added a commit that references this issue on Jun 3, 2015
    9394c26
  5. kuba commented on Sep 28, 2015

    @kuba
    Contributor

    This is OBE, please close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions