diff --git a/.bumpversion.toml b/.bumpversion.toml index ec8a945..c4f440f 100644 --- a/.bumpversion.toml +++ b/.bumpversion.toml @@ -1,5 +1,5 @@ [tool.bumpversion] -current_version = "1.0.2+261028" +current_version = "1.0.3+261117" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)\\+(?P\\d+)" serialize = ["{major}.{minor}.{patch}+{build}"] search = "{current_version}" diff --git a/pyproject.toml b/pyproject.toml index 2fc565e..743b845 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mumblermapi" -version = "1.0.2+261028" +version = "1.0.3+261117" description = "Murmur (Mumble server) integration for the OpenDefence platform" license = { text = "GPL-2.0-only" } readme = "README.md" diff --git a/src/mumblermapi/__init__.py b/src/mumblermapi/__init__.py index 3f5b1aa..9c0d10b 100644 --- a/src/mumblermapi/__init__.py +++ b/src/mumblermapi/__init__.py @@ -1,3 +1,3 @@ """Murmur integration for the OpenDefence platform""" -__version__ = "1.0.2+261028" +__version__ = "1.0.3+261117" diff --git a/src/mumblermapi/api.py b/src/mumblermapi/api.py index 1fcf22e..36698ce 100644 --- a/src/mumblermapi/api.py +++ b/src/mumblermapi/api.py @@ -563,7 +563,7 @@ def _extended(language: str, texts: dict[str, str]) -> ProductDescriptionExtende return ProductDescriptionExtended( shortname=SHORTNAME, title=TITLES[language], - icon=f"{UI_PATH[1:]}/icon.svg", + icon=f"{UI_PATH[1:]}/voicelogo.svg", description=texts[language], language=language, docs=None, diff --git a/tests/conftest.py b/tests/conftest.py index 35a65ca..b3e9347 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -12,7 +12,8 @@ from cryptography.hazmat.primitives.serialization import Encoding from cryptography.x509.oid import ExtendedKeyUsageOID, NameOID -NOW = datetime(2026, 10, 10, 12, 0, tzinfo=UTC) +# Today, so certificates the code checks against the real clock are valid when the tests run +NOW = datetime.now(UTC).replace(microsecond=0) @dataclass(frozen=True) diff --git a/tests/test_api.py b/tests/test_api.py index aba3ba0..ffa6fed 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -167,7 +167,7 @@ def test_v2_descriptions(client: TestClient) -> None: tile = client.get("/api/v2/description/fi").json() assert tile["title"] == "Puhe" assert tile["component"] == {"type": "component", "ref": "/ui/mumble/remoteEntry.js"} - assert tile["icon"] == "ui/mumble/icon.svg" + assert tile["icon"] == "ui/mumble/voicelogo.svg" assert client.get("/api/v2/description/de").json()["language"] == "en" assert "members" in client.get("/api/v2/admin/description/en").json()["description"] remote = client.get("/ui/mumble/remoteEntry.js") diff --git a/tests/test_identity.py b/tests/test_identity.py index ee5f1c5..d648b89 100644 --- a/tests/test_identity.py +++ b/tests/test_identity.py @@ -1,5 +1,6 @@ """Usernames, certificate verification and name binding""" +from datetime import timedelta from pathlib import Path import pytest @@ -70,7 +71,7 @@ def test_verify_rejects_foreign_ca(pki: Pki) -> None: def test_verify_rejects_expired(pki: Pki) -> None: """Expired certificates are refused""" - expired = issue("ALPHA 1", pki.ca, not_before=NOW.replace(year=2025), not_after=NOW.replace(year=2026, month=1)) + expired = issue("ALPHA 1", pki.ca, not_before=NOW - timedelta(days=400), not_after=NOW - timedelta(days=30)) with pytest.raises(IdentityError, match="untrusted"): _verifier(pki).verify([expired.der], NOW) diff --git a/ui/public/icon.svg b/ui/public/icon.svg deleted file mode 100644 index 30013d7..0000000 --- a/ui/public/icon.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/ui/public/voicelogo.svg b/ui/public/voicelogo.svg new file mode 100644 index 0000000..f864fff --- /dev/null +++ b/ui/public/voicelogo.svg @@ -0,0 +1 @@ + diff --git a/uv.lock b/uv.lock index 97201f6..4a2696d 100644 --- a/uv.lock +++ b/uv.lock @@ -964,7 +964,7 @@ wheels = [ [[package]] name = "mumblermapi" -version = "1.0.2+261028" +version = "1.0.3+261117" source = { editable = "." } dependencies = [ { name = "aiohttp" },