Skip to content

Commit

Permalink
create dummy CRL file so healthcheck can pass
Browse files Browse the repository at this point in the history
  • Loading branch information
rambo committed Apr 19, 2024
1 parent 68bb04a commit 1aac8ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@
def default_env(monkeysession: pytest.MonkeyPatch, nice_tmpdir_ses: str) -> Generator[None, None, None]:
"""Setup some default environment variables"""
datadir = Path(nice_tmpdir_ses) / "data"
cadir = datadir / "ca_public"
cadir.mkdir(parents=True, exist_ok=True)
crlfile = cadir / "crl.der"
with monkeysession.context() as mpatch:
crlfile.write_text("DUMMY")
mpatch.setenv("CI", "true")
mpatch.setenv("OR_DATA_PATH", str(datadir))
mpatch.setenv("OR_CFSSL", "fakessl")
mpatch.setenv("OR_CRL", str(crlfile))
yield None


Expand Down

0 comments on commit 1aac8ce

Please sign in to comment.