Skip to content

Look into replacing Boulder tests w/ Pebble tests (or removing it entirely) #9898

Closed

Description

@wgreenberg

Our boulder tests have recently been breaking due to a change in boulder, but pebble (https://github.com/letsencrypt/pebble/) is the recommended test util for testing against ACME servers. Can we convert our boulder tests to use pebble, or if we deem them unnecessary, remove them entirely?

Activity

  1. self-assigned this
    on Feb 8, 2024
  2. jvanasco commented on Feb 9, 2024

    @jvanasco
    Contributor

    FYI, I implemented pebble tests for our client in a very simple but inelegant way.

    I use a decorator to spin up a version of pebble for each test (https://github.com/aptise/peter_sslers/blob/main/tests/_utils.py#L288-L334) using psutil.

    I also manipulate the hosts file on the github setup (https://github.com/aptise/peter_sslers/blob/main/.github/workflows/core-tests.yml#L48-L51)

    This has made unit and integrated tests very easy. There is a bit of an overhead to spin up pebble for each test, but the entire pebble database is localized to the test.

  3. wgreenberg commented on Feb 9, 2024

    @wgreenberg
    CollaboratorAuthor

    oh nice! that's a handy setup. though actually, certbot's already got a harness for running pebble tests (i didn't do a great job explaining this in the issue description), we just also have a parallel set of tests that use boulder which we run in certain circumstances.

  4. wgreenberg commented on Feb 28, 2024

    @wgreenberg
    CollaboratorAuthor

    With letsencrypt/pebble#433 landed, this is just blocked on the next Pebble release, which itself is blocked pending their CI overhaul (letsencrypt/pebble#444).

  5. wgreenberg commented on Mar 14, 2024

    @wgreenberg
    CollaboratorAuthor

    New pebble release is out, so this should be good to go. I'll open a PR shortly

  6. added a commit that references this issue on May 2, 2024
    873f979
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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