Commit Graph
1023 Commits
Author SHA1 Message Date
Jakub Warmuz c4042e6ce8 Busy wait loop for testing serve_forever2
This fixes race conditions, such as those in
https://travis-ci.org/letsencrypt/letsencrypt/jobs/84990239:

+ nosetests -c /dev/null --with-cover --cover-tests --cover-package acme --cover-min-percentage=100 acme
.......................................................................................................................................................................................................................................................................................................................................................Exception in thread Thread-5:
Traceback (most recent call last):
  File "/opt/python/2.7.9/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/opt/python/2.7.9/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 271, in handle_request
    timeout = self.socket.gettimeout()
  File "/opt/python/2.7.9/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
  File "/opt/python/2.7.9/lib/python2.7/socket.py", line 170, in _dummy
    raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor
.127.0.0.1 - - [12/Oct/2015 20:08:23] "GET /foo HTTP/1.1" 404 -
.127.0.0.1 - - [12/Oct/2015 20:08:23] "GET / HTTP/1.1" 200 -
.127.0.0.1 - - [12/Oct/2015 20:08:23] "GET /.well-known/acme-challenge/eHh4eHh4eHh4eHh4eHh4eA HTTP/1.1" 200 -
.....
Name                           Stmts   Miss  Cover   Missing
------------------------------------------------------------
acme.py                            0      0   100%
acme/challenges.py               215      0   100%
acme/challenges_test.py          366      0   100%
acme/client.py                   215      0   100%
acme/client_test.py              308      0   100%
acme/crypto_util.py               92      0   100%
acme/crypto_util_test.py          53      0   100%
acme/errors.py                    19      0   100%
acme/errors_test.py               18      0   100%
acme/fields.py                    32      0   100%
acme/fields_test.py               41      0   100%
acme/jose.py                       8      0   100%
acme/jose/b64.py                  15      0   100%
acme/jose/b64_test.py             38      0   100%
acme/jose/errors.py               12      0   100%
acme/jose/errors_test.py           8      0   100%
acme/jose/interfaces.py           39      0   100%
acme/jose/interfaces_test.py      73      0   100%
acme/jose/json_util.py           170      0   100%
acme/jose/json_util_test.py      214      0   100%
acme/jose/jwa.py                 105      0   100%
acme/jose/jwa_test.py             58      0   100%
acme/jose/jwk.py                 114      0   100%
acme/jose/jwk_test.py             96      0   100%
acme/jose/jws.py                 205      0   100%
acme/jose/jws_test.py            145      0   100%
acme/jose/util.py                114      0   100%
acme/jose/util_test.py           126      0   100%
acme/jws.py                       17      0   100%
acme/jws_test.py                  27      0   100%
acme/messages.py                 184      0   100%
acme/messages_test.py            198      0   100%
acme/other.py                     21      0   100%
acme/other_test.py                48      0   100%
acme/standalone.py               102      1    99%   58
acme/standalone_test.py          109      0   100%
acme/test_util.py                 28      0   100%
acme/util.py                       3      0   100%
acme/util_test.py                  7      0   100%
------------------------------------------------------------
TOTAL                           3643      1    99%
nose.plugins.cover: ERROR: TOTAL Coverage did not reach minimum required: 100%
2015-10-13 07:09:28 +00:00
Jakub Warmuz 73ae361559 Merge remote-tracking branch 'github/letsencrypt/master' into standalone2 2015-10-12 19:36:46 +00:00
Jakub Warmuz a1a6120abf Add py3 trove classifiers for acme 2015-10-11 16:03:32 +00:00
Jakub Warmuz 7a153ebf50 Revert "Release 0.0.0.dev20151008"
This reverts commit 9e1477faa4.
2015-10-11 07:05:35 +00:00
bmw 013d5d2ea9 Merge pull request #929 from kuba/bugs/928
Fix #928 test_json_dumps_pretty py3 compat.
2015-10-09 15:38:29 -07:00
Jakub Warmuz 304414a214 Remove SimpleHTTP TLS from acme. 2015-10-08 21:10:12 +00:00
Jakub Warmuz 6dfb75b96f Fix #928 test_json_dumps_pretty py3 compat. 2015-10-08 20:32:25 +00:00
Jakub Warmuz 9e1477faa4 Release 0.0.0.dev20151008 2015-10-08 19:28:55 +00:00
Jakub Warmuz f0214ddf9a Merge commit 'a2c41ca7f539303cb413ba3e73d3669633063150' into standalone2 2015-10-07 19:07:44 +00:00
Jakub Warmuz f0c11152d2 ACMEServerMixin.__init__ 2015-10-07 19:00:47 +00:00
Jakub Warmuz c6ebfae15e Unify quotes 2015-10-06 21:11:52 +00:00
Jakub Warmuz 3dac62f20e json_dumps_pretty: prettier separators. 2015-10-06 21:11:52 +00:00
Jakub Warmuz 7e1b7ff7ae Add naive JWK Thumbprint implementation 2015-10-06 21:05:43 +00:00
Jakub Warmuz c3e28fa909 Merge remote-tracking branch 'github/letsencrypt/master' into mock-2.6 2015-10-05 19:31:05 +00:00
Jakub Warmuz ea45fc6504 TestSimpleServer: don't rely on symlinks 2015-10-04 19:15:05 +00:00
Jakub Warmuz df04938f6a Standalone 2.0: add detection for unsupported SimpleHTTP TLS platform. 2015-10-04 19:14:58 +00:00
Jakub Warmuz 517a74f432 standalone 2.0: lint, docs, cleanup. 2015-10-04 17:21:35 +00:00
Jakub Warmuz 22b1514f51 server_forever2/shutdown2 2015-10-04 12:14:10 +00:00
Jakub Warmuz 560d12a40c Merge remote-tracking branch 'github/letsencrypt/master' into standalone2 2015-10-04 10:24:47 +00:00
Jakub Warmuz 7644613171 Update Copyright notice in subpackages LICENSE.
This corresponds to changes in #871.
2015-10-04 10:10:41 +00:00
Jakub Warmuz 4ef7a6e63f Merge remote-tracking branch 'github/letsencrypt/master' into release 2015-10-04 10:08:38 +00:00
Jakub Warmuz 3f08932479 Merge remote-tracking branch 'github/letsencrypt/master' into mock-2.6 2015-10-04 08:41:01 +00:00
Jakub Warmuz 0ffef20a20 UnrecognizedChallenge: fix tests and lint. 2015-09-29 07:02:33 +00:00
Jakub Warmuz ad1fce03f7 UnrecognizedChallenge (fixes #855).
Overrides quick fix from #856.
2015-09-29 06:47:15 +00:00
James Kasten 5238f53092 DVChallenge -> Challenge 2015-09-28 16:03:03 -07:00
James Kasten 67ec4d09ee Put in dummy challenge 2015-09-28 15:53:42 -07:00
James Kasten fa992faf52 Fix pylint and add test 2015-09-28 15:24:51 -07:00
Richard Barnes ab98d5c39f Ignore unknown challenge types 2015-09-28 17:14:33 -04:00
Jakub Warmuz 5d8e9a3d68 Fix various doc generation issues 2015-09-27 21:07:40 +00:00
Jakub Warmuz d621df3320 Make zipsafe 2015-09-27 11:10:34 +00:00
Jakub Warmuz 45a0cd2799 Fix include_package_data. 2015-09-27 08:11:40 +00:00
Jakub Warmuz 9883f8965d Add dummy README.rst files 2015-09-27 06:23:13 +00:00
Jakub Warmuz 033ed589cc Development Status :: 3 - Alpha 2015-09-27 06:23:13 +00:00
Jakub Warmuz b6819ad05b Add general classifiers to all setup.py scripts. 2015-09-27 06:23:13 +00:00
Jakub Warmuz b5036e36ad Unify setup.py: description/url/author/author_email. 2015-09-27 06:23:12 +00:00
Jakub Warmuz 20131de9fb Add licences to all subpackages. 2015-09-27 06:23:12 +00:00
Jakub Warmuz 746016be6c Sync version strings to 0.1.0.dev0, pin same repo deps. 2015-09-27 06:23:12 +00:00
Jakub Warmuz daa459f277 Add acme.standalone 2015-09-26 16:50:59 +00:00
Jakub Warmuz 1b24fdae84 acme: challenges helpers 2015-09-26 16:50:59 +00:00
Jakub Warmuz d73b600eeb acme: _serve_sni -> SSLSocket 2015-09-26 16:50:59 +00:00
Jakub Warmuz 08c0c4aeba Explicit dependency on setuptools (pkg_resources). 2015-09-26 10:52:28 +00:00
Peter Eckersley bde5a1fe17 Merge branch 'treat_duplicate_as_renewal' into kuba_chain 2015-09-15 17:51:58 -07:00
bmw a150828a79 Merge pull request #753 from kuba/dns-v4
acme: v4 DNS challenge
2015-09-14 16:21:38 -04:00
Jakub Warmuz 33c2aed021 Merge remote-tracking branch 'github/letsencrypt/master' into lint 2015-09-11 07:15:10 +00:00
Jakub Warmuz b3ade6abe4 Revert "Revocation: expect application/json (boulder#771)."
This reverts commit 39aff967a5.
2015-09-10 20:43:20 +00:00
Jakub Warmuz 39aff967a5 Revocation: expect application/json (boulder#771). 2015-09-10 20:17:13 +00:00
Jakub Warmuz cc607480ae acme: fetch_chain for multiple up links 2015-09-10 20:12:32 +00:00
Jakub Warmuz 94fa851b01 Merge branch 'acme-directory' into revocation 2015-09-09 20:45:57 +00:00
Jakub Warmuz 817ab468d1 py3 compat: str(exc) instead of exc.message 2015-09-09 20:21:33 +00:00
Jakub Warmuz 302e3ceb7d Revocation: integration testable 2015-09-09 20:04:28 +00:00