Commit graph

75 commits

Author SHA1 Message Date
Yen Chi Hsuan
29d25f0915 Enable boulder tests on Python 3 2017-04-15 02:32:18 +08:00
Jacob Hoffman-Andrews
d5f1edf2bb Dump Boulder logs on integration test failures. (#4442)
Might help debug #4363.

Also:

make "bash" vs "sh" explicit
move the paranoia flags (-ex) from the shebang into the body
add -u (fail on unset variables)
change _common to work with -u
remove some env vars that were no longer used
remove shebang from _common.sh because it's meant to be sourced, not run
2017-03-29 16:48:08 -07:00
Erica Portnoy
52ce335ff0 lineage_for_certname should return None if there is no existing renewal file (#4243)
* lineage_for_certname should return None if there is no existing renewal file

* add unit test

* add regression test to integration test

* revent boulder-start to boulder-fetch
2017-02-23 18:31:23 -08:00
Jacob Hoffman-Andrews
ebf5170d12 Update testing docs. (#4211)
Recommend faster-running commands with clearer output first, building up to
slow, noisy, `tox` last.

Remove outdated Boulder testing advice, and outdated Boulder testing scripts
(Vagrantfile, mac-bootstrap.sh, boulder-start.sh). Update Boulder testing
section.

Fill out "directory structure" section of contributing guide a little better.
2017-02-16 12:39:17 -08:00
Josh Soref
6a39a42f45 Spelling (#4101)
* spelling: action

* spelling: artifacts

* spelling: asymmetric

* spelling: attempts

* spelling: bizarre

* spelling: certbot

* spelling: certificate

* spelling: certainly

* spelling: challenge

* spelling: client

* spelling: collated

* spelling: correct

* spelling: considered

* spelling: custom

* spelling: distinguish

* spelling: encoding

* spelling: enhancement

* spelling: equivalent

* spelling: execution

* spelling: existence

* spelling: failed

* spelling: handshake

* spelling: hyphen

* spelling: initialized

* spelling: initialization

* spelling: interpretation

* spelling: letsencrypt

* spelling: multiline

* spelling: multipart

* spelling: necessary

* spelling: otherwise

* spelling: output

* spelling: overridden

* spelling: positives

* spelling: preferable

* spelling: progress

* spelling: recommended

* spelling: referring

* spelling: relativity

* spelling: request

* spelling: requiring

* spelling: separate

* spelling: source

* spelling: specified

* spelling: standard

* spelling: successfully

* spelling: unparseable

* spelling: useful
2017-01-26 16:21:54 -08:00
Brad Warren
fe03c5a14c fix integration tests (#4111) 2017-01-26 14:08:22 -08:00
Brad Warren
4d860b37b0 Preserve preferred-challenges on renewal (#4112)
* use challenge type strings, not objectS

* Factor out parse_preferred_challenges

* restore pref_challs

* save pref_challs

* Make CheckCertCount more flexible

* improve integration tests

* Make pref_challs more flexible
2017-01-25 18:40:22 -08:00
Craig Smith
fe358600ab Add cleanup trap to integration test script (#4075)
The integration test script spins up Python webservers. This trap will
ensure that those webservers are shutdown at exit.
2017-01-18 10:41:53 -08:00
Blake Griffith
49d46ef99a Impelment account deactivation [revision requested] (#3571)
Impelment account deactivation
2017-01-17 16:00:07 -08:00
Craig Smith
94c23479e2 Add option to specify revocation reason (#3242) (#3988)
This includes two new tests in the integration test script to check that
boulder gets the correct code. The encoding is specified in RFC5280
5.3.1. The codes that boulder will accept are a subset of that,
specified in `boulder.revocation.reasons.go`.
2017-01-11 18:26:55 -08:00
Brad Warren
05afb54522 Fix and cleanup CheckHooks 2017-01-04 13:39:46 -08:00
Brad Warren
7fb4e6627c HOOK_TEST++ 2017-01-04 13:12:50 -08:00
Brad Warren
42b0188519 Merge branch 'master' into save-more-hooks 2017-01-04 12:24:53 -08:00
Brad Warren
39f5551305 Merge the manual and script plugins (#3890)
* Start of combined manual/script plugin

* Return str from hooks.execute, not bytes

* finish manual/script rewrite

* delete old manual and script plugins

* manually specify we want chall.token

* use consistent quotes

* specify chall for uri

* s/script/hook

* fix spacing on instructions

* remove unneeded response argument

* make achall more helpful

* simplify perform

* remove old test files

* add start of manual_tests

* fix ParseTest.test_help

* stop using manual_test_mode in cli tests

* Revert "make achall more helpful"

This reverts commit 54b01cea30.

* use bad response/validation methods on achalls

* simplify perform and cleanup environment

* finish manual tests

* Add HTTP manual hook integration test

* add manual http scripts

* Add manual DNS script integration test

* remove references to the script plugin

* they're hooks, not scripts

* add --manual-public-ip-logging-ok to integration tests

* use --pref-chall for dns integration

* does dns work?

* validate hooks

* test hook validation

* Revert "does dns work?"

This reverts commit 1224cc2961.

* busy wait in manual-http-auth

* remove DNS script test for now

* Fix challenge prefix and add trailing .

* Add comment about universal_newlines

* Fix typo from 0464ba2c4

* fix nits and typos

* Generalize HookCOmmandNotFound error

* Add verify_exe_exists

* Don't duplicate code in hooks.py

* Revert changes to hooks.py

* Use consistent hook error messages
2016-12-22 08:24:08 -08:00
Peter Eckersley
0c2dc60484 Integration tests for hooks 2016-12-15 17:28:16 -08:00
Brad Warren
a5df9e5a0e Only verify required ports are available (#3608)
* only verify port is available when you actually need it

* refactor code to create achalls

* Test port checks are based on achall

* test that only the port for the requested challenge is checked in standalone
2016-10-10 18:44:39 -07:00
Ben Irving
61b77766c2 Add integration test cases for must staple and ECDSA (#3158) 2016-06-14 11:28:29 -07:00
sagi
b54497d814 Fix chain filename 2016-05-24 19:33:13 +00:00
sagi
c0228ef1aa Boulder integration scripts provides a cert_path 2016-05-16 22:11:15 +00:00
Brad Warren
75a1d81458 More stray ncrypt reference cleanup 2016-04-14 17:04:23 -07:00
Brad Warren
ae6f1c62f1 Rename misc files 2016-04-14 10:20:23 -07:00
Kane York
902ab9afdf Work around leap day bug in parsedatetime 2016-02-29 10:58:14 -08:00
Peter Eckersley
0513af83f4 Test CLI flag setting from renewal integration tests
Closes: #2411
2016-02-09 16:09:02 -08:00
Brad Warren
0fa61f4192 Use common and add verb 2016-02-08 18:46:24 -08:00
Brad Warren
2170c8d7d2 Move * outside of " 2016-02-08 18:35:44 -08:00
Brad Warren
e798b62d2e Testing cleanup 2016-02-08 18:18:48 -08:00
Brad Warren
7a902daa9f duplication-- 2016-02-08 18:14:29 -08:00
Brad Warren
8eb889d942 Make CheckCertCount check cert counts 2016-02-08 17:55:28 -08:00
Brad Warren
38a6d44279 Remove round echos 2016-02-08 17:54:39 -08:00
Brad Warren
bb2f054f1b Take boulder-integration.sh from #2398 2016-02-08 17:54:02 -08:00
Seth Schoen
8b02f485b0 Have a way not to force renewal in integration test 2016-02-05 17:13:30 -08:00
Seth Schoen
09337517d3 Try to distinguish renew and non-renew in integration test 2016-02-05 16:57:41 -08:00
Seth Schoen
375543eb32 Hoping to see if integration test is really renewing 2016-02-04 14:43:05 -08:00
Seth Schoen
a706f5c8c0 Try to add the new renew verb to integration testing 2016-02-03 13:53:42 -08:00
Joona Hoikkala
56f21e1d35 Refactor --domain flag back to -- domains 2015-11-12 16:53:40 +02:00
Joona Hoikkala
3074ef996a Refactored the argument and the code to use --domain instead of --domains, which was semantically incorrect 2015-11-10 12:29:08 +02:00
Jakub Warmuz
93e69ef7de
tls-sni-01 for standalone 2015-11-07 18:24:17 +00:00
Jakub Warmuz
ea3611afe6
http-01 for standalone 2015-11-01 11:01:22 +00:00
Jakub Warmuz
6eae746735
Clean up after simplehttp port change to 5002.
Now, when https://github.com/letsencrypt/boulder/pull/998 is in, we
can remove all quick fixes for
https://github.com/letsencrypt/boulder/issues/985.
2015-10-17 18:06:21 +00:00
Jakub Warmuz
78c296bbd1
Integration tests: force le3.wtf over DVSNI.
Becuse of https://github.com/letsencrypt/boulder/issues/985, we need
to force standalone to one particular type of challenge at a
time. #895 didn't fix it properly - it forgot about issuance of
le3.wtf (CSR-initiated), which results in Travis builds failing 50% of
a time,
e.g. https://travis-ci.org/letsencrypt/letsencrypt/jobs/85875483#L3318.
2015-10-17 07:43:07 +00:00
Jakub Warmuz
523c7c3369
Merge remote-tracking branch 'github/letsencrypt/master' into standalone2 2015-10-16 06:39:23 +00:00
David Dworken
0614fba9df Make the script POSIX compliant so it works with dash (Fixes #977) 2015-10-15 20:21:41 -04:00
Jakub Warmuz
18ddcc72f6
More quickfix for boulder#985 2015-10-14 19:40:07 +00:00
Jakub Warmuz
371daa42ca
Quickfix for boulder#985 2015-10-14 19:16:30 +00:00
Jakub Warmuz
73ae361559
Merge remote-tracking branch 'github/letsencrypt/master' into standalone2 2015-10-12 19:36:46 +00:00
Brandon Kreisel
8012382368 Merge branch 'master' into mac-psutil 2015-10-08 16:04:25 -04:00
Jakub Warmuz
1efec6b399
Merge remote-tracking branch 'github/letsencrypt/master' into standalone2 2015-10-07 20:07:01 +00:00
Jakub Warmuz
e4e94b20d4
Remove --no-simple-http-tls from integration tests 2015-10-07 06:23:40 +00:00
Brandon Kreisel
c9e28309ed Define constants for OS specific executables 2015-10-04 20:08:38 -04:00
Jakub Warmuz
827c66c667
Integration tests: standalone dvsni and simpleHttp. 2015-10-04 19:19:36 +00:00