Skip to content

Commit

Permalink
Merge pull request #97 from pvarki/ocsp_productapi
Browse files Browse the repository at this point in the history
Force OCSP refresh before calling productAPI
  • Loading branch information
rambo authored Mar 23, 2024
2 parents f353d82 + 0f0bbcb commit a96d52f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.3.0
current_version = 1.3.1
commit = False
tag = False

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rasenmaeher_api"
version = "1.3.0"
version = "1.3.1"
description = "python-rasenmaeher-api"
authors = [
"Aciid <703382+Aciid@users.noreply.github.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/rasenmaeher_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" python-rasenmaeher-api """
__version__ = "1.3.0" # NOTE Use `bump2version --config-file patch` to bump versions correctly
__version__ = "1.3.1" # NOTE Use `bump2version --config-file patch` to bump versions correctly
2 changes: 2 additions & 0 deletions src/rasenmaeher_api/prodcutapihelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from .rmsettings import RMSettings
from .mtlsinit import get_session_winit
from .cfssl.private import refresh_ocsp

LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -57,6 +58,7 @@ async def _method_to_all_products(
LOGGER.error("Manifest does not have products key")
return None
rmconf = RMSettings.singleton()
await refresh_ocsp()
LOGGER.debug("data={}".format(data))

async def handle_one(name: str, conf: Mapping[str, Any]) -> Tuple[str, Optional[pydantic.BaseModel]]:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rasenmaeher_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

def test_version() -> None:
"""Make sure version matches expected"""
assert __version__ == "1.3.0"
assert __version__ == "1.3.1"


@pytest.mark.asyncio
Expand Down

0 comments on commit a96d52f

Please sign in to comment.