certbot/tests
Brad Warren 33090ab77a
Fix oldest nginx integration tests (#6642)
#6636 broke [test-everything tests](https://travis-ci.org/certbot/certbot/builds/475173804) because `_common.sh` is a common file shared between Certbot and Nginx integration tests and `--no-random-sleep-on-renew` isn't defined for the version of Certbot used in the "oldest" integration tests.

This PR adds code to `_common.sh` to check the Certbot version and if it's new enough, add `--no-random-sleep-on-renew` to the command line. I repurposed `$store_flags` and stopped exporting it because it's not used anywhere outside of this file.

Other approaches I considered and decided against were:

1. Adding this flag in `certbot-boulder-integration.sh`. I decided against it because it's setting us up for the same problem in the future if the oldest version of Certbot is upgraded in the Nginx tests and we call `certbot renew`.
2. Just upgrading the oldest version of Certbot required by Nginx to avoid these issues. While this would work (with perhaps some unnecessary burden for our packagers), I think it's avoiding the real problem here which should now be able to addressed easily with the addition of `$other_flags` and `version_at_least`.

* Add version_at_least().

* Conditionally disable sleep.

* Consolidate store_flags and other_flags.

* update comments
2019-01-04 12:44:31 -08:00
..
integration Fix oldest nginx integration tests (#6642) 2019-01-04 12:44:31 -08:00
letstest Fix test_sdists test farm test (#6524) 2018-11-20 18:39:12 -05:00
boulder-fetch.sh Correct boulder integration tests using the latest challtestsrv version (#6600) 2018-12-13 11:13:39 -08:00
boulder-integration.sh Separate integration (#5814) 2018-08-29 14:11:13 -07:00
certbot-boulder-integration.sh Compatibility with more traditional versions of awk 2019-01-03 17:48:09 -08:00
certbot-pebble-integration.sh Implement POST-as-GET requests (#6522) 2018-11-29 19:42:06 -05:00
display.py Mitigate problems for people who run without -n (#3916) 2016-12-19 12:45:40 -08:00
lock_test.py [Windows|Unix] Rewrite bash scripts for tests into python (#6435) 2018-11-07 17:16:16 -08:00
manual-dns-auth.sh Fix --allow-subset-of-names (#5690) 2018-03-08 11:12:33 -08:00
manual-dns-cleanup.sh Fix --allow-subset-of-names (#5690) 2018-03-08 11:12:33 -08:00
manual-http-auth.sh Enable boulder tests on Python 3 2017-04-15 02:32:18 +08:00
manual-http-cleanup.sh Merge the manual and script plugins (#3890) 2016-12-22 08:24:08 -08:00
modification-check.py Fail-fast in test/cover/lint scripts (#6487) 2018-11-14 13:57:40 -08:00
pebble-fetch.sh Implement POST-as-GET requests (#6522) 2018-11-29 19:42:06 -05:00
run_http_server.py Drop support for EOL Python 2.6 and 3.3 2018-02-16 16:14:01 -08:00
tox-boulder-integration.sh Retry failures to start boulder (#5176) 2017-10-12 17:00:13 -07:00