mirror of
https://github.com/certbot/certbot.git
synced 2026-04-22 14:47:13 -04:00
Pebble 2.5.1 supports OCSP stapling, so we can finally replace all boulder tests/harnesses with the much simpler pebble setup. Closes #9898 * Remove unused `--acme-server` argument Since this argument is never set and always defaults to 'pebble', just remove it to simplify assumptions about which test server's being used. * Remove boulder option from integration tests Now that pebble supports all of our test cases, we can move off of the much more complicated boulder test harness. * pebble_artifacts: bump to latest pebble release * pebble_artifacts: fix download path * certbot-ci: unzip pebble assets * CI: rip out windows tests/jobs * tox.ini: rm outdated Windows comment Co-authored-by: Brad Warren <bmw@users.noreply.github.com> * ci: rm redundant integration test Co-authored-by: Brad Warren <bmw@users.noreply.github.com> * acme_server: raise error if proxy and http-01 port are both set * acme_server: rm vestigial preterimate commands stuff --------- Co-authored-by: Brad Warren <bmw@users.noreply.github.com>
26 lines
752 B
Python
Executable file
26 lines
752 B
Python
Executable file
#!/usr/bin/env python
|
|
"""
|
|
This executable script wraps the apache-conf-test bash script, in order to setup a pebble instance
|
|
before its execution. Directory URL is passed through the SERVER environment variable.
|
|
"""
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
from certbot_integration_tests.utils import acme_server
|
|
|
|
SCRIPT_DIRNAME = os.path.dirname(__file__)
|
|
|
|
|
|
def main() -> int:
|
|
args = sys.argv[1:]
|
|
with acme_server.ACMEServer([], False) as acme_xdist:
|
|
environ = os.environ.copy()
|
|
environ['SERVER'] = acme_xdist['directory_url']
|
|
command = [os.path.join(SCRIPT_DIRNAME, 'apache-conf-test')]
|
|
command.extend(args)
|
|
return subprocess.call(command, env=environ)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|