From 46ded85f35de13fd6ded8d93b1e6b3a077f03446 Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Wed, 11 Oct 2023 17:02:44 +0200 Subject: [PATCH] fixup! WIP: Refactor the code structure --- tests/supervisor/test_jwk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/supervisor/test_jwk.py b/tests/supervisor/test_jwk.py index 7c1d0b362..aa97f8907 100644 --- a/tests/supervisor/test_jwk.py +++ b/tests/supervisor/test_jwk.py @@ -15,7 +15,7 @@ @pytest.fixture def valid_jwk_headers(mocker): mocker.patch( - "orchestrator.views.operator.is_token_still_valid", lambda timestamp: True + "aleph.vm.orchestrator.views.operator.is_token_still_valid", lambda timestamp: True ) return { "X-SignedPubKey": '{"payload":"7b227075626b6579223a7b22616c67223a224553323536222c22637276223a22502d323536222c22657874223a747275652c226b65795f6f7073223a5b22766572696679225d2c226b7479223a224543222c2278223a224b65763844614d7356454673365a6b4679525a4272796344564138566a334f656e49756f34743561374634222c2279223a2279597343556d715978654767673643743736794f47525873545867446444795234644f5639514c6f6b6477227d2c22616c67223a224543445341222c22646f6d61696e223a226c6f63616c686f7374222c2261646472657373223a22307833343932346566393435623933316431653932393337353535366636396365326537666535646363222c2265787069726573223a313638393337353132342e3532317d","signature":"0x58e1498a6c4f88ac1982e7147ff49405ffe1b9633e048bb74cf741abb05ce0b63bb406f3079f641ae89f597654ecd2a704d37ffbf86a28e462140033cc0eedcb1c"}', @@ -45,7 +45,7 @@ async def test_invalid_signature(valid_jwk_headers: Dict[str, Any], mocker): @pytest.mark.asyncio async def test_expired_token(valid_jwk_headers: Dict[str, Any], mocker): mocker.patch( - "orchestrator.views.operator.is_token_still_valid", lambda timestamp: False + "aleph.vm.orchestrator.views.operator.is_token_still_valid", lambda timestamp: False ) request = mocker.AsyncMock() request.headers = valid_jwk_headers