From de1f3555b1bcdc1d67e6636264bbd2e225f229a8 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 31 Mar 2023 11:11:29 +0200 Subject: [PATCH] Disable codenotary until rework of cosign (#4217) * Disable codenotary until rework of cosign * Skip code notary tests --------- Co-authored-by: Mike Degatano --- supervisor/utils/codenotary.py | 2 ++ tests/utils/test_codenotary.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/supervisor/utils/codenotary.py b/supervisor/utils/codenotary.py index 79546405a..ddb963b7b 100644 --- a/supervisor/utils/codenotary.py +++ b/supervisor/utils/codenotary.py @@ -43,11 +43,13 @@ def calc_checksum_path_sourcecode(folder: Path) -> str: return dirhash(folder.as_posix(), "sha256", match=["*.py"]) +# pylint: disable=unreachable async def cas_validate( signer: str, checksum: str, ) -> None: """Validate data against CodeNotary.""" + return if (checksum, signer) in _CACHE: return diff --git a/tests/utils/test_codenotary.py b/tests/utils/test_codenotary.py index 32970129d..2cbab20bf 100644 --- a/tests/utils/test_codenotary.py +++ b/tests/utils/test_codenotary.py @@ -13,6 +13,8 @@ from supervisor.exceptions import ( ) from supervisor.utils.codenotary import calc_checksum, cas_validate +pytest.skip("code notary has been disabled due to issues", allow_module_level=True) + @dataclass class SubprocessResponse: